Create branin dataset in ARFF. Plot it too.
- Python 3.8.5+
#get repo
git clone git clone https://github.com/trentmc/branin.git
cd branin
#install non-virtualenv dependencies
sudo apt-get install python3-tk
#set up virtualenv
python -m venv venv
source venv/bin/activate
#install virtualenv dependencies
pip install wheel
pip install -r requirements.txt
To create the branin datasest:
python branin.pyTo run the GPR algorithm locally, using the data saved in branin.arff. The model will be saved in gpr.out.
python gpr.py localUnpickling the result, in a Python console or script.:
pickle.load(open("gpr.pickle", "rb"))Running for OCEAN compute-to-data (assumes "DIDS" is set as an environment variable, input relies in /data/ddos, and output is sent to /data/outputs/result):
python gpr.pyUnpickling is similar to the local version, just change the name of the file to open.
