-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnew 2
51 lines (35 loc) · 1.49 KB
/
new 2
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
TrafficType str: site/app
PublisherId str: brand value of publisher
AppSiteId str : brand value of app/site
AppSiteCategory str: arts,travel: genre
DeviceType str
Country str
CampaignId int
CreativeCategory str
ExchangeBid float
model=graphlab.logistic_classifier.create(train_data,target='Outcome',features=['TrafficType','PublisherId','AppSiteId','AppSiteCategory','DeviceType','Country','CampaignId','CreativeCategory','ExchangeBid'],validation_set=test_data,max_iterations=500)
model=graphlab.logistic_classifier.create(train_data,target='Outcome',features=['TrafficType','DeviceType','CampaignId','CreativeCategory','ExchangeBid'],validation_set=test_data,max_iterations=500)
TrafficType,PublisherId,AppSiteId str
AppSiteCategory str
Position str
Timestamp int
OS str
OSVersion str
Model str
Manufacturer str
Carrier str
DeviceType str
DeviceId str
DeviceIP str
Country str
Latitude str
Longitude str
Zipcode int
GeoType str
CampaignId int
CreativeId int
CreativeType int
CreativeCategory str
ExchangeBid float
['']
model=graphlab.random_forest_classifier.create(train_data,target='Outcome',features=['TrafficType','PublisherId','AppSiteId','AppSiteCategory','Position','Timestamp','OS','OSVersion','Model','Manufacturer','Carrier','DeviceType','DeviceId','DeviceIP','Country','Latitude','Longitude','Zipcode','GeoType','CampaignId','CreativeId','CreativeType','CreativeCategory','ExchangeBid'],validation_set=test_data,max_iterations=5000,verbose=True)