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.
mlrose-ky
is a Python package for applying some of the most common randomized optimization and search algorithms to a range of different
optimization problems, over both discrete- and continuous-valued parameter spaces.
mlrose-ky
is a fork of the mlrose-hiive
repository, which itself was a fork of the
original mlrose
repository.
The original mlrose
was developed to support students of Georgia Tech's OMSCS/OMSA offering of CS 7641: Machine Learning.
Later, mlrose-hiive
introduced a number of improvements (for example, the Runners
submodule) and bug fixes on top of mlrose
, though it
lacked documentation, contained some mysterious bugs and inefficiencies, and was unmaintained as of around 2022.
Today, mlrose-ky
introduces additional improvements and bug fixes on top of mlrose-hiive
. Some of these improvements include:
mlrose-hiive
This repository includes implementations of all randomized optimization algorithms taught in the course, as well as functionality to apply these algorithms to integer-string optimization problems, such as N-Queens and the Knapsack problem; continuous-valued optimization problems, such as the neural network weight problem; and tour optimization problems, such as the Travelling Salesperson problem. It also has the flexibility to solve user-defined optimization problems.
The mlrose-ky
project is undergoing significant improvements to enhance code quality, documentation, and testing. Below is a list of tasks
that have been completed or are in progress:
Fix Python Warnings and Errors: All Python warnings and errors have been addressed, except for a few unavoidable ones like "duplicate code." ✅
Add Python 3.10 Type Hints: Type hints are being added to all function and method definitions, as well as method properties (
e.g., self.foo: str = 'bar'
), to improve code clarity and maintainability. ✅
Enhance Documentation: NumPy-style docstrings are being added to all functions and methods, with at least a one-line docstring at the top of every file summarizing its contents. This will make the codebase more understandable and easier to use for others. ✅
Increase Test Coverage: Tests are being added using Pytest, with a goal of achieving 100% code coverage to ensure the robustness of the codebase. ✅
Resolve TODO/FIXME Comments: A thorough search is being conducted for any TODO, FIXME, or similar comments, and their respective issues are being resolved. ✅
Optimize Code: Vanilla Python loops are being optimized where possible by vectorizing them with NumPy to enhance performance.
Improve Code Quality: Any other sub-optimal code, bugs, or code quality issues are being addressed to ensure a high standard of coding practices. ✅
Clean Up Codebase: All commented-out code is being removed to keep the codebase clean and maintainable. ✅
mlrose-ky
was written in Python 3 and requires NumPy, SciPy, and Scikit-Learn (sklearn).
The latest version can be installed using pip
:
pip install mlrose-ky --upgrade
Once it is installed, simply import it like so:
import mlrose_ky as mlrose
The official mlrose-ky
documentation can be found here.
A Jupyter notebook containing the examples used in the documentation is also available here.
mlrose-ky
was forked from the mlrose-hiive
repository, which was a fork of the original mlrose
repository.
The original mlrose
was written by Genevieve Hayes and is distributed under
the 3-Clause BSD license.
You can cite mlrose-ky
in research publications and reports as follows:
Please also keep the original authors' citations:
Thanks to David S. Park for the MIMIC enhancements (from https://github.com/parkds/mlrose).
BibTeX entries:
@misc{Nakamura24,
author = {Nakamura, K.},
title = {{mlrose-ky: Machine Learning, Randomized Optimization and SEarch package for Python}},
year = 2024,
howpublished = {\url{https://github.com/knakamura13/mlrose-ky/}},
note = {Accessed: day month year}
}
@misc{Rollings20,
author = {Rollings, A.},
title = {{mlrose: Machine Learning, Randomized Optimization and SEarch package for Python, hiive extended remix}},
year = 2020,
howpublished = {\url{https://github.com/hiive/mlrose/}},
note = {Accessed: day month year}
}
@misc{Hayes19,
author = {Hayes, G.},
title = {{mlrose: Machine Learning, Randomized Optimization and SEarch package for Python}},
year = 2019,
howpublished = {\url{https://github.com/gkhayes/mlrose/}},
note = {Accessed: day month year}
}
Nikhil Kapila |
Kyle Nakamura |
Edwin Mbaabu |
FAQs
MLROSe-ky: Machine Learning, Randomized Optimization and Search
We found that mlrose-ky 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.