Hi all,
I was playing with learningCurve and Measurement classes, in pretty much the same way as in moa.tasks.EvaluatePrequential.java. When I run the program, the following lines
learningCurve.insertEntry(new LearningEvaluation(
new Measurement[]{
new Measurement("learning evaluation instances", instancesProcessed),
},
evaluator, learner));
trigger the following warning
Can not access instrumentation environment.
Please check if jar file containing SizeOfAgent class is
specified in the java's "-javaagent" command line argument.
I am working on linux and to compile and run the program, I simply type
javac myProgram.java
java myProgram
I also have to mention that I have put in my .bash_profile the following line
export CLASSPATH=$CLASSPATH:path_to_moa/moa.jar
I don't understand:
- why I get this warning about the javaagent
- why this warning goes away when I don't use LearningCurve
- how can I deal properly with this warning and suppress it cleanly
I don't work in the MOA directory, so I am reluctant to use a java -javaagent:sizeofag command.