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
java
pdf
reflection
json.net
youtube-dl
google-docs
gis
adb
sqlite-net-extensions
analysis
paw-app
c#-2.0
echarts
iggrid
google-translate
ssl-client-authentication
usergrid
percona
serverless-framework
worldwind
facebook-page
flux
claims-based-identity
vlsi
dynamic-featured-image
bootstrap-material-design
entitlements
jspm
atlassian-crucible
bpel
directx-10
exuberant-ctags
lxd
ghost4j
force-layout
swisscomdev
hockeyapp
libvpx
splice
user-controls
dism
core-plot
firebase-admin
estimote
bootstrap-dialog
chain-builder
strptime
rails-routing
clean-architecture
ionicons
recursive-datastructures
colorama
nodebb
dtexec
orthogonal
account-kit
watchconnectivity
url-pattern
color-picker
nsfilemanager
paypal-express
bstr
contact-list
make-install
bluemix-app-scan
php-internals
content-length
graph-drawing
iiviewdeckcontroller
lustre
block-device
winddk
id3v2
zend-route
message-driven-bean
html5-notifications
mysqltuner
jsctypes
odata4j
jplaton
rabl
comaddin
drools-planner
e4x
mt
datawindow
ticoredatasync
semantic-diff
boost-filesystem
deobfuscation
actionview
cxxtest
adrotator
swing-app-framework
zend-decorators
dbisam
.net-1.0

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