-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathf5
More file actions
66 lines (37 loc) · 1.86 KB
/
f5
File metadata and controls
66 lines (37 loc) · 1.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
removed:
BidId str unique
BidFloor int same
Timestamp int ignored
Age int not enuf data
Gender str --do--
Carrier str
DeviceId str all 0
Latitude str
Longitude str
Zipcode int
GeoType str
kept:
TrafficType str: site/app
PublisherId str: brand value of publisher
AppSiteId str : brand value of app/site
AppSiteCategory str: arts,travel: genre
Position str: top/bottom
OS str
OSVersion str
DeviceType str
DeviceIP str (perhaps!!)
Country str
CampaignId int
CreativeId int
CreativeType int
CreativeCategory str
ExchangeBid float
model=graphlab.logistic_classifier.create(train_data,target='sentiment',features=['TrafficType','PublisherId','AppSiteId','AppSiteCategory','Position','OS','OSVersion','DeviceType','DeviceIP','Country','CampaignId','CreativeId','CreativeType','CreativeCategory','ExchangeBid'],validation_set=test_data,max_iterations=500)
model=graphlab.random_forest_classifier.create(train_data,target='Outcome',features=['TrafficType','PublisherId','AppSiteId','AppSiteCategory','Position','OS','OSVersion','DeviceType','DeviceIP','Country','CampaignId','CreativeId','CreativeType','CreativeCategory','ExchangeBid'],validation_set=test_data,verbose=True)
graphlab.svm_classifier.create(train_data, target='sentiment',features=['TrafficType','PublisherId','AppSiteId','AppSiteCategory','Position','OS','OSVersion','DeviceType','DeviceIP','Country','CampaignId','CreativeType','CreativeCategory','ExchangeBid'], max_iterations=100, vadation_set=test_data, verbose=True)
model=graphlab.logistic_classifier.create(train_data,target='Outcome',features=['TrafficType','PublisherId','AppSiteId','AppSiteCategory','Position','OS','OSVersion','DeviceType','Country','CampaignId','CreativeId','CreativeType','CreativeCategory','ExchangeBid'],validation_set=test_data)
???
Model str
Manufacturer str
predict:
Outcome str