NL4Py icon indicating copy to clipboard operation
NL4Py copied to clipboard

get_param_names()

Open AyeshaZehra opened this issue 3 years ago • 4 comments

I am trying to replicate "modelcalibration" by changing netlogo_home and model_path, code runs without error but when I try to print list of parameters, output is empty. How can I fix this problem?

AyeshaZehra avatar Aug 18 '21 09:08 AyeshaZehra

Hi @AyeshaZehra , thanks for using NL4Py. Could I have some more information so I can try to replicate your error, please? Are you running NL4Py/examples/ParameterCalibrationWithDEAP.ipynb ? What is your os and Java version?

Also, would you mind sharing your code and which NetLogo model are attempting this on?

chathika avatar Aug 19 '21 13:08 chathika

NL4PY Thank you for responding..I am currently using Core-i7, 10th gen, 64bit operating system, java version 16.0.2. I was attempting to replicate original code provided on github after so many failed attempts on my own NetLogo model. I have attached .jpeg of the code as well as output.

AyeshaZehra avatar Aug 19 '21 18:08 AyeshaZehra

I copied chunks of NL4Py/examples/ParameterCalibrationWithDEAP.ipynb. and trying to get list of parameter names and ranges.

AyeshaZehra avatar Aug 19 '21 18:08 AyeshaZehra

@AyeshaZehra have you tried commenting out the line if __name__=="__main__:"?

Also, could you try using java version 1.8? I was unable to reproduce your issue with java 1.8, python 3.9, Windows system with similar specs.

chathika avatar Aug 25 '21 03:08 chathika