2021-01-25 08:26:54 +00:00
|
|
|
{ lib, isPy27, buildPythonPackage, fetchPypi, scikitlearn }:
|
2019-06-23 20:49:09 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mlrose";
|
2019-12-19 19:31:15 +00:00
|
|
|
version = "1.3.0";
|
2019-10-03 16:24:25 +01:00
|
|
|
disabled = isPy27;
|
2019-06-23 20:49:09 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-12-19 19:31:15 +00:00
|
|
|
sha256 = "cec83253bf6da67a7fb32b2c9ae13e9dbc6cfbcaae2aa3107993e69e9788f15e";
|
2019-06-23 20:49:09 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ scikitlearn ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed -i 's,sklearn,scikit-learn,g' setup.py
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-06-23 20:49:09 +01:00
|
|
|
description = "Machine Learning, Randomized Optimization and SEarch";
|
|
|
|
homepage = "https://github.com/gkhayes/mlrose";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
};
|
|
|
|
}
|