home.social

#scikit — Public Fediverse posts

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

  1. 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

  2. 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

  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. 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

  5. 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

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

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

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

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

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

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

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

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

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

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

  11. 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.

  12. 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.

  13. 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.

  14. 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.

  15. 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.

  16. 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

  17. AH! Got the flash to use *image* processing functions for detecting pulses in a *sound file*. 😜
    Sachez que skimage.morphology.closing() and skimage.measure.label() both work on 1D images 😎
    but not regionprops, faut pas pousser... #python #soundprocessing #scikit-image #atomicsynchronator

  18. AH! Got the flash to use *image* processing functions for detecting pulses in a *sound file*. 😜
    Sachez que skimage.morphology.closing() and skimage.measure.label() both work on 1D images 😎
    but not regionprops, faut pas pousser... #python #soundprocessing #scikit-image #atomicsynchronator

  19. and, if needed, modify it.

    there are many python libraries out there:

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

  20. 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

  21. '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

  22. 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

  23. 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

  24. 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

  25. 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

  26. 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

  27. 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

  28. 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

  29. 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

  30. 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

  31. 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

  32. and, if needed, modify it.

    there are many python libraries out there:

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

  33. and, if needed, modify it.

    there are many python libraries out there:

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

  34. and, if needed, modify it.

    there are many python libraries out there:

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

  35. and, if needed, modify it.

    there are many python libraries out there:

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

  36. #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

  37. #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

  38. #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

  39. #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

  40. #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

  41. #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

  42. #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

  43. #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

  44. #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

  45. #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