Giter VIP home page Giter VIP logo

Comments (10)

APandaInFjord avatar APandaInFjord commented on September 5, 2024

Me too!

from mord.

boshokor avatar boshokor commented on September 5, 2024

so am I

from mord.

S-Sanaz avatar S-Sanaz commented on September 5, 2024

Same goes for me!

from mord.

jeffols avatar jeffols commented on September 5, 2024

This should be fixed. Please verify.

from mord.

S-Sanaz avatar S-Sanaz commented on September 5, 2024

Now I get this error:


TypeError Traceback (most recent call last)
in ()
3 from sklearn import linear_model, metrics, preprocessing
4
----> 5 data = load_housing()
6 features = data.data
7

/home/sanaz/anaconda2/lib/python2.7/site-packages/mord/datasets/base.pyc in load_housing()
48 '''
49 index = np.asarray(range(0, data.shape[0])).
---> 50 repeat(data.ix[:,'Freq'].values)
51 data = data.ix[index,:]
52 features = ('Infl', 'Type', 'Cont')

TypeError: Cannot cast array data from dtype('int64') to dtype('int32') according to the rule 'safe'

from mord.

extrospective avatar extrospective commented on September 5, 2024

If I use "pip install mord" then I will get this error still. Version 0.6

If I run "pip install -U 'git+https://github.com/fabianp/mord'" then I do not get this error. Version 0.6.

Does it make sense to bump the version # so it is clear that the version from github is not matching what is found with pip install?

from mord.

kengentenerende avatar kengentenerende commented on September 5, 2024

change the path of the file where it can access the mord.datasets.base

from mord.

fabianp avatar fabianp commented on September 5, 2024

from mord.

zysNLP avatar zysNLP commented on September 5, 2024

I solved this problem, this is the way:
First, download this github repo alone and modify the document "mord" to "mords". Make sure you are in a python IDE not terminal.
Second, find mord-master/mords/datasets/base.py in your computer and save words like "/home/zys/Documents/works/githubs/mord-master/mords/datasets/", you know what I mean. Copy these to base.py line 32 and replace "file" with them, we don' t need whatever file!
Then execute all base.py so get funtion load_housing.
Lastly, turn your work path to your examples/houring.py and comment out line 2.
So be it!

Alternatively, I modify line 2 to "from mords.datasets.tests.base import load_housing" attention this mords but still ModuleNotFoundError: No module named 'mords.datasets.tests.base'. I think there maybe better ways to realize this.

from mord.

SysuCharon avatar SysuCharon commented on September 5, 2024

In project root dir
cp examples/housing.py .
python housing.py

from mord.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.