Using NetLogo with OpenMOLE - netlogo

I am trying to get started with OpenMOLE, in order to run NetLogo models. I am currently having trouble with getting OpenMOLE to run any NetLogo model, even the fire.nlogo example on their website. I was wondering if the problem could be that OpenMOLE can't find the NetLogo application. I have tried putting the NetLogo.jar file in the same directory, but that doesn't seem to help. Where should NetLogo be in relation to OpenMOLE for it to run NetLogo models?
This is the error I am getting when I try to run any NetLogo model:
<console>:243: error: type mismatch;
found : Unit
required: org.openmole.core.workflow.puzzle.PuzzleBuilder
}

Related

Matlab Compiler: issues compiling code that includes a pre-trained neural netowork

I have a Matlab script that I want to compile in a standalone executable using Matlab Compiler. The code loads a couple of pre-trained networks that I have tailored on my problem, starting from Inceptionv3. The code runs OK before compilation, but when I run the compiled app, I've got an error as if it was not possible to load the pre-trained networks (.mat files).
I've searched on the web and on the official documentation, but there is a lack of clear response on this. I made myself sure that the problem is not due to the relative/absolute path.
There are suggestions on the web regarding the use of the command "%#function", but, by reading the documentation, it seems not to be what I need.
Here is when I load the models:
% load pre-trained network
model1 = load(fullfile(model_abspath,'Inceptionv3_net1.mat'));
model2 = load(fullfile(model_abspath,'Inceptionv3_net2.mat'));
net1 = model1.Inceptionv3_net1;
net2 = model2.Inceptionv3_net2;
Later on, in the code, I classify images using, for example:
[YPred,probs] = classify(model1.Inceptionv3_net1,img);
This is the error I got, and it happens when I try to load the models:
"Warning: Unable to load instances of class nnet.inceptionv3.layer.ScalingLayer into a heterogeneous array. The definition of nnet.inceptionv3.layer.ScalingLayer could be missing or contain an error. Default objects will be substituted.
Warning: While loading an object of class 'DAGNetwork':
Array indices must be positive integers or logical values."

Error checking on the MDriven models inside VS IDE

I have a legacy system based on ECO III and now upgraded to MDriven. It works ok but there are quite a number of errors when I try to check for model error inside VS IDE:
The error messages look strange, I have no clue in what parts of the model caused the error...
Looks like there may be "ghost" classes with name "" in your model.
Scroll the model tree - do you see rows with only the class symbol but no name?
Should it have a name or should it be deleted?

PredictionIO evaluation in classifier

Has someone achieved to make an evaluation correctly using PredictionIO?
I am using the classification template in a server, but using more attributes, it is trained with a dataset I got and makes predictions well. However, it fails doing the evaluation, and I have all the data labeled, the data I use to train the algorithm...
The error:
Exception in thread "main" java.lang.IllegalArgumentException:
requirement failed: RDD[labeledPoints] in PreparedData cannot be
empty. Please check if DataSource generates TrainingData and
Preparator generates PreparedData correctly.
DataSource.scala and Preparator.scala should work as they are.
Thanks for any help
Evaluation (using command shown in the doc), is working with the latest, given that you set spark to 1.4.1 in your build.sbt . See this github issue:
https://github.com/PredictionIO/template-scala-parallel-textclassification/issues/2
Finally I got It starting all the again. For classification, be sure to follow the guide steps and: 1. Add all the attrs you use about your dataset to Engine, Evaluation, DataSource and NaiveBayesAlgorithms scala files. 2. Rename the app name for yours in engine.json and Evaluation.scala. 3. Re build the app "pio build --verbose". 4. Now you can evaluate, "pio eval yourpackagename.AccuracyEvaluation yourpackagename.EngineParamsList"

Getting error when running after simulator task in my Matlab workflow

When i am running start simulator in my Matlab workflow i am getting below error.
The mex compiler '' is not supported for simulation builds. Use 'mex -setup' to select a supported compiler.
Scenario : In my matlab project i have *.mdl files. After generated diagram fro that mdl files, i clicked on one of my scope diagram then i am getting above error
Please let me know can i need any compilers, if so tell me i will do accordingly.
Any suggestions/methods to follow get sort out from this error.
Thanks in advance for you great valuable replies.

Matlab/Simulink - Dymola Interface. Dymolablock out of Date

I'm trying to create a compound model of Matlab and Dymola.
Therefore I followed this tutorial:
Claytex tutorial
Instead of the DrivenPendulum model, I made a simple model myself.
I can translate the model in Dymola just fine, and the Compilation of the Dymola model in Matlab works like in the tutorial, too.
But as soon as I try to simulate in Simulink I receive the following error message:
Error evaluating 'InitFcn' callback of SubSystem block (mask) 'test/DymolaBlock/compmodel'. Block test/DymolaBlock is not up to date. Please recompile it!
Recompiling obviously doesn't work, I get this message again and again.
I'm using Dymola 2014 FD01 and Matlab 2010b with Visual Studio 2008 C++ Compiler.
Unfortunately I can't update Matlab at the moment as I'm working on an university computer, even though I assume this is the cause of the problem.
But maybe someone of you has an idea or even encountered this problem already?
Thanks in advance!