graphlab


calculating the root mean squared value and the average in graphlab


I have a dataframe of the format cp= [cars['car_models']=="chevy"]
How is it possible to get the average of cp?
have looked everywhere for how to this this. thanks for the help
As #papayawarrior said, SFrames don't have averages. SArrays (of type float/int) might have these.
>>> sf = gl.SFrame({"x":[1,2,3]}) # SFrame with a single column (SArray) x.
>>> sf["x"].mean() # sf["x"] grabs the SArray x, then we take its average.
2.0
If you want the root mean square error, you should also have two SArrays (maybe in the same SFrame). I don't know what a "root mean squared value" is.
import graphlab as gl
cars = gl.SFrame({
"car_models": ["chevy", "ford", "chevy"],
"targets": [1, 2, 3],
"predictions": [7, 9, 8]
})
cp = cars[cars["car_models"] == "chevy"]
rmse = gl.evaluation.rmse(cp["targets"], cp["predictions"])
The rmse in this example is 5.522680508593631 .

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
cakephp
json.net
q
google-docs
ojdbc
fancybox
gorm
reveal.js
etl
orchardcms
hex-editors
visual-studio-cordova
decomposition
seaborn
angular-ui
errorlevel
hammerspoon
pepper
underflow
uninstall
rst2pdf
minitab
instant-messaging
lightswitch-2013
google-cloud-endpoints-v2
contact-form
winrt-xaml-toolkit
framemaker
mozilla
google-api-nodejs-client
environment-modules
sequential
nssegmentedcontrol
swift3.0.2
document.write
opshub
nxlog
qcombobox
skeleton-css-boilerplate
flickr-api
komodoedit
clean-architecture
magma
snmptrapd
windows-iot-core-10
ifs
nbconvert
bind9
crosswalk-runtime
intrusion-detection
jwplayer7
essence
qgraphicsview
yaws
nessus
ios4
oauth2client
freedesktop.org
reactive-banana
cyclomatic-complexity
citrus-pay
purge
muse
emailrelay
createprocessasuser
sniffer
streambase
device-orientation
python-green
facebook-graph-api-v2.4
client-side-templating
xcode-6.2
preferences
funcunit
flexmojos
google-cloud-save
soundtouch
ruby-datamapper
comaddin
smtp-auth
ocunit
quickdialog
enter
punbb
external-accessory
infobox
f#-powerpack
servicehost
lang
cxxtest
blitz++
coda-slider
gallio
gamma
mozilla-prism
web-architecture
mtj
virtual-functions

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