forked from kubapok/retroc2
ver 3 full train set
This commit is contained in:
parent
9dfe8fe3b5
commit
78ae1c52a8
40000
dev-0/out.tsv
40000
dev-0/out.tsv
File diff suppressed because it is too large
Load Diff
5
main.py
5
main.py
@ -10,17 +10,12 @@ train_set = pd.read_table('train/train.tsv.xz', error_bad_lines=False, header=No
|
||||
dev_set = pd.read_table('dev-0/in.tsv', error_bad_lines=False, header=None, names=col_names[4:], quoting=csv.QUOTE_NONE,)
|
||||
test_set = pd.read_table('test-A/in.tsv', error_bad_lines=False, header=None, names=col_names[4:], quoting=csv.QUOTE_NONE,)
|
||||
|
||||
train_set = train_set.head(10000)
|
||||
|
||||
X_train = train_set['content']
|
||||
y_train = (train_set['start_date'] + train_set['end_date']) / 2
|
||||
|
||||
X_dev = dev_set['content']
|
||||
X_test = test_set['content']
|
||||
|
||||
print(dev_set)
|
||||
print(test_set)
|
||||
|
||||
print('Trenowanie modelu...')
|
||||
model = make_pipeline(TfidfVectorizer(), LinearRegression())
|
||||
model.fit(X_train, y_train)
|
||||
|
28440
test-A/out.tsv
28440
test-A/out.tsv
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user