Skip to content
#

scikit-learn

scikit-learn logo

scikit-learn is a widely-used Python module for classic machine learning. It is built on top of SciPy.

Here are 2,930 public repositories matching this topic...

Stoneww
Stoneww commented Dec 26, 2018

Describe the bug
can't find "from sklearn.cross_validation import train_test_split" in Latest version scikit-learn
To Reproduce
Steps to reproduce the behavior:

  • Day1
  • Step 5: Splitting the datasets into training sets and Test sets
  • Can't find "from sklearn.cross_validation import train_test_split" in Latest version scikit-learn**

**Desktop (please complete the following infor

2313499
2313499 commented Mar 2, 2019

I was having a very hard time figuring out

fill = A.stack().mean()
A.add(B, fill_value=fill)

fill = 4.5. However I computed a value of 3.2 because I was taking the mean from the column of A not the DataFrame A.
This coming after the Indexing chapter where "explicit is better than implicit." I was thinking that this should be a little more explicit.

seonpy
seonpy commented Jun 5, 2019

In Transformation Pipeline make class DataFrameSelector for custom transformation and call DataFrameSelector(num_attribs) it show
TypeError: object() takes no parameters
and same with CombinedAttributesAdder
i m using colab

from sklearn.base import BaseEstimator , TransformerMixin
class DataFrameSelector(BaseEstimator,TransformerMixin):
  def _init_(self,attribute_names):
  
donnemartin
donnemartin commented Jul 1, 2015

"Bokeh is a Python interactive visualization library that targets modern web browsers for presentation. Its goal is to provide elegant, concise construction of novel graphics in the style of D3.js, but also deliver this capability with high-performance interactivity over very large or streaming datasets. Bokeh can help anyone who would like to quickly and easi

pranavsharma
pranavsharma commented Feb 27, 2020

Several parts of the op sec like the main op description, attributes, input and output descriptions become part of the binary that consumes ONNX e.g. onnxruntime causing an increase in its size due to strings that take no part in the execution of the model or its verification.

Setting __ONNX_NO_DOC_STRINGS doesn't really help here since (1) it's not used in the SetDoc(string) overload (s

TomNicholas
TomNicholas commented Dec 17, 2019

Hi, I'm trying to visualise the graph involved when xarray writes to a netcdf file, but no visualisation is appearing.

import dask
import xarray

ds = xarray.Dataset({'a': 0})
task = ds.to_netcdf('dat.nc',compute=False)
task.compute()
print(task)
task.visualise(filename='netcdf.svg')  # This file is never produced


def inc(x):
    return x + 1

z = dask.delayed(inc)(1)
cfregly
cfregly commented Apr 17, 2019
  File "/root/miniconda3/bin/pipeline", line 11, in <module>
    sys.exit(_main())
  File "/root/miniconda3/lib/python3.7/site-packages/cli_pipeline/cli_pipeline.py", line 5734, in _main
    _fire.Fire()
  File "/root/miniconda3/lib/python3.7/site-packages/fire/core.py", line 127, in Fire
    component_trace = _Fire(component, args, context, name)
  Fil
cli
yellowbrick
bbengfort
bbengfort commented Feb 8, 2020

We have a minor documentation conflict where the :class:~yellowbrick.regressor.residuals.PredictionError directive in our documentation is not able to resolve the link to the API documentation. The issue is that we have the yellowbrick.regressor.residuals automodule in both peplot.rst and in residuals.rst so the documentation doesn't know which one to link to. The solutions that I can se

hermidalc
hermidalc commented Jan 10, 2020

RFE/RFECV are not only feature selectors (SelectorMixin) but also classifiers/regressors (MetaEstimatorMixin), though ELI5 explain_weights doesn't support them as classifiers/regressors. The final fit of an RFE/RFECV object is a fitted estimator with either rfe.estimator_.coef_ or rfe.estimator_.feature_importances_ and in sklearn you do not usually follow up RFE/RFECV with another classifier

StrikerRUS
StrikerRUS commented Oct 18, 2019

I'm sorry if I missed this functionality, but CLI version hasn't it for sure (I saw the related code only in generate_code_examples.py). I guess it will be very useful to eliminate copy-paste phase, especially for large models.

Of course, piping is a solution, but not for development in Jupyter Notebook, for example.

Created by David Cournapeau

Released January 05, 2010

Latest release 2 months ago

Repository
scikit-learn/scikit-learn
Website
scikit-learn.org
Wikipedia
Wikipedia

Related Topics

python scikit
You can’t perform that action at this time.