[scikit-learn] Creating dataset

Alex Levin salexln at gmail.com
Sun Nov 8 07:05:29 EST 2020


Guillaume, I only meant that he can do it locally :)
submitting that would be a bad idea

On Sun, Nov 8, 2020 at 2:03 PM Guillaume Lemaître <g.lemaitre58 at gmail.com>
wrote:

> I would not recommend the solution of Alex. Do not modify the scikit-learn
> source code.
> Write it in your own Python module.
>
> But most probably the solution of Nicolas should be enough for 99% of the
> use-cases.
>
> Cheers,
>
> On Sun, 8 Nov 2020 at 12:41, Alex Levin <salexln at gmail.com> wrote:
>
>> Hi Mahmood
>> You can add your data set to `datasets/data` and then implement
>> `load_my_data` function in `datasets/_base.py`
>> Also register it in `datasets/__init__.py`
>>
>> On Sun, Nov 8, 2020 at 1:24 PM Mahmood Naderan <mahmood.nt at gmail.com>
>> wrote:
>>
>>> Hi,
>>> I have created an input file similar to iris data set. That is something
>>> like this:
>>>
>>> 0.1,0.2,0.3,0.4,M1
>>> ...
>>>
>>> I want to know how I can create my own dataset similar to the following
>>> lines?
>>>
>>> from sklearn.datasets import load_iris
>>> iris = load_iris()
>>>
>>>
>>> Regards,
>>> Mahmood
>>>
>>>
>>> _______________________________________________
>>> scikit-learn mailing list
>>> scikit-learn at python.org
>>> https://mail.python.org/mailman/listinfo/scikit-learn
>>>
>> _______________________________________________
>> scikit-learn mailing list
>> scikit-learn at python.org
>> https://mail.python.org/mailman/listinfo/scikit-learn
>>
>
>
> --
> Guillaume Lemaitre
> Scikit-learn @ Inria Foundation
> https://glemaitre.github.io/
> _______________________________________________
> scikit-learn mailing list
> scikit-learn at python.org
> https://mail.python.org/mailman/listinfo/scikit-learn
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.python.org/pipermail/scikit-learn/attachments/20201108/45f09f2e/attachment.html>


More information about the scikit-learn mailing list