Skip to content

Commit

Permalink
Fixing up pre_compute_distances example.
Browse files Browse the repository at this point in the history
  • Loading branch information
gugarosa committed Jul 7, 2020
1 parent 61acc81 commit a4d179c
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions examples/math/pre_compute_distances.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,5 @@
# Parsing a pre-loaded numpy array
X, Y = p.parse_loader(txt)

# Splitting data into training and testing sets
X_train, X_test, Y_train, Y_test = s.split(
X, Y, percentage=0.5, random_state=1)

# Creating a file of pre-computed distances
g.pre_compute_distance(X_train, 'boat_split_distances.txt',
distance='log_squared_euclidean')
g.pre_compute_distance(X, 'boat_split_distances.txt', distance='log_squared_euclidean')

0 comments on commit a4d179c

Please sign in to comment.