liveBook · Manning

SFrame

As explained in Grokking Machine Learning

A tabular data structure in Turi Create for storing and manipulating rows and columns of data.

An SFrame is Turi Create’s main data structure for storing tabular data. Its rows and columns can represent records and features, such as houses and their prices. section 3.5

data = tc.SFrame('Hyderabad.csv')

Load the Hyderabad housing data from a CSV file into an SFrame. section 3.5

Table 3.3 The first five rows and seven columns of the Hyderabad housing prices dataset (view table figure)

Price

Area

No. of Bedrooms

Resale

MaintenanceStaff

Gymnasium

SwimmingPool

30000000

3340

4

0

1

1

1

7888000

1045

2

0

0

1

1

4866000

1179

2

0

0

1

1

8358000

1675

3

0

0

0

0

6845000

1670

3

0

1

1

1

Sample housing records show how house details are organized into rows and feature columns. section 3.5

SFrames can also be created from a dictionary of columns, as with the small dataset used to train a perceptron classifier. section 5.4

How Grokking Machine Learning covers it

How deep it goes
Defines SFrame as Turi Create’s main data-storage object and demonstrates CSV and dictionary construction, without detailing other operations.
Examples
Uses Hyderabad housing records and an alien-word classification dataset to demonstrate CSV- and dictionary-based construction.
What you can do after
Operate/configure it by loading a CSV or constructing an SFrame from dictionary columns.
How it connects
Connects SFrame to Turi Create, linear regression, and logistic classification.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Grokking Machine Learning. The section links point to the parts of the book it draws on.