joycex99 / fraud-detection

Neural network anomaly detection classifier built with Clojure/Cortex
Eclipse Public License 1.0
30 stars 5 forks source link

Error when running (train) -- or any function #3

Open eddy147 opened 6 years ago

eddy147 commented 6 years ago

CompilerException java.lang.RuntimeException: Unable to resolve symbol: train in this context, compiling:(/tmp/form-init3183396019566444880.clj:1:1)

Reproduce:

fraud-detection.core=> (train)

CompilerException java.lang.RuntimeException: Unable to resolve symbol: train in this context, compiling:(/tmp/form-init7202867357118948258.clj:1:1) 

Note: In the code, (def orig-data-file "resources/creditcard.csv") will not work since creditcard.csv is missing. But even after adding that, I still get the same error.

kwccoin commented 5 years ago

I pass that by adding the Kaggie but still get another kind of error which I resolve by adding time limit in the project cli files as

:repl-options {:init-ns fraud-detection.core ;; If nREPL takes too long to load it may timeout, ;; increase this to wait longer before timing out. ;; Defaults to 30000 (30 seconds) :timeout 1200000 })

But still issues:

` lein repl

error {

:cause GC overhead limit exceeded :via [{:type clojure.lang.Compiler$CompilerException :message java.lang.OutOfMemoryError: GC overhead limit exceeded, compiling:(core.clj:119:39) :at [clojure.lang.Compiler$InvokeExpr eval Compiler.java 3657]} {:type java.lang.OutOfMemoryError :message GC overhead limit exceeded :at [sun.misc.FloatingDecimal readJavaFormatString FloatingDecimal.java 2041]}] :trace [[sun.misc.FloatingDecimal readJavaFormatString FloatingDecimal.java 2041] [sun.misc.FloatingDecimal parseDouble FloatingDecimal.java 110] [java.lang.Double parseDouble Double.java 538] [clojure.lang.LispReader matchNumber LispReader.java 466] [clojure.lang.LispReader readNumber LispReader.java 328] [clojure.lang.LispReader read LispReader.java 276] [clojure.lang.LispReader read LispReader.java 196] [clojure.lang.LispReader read LispReader.java 185] [clojure.lang.RT readString RT.java 1835] [clojure.lang.RT readString RT.java 1830] [clojure.core$read_string invokeStatic core.clj 3687] [clojure.core$read_string invoke core.clj 3677] [clojure.core$mapv$fn6953 invoke core.clj 6627] [clojure.core.protocols$fn6755 invokeStatic protocols.clj 167] [clojure.core.protocols$fn6755 invoke protocols.clj 124] [clojure.core.protocols$fn6710$G67056719 invoke protocols.clj 19] [clojure.core.protocols$seq_reduce invokeStatic protocols.clj 31] [clojure.core.protocols$fn6738 invokeStatic protocols.clj 75] [clojure.core.protocols$fn6738 invoke protocols.clj 75] [clojure.core.protocols$fn6684$G66796697 invoke protocols.clj 13] [clojure.core$reduce invokeStatic core.clj 6545] [clojure.core$mapv invokeStatic core.clj 6618] [clojure.core$mapv invoke core.clj 6618] [fraud_detection.core$eval38033$fn38034$fn38037 invoke core.clj 54] [clojure.core$mapv$fn6953 invoke core.clj 6627] [clojure.core.protocols$fn6755 invokeStatic protocols.clj 167] [clojure.core.protocols$fn6755 invoke protocols.clj 124] [clojure.core.protocols$fn6710$G67056719 invoke protocols.clj 19] [clojure.core.protocols$seq_reduce invokeStatic protocols.clj 31] [clojure.core.protocols$fn6738 invokeStatic protocols.clj 75] [clojure.core.protocols$fn6738 invoke protocols.clj 75] [clojure.core.protocols$fn6684$G66796697 invoke protocols.clj 13]]} nREPL server started on port 50065 on host 127.0.0.1 - nrepl://127.0.0.1:50065 REPL-y 0.4.3, nREPL 0.6.0 Clojure 1.8.0 Java HotSpot(TM) 64-Bit Server VM 1.8.0_45-b14 Docs: (doc function-name-here) (find-doc "part-of-name-here") Source: (source function-name-here) Javadoc: (javadoc java-object-or-class-here) Exit: Control+D or (exit) or (quit) Results: Stored in vars 1, 2, 3, an exception in e

fraud-detection.core=> (train) CompilerException java.lang.RuntimeException: Unable to resolve symbol: train in this context, compiling:(/private/var/folders/hc/fqgdyc011jj1m09hlkptzsn80000gn/T/form-init6668926840660496087.clj:1:1) `