-
-
Notifications
You must be signed in to change notification settings - Fork 254
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
Documentation maintenance and small fixes #82
Comments
I'll be starting work on some of these tonight! |
Apologies for the delay--I've been having some issues with building the Edit: Never mind, it's only happening when I try running |
Can confirm, the same thing is happening to me |
I pushed the missing feature flag in a4362fa, do you have any idea why it compiles even without the proper feature flag. The error actually slipped through our CI system :/ |
I'm not exactly sure. When I run the I'm also seeing the same behaviour in |
Hi. For what it's worth, I have no problem with error[E0432]: unresolved imports `ndarray_linalg::lobpcg`, `ndarray_linalg::lobpcg`, `ndarray_linalg::TruncatedOrder` --> linfa-reduction\src\diffusion_map\algorithms.rs:3:21 | 3 | eigh::EighInto, lobpcg, lobpcg::LobpcgResult, Lapack, Scalar, TruncatedOrder, UPLO, | ^^^^^^ ^^^^^^ ^^^^^^^^^^^^^^ no `TruncatedOrder` in the root | | | | | could not find `lobpcg` in `ndarray_linalg` | no `lobpcg` in the root error[E0432]: unresolved imports `ndarray_linalg::TruncatedOrder`, `ndarray_linalg::TruncatedSvd` --> linfa-reduction\src\pca\algorithms.rs:6:22 | 6 | use ndarray_linalg::{TruncatedOrder, TruncatedSvd}; | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^ no `TruncatedSvd` in the root | | | no `TruncatedOrder` in the root Not sure it is on |
mh strange are you using the current version of |
It works for me on windows 10, |
|
@relf no we should fix the @quietlychris I found the reason for your error: |
Yep you nailed it, from ndarray-linalg v0.12.0 -> v0.12.1 |
Posting here under the "small fixes" label: on mobile the code snippets in the website exit the code box on the right side |
with #96 all issues are resolved, but the line break in the website's code box is still smoking |
fixed the issue with an overflowing code box in 402668d 🦀 |
Here is a collection of work that needs to be done regarding documentation and minor issues with the code itself. Picking an item from this list can be a good way to start getting acquainted with the codebase and provide a useful contribution. 😄 👍🏻
In general, I would say that the pages for the individual algorithms in the
linfa-clustering
andlinfa-elasticnet
sub-crates can be good references for the structure of a documentation page.It's suggested to look at the existing documentation in your local build rather than on doc.rs since some pages may have already been updated.
linfa-bayes
's sub-crate documentation to include a brief description of the algorithm used and add an example of the usage of the provided model along with maybe some hints regarding when to choose a naive Bayes predictor. There are already some examples in the dedicated page for the params structure but maybe it's better to add at least one to the main page for the sub-cratelinfa-hierarchical
: The documentation for this sub-crate needs improvements like the ones listed forlinfa-bayes
linfa-ica
: Also needs updates similar tolinfa-bayes
linfa-kernel
: Add a description of what kernel methods are useful for, similarly to what's written in thelinfa-svm
crate, and add descriptions to theKernel
andKernelView
subtypes. There are some examples in theKernelBase
struct Documentation but maybe it would be a good idea to have an example of kernel transformation directly on the crate's main page.linfa-linear
: The crate's documentation is inside theols
module instead of being in the crate's root and it is outdated since it says it only provides an implementation of the least squares algorithmlinfa-linear
:glm::TweedieRegressor
provides its ownfit
method instead of implementing theFit
trait, and the same forpredict
. Moving the methods inside the trait would be a good way to align it with the rest of the algorithms provided and ensure compatibilitylinfa-logistic
could use some more documentation to explain the algorithm and some examples in its main pagelinfa-logistic
implements its ownfit
andpredict
methods instead of implementing theFit
andPredict
traits. Like in the case of linear regression it would be a good thing to align the interface with the other sub-crateslinfa-reduction
completely lacks any documentation. An explanation of why dimensionality reduction is useful in ML and descriptions of the single algorithms would really help with understanding the usefulness of the cratelinfa-svm
: this is another reference for what other crates' documentation should look like. Right now thepredict
method returns anArray1
for classification and aVec
for regression. It would be less confusing if the regression case was modified to return anArray1
too.linfa-trees
: it needs changes similar tolinfa-bayes
, with the addition of documentation regarding the methods for the params structurelinfa
: The main page of the rustdocs still says that linfa only provides the K-Means algorithm which may be very confusing to someone that only sees the crate in doc.rs for the first time. Here a completely revised page compete with project goals and links to the various sub-crates would be useful, so that one can find the algorithm they need without manually searching for the sub-crates.linfa
: The dataset module page could use a bit of explanation about the main differences between the four dataset types and a brief recollection of what utility methods a dataset provideslinfa
: The metrics module page could use a brief list of the provided metrics so that one does not have to go looking for them in the sup-pages if they only want to know whether a metric is provided or notThe text was updated successfully, but these errors were encountered: