HNHacker News
TopNewBestAskShowJobs

zeec123

89 karma · joined August 13, 2018

submissionscomments
zeec123··on Systemd 250 Released
There are some cool features in systemd that are not easy to do in cron.

Example: I use restic backup. One timer runs every 24h or on the next boot if there where more than 24h since the last backup as this is a laptop. Also it waits some random amount so that not all script run at the same time after boot. If a backup fails (eg remote server down) it retires every 15min, but no more than one hour before I get an Mail with a detailed report.

All really easy in systemd. No scripting required.

zeec123··on How NixOS does distro-building right [Video]
I really enjoyed the video. Especially the “$DISTRO has X feature, NixOS has…” with the explanation that NixOS does not need this feature as it does not create the problem the features solves in the first place.

Also, the one-linear making bcachefs available fetching a custom kernel from Kent OVerstreet.

zeec123··on NixOS and the Art of OS Configuration (2018)
It is like saying I don’t want spending months to learn git to gain the very few benefits of a version control system. I much prefer to share my code with my coworkers via usb-sticks. Yeah this is less complicated in the short term.
zeec123··on NixOS and the Art of OS Configuration (2018)
With flakes I am using the master branch. You cannot get more bleeding edge and there is absolutely no danger. If something does break, I just boot the previous system. So awesome!
zeec123··on Scikit-Learn Version 1.0
There is so much wrong with the api design of sklearn (how can one think "predict_proba" is a good function name?). I can understand this, since most of it was probably written by PhD students without the time and expertise to come up with a proper api; many of them without a CS background.[1]

[1] https://www.reddit.com/r/haskell/comments/7brsuu/machine_lea...

zeec123··on Scala 3.0
Thanks. Does it map to native routines like numpy? If yes, what about the copy overhead from JVM to native memory?
zeec123··on Scala 3.0
It means I cannot fully specify the type of function my interface expects as an argument.

A function is of type ‘Function’. There is no way to define it with the type of its argument or the type of what it returns.

zeec123··on Scala 3.0
It is so bad, that in julia functions are not first class. Instead, I would love to use scala 3 for machine learning since this is the perfect type system for such a task, but linear algebra support is not good enough.
zeec123··on File Systems – ZFS vs. XFS
I hope bcachefs is ready soon as another alternative.
zeec123··on A foundation for scikit-learn at Inria
See the second link I posted. Even the most basic 3 functionalities are bad designed. If X is your input space and Y your output space then fit should (after each call) return a function X->Y and not modify some internal state.

Have you ever tried looked at the pipeline cross validation, where you have to pass a dict of parameters to the function with underscore prefixes for each stage in the pipeline? Do this and you never call the API design amazing again.

There are examples for other bad design choices as well.

You are right, there is no alternative at the moment. Maybe julia lang will do better job, we will see.

zeec123··on A foundation for scikit-learn at Inria
Ease of use might be the criteria when you are a student. However as soon as you start to depend on it for a living you realise that scikit-learn made enough serious mistakes such to have lost my trust in it and I am forced to pay the ~$15.000 for matlab until some alternative is available.
zeec123··on A foundation for scikit-learn at Inria
Unfortunately scikit-learn is a mess without an alternative.

There is so much wrong with the api design of sklearn (how can one think "predict_proba" is a good function name?). I can understand this, since most of it was probably written by PhD students without the time and expertise to come up with a proper api; many of them without a CS background. Compare this to e.g. the API of google/guava.

For example https://www.reddit.com/r/statistics/comments/8de54s/is_r_bet...

   Case in point, sklearn doesn't have a bootstrap crossvalidator despite the bootstrap being one of the most
   important statistical tools of the last two decades. In fact, they used to, but it was removed. 
   Weird right?
   ...
   > We don't remove the sklearn.cross_validation.Bootstrap class because few people are using it, 
   > but because too many people are using something that is non-standard (I made it up) and very very 
   > likely not what they expect if they just read its name. 
   > At best it is causing confusion when our users read the docstring and/or its source code. 
   > At worse it causes silent modeling errors in our users code base.
   ...
   Oh man, I thought of another great example. I bet you had no idea that 
   sklearn.linear_model.LogisticRegression is L2 penalized by default. 
   "But if that's the case, why didn't they make this explicit by calling it RidgeClassifier instead?" 
   Maybe because sklearn has a Ridge object already, but it exclusively performs regression? 
   Who knows (also... why L2 instead of L1? Yeesh). Anyway, if you want to just do unpenalized 
   logistic regression, you have to set the C argument to an arbitrarily high value, 
   which can cause problems. Is this discussed in the documentation? 
   Nope, not at all. Just on stackoverflow and github. 
   Is this opaque and unnecessarily convoluted for such a basic and crucial technique? Yup.
Or the following: https://www.reddit.com/r/haskell/comments/7brsuu/machine_lea...
← PreviousPage 2 of 2