home.social

#scikit — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #scikit, aggregated by home.social.

fetched live
  1. In this article, we aim to explore and compare three of the most popular machine learning libraries: TensorFlow, PyTorch, and scikit-learn. Each of these tools has[..]

    #machinelearning #ai #tensor #python #scikit

    ml-nn.eu/a1/66.html

  2. In this article, we aim to explore and compare three of the most popular machine learning libraries: TensorFlow, PyTorch, and scikit-learn. Each of these tools has[..]

    #machinelearning #ai #tensor #python #scikit

    ml-nn.eu/a1/66.html

  3. Today’s learning 🗒️

    Instead of spending an hour building a SAS Viya Decision Tree manually, I:

    → Built it with Python scikit-learn
    → Answered workbook questions before opening SAS
    → Verified, screenshot, export PDF
    → A full SASPy automation pipeline

    #datascience #scikit

  4. 📝🐍 Шпаргалка з #Python з акцентом на #DataScience

    Зокрема, наводяться приклади використання #JupyterNotebook, #NumPy, #SciPy, #Pandas, #Scikit, #Matplotlib, #Seaborn, #Bokeh.

  5. The Python community is huge and diverse, in some aspects. I always like to point how professional software development is just a fraction of the huge number of ways that software is created. I remember seeing threads here o Mastodon of #Python developers who didn't understand why people used #conda (from Anaconda inc.) package management... Well, it is 2024 and there are parts of #scikit, scikit-geometry, you can't install with #pip :(( ... I wish I could have it on pip, to be honest, but large parts of the scientific community will use conda, and that's it.

  6. The Python community is huge and diverse, in some aspects. I always like to point how professional software development is just a fraction of the huge number of ways that software is created. I remember seeing threads here o Mastodon of #Python developers who didn't understand why people used #conda (from Anaconda inc.) package management... Well, it is 2024 and there are parts of #scikit, scikit-geometry, you can't install with #pip :(( ... I wish I could have it on pip, to be honest, but large parts of the scientific community will use conda, and that's it.

  7. Wydarzył się cud! Udało mi się doprowadzić testy #SciKit Image do działania bez Internetu w #Gentoo!

    Na marginesie:

    1. Autorzy włączają większość niezbędnych danych w archiwum sdist. Tyle że ich nie używają, i zamiast tego ściągają je drugi raz, prosto z repozytorium na GitHubie. Wzdych. (Jeżeli czyta to któryś z autorów, proszę o udawanie, żeście tego nie widzieili i nie usuwanie tych plików z archiwum sdist. Dzięki.)
    2. Na dodatek, pobierają dodatkowe dane dla testów z dodatkowego repozytorium na GitLabie, i przenoszą i zmieniają nazwy plików.
    3. Tak, dobrze widzicie. Kod jest na GitHubie, dane dla testów na GitLab.com (nie własnej instancji).

    gitweb.gentoo.org/repo/gentoo.

    #Python

  8. It's a miracle! I've managed to make #SciKit Image tests work offline in #Gentoo!

    That said:

    1. Upstream includes most of the test data in sdist. Except they don't use it, and instead fetch it all from the GitHub repository. Sigh. (If you're upstream, please pretend you didn't see this and do not remove the data from sdist. Thanks.)
    2. On top of that, they fetch more test data from an additional GitLab repository, and move and rename it around.
    3. Yes, you've read right. They keep code on GitHub, but test data on GitLab.com (not self-hosted).

    gitweb.gentoo.org/repo/gentoo.

    #Python

  9. It's a miracle! I've managed to make #SciKit Image tests work offline in #Gentoo!

    That said:

    1. Upstream includes most of the test data in sdist. Except they don't use it, and instead fetch it all from the GitHub repository. Sigh. (If you're upstream, please pretend you didn't see this and do not remove the data from sdist. Thanks.)
    2. On top of that, they fetch more test data from an additional GitLab repository, and move and rename it around.
    3. Yes, you've read right. They keep code on GitHub, but test data on GitLab.com (not self-hosted).

    gitweb.gentoo.org/repo/gentoo.

    #Python

  10. and, if needed, modify it.

    there are many python libraries out there:

    #OpenCV
    #SciPy
    #imageio
    #scikit-image (skimage)
    #matplotlib
    #Wand
    #Pillow (PIL Fork)

  11. #SciKit-Build skopiowało zepsutą logikę nazywania katalogu budowy z #setuptools. Tak więc używa katalogu "3.10" zarówno dla CPythona 3.10, jak i dla #PyPy 3.10. Podczas gdy w setuptools ma to pomniejsze konsekwencje i można to łatwo obejść (zmieniając katalog budowy), ze SciKit-Build nie ma tak łatwo. Budowa dla CPythona 3.10 używa cache'a z PyPy 3.10 i instaluje moduły z PyPy 3.10. Tak, serio, kompletnie niewłaściwe, bezużyteczne pliki.

    A najlepsze w tym wszystkim? Autorzy o tym doskonale wiedzą, i mają to w dupie: "Nie sądzę, że powinniśmy zrobić to lepiej niż setuptools" (tłum. własne). No super, po prostu zajebiście. Tyle że w setuptools można trywalnie zmienić katalog budowania, a SciKit-Build wymusza "_skbuild".

    github.com/scikit-build/scikit

    #Gentoo #Python #PEP517

  12. #SciKit-Build copied the broken build directory naming logic from #setuptools. As a result, it uses a "3.10" directory both for CPython 3.10 and for #PyPy 3.10. Whereas with setuptools this has minor consequences and can be trivially worked around (via overriding build directories), this isn't the case for SciKit-Build. Here it means that the subsequent build for CPython 3.10 reuses the cache from PyPy 3.10 and installs PyPy 3.10 modules. Yes, seriously, completely wrong, useless files.

    The best part? They know about it, and they just don't care: "I don't think we should do better than setuptools". Sure, great. Except that we can trivially globally override build directory in setuptools, and SciKit-Build just forces "_skbuild" on us.

    github.com/scikit-build/scikit

    #Gentoo #Python #PEP517

  13. #SciKit-Build copied the broken build directory naming logic from #setuptools. As a result, it uses a "3.10" directory both for CPython 3.10 and for #PyPy 3.10. Whereas with setuptools this has minor consequences and can be trivially worked around (via overriding build directories), this isn't the case for SciKit-Build. Here it means that the subsequent build for CPython 3.10 reuses the cache from PyPy 3.10 and installs PyPy 3.10 modules. Yes, seriously, completely wrong, useless files.

    The best part? They know about it, and they just don't care: "I don't think we should do better than setuptools". Sure, great. Except that we can trivially globally override build directory in setuptools, and SciKit-Build just forces "_skbuild" on us.

    github.com/scikit-build/scikit

    #Gentoo #Python #PEP517

  14. Can you name that algorithm based on this dataflow representation?

    It's Linear Discriminant Analysis as implemented by Scikit Learn!

    I finished up a notebook showing how you can build an Array API compatible library with the egglog e-graph library in Python and use that to optimize a #scikit-learn algorithm with #numba

    egg-smol-python.readthedocs.io

    For more context, I gave a talk on the broader goals this summer:

    egg-smol-python.readthedocs.io

    youtube.com/watch?v=Pbi2uV9vWP

    #pydata #egraph #python

  15. ⏱️ Say goodbye to hours spent troubleshooting.

    🎯 It integrates with popular Python ML frameworks such as , , , -Learn, , and .

    [3/4]

  16. ⏱️ Say goodbye to hours spent troubleshooting.

    🎯 It integrates with popular Python ML frameworks such as #PyTorch, #TensorFlow, #HuggingFace, #Scikit-Learn, #XGBoost, and #LangChain.

    [3/4]

  17. Inne wiadomości ze świata #Python: nowy backend #pep517 #scikit-build-core okazuje się psuć #setuptools na jeszcze jeden sposób. Tym razem błąd zauważono przy wykorzystaniu #pdm-backend.

    A, fail2ban też psuje. Może to ten sam problem.

    scikit-build-core: github.com/scikit-build/scikit
    fail2ban: bugs.gentoo.org/909535
    poprzedni bug (psuł rozszerzenia #RustLang): github.com/scikit-build/scikit

  18. In other #Python news, the new #scikit-build-core #pep517 backend turns out to break building extensions via #setuptools in yet another way, this time noticed via #pdm-backend.

    Oh, and there's also this bug where it breaks fail2ban too. Perhaps it's the same issue.

    scikit-build-core: github.com/scikit-build/scikit
    fail2ban: bugs.gentoo.org/909535
    previous bug (breaking #RustLang extensions): github.com/scikit-build/scikit

  19. In other #Python news, the new #scikit-build-core #pep517 backend turns out to break building extensions via #setuptools in yet another way, this time noticed via #pdm-backend.

    Oh, and there's also this bug where it breaks fail2ban too. Perhaps it's the same issue.

    scikit-build-core: github.com/scikit-build/scikit
    fail2ban: bugs.gentoo.org/909535
    previous bug (breaking #RustLang extensions): github.com/scikit-build/scikit

  20. There's a whole crowd of people out there who need to learn how to do the sklearn.

    It's my AI & Machine Learning class.

    #python #sklearn #scikit #ai #MachineLearning #BillieEilish

  21. There's a whole crowd of people out there who need to learn how to do the sklearn.

    It's my AI & Machine Learning class.

    #python #sklearn #scikit #ai #MachineLearning #BillieEilish

  22. 'HiClass: a Python Library for Local Hierarchical Classification Compatible with Scikit-learn', by Fábio M. Miranda, Niklas Köhnecke, Bernhard Y. Renard.

    jmlr.org/papers/v24/21-1518.ht

    #hiclass #hierarchical #scikit

  23. 'HiClass: a Python Library for Local Hierarchical Classification Compatible with Scikit-learn', by Fábio M. Miranda, Niklas Köhnecke, Bernhard Y. Renard.

    jmlr.org/papers/v24/21-1518.ht

    #hiclass #hierarchical #scikit

  24. you know, when you try to run a command on a #docker #container using `docker-compose run` and it fails due to a missing dependency (#scikit-learn) but then works when run from the terminal container? 🤔

    stackoverflow.com/questions/75

    #WhyDidIDecideToWorkInIT #question

  25. you know, when you try to run a command on a #docker #container using `docker-compose run` and it fails due to a missing dependency (#scikit-learn) but then works when run from the terminal container? 🤔

    stackoverflow.com/questions/75

    #WhyDidIDecideToWorkInIT #question

  26. My next few days will be trying to figure out how to use #NLTK and #scikit to make sense of average 3-4GB semi garbage data once a day „as real-time as possible“. Let’s see how this goes :) (I know how to use there tools, but the data is so bad even basic grouping is hard) #python

  27. My next few days will be trying to figure out how to use #NLTK and #scikit to make sense of average 3-4GB semi garbage data once a day „as real-time as possible“. Let’s see how this goes :) (I know how to use there tools, but the data is so bad even basic grouping is hard) #python

  28. Am I missing something? I am currently trying to compute a Kernel Density Estimator in sky coordinates for some asteroids ... using scikit learn.

    Apparently, the Haversine metric expects the latitude as at the first input parameter.

    Pro tip: read the documentation. I feel completely dumb after "de-bugging" my code for an hour. #scikit #datascience #machinelearning #Python

    scikit-learn.org/stable/module

  29. Am I missing something? I am currently trying to compute a Kernel Density Estimator in sky coordinates for some asteroids ... using scikit learn.

    Apparently, the Haversine metric expects the latitude as at the first input parameter.

    Pro tip: read the documentation. I feel completely dumb after "de-bugging" my code for an hour. #scikit #datascience #machinelearning #Python

    scikit-learn.org/stable/module

  30. Let's be pragmatic about #OpenScience

    If you want to be fully open you need to #OpenSource your code and to maintain it!
    Giving requirements or even a #docker image is not enough. Code rots!
    (If you want to write tests its even better 😍)

    Let's take #scikit-learn as an example. Using Pydeps we can create a map of internal and external dependencies of it. And it's without counting on other dependencies you might have…

    #ML #AI #Science #Programming

  31. Let's be pragmatic about #OpenScience

    If you want to be fully open you need to #OpenSource your code and to maintain it!
    Giving requirements or even a #docker image is not enough. Code rots!
    (If you want to write tests its even better 😍)

    Let's take #scikit-learn as an example. Using Pydeps we can create a map of internal and external dependencies of it. And it's without counting on other dependencies you might have…

    #ML #AI #Science #Programming

  32. One of my favorite #scikit-hep #python packages is #vector github.com/scikit-hep/vector by @henryiii et.al. Provides #numpy / awkward-arrays of 3 & 4-vectors with broadcasted vector methods, including relativistic operations such as #lorentz boosting, as one might now from #ROOT vectors. Such a nice abstraction, writing vector math is as easy as doing it by hand and also runs super fast. Using this package almost feels like cheating. 1/N