NaelsonDouglas / DistributedMachineLearningThesis

A proof-of-concept implementation of a delegated distributed machine learning algorithm approach.
3 stars 0 forks source link

ERROR: UndefVarError: executeexperiment not defined #6

Closed lagefreitas closed 6 years ago

lagefreitas commented 6 years ago

After adding the packages by hand, I had this error.

BTW, I couldn't pin Mocha as described in Issue #4, maybe this is the real problem.

root@8b2c10453516:/DistributedMachineLearningThesis/src# time julia -L master_summary.jl -e "executeexperiment()" 4 100 f1 1234 4 2
WARNING: Method definition info(Any...) in module Base at util.jl:334 overwritten in module Logging at /root/.julia/v0.4/Logging/src/Logging.jl:61.
WARNING: Method definition warn(Any...) in module Base at util.jl:364 overwritten in module Logging at /root/.julia/v0.4/Logging/src/Logging.jl:61.
Configuring Mocha...
 * CUDA       disabled by default
 * Native Ext disabled by default
Mocha configured, continue loading module...
DefaultBackend = Mocha.CPUBackend
elapsed time: 0.017022133 seconds
ERROR: UndefVarError: executeexperiment not defined
 in process_options at ./client.jl:257
 in _start at ./client.jl:378

real    0m57.152s
user    0m58.140s
sys 0m2.670s
root@8b2c10453516:/DistributedMachineLearningThesis/src# 
NaelsonDouglas commented 6 years ago

Looks like it's missing the underscore on your local version of the code in this line

ERROR: UndefVarError: executeexperiment not defined

lagefreitas commented 6 years ago

This is not the cause. I copied and pasted this line from my running dmlt container:

function execute_experiment()
lagefreitas commented 6 years ago

The problem was that I was calling the function wrong (I forgot to put the _):

julia -L master_summary.jl -e "executeexperiment()" 4 100 f1 1234 4 2