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
maven
zeromq
dictionary
plot
iterator
portia
append
synchronization
google-translate
tomcat6
etl
windows-azure-storage
n-gram
event-handling
clearcase-ucm
worldwind
pc
crystal-reports-2008
lldb
swingx
swiftlint
uninstall
maxmind
buck
jspm
facebook-apps
primitive
skia
semantic-versioning
copying
serve
jquery-bootgrid
dynamics-crm-2013
code-search-engine
android-mediaprojection
password-encryption
turbogears
outlook-api
total-commander
reactive-cocoa-5
auto-update
angular-resource
rainbowtable
osx-mavericks
rails-routing
python-webbrowser
svmlight
brightcove
libusb-win32
sybase-asa
namecoin
akka-cluster
mcafee
topbeat
url-pattern
rotativa
mongocsharpdriver
impresspages
flash-cs5
nessus
iad
ios8-today-widget
intel-fortran
lemon
security-testing
mono-embedding
fluid-dynamics
sniffer
remobjects
clicktag
jsonpickle
tablelayout
issuu
document-classification
navigationservice
floating-point-precision
seed
ember-app-kit
lcs
http-unit
specification-pattern
path-separator
isnullorempty
reddot
coercion
servicehost
oncheckedchanged
telerik-scheduler
yslow
sortable-tables
sef
exchange-server-2003
temporal-database
ugc
lzh

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