Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cceeb31
commit ebf5004
Showing
12 changed files
with
101 additions
and
137 deletions.
There are no files selected for viewing
Submodule data
updated
4 files
+12 −0 | testsuite/meta/distance/chebyshew.dat | |
+12 −0 | testsuite/meta/distance/geodesic.dat | |
+12 −0 | testsuite/meta/distance/jensen.dat | |
+12 −0 | testsuite/meta/distance/tanimoto.dat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
CSVFile f_feats_a("../../data/fm_train_real.dat") | ||
CSVFile f_feats_b("../../data/fm_test_real.dat") | ||
|
||
#![create_features] | ||
Features features_a = features(f_feats_a) | ||
Features features_b = features(f_feats_b) | ||
#![create_features] | ||
|
||
#![create_instance] | ||
Distance d = distance("ChebyshewMetric", lhs=features_a, rhs=features_a) | ||
#![create_instance] | ||
|
||
#![extract_distance] | ||
RealMatrix distance_matrix_aa = d.get_distance_matrix() | ||
#![extract_distance] | ||
|
||
#![refresh_distance] | ||
d.init(features_a, features_b) | ||
RealMatrix distance_matrix_ab = d.get_distance_matrix() | ||
#![refresh_distance] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
CSVFile f_feats_a("../../data/fm_train_real.dat") | ||
CSVFile f_feats_b("../../data/fm_test_real.dat") | ||
|
||
#![create_features] | ||
Features features_a = features(f_feats_a) | ||
Features features_b = features(f_feats_b) | ||
#![create_features] | ||
|
||
#![create_instance] | ||
Distance d = distance("ChiSquareDistance", lhs=features_a, rhs=features_a) | ||
#![create_instance] | ||
|
||
#![extract_distance] | ||
RealMatrix distance_matrix_aa = d.get_distance_matrix() | ||
#![extract_distance] | ||
|
||
#![refresh_distance] | ||
d.init(features_a, features_b) | ||
RealMatrix distance_matrix_ab = d.get_distance_matrix() | ||
#![refresh_distance] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
CSVFile f_feats_a("../../data/fm_train_real.dat") | ||
CSVFile f_feats_b("../../data/fm_test_real.dat") | ||
|
||
#![create_features] | ||
Features features_a = features(f_feats_a) | ||
Features features_b = features(f_feats_b) | ||
#![create_features] | ||
|
||
#![create_instance] | ||
Distance d = distance("GeodesicMetric", lhs=features_a, rhs=features_a) | ||
#![create_instance] | ||
|
||
#![extract_distance] | ||
RealMatrix distance_matrix_aa = d.get_distance_matrix() | ||
#![extract_distance] | ||
|
||
#![refresh_distance] | ||
d.init(features_a, features_b) | ||
RealMatrix distance_matrix_ab = d.get_distance_matrix() | ||
#![refresh_distance] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
CSVFile f_feats_a("../../data/fm_train_real.dat") | ||
CSVFile f_feats_b("../../data/fm_test_real.dat") | ||
|
||
#![create_features] | ||
Features features_a = features(f_feats_a) | ||
Features features_b = features(f_feats_b) | ||
#![create_features] | ||
|
||
#![create_instance] | ||
Distance d = distance("JensenMetric", lhs=features_a, rhs=features_a) | ||
#![create_instance] | ||
|
||
#![extract_distance] | ||
RealMatrix distance_matrix_aa = d.get_distance_matrix() | ||
#![extract_distance] | ||
|
||
#![refresh_distance] | ||
d.init(features_a, features_b) | ||
RealMatrix distance_matrix_ab = d.get_distance_matrix() | ||
#![refresh_distance] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
CSVFile f_feats_a("../../data/fm_train_real.dat") | ||
CSVFile f_feats_b("../../data/fm_test_real.dat") | ||
|
||
#![create_features] | ||
Features features_a = features(f_feats_a) | ||
Features features_b = features(f_feats_b) | ||
#![create_features] | ||
|
||
#![create_instance] | ||
Distance d = distance("TanimotoDistance", lhs=features_a, rhs=features_a) | ||
#![create_instance] | ||
|
||
#![extract_distance] | ||
RealMatrix distance_matrix_aa = d.get_distance_matrix() | ||
#![extract_distance] | ||
|
||
#![refresh_distance] | ||
d.init(features_a, features_b) | ||
RealMatrix distance_matrix_ab = d.get_distance_matrix() | ||
#![refresh_distance] |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.