teoshibin / info2excel

a small script written for COMP2039_AIM_CW, to speed up the process of getting delta f target values

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

info2excel

A small script written for AI method coursework, to speed up the process of copying delta f target values The values were retrieve directly from .info thats generated by BBOB or numbbo framework

Previous issue

Problem

retrieving negative and zeros values

precision = 1e-8   
global_best = foptimal = 50   
ftarget = foptimal + precision   
delta fitness = fbest - ftarget   

Therefore, if fbest reached the global minimum, say at 50, ftarget = 50 + 1e-8

delta_fitness = 50 - 50 - 1e-8
delta fitness = -1e-8

Solution

replace values beyond the bound with threshold values

maximum_delta = 1e+3
minimum_delta = 1e-14

Installation

Windows (cmd Batch)

  1. clone and navigate into the repository

    	cd [REPO]
  2. create virtual environment

    	python -m venv info2excel\venv
  3. activate virtual environment (a prefix of "(venv)" will be displayed in your command prompt when succesfully activated)

    	info2excel\venv\Scripts\activate
  4. install dependencies

    	pip install -r info2excel\requirements.txt

Mac (terminal Bash)

  1. clone and navigate into the repository

    	cd [REPO]
  2. create virtual environment

    	python -m venv info2excel/venv
  3. activate virtual environment (a prefix of "(venv)" will be displayed in your command prompt when succesfully activated)

    	source info2excel/venv/bin/activate
  4. install dependencies

    	pip3 install -r info2excel/requirements.txt

Generate Delta ftarget Excel Score

Execution

  1. place datasets into Datasets folder

  2. activate virtual environment (step 3 of installation)

  3. generate excel

    	info2excel\info2excel.py -i [DATASET] 								# or
    	info2excel\info2excel.py -i [DATASET] -d [DIMENSION] -o [EXCELNAME] -u [UPPER_BOUND] -l [LOWER_BOUND]
    	# OPTIONAL ARGUMENTS
    	# d by default 5
    	# o by default "[ALGONAME]_[DIMENSION]D"
    	# u by default 1e+3
    	# l by default 1e-14

    Example command

    	info2excel\info2excel.py -i CMAES 				#or
    	info2excel\info2excel.py -i CMAES -d 5 -o CMAES_5D -u 1e+3 -l 1e-14
    	# both output same content : CMAES_5D.xlsx
  4. generated excel is in ExcelScore

    Note
    Always remove pre-existing dataset when rerunning the experiment

About

a small script written for COMP2039_AIM_CW, to speed up the process of getting delta f target values


Languages

Language:Python 100.0%