more namespace compatibility changes

This commit is contained in:
skwak22 2020-06-26 02:09:28 +09:00
parent 4bd92503a3
commit b417e4c2aa
11 changed files with 31 additions and 31 deletions

View File

@ -2,8 +2,8 @@
(:gen-class) (:gen-class)
(:require [propeller.gp :as gp] (:require [propeller.gp :as gp]
[propeller.push.core :as push] [propeller.push.core :as push]
(propeller.problems [simple-regression :as regression] [propeller.problems.simple-regression :as regression]
[string-classification :as string-classif]))) [propeller.problems.string-classification :as string-classif]))
(defn -main (defn -main
"Runs propel-gp, giving it a map of arguments." "Runs propel-gp, giving it a map of arguments."

View File

@ -1,6 +1,6 @@
(ns propeller.gp (ns propeller.gp
(:require (propeller [genome :as genome] (:require [propeller.genome :as genome]
[variation :as variation]) [propeller.variation :as variation]
[propeller.push.core :as push])) [propeller.push.core :as push]))
(defn report (defn report

View File

@ -1,7 +1,7 @@
(ns propeller.problems.simple-regression (ns propeller.problems.simple-regression
(:require [propeller.genome :as genome] (:require [propeller.genome :as genome]
(propeller.push [interpreter :as interpreter] [propeller.push.interpreter :as interpreter]
[state :as state]) [propeller.push.state :as state]
[propeller.tools.math :as math])) [propeller.tools.math :as math]))
;; ============================================================================= ;; =============================================================================

View File

@ -1,7 +1,7 @@
(ns propeller.problems.string-classification (ns propeller.problems.string-classification
(:require [propeller.genome :as genome] (:require [propeller.genome :as genome]
(propeller.push [interpreter :as interpreter] [propeller.push.interpreter :as interpreter]
[state :as state]))) [propeller.push.state :as state]))
;; ============================================================================= ;; =============================================================================
;; String classification ;; String classification

View File

@ -1,7 +1,7 @@
(ns propeller.push.instructions.code (ns propeller.push.instructions.code
(:require (propeller.push [state :as state] (:require [propeller.push.state :as state]
[utils :refer [def-instruction [propeller.push.utils :refer [def-instruction
make-instruction]]))) make-instruction]]))
;; ============================================================================= ;; =============================================================================
;; CODE and EXEC Instructions ;; CODE and EXEC Instructions

View File

@ -1,6 +1,6 @@
(ns propeller.push.instructions.input-output (ns propeller.push.instructions.input-output
(:require (propeller.push [state :as state] (:require [propeller.push.state :as state]
[utils :refer [def-instruction]]))) [propeller.push.utils :refer [def-instruction]]))
;; ============================================================================= ;; =============================================================================
;; INPUT and OUTPUT Instructions ;; INPUT and OUTPUT Instructions

View File

@ -1,8 +1,8 @@
(ns propeller.push.instructions.polymorphic (ns propeller.push.instructions.polymorphic
(:require (propeller.push [state :as state] (:require [propeller.push.state :as state]
[utils :refer [def-instruction [propeller.push.utils :refer [def-instruction
generate-functions generate-functions
make-instruction]]))) make-instruction]]))
;; ============================================================================= ;; =============================================================================
;; Polymorphic Instructions ;; Polymorphic Instructions

View File

@ -1,6 +1,6 @@
(ns propeller.push.interpreter (ns propeller.push.interpreter
(:require (propeller.push [core :as push] (:require [propeller.push.core :as push]
[state :as state]))) [propeller.push.state :as state]))
(defn interpret-one-step (defn interpret-one-step
"Takes a Push state and executes the next instruction on the exec stack." "Takes a Push state and executes the next instruction on the exec stack."

View File

@ -1,6 +1,6 @@
(ns propeller.push.utils (ns propeller.push.utils
(:require (propeller.push [core :as push] (:require [propeller.push.core :as push]
[state :as state]))) [propeller.push.state :as state]))
(defmacro def-instruction (defmacro def-instruction
[instruction definition] [instruction definition]

View File

@ -1,13 +1,13 @@
(ns propeller.session (ns propeller.session
(:require (propeller [genome :as genome] (:require [propeller.genome :as genome]
[gp :as gp] [propeller.gp :as gp]
[selection :as selection] [propeller.selection :as selection]
[variation :as variation]) [propeller.variation :as variation]
(propeller.push [core :as push] [propeller.push.core :as push]
[interpreter :as interpreter] [propeller.interpreter :as interpreter]
[state :as state]) [propeller.state :as state]
(propeller.problems [simple-regression :as regression] [propeller.problems.simple-regression :as regression]
[string-classification :as string-classif]))) [propeller.problems.string-classification :as string-classif]))
#_(interpreter/interpret-program #_(interpreter/interpret-program
'(1 2 integer_add) state/empty-state 1000) '(1 2 integer_add) state/empty-state 1000)

View File

@ -1,6 +1,6 @@
(ns propeller.tools.distributions (ns propeller.tools.distributions
(:require (propeller.tools [calculus :as calculus] (:require [propeller.tools.calculus :as calculus]
[math :as math]))) [propeller.tools.math :as math]))
;; ============================================================================= ;; =============================================================================
;; NORMAL ;; NORMAL