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.
This is an interface for using ALAMO through a Python pip package.
Download the ALAMO application from minlp.com, and unzip the package.
Download the ALAMO application from minlp.com, and install with the provided installer.
Add the directory of the folder you have installed the pip package with your Python file to your PATH variable.
Get your ALAMO license from minlp.com and place it inside the same folder as the Python file.
Before running ALAMO, you should decide if you will provide your own data. If so, make sure your data are all in numpy arrays. Otherwise, select the appropriate simulator to run ALAMO.
pip install alamopy
python
import numpy as np
Test 1 to see if we can generate model for z = x**2 Most notably tests if the given example 1 works from ALAMO UI.
from alamopy import almain as alamo
import numpy as np
xdata = np.random.rand(11, 1)
xdata[:, 0] = [-5,-4,-3,-2,-1,0,1,2,3,4,5]
zdata = xdata[:, 0]**2
opts = alamo.doalamo(xdata, zdata, linfcns = 1, logfcns = 1, sinfcns = 1, cosfns = 1, constant = 1, expfcns = 1, monomialpower = [2,3], keep_alm_file=True, keep_lst_file=True)
You would get the result dictionary with a best-fitted function and other variables when calling ALAMO using this python interface.
FAQs
A package that is able to run ALAMO without the use of its GUI
We found that alamopy 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.