« first day (3530 days earlier)      last day (1411 days later) » 
01:00 - 19:0019:00 - 00:00

7:00 PM
I think I missed the second half of fast inverse square root chat, but struct.unpack("f", struct.pack("i", 0x5F3759DF))[0] gives 1.3211836172961055e+19, which is close* to math.sqrt(2**127) aka 1.3043817825332783e+19
(*... enough for horseshoes and hand grenades)
 
@Kevin IIRC, that fast inverse square root algorithm finishes up by doing a couple of rounds of Newton's method. The slightly fudged sqrt(2) gives better results than using a more exact value of sqrt(2).
 
Crazy how nature do that
 
the wikipedia article has some math for doing the approximation
 
What is another way in Python to convert two bytes to 16 bits instead of converting the two integers that represent a byte to a binary number string, padding the two binary number strings with zeros up to eight characters, reversing the two binary number strings, and then combining the two padded binary number strings? Can you just convert the two bytes to two arrays of 8 bits, and then combine the two arrays of bits to get an array of 16 bits?
 
basically, you have to choose whether the approximation should be better at the center or the edges of the domain
 
7:10 PM
In other words, what is an alternative way of achieving the same result as:
bits = bin(bytes[0])[2:].zfill(8)[::-1] + bin(bytes[1])[2:].zfill(8)[::-1]
?
 
@MyWrathAcademia 2 bytes already are 16 bits (unless we are talking about rare architectures)
I really don't think you have to convert that to a string of 0 and 1 characters
 
It may be helpful to nail down the exact types of the input and output. bytes and array are actual Python types, but they might not behave the way you're imagining.
 
Converting to string and back is probably the best way to reverse bits, though
 
I'm struggling to come up with a better way, to my frustration
 
Note that bytes shadows a built-in class.
 
7:13 PM
@MisterMiyagi Yes, I think so too. In Python it might be easy to convert two bytes to 16 bits using string manipulation but would take more effort in C Sharp. Best to keep it simple.
 
Some of the solutions from the "how do I reverse bits in C#?" question I posted a while back might be portable, idk
 
@Aran-Fey there are some neat bit swapping techniques via shifting and masking.
 
@Kevin I'll keep that in mind.
 
2 hours ago, by Kevin
Some wild stuff going on in Is there a built-in function to reverse bit order... (b * 0x0202020202 & 0x010884422010) % 1023???
For posterity
 
overall, I'd use, well, bitwise operations to work with bits
 
7:14 PM
Wikipedia says it does 1 round of Newton's. And nobody knows remembers how the optimal constant was found, but an even better one was found by testing over a range of values.
 
@MisterMiyagi Sure, but I doubt they're worth implementing in python. String operations will likely be faster and more readable as well
 
I'm still convinced that the optimal finvsqrt constant was given to the team by a visitor from the future
 
@Aran-Fey If the same must be done in C#, I'd opt for the bitwise stuff to have the same approach in both languages.
 
@Kevin In C Sharp, off the top of my head I would use BitArray (for the first time) to convert a byte to an array of bits, add those bits to a List<T> and reverse the List<T>. That should work.
 
@MisterMiyagi fair enough
 
7:16 PM
@Aran-Fey Probably. Doing bit stuff using strings is often faster than messing about with explicit Python arithmetic. But I bet Numpy & a lookup table is probably faster.
 
There are only 65,536 possible inputs, just solve them all by hand once and you're done :-)
 
@Kevin Thanks, that may come in handy.
 
Also, you can get the number of bits in an integer buy calling its bit_length method, obviating the need to reverse the strings to pad.
 
I haven't been following MyWrathAcademia's problem closely. I just thought they were trying to translate Python code to C#. I didn't realise they need to have a working version in both languages.
 
by the way, as far as I can tell the CPP implementations just dumps everything directly into a 16-bit struct
 
7:22 PM
@PM2Ring I also thought they ultimately only wanted a C# implementation. I figured they were still toying around with the Python implementation because porting will be easier if it only uses simple and cross-language-available techniques.
 
@MisterMiyagi I'll take your word for it. That page doesn't want to load for me.
 
[::-1] is not cross-language-available, for example
Porting from implicit typing to explicit typing will probably be an obstacle no matter how you slice it, though
 
I've never looked at C#. What's it like for doing bit level stuff?
 
Bit operations are pretty much the same in every language, aren't they? and, or, xor, shift
 
