Comments (10)
Me too!
from mord.
so am I
from mord.
Same goes for me!
from mord.
This should be fixed. Please verify.
from mord.
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.
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.
change the path of the file where it can access the mord.datasets.base
from mord.
from mord.
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.
In project root dir
cp examples/housing.py .
python housing.py
from mord.
Related Issues (13)
- Obtaining boundaries
- I want to know how to execute parallel lines test? Before going on Oridnal logistic Regression, we should go on parallel lines test. But I don't find method in python.
- Feature request: `predict_proba()` method would be useful HOT 2
- Release 0.5 HOT 6
- predict_proba() sometimes gives negative values HOT 1
- Unable to determine build deps if numpy not installed
- AttributeError: module 'mord' has no attribute 'MulticlassLogistic' HOT 2
- Only one intercept value HOT 1
- LAD method predicts not existing classes in training data HOT 1
- Odds Ratio for Threshold-based method
- missing significance values for regression and coefficients ,R^2 seems to be off boundaries HOT 1
- Coefficients differs from statsmodel when there is no regularization (alpha = 0) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mord.