@trichoplax So in a statistical model, you're finding a function that's some linear combination of other properties that happens to predict a given variable well. Each term has an associated coefficient. If the coefficient is zero, the term doesn't factor into the model. Each of the colorful lines in the plot represents a model term (or "feature," in machine learning language).
@AlexA. Does this mean we can ignore the lines in the middle and just focus on the few at the top and bottom? Which variables do these correspond to...?
@trichoplax There are too many variable to label them all... The terms with lines that intersect the vertical gray line are the ones that are selected for the model
@xnor I have only a very vague idea. Honestly I don't think the plot is that useful compared to actual values, prediction error, etc. But it looks pretty ¯\_(ツ)_/¯
Lasso is a form of regularized regression with the constraint being the L1-norm
In statistics and machine learning, lasso (least absolute shrinkage and selection operator) (also Lasso or LASSO) is a regression analysis method that performs both variable selection and regularization in order to enhance the prediction accuracy and interpretability of the statistical model it produces. It was introduced by Robert Tibshirani in 1996 based on Leo Breiman’s Nonnegative Garrote. Lasso was originally formulated for least squares models and this simple case reveals a substantial amount about the behavior of the estimator, including its relationship to ridge regression and best subset...
(or revisited my textbook)
Error in leaps.exhaustive(a, really.big) :
Exhaustive search will be S L O W, must specify really.big=T
Cy, 33 bytes
0 1 {1 - {&+} times} {} :>i &? :<
Ungolfed/explanation:
0 1 #initialize as 0,1
{ 1 - {&+} times } # add last two N-1 times -\
{} # else leave N (0)--------|
:>i # read line as integer ("N") |
&? # if it is no...
You may get people pointing out that the language (or some new feature of it) is younger than the challenge, so mentioning that in your answer may save you getting comments you already know about.
@LockOpeners Generally yes. People will probably be angry if you design your language for a particular challenge, but if it's just a new general purpose language it's fine. Though fyi, you'll probably get more votes and views on new questions
What would be the best way to go about creating a cross-platform custom keyboard mapping? For example, I'm thinking of something like remapping ^ to make the previous character superscript. Right now the only way I can think of is by popping up a window with a text area inside and copying the content to the clipboard when it's closed.
I love BATCH, despite its shocking lack of functional commands, despite even due to its lack of non-integer support. Why? Because this works:
SET var=SET
%var% i=0
This would evaluate to:
SET var=SET
SET i=0
Fantastic, isn't it? I've used this technique in a BATCH program before, because it...
fixed the chatbot program from 3 hours ago,(try to break it in bbm) the delay was me finishing the 2nd book in the storm light archive, it was quite good, i recommend it
I'm imagining something like a system of digraphs. So whenever you press tab, the last two characters are interpreted as a digraph and expand to another thing.
There would be a preview thingy as well, to show what would appear if you hit tab. So if you typed h^h, a little ʰ would show up as a "hint" thing.
This is my attempt at creating an IPA keyboard, by the way. Because having to memorize key combinations for all those characters would be absolutely obnoxious.
It wouldn't just be superscript; there would be keys to press that would shift the previous consonant forward one place of articulation or manner of articulation, for example
@Geobits Definitely something I've seen mentioned by at least two people that I consider to be great programmers. Joel Splosky said something to the effect of "Release a 1.0 version as soon as possible, and then make a big announcement for version 2.0." and Paul Graham said something similar - release broken/inferior software as soon as you can and get feedback from users on how to improve it.
I wonder if billions and billions of years from now, when the transmissions from the Nineteenth Byte reach the nearest life-bearing neighbor planet, they'll be like, "Pfft, the signal to noise ratio is way too low. Lets listen for life on other planets than this one."
Did you see the news a while back about that oddly fluctuating signal from a star that made people think there might be an alien superstructure around it?
At some point, I bumped into an SO question asking how to implement Perl's trivial hash-of-hashes data structure in Java.
For those who don't know Perl, the hash value can be a scalar or another hash, or technically speaking hash reference. Arbitrary depth. Additional feature offered by Perl is...
It's hard to believe they would use live data like that. At the very least use historical dumps for a foundation. "Oh, the internet won't troll us this time..."
There's a reason I only had Marky scrape all chat up to his birth.
I'm actually trying to plan 2 semesters ahead right now, based on the assumption that stuff doesn't change much (which my adviser said was basically the case).
If you tweeted Tay repeat after me followed by something apparenty she'd tweet the text back (and as bonus add the words you used to the learning model)
@quartata Ah. I assumed she would add anything directed at her to the model, so the repeat wouldn't be necessary (or even really advantageous) to poison it.
Either way, yea. What the hell were they thinking?
But... but... the internet is a wonderful place of marshmallows unicorns and chihuahuas... no one would ever say mean things to our fragile easily-manipuated bot