-
Notifications
You must be signed in to change notification settings - Fork 229
Add documentation for the new API #133
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
Changes from 3 commits
61856b3
d5dd517
b54ee34
7495b68
18325cd
0ddaee3
e998652
41b9182
0adb3c0
26306ba
4eb8495
3db2653
813f658
3891b93
7dcfb54
1b83569
70f16a9
ed0a00e
868d42b
1fe3357
ea487b7
16ba60a
95f0702
6cb328f
ff4d30e
37cd11c
6eee862
bee4a8c
d49ba68
202e3fe
c107584
9de2e9c
1371122
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Just some text to initialize the PR |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
documentation outline: | ||
|
||
|
||
- Getting started/Quick Start: | ||
|
||
- Explanation of what metric learning is, and what is the purpose of this package | ||
- installation | ||
- a very quick example on how to import an algo (supervised or not ?) and how to do fit (and predict ?) (and split train and test) on some custom dataset (maybe sklearn.datasets.load_lfw_pairs ?) | ||
|
||
- User Guide/List of algorithms: | ||
|
||
- Supervised Metric Learning: (add links to examples/images from examples at the right place in the description) | ||
- Problem setting | ||
- Input data (+ see Preprocessor section) | ||
- What you can do after fit (transform...) | ||
|
||
- Weakly Supervised Metric Learning: (add links to examples/images from examples at the right place in the description) | ||
- Problem setting | ||
- Input data (+ See Preprocessor section) | ||
- What you can do after fit (predict/score, tranform...) | ||
- Scikit-learn compatibility (compatible with grid search + link to example of grid search) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It might also be good to show a sklearn Pipeline There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes I agree, since the pipeline (Metric Learner, KNN) for instance, represents a major use case of metric learning for classification |
||
|
||
- Usage of the Preprocessor: | ||
- Purpose (performance) | ||
- Use (as an argument "preprocessor" in every metric learner) | ||
|
||
|
||
- Examples/Tutorials: | ||
- One example with faces (prediction if same/different person) | ||
- One example of grid search to compare different algorithms (mmc, itml etc) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So the goal is to do the following in order:
Right? Or are you only comparing the visualization after metric transformation (if so, maybe this could be combined with "Data visualisation" section)? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I was thinking only grid search for Weakly Supervised Algorithms like MMC, the score being the accuracy score on predicting if a pair is positive/negative, since this case is the most unusual for users used to classic train/test sets of points and not pairs. But indeed we could also make a grid search on pipelines (SupervisedMetricLearner, KNN) for instance, like a regular classifier, with a classification accuracy score. And I agree that it would be interesting to see the impact of hyperparameters tuning on data visualization: maybe this could make an example in the data visualization section indeed |
||
- Clustering with side information | ||
- Instance retrieval | ||
- Data visualisation | ||
|
||
- API: | ||
- doc automatically generated by docstrings |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is only going to be simple usage of preprocessor and then talk about more details in the preprocessor section, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, something like: input data: a 2D array-like X (or 1D array-like of indices, see preprocessor section)