Skip to content

Commit

Permalink
Merge branch 'release/0.1.5'
Browse files Browse the repository at this point in the history
  • Loading branch information
mlange-42 committed Mar 28, 2020
2 parents 4611375 + 84f329e commit e5a590c
Show file tree
Hide file tree
Showing 24 changed files with 1,207 additions and 235 deletions.
148 changes: 146 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
[package]
name = "kohonen"
version = "0.1.4"
version = "0.1.5"
authors = ["m-lange <martin_lange_@gmx.net>"]
edition = "2018"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
csv = "1.1"
num-traits = "0.2"
rand = "0.5.5"
easy_graph = { git = "https://github.com/mlange-42/easy_graph.git" }

# TODO put CLI in feature
structopt = "0.3"

[dev-dependencies]
statistical = "1.0.0"

14 changes: 14 additions & 0 deletions cmd_examples/countries.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
..\target\release\kohonen.exe ^
--file ..\example_data\countries.csv ^
--size 20 16 ^
--episodes 10000 ^
--layers "child_mort_2010 birth_p_1000 GNI LifeExpectancy PopGrowth PopUrbanized PopGrowthUrb AdultLiteracy PrimSchool Income_low_40 Income_high_20" "continent" ^
--categ 0 1 ^
--norm gauss none ^
--weights 1 1 ^
--alpha 0.2 0.01 lin ^
--radius 10 0.8 lin ^
--decay 0.2 0.001 exp ^
--neigh gauss ^
--no-data - ^
--fps 1
13 changes: 13 additions & 0 deletions cmd_examples/countries_debug.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
..\target\debug\kohonen.exe ^
--file ..\example_data\countries.csv ^
--size 20 16 ^
--episodes 5000 ^
--layers "child_mort_2010 birth_p_1000 GNI LifeExpectancy PopGrowth PopUrbanized PopGrowthUrb AdultLiteracy PrimSchool Income_low_40 Income_high_20" ^
--categ 0 ^
--norm gauss ^
--weights 1 ^
--alpha 0.2 0.01 lin ^
--radius 8 0.7 lin ^
--decay 0.2 0.001 exp ^
--neigh gauss ^
--no-data -
12 changes: 12 additions & 0 deletions cmd_examples/iris.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
..\target\release\kohonen.exe ^
--file ..\example_data/iris.csv ^
--size 20 16 ^
--episodes 5000 ^
--layers "sepal_length sepal_width petal_length petal_width" "species" ^
--categ 0 1 ^
--norm gauss none ^
--weights 1 1 ^
--alpha 0.2 0.01 lin ^
--radius 8 0.7 lin ^
--decay 0.2 0.001 exp ^
--neigh gauss
Loading

0 comments on commit e5a590c

Please sign in to comment.