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.
A python library for Bayesian Optimization.
# for python3
python3 -m venv .env
# or for python2
python2 -m virtualenv .env
source .env/bin/activate
python -m pip install --upgrade pip
python -m pip install bolib
import bolib
of = bolib.ofs.Branin()
of.evaluate([1.0, 1.0]) # 27.702905548512433
import gplib
model = gplib.GP(
mean_function=gplib.mea.Fixed(),
covariance_function=gplib.ker.SquaredExponential(ls=([1.] * of.d))
)
metric = gplib.me.LML()
fitting_method = gplib.fit.MultiStart(
obj_fun=metric.fold_measure,
max_fun_call=300,
nested_fit_method=gplib.fit.LocalSearch(
obj_fun=metric.fold_measure,
max_fun_call=75,
method='Powell'
)
)
validation = gplib.dm.Full()
af = bolib.afs.ExpectedImprovement()
bo = bolib.methods.BayesianOptimization(
model, fitting_method, validation, af
)
bo.set_seed(seed=1)
x0 = bo.random_sample(of.get_bounds(), batch_size=10)
bo.minimize(
of.evaluate, x0,
bounds=of.get_bounds(),
tol=1e-5,
maxiter=of.get_max_eval(),
disp=True
)
import scipy.optimize as spo
bo.set_seed(seed=1)
x0 = bo.random_sample(of.get_bounds(), batch_size=5)
result = spo.minimize(
of.evaluate,
x0,
bounds=of.get_bounds(),
method=bo.minimize,
tol=1e-5,
options={
'maxiter': of.get_max_eval(),
'disp': True
}
)
source ./.env/bin/activate
pip install Sphinx
cd docs/
sphinx-apidoc -f -o ./ ../bolib
FAQs
Python library for Bayesian Optimization.
We found that bolib 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.