I haven't done much in that area. I know it's got your usual & | ^ >> <<, and there's a helper class for converting to and from various integer and float types.
I remember finding it a little clunky to create a sequence of bytes that could be written to a file. Maybe I'm just spoiled by Python's easy file interface.
 
7:31 PM
Talk about clunky. I once had to figure out how to swap byte order in Python. That was clunky.
How is it that a language everyone always talks about as being "simple" and "easy to use" is so incredibly difficult, if not downright impossible, to use when it comes to bitwise arithmetic?
And if you want to convert from one integer type to another? No. That's just not a thing you do, apparently.
 
@Aran-Fey Playing with bytes is ok in Python, but messing around with bits gets a bit tedious.
 
We've been working on byte swapping for, let's see... Seven hours now :-)
 
@MisterMiyagi Good catch, but I don't know CPP at all, where does it dump everything into a 16-bit struct? Are you referring to the ufloat16 array?
 
Byte swapping is easy in Python. Although it's probably a bit easier in Python 3 than it was in Python 2.
 
Python doesn't have more than one integer type... Anymore.
 
7:33 PM
@Kevin Not to worry, we'll soon exit this rabbit hole by breaking through the surface on the other side of the planet
 
@MyWrathAcademia yes. ufloat16 is a struct defined at the top of the file.
 
@MyWrathAcademia Yes... That's terrible C++ code. But it does create an array of ufloat16 with size width*height. Why it does not create a proper array (e.g., std::vector), the world may never know.
 
The int/longint distinction is only a bad memory of The Before Times
 
Also, bitfields are completely non-portable and should never be used.
 
@PM2Ring I'm curious, what language makes it easy to deal with individual bits and how?
 
7:34 PM
Just write the bit-twiddling code to extract out the bits you want. Mask and shift, or vice-versa. Very trivial.
@Aran-Fey C. See above.
 
@PM2Ring Yeah, I did it with two function calls around noon, but we're still playing in the space.
 
OTOH, doing stuff that you'd do in C with unsigned ints (eg, doing hash calculations) is a bit annoying, since plain Python doesn't have an unsigned int type.
 
@CodyGray Sorry, where's the "how"? Do you create a vector of bits or something?
 
@PM2Ring Yeah. My first introduction to Python was helping a colleague debug insane run-time errors caused by (unbeknownst to me at the time) a mixture of tabs and spaces in the file, messing up the indentation. My second introduction to Python was when I had to sign-extend a value coming in from a sensor. That proved, as best I could tell, impossible. I gave up on the snake.
 
@Kevin and @PM2Ring I actually only want a C# implementation. I just don't understand (yet) the logic behind the code in the function read_custom_float works.
 
7:37 PM
@Aran-Fey You can. Or you just take an unsigned integer value and use the bit-shift (<< and/or >>) operators to get the bits where you want them and the bitwise-AND (&) operator to mask off the ones you don't want.
 
Python can do that too, no?
 
Not that I could figure out.
Or that Google or Stack Overflow could help with.
 
@CodyGray It's do-able, but it ain't pretty. :)
 
Wasted half a day on it before deciding it was more efficient to just to rewrite the whole thing in C++.
 
Based on fifteen seconds of googling, I don't think Python has a native operator for "sign extend"
0x1234 and 0x00001234 resolve to identical integers. If you want leading zeroes, you need bytes
 
7:39 PM
Leading zeros don't exist.
 
For an example of how to do unsigned stuff see my implementation of SHA-1 in pure Python 3
 
But consider that you have a 24-bit value, where the MSB (bit 23) is the sign bit. It's 1 if the value is negative, or 0 otherwise. You want to store this value as a 32-bit integer. In order to preserve the sign, you need to fill the sign bit upwards.
@PM2Ring Hmm. So is everything signed or unsigned in Python?
 
in CPython, n blocks of unsigned 32/64bit integers, plus a sign bit
 
@CodyGray Signed. And arbitrary precision.
 
Ack
That's shock and frustration, not an acknowledge-bit.
 
7:42 PM
for bitwise operations, the bit pattern is treated as if it were a signed, arbitrary precision integer
 
struct understands both signed and unsigned integers of various sizes, but alas, not 3 byte integers
 
24-bit values are tricky; 8, 16, 32, and 64 bit ints are easily dealt with by using struct
kevin'd
 
Python 2 had an int type which is a signed machine integer, and a long type, which is arbitrary precision. They are now merged into the int type in Python 3.
 
>>> struct.pack('>l', -8)
b'\xff\xff\xff\xf8'
 
