Skip to content

Commit 9226084

Browse files
author
Vanessa K Lee
committed
clear warnings for ML
1 parent 32d4120 commit 9226084

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ erl_crash.dump
1313
mix.lock
1414
/lib/scripts/*
1515
coveralls.json
16+
ml.ex

lib/scripts/ml.ex

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
defmodule Akin.ML do
2+
NimbleCSV.define(CSVParse, separator: ",", escape: "\\")
23
def training_data() do
3-
NimbleCSV.define(CSVParse, separator: ",", escape: "\\")
44
File.rm("test/support/metrics_for_training.csv")
55

66
File.stream!("test/support/dblp_for_training.csv")
@@ -61,12 +61,8 @@ defmodule Akin.ML do
6161
d = String.replace(d, "_", " ")
6262

6363
Akin.match_names_metrics(b, [a, c, d])
64-
|> Enum.each(fn %{left: l, right: r, metrics: s, match: m} ->
65-
names = l <> " <- (" <> to_string(m) <> ") -> " <> r
64+
|> Enum.each(fn %{left: _l, right: _r, metrics: s, match: _m} ->
6665
scores = Enum.into(s, %{})
67-
match = "match"
68-
69-
IO.inspect scores
7066

7167
data =
7268
[

0 commit comments

Comments
 (0)