forked from 903group6/Pizza
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
27 lines (14 loc) · 752 Bytes
/
main.py
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
import produceModelsStatsandSubmission as masterPipe
#data sets
trainFile = 'resources/2-train-preprocessed-keys-added.json'
testFile = 'resources/test-preprocessed-keys-added.json'
#root for all models, results and submission files
modelOutpath = 'resources/models/'
#CREATE model and produce evaluation results
# The fields below should be updated to reflect the model and additional features included
import sklearn.svm as svm
classifier = svm.SVC(kernel='linear',class_weight = 'auto')
modelName = "TEST-TEST-SVM-Norm-linear-CLauto-Add-JJ-RB-NN-VB-SENTENCES"
directoryName = "SVM"
description = "8th March 2015 "
masterPipe.buildModels(classifier, modelName, directoryName, modelOutpath,description, [1,2,3,4,5],trainFile, testFile)