independent verification 👍
 
7:44 PM
I remember also finding a Python library, which I used for something related to bit manipulation, but I forget what it was.
This was too many months ago.
It does seem like it was "pack" or something like that.
I basically had a stream of binary data coming in, out of which I needed to extract different values.
I put an intern on that task. A week later, still no dice.
 
In my sha1 code, you'll see:
# A bitmask of 32 '1' bits, so we can do
# 32 bit unsigned arithmetic in Python
mask = 0xffffffff
 
Can't say I'm surprised. An intern dealing with byte/bit stuff? :P
 
@CodyGray What is this mask?
 
So you end up with all these & mask littered all over the place.
 
@MyWrathAcademia The standard meaning
 
7:47 PM
I was quite happy with the stdlib struct library to read C struct/arrays crammed into UDP. Bit masking and bit shifting works practically the same, unless you need wraparound and such.
 
@PM2Ring Ah, so that's how you work around the arbitrary precision arithmetic. You just mask off everything that's not in the lower 32 bits.
That makes a lot of sense.
 
Exactly
 
I just didn't have the basic context for how Python handled integers and bytes at the time that would have allowed me to figure this out.
So I wrote it in ARM assembly instead.
And then monkeypatched the binary.
 
import struct

def sign_extend(x):
    """
    extends a bigendian 24 bit integer (represented as a three element `bytes`)
    into a bigendian 32 bit integer (a four element `bytes`) while respecting the signed bit
    """
    return struct.pack(">hBB", *struct.unpack(">bBB", x))

x = bytes([0, 0, 1])
print(sign_extend(x))
#b'\x00\x00\x00\x01
#i.e. 0x00000001

y = bytes([0xFF, 0xBB, 0x88])
print(sign_extend(y))
#b'\xff\xff\xbb\x88'
#i.e. 0xffffbb88
 
@CodyGray haha, dealing with bits gets tedious especially when you're trying to write a custom float with no sign, 10 bit mantissa and 6 bit exponent.
 
7:51 PM
"works on my machine" certified
 
Hah.
This struct.pack business is clear as mud.
Someone reinvented printf-style formatting... :-(
 
TLDR: I stretched the leftmost byte from a signed char to a signed short.
If I was a virtuous programmer, I would have written better comments
 
@CodyGray thanks, that explanation is really good.
 
@Kevin Just go back and write them all later, once you attain virtuoso status.
@MyWrathAcademia I didn't write it. :-)
There is a fantastic reference on SO for this sort of thing, but it's in the context of C and C++.
 
@CodyGray I see, so masking is when you use the bitwise & or | to operate in bits? And masking off is switching off bits?
 
7:56 PM
A fair amount of C-style bit arithmetic works in Python, it just gets fuzzy around the edges if anything might wrap around or change sign
 
@MyWrathAcademia So... masking is using a bit pattern with certain bits set and certain bits unset to exclude (mask off) the bits you don't want.
 
Nothing you can't defeat with a thorough understanding of the corner cases though. (I assume)
 
@CodyGray If I can transfer what I learn from those answers to C Sharp, that would be great.
 
That's what the bitwise AND operator does. If you AND with 1, you get back the original. If you AND with 0, it's always 0. So, if your mask (bit pattern) is appropriately set, you can turn off the bits you want.
@MyWrathAcademia I'm 99% sure it's the same in C#. I used to speak that language, many moons ago.
@Kevin Interesting. For some reason, I could not find confirmation of that in the documentation sources that I consulted. From what I could tell, bitwise operators weren't even supported.
 
@CodyGray thanks.
 
7:59 PM
Although I now see it on the wiki: wiki.python.org/moin/BitwiseOperators
That writeup is pretty solid.
 
I'm trying to understand the line: mantissa_sum = 1 + int(mantissa, 2) / power in the following code:
power = pow(2, 10)
        # convert two bytes to 16-bit binary representation
        bits = bin(bytes[0])[2:].zfill(8)[::-1] + bin(bytes[1])[2:].zfill(8)[::-1]

        # get mantissa and exponent
        mantissa = bits[:10]
        exponent = bits[10:]

        # convert to decimal representations
        mantissa_sum = 1 + int(mantissa, 2) / power
        exponent_sum = int(exponent[::-1], 2) - 63
        decimal_value = mantissa_sum * pow(2, exponent_sum)
        return decimal_value
 
The stdtypes documentation on bitwise operators on ints is admittedly pretty terse
@MyWrathAcademia int(mantissa, 2) takes the string, mantissa, and converts it into an integer. 2 is the base you're converting from.
You might think of it as the inverse of bin()
 
I get that if you want to convert the mantissa from binary to an integer you use int(mantssa, 2)and then divide by the exponentiation (for a decimal mantissa something like 12345/10000 = 1.2345), but why do you add 1?
 
We had a conversation a couple of years ago about doing bit twiddling stuff with unsigned ints in Python. Eg,
Aug 6 '18 at 19:33, by PM 2Ring
def murmur3_final32(n):
    n ^= n >> 16
    n = (n * 0x85ebca6b) & 0xffffffff
    n ^= n >> 13
    n = (n * 0xc2b2ae35) & 0xffffffff
    n ^= n >> 16
    return n
 
@Kevin Thanks, good explanation. That confirms I at least get that part :)
 
