Merge pull request #4 from skwak22/master
Converted to cljc (without xml files)
This commit is contained in:
commit
c1e3f7e45f
@ -1,8 +1,9 @@
|
||||
(ns propeller.core
|
||||
(:gen-class)
|
||||
#?(:clj (:gen-class))
|
||||
(:require [propeller.gp :as gp]
|
||||
[propeller.problems.simple-regression :as regression]
|
||||
[propeller.problems.string-classification :as string-classif]))
|
||||
[propeller.problems.string-classification :as string-classif]
|
||||
#?(:cljs [cljs.reader :refer [read-string]])))
|
||||
|
||||
(defn -main
|
||||
"Runs propel-gp, giving it a map of arguments."
|
@ -2,8 +2,8 @@
|
||||
(:require [propeller.genome :as genome]
|
||||
[propeller.variation :as variation]
|
||||
[propeller.push.core :as push]
|
||||
[propeller.push.instructions.boolean]
|
||||
[propeller.push.instructions.char]
|
||||
[propeller.push.instructions.bool]
|
||||
[propeller.push.instructions.chara]
|
||||
[propeller.push.instructions.code]
|
||||
[propeller.push.instructions.input-output]
|
||||
[propeller.push.instructions.numeric]
|
@ -1,7 +1,8 @@
|
||||
(ns propeller.push.instructions.boolean
|
||||
(:require [propeller.push.utils :refer [def-instruction
|
||||
make-instruction]]))
|
||||
|
||||
(ns propeller.push.instructions.bool
|
||||
#?(:cljs (:require-macros [propeller.push.utils :refer [def-instruction
|
||||
make-instruction]]))
|
||||
(:require #?(:clj [propeller.push.utils :refer [def-instruction
|
||||
make-instruction]])))
|
||||
;; =============================================================================
|
||||
;; BOOLEAN Instructions
|
||||
;; =============================================================================
|
@ -1,8 +1,10 @@
|
||||
(ns propeller.push.instructions.char
|
||||
(ns propeller.push.instructions.chara
|
||||
#?(:cljs (:require-macros [propeller.push.utils :refer [def-instruction
|
||||
make-instruction]]))
|
||||
(:require [propeller.push.state :as state]
|
||||
[propeller.push.utils :refer [def-instruction
|
||||
make-instruction]]
|
||||
[propeller.tools.character :as char]))
|
||||
[propeller.tools.character :as char]
|
||||
#?(:clj [propeller.push.utils :refer [def-instruction
|
||||
make-instruction]])))
|
||||
|
||||
;; =============================================================================
|
||||
;; CHAR Instructions
|
@ -1,9 +1,12 @@
|
||||
(ns propeller.push.instructions.code
|
||||
#?(:cljs (:require-macros [propeller.push.utils :refer [def-instruction
|
||||
generate-instructions
|
||||
make-instruction]]))
|
||||
(:require [propeller.utils :as utils]
|
||||
[propeller.push.state :as state]
|
||||
[propeller.push.utils :refer [def-instruction
|
||||
generate-instructions
|
||||
make-instruction]]))
|
||||
#?(:clj [propeller.push.utils :refer [def-instruction
|
||||
generate-instructions
|
||||
make-instruction]])))
|
||||
|
||||
;; =============================================================================
|
||||
;; Polymorphic Instructions
|
@ -1,7 +1,9 @@
|
||||
(ns propeller.push.instructions.input-output
|
||||
#?(:cljs (:require-macros [propeller.push.utils :refer
|
||||
[def-instruction generate-instructions]]))
|
||||
(:require [propeller.push.state :as state]
|
||||
[propeller.push.utils :refer [def-instruction
|
||||
generate-instructions]]))
|
||||
#?(:clj [propeller.push.utils :refer [def-instruction
|
||||
generate-instructions]])))
|
||||
|
||||
;; =============================================================================
|
||||
;; INPUT Instructions
|
@ -1,8 +1,11 @@
|
||||
(ns propeller.push.instructions.numeric
|
||||
(:require [propeller.push.utils :refer [def-instruction
|
||||
generate-instructions
|
||||
make-instruction]]
|
||||
[propeller.tools.math :as math]))
|
||||
#?(:cljs (:require-macros [propeller.push.utils :refer [def-instruction
|
||||
generate-instructions
|
||||
make-instruction]]))
|
||||
(:require [propeller.tools.math :as math]
|
||||
#?(:clj [propeller.push.utils :refer [def-instruction
|
||||
generate-instructions
|
||||
make-instruction]])))
|
||||
|
||||
;; =============================================================================
|
||||
;; FLOAT and INTEGER Instructions (polymorphic)
|
@ -1,8 +1,10 @@
|
||||
(ns propeller.push.instructions.polymorphic
|
||||
#?(:cljs (:require-macros [propeller.push.utils :refer [generate-instructions
|
||||
make-instruction]]))
|
||||
(:require [propeller.utils :as utils]
|
||||
[propeller.push.state :as state]
|
||||
[propeller.push.utils :refer [generate-instructions
|
||||
make-instruction]]))
|
||||
#?(:clj [propeller.push.utils :refer [generate-instructions
|
||||
make-instruction]])))
|
||||
|
||||
;; =============================================================================
|
||||
;; Polymorphic Instructions
|
@ -1,4 +0,0 @@
|
||||
(ns propeller.push.instructions.random
|
||||
(:require [propeller.push.utils :refer [def-instruction]]))
|
||||
|
||||
|
5
src/propeller/push/instructions/random.cljc
Normal file
5
src/propeller/push/instructions/random.cljc
Normal file
@ -0,0 +1,5 @@
|
||||
(ns propeller.push.instructions.random
|
||||
#?(:cljs (:require-macros [propeller.push.utils :refer [def-instruction]]))
|
||||
#?(:clj (:require [propeller.push.utils :refer [def-instruction]])))
|
||||
|
||||
|
@ -1,6 +1,9 @@
|
||||
(ns propeller.push.instructions.string
|
||||
(:require [propeller.push.utils :refer [def-instruction
|
||||
make-instruction]]))
|
||||
#?(:cljs (:require-macros [propeller.push.utils :refer [def-instruction
|
||||
make-instruction]]))
|
||||
|
||||
(:require #?(:clj [propeller.push.utils :refer [def-instruction
|
||||
make-instruction]])))
|
||||
|
||||
;; =============================================================================
|
||||
;; STRING Instructions
|
@ -1,10 +1,13 @@
|
||||
(ns propeller.push.instructions.vector
|
||||
#?(:cljs (:require-macros [propeller.push.utils :refer [def-instruction
|
||||
generate-instructions
|
||||
make-instruction]]))
|
||||
(:require [clojure.string]
|
||||
[propeller.utils :as utils]
|
||||
[propeller.push.state :as state]
|
||||
[propeller.push.utils :refer [def-instruction
|
||||
generate-instructions
|
||||
make-instruction]]))
|
||||
#?(:clj [propeller.push.utils :refer [def-instruction
|
||||
generate-instructions
|
||||
make-instruction]])))
|
||||
|
||||
;; =============================================================================
|
||||
;; VECTOR Instructions
|
Loading…
x
Reference in New Issue
Block a user