Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add meta example for Sparse Euclidian Distance #3000 #4942

Closed
wants to merge 1 commit into from
Closed

Add meta example for Sparse Euclidian Distance #3000 #4942

wants to merge 1 commit into from

Conversation

Hephaestus12
Copy link
Contributor

Changes to be committed:
new file: examples/meta/src/distance/sparseeuclidean.sg
deleted: examples/undocumented/python/distance_sparseeuclidean.py

 Changes to be committed:
	new file:   examples/meta/src/distance/sparseeuclidean.sg
	deleted:    examples/undocumented/python/distance_sparseeuclidean.py
@Hephaestus12 Hephaestus12 changed the title Add meta example for Sparse Euclidian Distance Add meta example for Sparse Euclidian Distance #3000 Mar 18, 2020
@@ -0,0 +1,20 @@
CSVFile f_feats_a("../../data/fm_train_sparsereal.dat")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wrong file name.... should be sg.in

Copy link
Member

@gf712 gf712 Mar 18, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also use SHOGUN_DATA instead of relative path

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand.
This was the filename in the existing python example as well.
Also, I don't see any sg.in file in the data directory.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it should be examples/meta/src/distance/sparseeuclidean.sg.in you'll see that all other examples have that extension....

and plz check the other examples for how the data file path is being defined.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and as a general rule it'd be great if you could test (compile and run) any patch before you create a pull request

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Hephaestus12 just add make it more clear, @vigsterkr was not talking about the filename in the csv file, but about the filename of the meta example listing itself

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants