File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed
Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -13,3 +13,4 @@ erl_crash.dump
1313mix.lock
1414/lib /scripts /*
1515coveralls.json
16+ ml.ex
Original file line number Diff line number Diff line change 11defmodule 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 [
You can’t perform that action at this time.
0 commit comments