Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
GUI for the Sequential Parameter Optimization in Python
pip
:pip install spotgui
Hyperparameter-tuning Cookbook: A guide for scikit-learn, PyTorch, river, and spotpython. Available at https://sequential-parameter-optimization.github.io/spotpython/.
Bartz-Beielstein (2023). PyTorch Hyperparameter Tuning --- A Tutorial for spotpython (Working Paper).
Abstract: The goal of hyperparameter tuning (or hyperparameter optimization) is to optimize the hyperparameters to improve the performance of the machine or deep learning model. spotpython ("Sequential Parameter Optimization Toolbox in Python") is the Python version of the well-known hyperparameter tuner SPOT, which has been developed in the R programming environment for statistical analysis for over a decade. PyTorch is an optimized tensor library for deep learning using GPUs and CPUs. This document shows how to integrate the spotpython hyperparameter tuner into the PyTorch training workflow. As an example, the results of the CIFAR10 image classifier are used. In addition to an introduction to spotpython, this tutorial also includes a brief comparison with Ray Tune, a Python library for running experiments and tuning hyperparameters. This comparison is based on the PyTorch hyperparameter tuning tutorial. The advantages and disadvantages of both approaches are discussed. We show that spotpython achieves similar or even better results while being more flexible and transparent than Ray Tune.
Some of the advantages of spotpython
are:
@ARTICLE{bart23earxiv,
author = {{Bartz-Beielstein}, Thomas},
title = "{PyTorch Hyperparameter Tuning -- A Tutorial for spotpython}",
journal = {arXiv e-prints},
keywords = {Computer Science - Machine Learning, Computer Science - Artificial Intelligence, Mathematics - Numerical Analysis, 68T07, A.1, B.8.0, G.1.6, G.4, I.2.8},
year = 2023,
month = may,
eid = {arXiv:2305.11930},
pages = {arXiv:2305.11930},
doi = {10.48550/arXiv.2305.11930},
archivePrefix = {arXiv},
eprint = {2305.11930},
primaryClass = {cs.LG},
adsurl = {https://ui.adsabs.harvard.edu/abs/2023arXiv230511930B},
adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}
@book{bart21i,
editor = {Bartz,Eva and Bartz-Beielstein, Thomas and Zaefferer, Martin and Mersmann, Olaf},
isbn = {ISBN 978-981-19-5169-5},
keywords = {bartzPublic},
note = {in print},
publisher = {Springer},
title = {{Hyperparameter Tuning for Machine and Deep Learning with R - A Practical Guide}},
year = {2022}
url = {https://link.springer.com/book/10.1007/978-981-19-5170-1}
}
@inproceedings{BLP05,
author = {Bartz-Beielstein, Thomas and Lasarczyk, Christian and Preuss, Mike},
title = {{Sequential Parameter Optimization}},
booktitle = {{Proceedings 2005 Congress on Evolutionary Computation (CEC'05), Edinburgh, Scotland}},
date-added = {2016-10-30 11:44:52 +0000},
date-modified = {2021-07-22 12:12:43 +0200},
doi = {10.1109/CEC.2005.1554761},
editor = {McKay, B and others},
isbn = {0-7803-9363-5},
issn = {1089-778X},
pages = {773--780},
publisher = {{IEEE Press}},
address = {Piscataway NJ},
year = {2005},
url= {http://dx.doi.org/10.1109/CEC.2005.1554761}
}
Follow the Google Python Style Guide from https://google.github.io/styleguide/pyguide.html.
Mac Users: Install brew
brew install python
and brew install graphviz
etc.Generate and activate a virtual environment, see venv, e.g.,
cd ~; python3 -m venv .venv
source ~/.venv/bin/activate
python -m pip install mkdocs mkdocs-gen-files mkdocs-literate-nav mkdocs-section-index mkdocs-material
mkdocs build
mkdocs serve
http://127.0.0.1:8000/
pyproject.toml
(setup.py
is not used anymore.)src
folder is used for the package sources.pyproject.toml
: see pyproject.toml.MANIFEST
file:
MANIFEST
: see MANIFEST. It describes the data files to be included, e.g.:
include src/spotpython/data/*.rst
LICENSE
: see LICENSEpython3 -m pip install --upgrade build
python3 -m build
dist
directory.spotpython*.tar.gz
file from the dist
folder for your package installation with pip
, e.g.;python3 -m pip install ./dist/spotpython-0.0.1.tar.gz
FAQs
spotgui - GUI for the Sequential Parameter Optimization in Python
We found that spotgui demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.