graphlab


Missing data in SFrame


I'm trying to use graphlab.linear_regression.create and I get an error that I have missing data in the column I am using to predict my model and it says to use dropna to fix the problem. I use dropna but it doesn't get rid of any of the rows missing values. I am typing ti_train.dropna() to try and drop the missing data and age_model = graphlab.linear_regression.create(ti_train, target='Survived', features=['Age'],validation_set=None) for my linear regression. I've also tried fillna with ti_train.fillna('Age', np.median(ti_train['Age'])). I got my data by reading a csv file into an SFrame. Thank you
just executing this code won't modify your sframe (assuming you are running ipython notebook with sframe)
ti_train.fillna('Age', np.median(ti_train['Age']))
Have you tried this (LHS for modifying the sframe) and then try running regression
ti_train = ti_train.fillna('Age', np.median(ti_train['Age']))

Related Links

SFrame Eats all RAM and crashes
GraphLab Create crashing kernel running item_similarity_recommender on large dataset
IOError when uploading the data
Graphlab - How to set the number of trees parameter in random forest classifier
Missing data in SFrame
Graphlab commercial license
Swapping Values in an SFrame by Column
Graphlab sframe apply function not operating on more than 10 rows
GraphLab Create creates (gl-env) icons that do not function
GraphLab Create Launcher Installation Error Windows: There was an error creating the “gl-env” conda environment
Error updating GraphLab Create dependencies: AttributeError: 'module' object has no attribute 'get_dependencies'
Can't run graphlab.get_dependencies()
Graphlab Create setup error: graphlab.get_dependencies() results in BadZipFile error
calculating the root mean squared value and the average in graphlab
How can I use `apply` with a function that takes multiple inputs
How to add 2 or more kinds of Vertices into SGraph in GraphLab Create?

Categories

HOME
java
listview
activiti
azure-data-factory
kde
google-play
comparison
plot
platform-builder
c#-2.0
ip
fancybox
cross-validation
postgres-xl
windows-phone-7
fallback
libtiff
graphlab
serilog
paging
java-3d
tibco-mdm
blazemeter
vlsi
qhull
url-scheme
applozic
xacml
microsoft-chart-controls
javascriptcore
key-value-observing
twilio-api
protovis
gammu
ghost4j
plsql-psp
neuroscience
event-driven
user-controls
optix
core-plot
google-closure
keydown
user-accounts
sage-one
lowpass-filter
windows-mobile-6.5
hittest
color-profile
sonarlint-vs
autorest
multiple-regression
bluemix-app-scan
livequery
design-by-contract
msys
bridge.net
cdt
article
htmlcleaner
marmalade
fmod
dir
runtime.exec
flashvars
ocunit
gil
nsnetservice
ticoredatasync
chrono
custom-backend
hirefire
hamachi
krl
mysql-error-1005
google-friend-connect
nhibernate.search
gacutil

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App