8:05 PM
All (most?) floating point representations have a logical mantissa that lies between 1 and 2, and since they know with complete certainty that the number starts with 1.<something>, they don't actually bother to store the 1.
So they have to add the 1 back in when converting
[oversimplification level: moderate]
 
@Kevin Incredible. How do you know this?
 
Lots of time on wikipedia
 
Correct. You, too, can know it. :-)
There are actually jobs in this field where you have to deal with this kind of stuff.
 
@Kevin Wikipedia is a national treasure.
 
@CodyGray To be fair, the struct module was created when Python only had printf-style string formatting, so it wouldn't have seemed too arcane back then. And the struct module isn't used so much these days. There are a few handy methods for converting between bytes & ints.
 
8:11 PM
@CodyGray Thanks, that is very useful.
 
I basically only use struct if I need to talk to a serial port
Or if I need to pretend that I'm in C doing a float-to-int cast
 
@Kevin The type-punning that you mean is UB in C.
 
@Kevin Just to confirm, are you adding 1 to the result of int(mantissa, 2)?
 
Yeah
@CodyGray Then the fast inverse square root author is unvirtuous, just like me :-)
 
@MyWrathAcademia Yes, it is. :) We could've mentioned that a few hours ago. But we kinda assumed that you were relatively familiar with the basics of floating-point representations since you're trying to translate a program that deals with a non-standard floating-point type, and that your main problem is that you don't know much Python. It can be tricky guessing where the gaps are in someone's knowledge.
 
8:18 PM
You could, in principle, port the code to C# without understanding the first thing about floats. It's a sign of good initiative if you're trying to figure out what the arithmetic actually does
 
That's one of the great things about hanging out in this room. You get knowledge gaps filled that you didn't even suspect existed. :)
 
@PM2Ring better late than never.
 
I almost said that myself. ;)
 
I'm never going to need to know this stuff!
 
@Kevin Yeah, I can't just use something without understanding it, it irks me.
 
8:24 PM
In other news, a few hours ago I posted my first answer on SO since 2018. I got intrigued by that strange question about looking for patterns in "arrays". Although the question was initially incomprehensible, I appreciated that the OP had gone to the trouble of creating those colourful diagrams.
 
Curses, I was going to revisit that question tomorrow and see if an MCVE materialized
I think I got the gist of the question from the diagram but I got spooked by the phrase "example should [print] something like [...]". If the OP isn't sure what the requirements are, then how can I be?
 
@Kevin So is it here mantissa = bits[:10] that the 1 is not stored?
 
Essentially
 
@Kevin Thanks for confirming. I'm just wondering if adding 1 is necessary if I calculate the mantissa some other way, like for example from converting two bytes into an array of 16 bits.
 
Yeah, it would still be necessary
I don't think there's any kind of bit-rearranging that can avoid it
Oops, I made a mistake
20 mins ago, by MyWrathAcademia
@Kevin Just to confirm, are you adding 1 to the result of int(mantissa, 2)?
I said "yeah" here but the truth is that you divide and then add, so you're adding 1 to the result of int(mantissa, 2) / power
Good old PEMDAS
 
wim
8:37 PM
Windows looking more and more like a real OS
@roganjosh do you have experience with sqlalchemy itself, outside of a flask webapp context?
 
@wim minor, tbh.
 
@Kevin Okay, if 1 is lost then using this example 2345/10000 = 0.2345 + 1 I can see why you divide before you add. Thanks :)
 
@Kevin It took a long conversation in the comments chat, but I eventually managed to extract the necessary info. :)
 
👍
 
