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
pythonPackages.hdbscan: init at 0.8.12 #37762
Conversation
@dotlambda - got time to review this? |
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.
Can you explain the difference between the with-cosine-distance
version and the one without? What's the difference in code? http://github.com/scikit-learn-contrib/hdbscan does not seem to be the upstream repo of hdbscan-with-cosine-distance
.
propagatedBuildInputs = [ cython numpy scipy scikitlearn ]; | ||
|
||
meta = with lib; { | ||
description = "HDBSCAN - Hierarchical Density-Based Spatial Clustering of Applications with Noise. HDBSCAN is a clustering algorithm with a scikit-learn compatible API; it doesn't require defining the number of clusters sought, and fares well with oddly shaped clusters."; |
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 to long, might be used as longDescription
. Please have a look at https://nixos.org/nixpkgs/manual/#sec-standard-meta-attributes.
propagatedBuildInputs = [ cython numpy scipy scikitlearn ]; | ||
|
||
meta = with lib; { | ||
description = "HDBSCAN - Hierarchical Density-Based Spatial Clustering of Applications with Noise. HDBSCAN is a clustering algorithm with a scikit-learn compatible API; it doesn't require defining the number of clusters sought, and fares well with oddly shaped clusters."; |
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.
Too long as well.
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.
Should have learned this by now, but its somehow counter-intuitive; fixed now.
}; | ||
|
||
# No tests in archive | ||
doCheck = false; |
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.
Can we fetch from GitHub instead and use something like nostetests -s hdbscan
as the checkPhase
?
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.
Done, but checks are in installCheck instead.
@dotlambda - I asked around and it turns out hdbscan-with-cosine-distance is deprecated since its merged back with the main package; I removed it from this PR. |
src = fetchFromGitHub { | ||
owner = "scikit-learn-contrib"; | ||
repo = "hdbscan"; | ||
rev = "51fd5ed225d971daa7658d94814c8237a75a03e4"; |
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.
That's not the revision for tag 0.8.12.
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.
Hmm I have always been taking the latest revision instead of the tags; I'll keep an eye for it now. Should be fixed now.
src = fetchFromGitHub { | ||
owner = "scikit-learn-contrib"; | ||
repo = "hdbscan"; | ||
rev = "12c301b03ca82f66e09a1e7ef9a8b6dd9265b1ce"; |
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.
You should use rev = version;
.
@GrahamcOfBorg python2.pkgs.hdbscan python3.pkgs.hdbscan |
@dotlambda - should be okay now, unless there are other issues. |
@GrahamcOfBorg build python2.pkgs.hdbscan python3.pkgs.hdbscan |
Failure on x86_64-linux (full log) Attempted: python2.pkgs.hdbscan, python3.pkgs.hdbscan Partial log (click to expand)
|
Failure on aarch64-linux (full log) Attempted: python2.pkgs.hdbscan, python3.pkgs.hdbscan Partial log (click to expand)
|
The hash seems to be wrong. |
@dotlambda well I did think it was weird when I replaced the |
@dotlambda numpy fixes are in so I reverted to fetchPypi and enabled the tests. I think its ready now. |
@GrahamcOfBorg build python2.pkgs.hdbscan python3.pkgs.hdbscan |
|
||
checkInputs = [ nose ]; | ||
|
||
installCheck = '' |
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 should be checkPhase
(which is actually installCheckPhase
for python packages).
Failure on aarch64-linux (full log) Attempted: python2.pkgs.hdbscan, python3.pkgs.hdbscan Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: python2.pkgs.hdbscan, python3.pkgs.hdbscan Partial log (click to expand)
|
@dotlambda - using |
@GrahamcOfBorg build python2.pkgs.hdbscan python3.pkgs.hdbscan |
Success on x86_64-linux (full log) Attempted: python2.pkgs.hdbscan, python3.pkgs.hdbscan Partial log (click to expand)
|
Failure on aarch64-linux (full log) Attempted: python2.pkgs.hdbscan, python3.pkgs.hdbscan Partial log (click to expand)
|
Initial packaging of the python HDBSCAN module and the related variant HDBSCAN with cosine distance.
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)