Skip to content

Commit acf2913

Browse files
committed
Merge branch 'feature/git-dependency/ml' into dev
2 parents 81c7abe + a43cee0 commit acf2913

4 files changed

Lines changed: 2 additions & 22 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ edition = "2018"
99
[dependencies]
1010
num-traits = "0.2"
1111
rand = "0.5.5"
12-
easy_graph = { path = "../easy_graph", version = "0.1.0" }
12+
easy_graph = { git = "https://m-lange@bitbucket.org/m-lange/easy_graph.git" }
1313

1414
[dev-dependencies]
1515
statistical = "1.0.0"

src/calc/nn.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ use crate::data::DataFrame;
22

33
use crate::calc::metric::{EuclideanMetric, Metric, SqEuclideanMetric, TanimotoMetric};
44
use crate::map::som::Layer;
5-
use crossbeam::thread;
6-
use std::sync::mpsc;
75

86
#[allow(dead_code)]
97
const EUCLIDEAN: EuclideanMetric = EuclideanMetric();

src/main.rs

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -42,25 +42,6 @@ fn run_layer_view() {
4242
}
4343
}
4444

45-
#[allow(dead_code)]
46-
fn parallel_nn() {
47-
let mut rng = rand::thread_rng();
48-
let from = [0.0, 0.0, 0.0];
49-
let mut to = DataFrame::<f64>::empty(3);
50-
51-
for _i in 0..1000 {
52-
to.push_row(&[
53-
rng.gen_range(0.0, 1.0),
54-
rng.gen_range(0.0, 1.0),
55-
rng.gen_range(0.0, 1.0),
56-
]);
57-
}
58-
59-
let (idx, dist) = nn::par_nearest_neighbor(&from, &to, 8);
60-
61-
println!("{}, {}", idx, dist);
62-
}
63-
6445
#[allow(dead_code)]
6546
fn run_xyf(graphics: bool) {
6647
let dim = 4;

0 commit comments

Comments
 (0)