wim
@roganjosh I don't understand why flask or blueprints has to be involved at all here. You have a model that should be decoupled from the views/web stuff etc completely
 
8:42 PM
@MyWrathAcademia Part of the point of the format is that the leading 1 would be redundant information. It is never stored, you have to add it.
 
wim
so the Base model should be entirely a sqlalchemy object returned from the declarative base factory (from sqlalchemy.ext.declarative import declarative_base)
 
This is because the mantissa is the half-open interval [0, 1). It's similar to how storing 1 to 10 needs two digits, but 0 to 9 needs only 1.
 
wim
the migrations is all happening at the model layer (that's the whole point of MVC, to decouple the model/data from the views etc), so not sure what business flask has with that, unless flask-sqlalchemy has made some crazy design decisions that makes it get in the way somehow? I don't use that, so wouldn't know.
 
@wim It is. I've also been playing around with the whole app structure and have put it in an src folder similar to the flask ecosystem and I'm struggling to adapt all the imports. I would be better just making one change at a time; I've overloaded myself a bit, I think
@wim my take-away from that is that, as long as the models inherit from Base, --autogenerate will find the models in blueprints, regardless of anything else about the app structure?
 
wim
@roganjosh it should, but make sure they are all imported
it probably uses Base.__subclassess__ or something under the hood
so until they are imported, it may not be able to find them
 
8:50 PM
@wim Well, that's part of the problem, I think. I only import the models into a routes.py file contained in the blueprint itself
 
wim
so make sure you import the models in env.py
 
Ok, then that's my mistake. I was hoping to avoid that
So every new model needs importing into env.py. That's the magic that flask-sqlalchemy provides, I think
That the db object can collect all the models
It's what I suspected I would have to do, so thank you for confirming that I need to import them into env.py. I was just going down a rabbit hole and got myself so confused
 
wim
Why don't people just use sqlalchemy directly in their flask apps?
 
@MisterMiyagi Okay, thanks. I was gonna ask why is 1 always added but then I came across this:
 
@wim Because it's yamming awful at this rate
 
8:55 PM
@MyWrathAcademia no tex here
 
There's no clear guidance on how to avoid it when it comes to migrations
 
it's also unnecessary tex in this case
 
wim
what's awful? using sqlalchemy directly? how to avoid what?
 
8:58 PM
See my previous message. I'm not gonna lie, it's you that inspired me to move away from flask-sqlalchemy :P That part is easy enough, but the migration part is completely dominated by every man and his dog using flask-migrate, which always incorporates flask-sqlalchemy. There is no indication that you could use anything else, tbh
 
Not sure that "how to avoid it" got any clearer in terms of "avoid what" :)
 
wim
just use alembic directly?
 
@MisterMiyagi What I mean to say is that I thought that for a normalized binary floating point number such as 1.0010011001x 2^21 the mantissa is 1.0010011001. Is the mantissa the fractional part instead? And is that why you say the mantissa is the interval 0, 1?
 
@wim I'm answering this question directly. I'm saying that there isn't a single guide
That's why people aren't using it. Because there's a significant cognitive burden involved in using it directly, and there's a couple of libraries right in front of your face that just fix these issues for you
 
wim
I've found zzzeek's docs to be excellent
^ that's a guide?!
 
9:06 PM
Ok, well I'm just thick, then. I don't know what you want from me but I've struggled for hours
 
wim
maybe it better to ask someone with more flask-sqlalchemy experience, I don't know if flask-migrate is just a thin wrapper around alembic or what
I'm a little unclear, you're having issues by attempting to NOT use flask-sqlalchemy, or having issues with using flask-sqlalchemy?
 
I don't want to use flask-sqlalchemy and I want my models to inherit from Base that I define in database.py. But I'm also I'm also ill-tempered with myself because I'm not getting my imports all in order. You've given me reassurance that it's possible, I'll take another run at it tomorrow:)
You're suggesting that I need to import the models into env.py (if I read correctly) and I was perhaps trying to be too smart
 
wim
I don't actually know if making sure all your models are imported is explicitly required - the way I structured my apps the models were always imported anyway by getting the target_metadata (which you'll need when you configure the context on the connection)
 
mm, well this is a part I'm not sure about. They inherit from the app-level Base but even flask-migrate won't pick them up unless you import the model into a blueprint that gets register_blueprint treatment
 
wim
is the project structured so that you could import the Base without triggering imports of all subclasses?
 
So, without using flask-sqlalchemy it's unclear to me how it works
@wim I'm not gonna waste your time any more tonight. Can I make you up an MCVE tomorrow or so?
 
wim
yeah but I don't always have time to review the chat lately
anyway Antti and davidism should know the stuff well, too (better even)
 
9:32 PM
No worries. I'll try put something together, I'm just conscious that this is quite abstract and I feel like I'm wasting your time. Apologies
 
and Ilja is a sqlalchemy expert, I don't know about the flask aspects though
 
wim
alembic is a lot nicer than Django's migrations I can tell you that!
 
@MisterMiyagi Ok, that's great to know. I'll start referring to only the fractional part of a floating point number as mantissa so I don't encounter any confusion.
 
@wim that was a "reveal" that subverted my expectations :P
 
@MisterMiyagi Is the reason we always add 1 to the mantissa because the integer part of the significand is always 1 (e.g. 1.0010011001x 2^21)?
 
9:44 PM
@MyWrathAcademia I've seen at least two instances of that exact statement in the transcript today
I wasn't even paying attention. Were you?
 
Fixed. It's getting late.
 
#1, #2 and probably others. If it's getting late call it a day and get some rest.
You are not helping anyone by walking in circles or ignoring answers.
 
hey, how's it going?
 
cbg
 
that's a terrible answer, right?
 
final vote for, well, yesterday :P
rbrb
 
rbrb
 
@AndrasDeak awful
@MisterMiyagi rbrb
 
When factorizing a non-numeric field, what measures are taken to avoid implicit relationships between values? For instance, if I have a column of produce names, and assign {'apple': 1, 'artichoke': 2, 'pear': 3}, is there an implication that apples and artichokes are more similar than apples and pears, based on the numeric differences of their assigned values?
 
10:16 PM
@AndrasDeak my brevity didn't help there sorry. Yeah, it's a terrible/awful answer
 
I got that
 
user13682510
@AaronHall great, thanks!
 
@PaulMcG I suspect it depends on context
in general I'd expect them to be just like enums, i.e. the numerical IDs are arbitrary, and merely required to be consistent
numbers are inherently 1d and I suspect most categoricals can be (dis)similar in more than one way so if I saw a bunch of categoricals I wouldn't try to see patterns into the actual numerical values
 
How can I open an .h5 file for reading without crashing the script that's writing it? Currently it crashes the latter with the error message

OSError: Unable to create file (unable to lock file, errno = 35, error message = 'Resource temporarily unavailable')
 
I'm more concerned about internal algorithms that may do some numeric-based weighting unbeknownst to the user.
 
10:20 PM
So what is the context? Or even the library?
Are you designing a library or using one?
And what kind of weighting do you even anticipate?
implicitly depending on the numerical labels of categoricals sounds like as correct as implicitly depending on the eigenvectors provided by a solver for a given eigenvalue
 
I already asked the question on the stack exchange data science: datascience.stackexchange.com/questions/76068/… Can someone help how should I get the non-linear decision boundary.
 
@AnilSarode I would spell-check that title a few times
 
@AndrasDeak sorry I did not get you? Do I made any spelling mistakes?
 
yes
 
10:37 PM
@AndrasDeak Do I made spelling mistakes here on the chatbox or the question (link) I had given in the chat? sorry for the mistakes English is not my mother tongue.
 
It isn't my mother tongue either. I said "that title", so I meant the title of the question you linked. That's the only title in context. And it only looks like sloppiness rather than a language issue because you spelled each wrong word correctly in the question body and here in chat.
it usually gives off the wrong impression when already the title is riddled with sloppy typos
 
May you please suggest an appropriate title and If possible help me to get the logic to plot the nonlinear decision boundary?
 
No, sorry
 
@AndrasDeak Thanks a lot for your suggestions and your kind attention.
 
Naz
10:54 PM
cbg. off-topic, but Python community is the best. I am going through this course on kubernetes, and there is this sed command, I have never seen it being used with @ instead of /, does it serve the same purpose?
e.g.
 
@Naz Please read the sed man page, or info page. It tells you about using other separators with the s command.
 
@MisterMiyagi For what it's worth, I've never heard anything but "mantissa" used in this context (for floating-point). I am based in the US, but I've read material far and wide about floating-point representations, both current and historical (e.g., back to the early 90s). Everyone will immediately know what you mean if you say "mantissa". They won't if you say anything else.
 
01:00 - 19:0019:00 - 00:00

« first day (3530 days earlier)      last day (1411 days later) »