output for train[:100000]

This commit is contained in:
Tomasz Grzybowski 2021-07-05 23:11:10 +02:00
parent 9996284436
commit 48290be53c
4 changed files with 5350 additions and 14 deletions

View File

@ -2,7 +2,7 @@
"cells": [ "cells": [
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 7, "execution_count": 1,
"id": "fc8ba0a3", "id": "fc8ba0a3",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
@ -29,16 +29,38 @@
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
"with open(\"train/in.tsv\") as f:\n", "with open(\"train/in.tsv\", encoding='utf-8') as f:\n",
" x_train = f.readlines()\n", " x_train = f.readlines()\n",
"\n", "\n",
"with open(\"train/expected.tsv\") as f:\n", "\n",
"with open(\"train/expected.tsv\", encoding='utf-8') as f:\n",
" y_train = f.readlines()" " y_train = f.readlines()"
] ]
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 3, "execution_count": 3,
"id": "e7630105",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"289579"
]
},
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"len(x_train)"
]
},
{
"cell_type": "code",
"execution_count": 4,
"id": "f6bd3ba5", "id": "f6bd3ba5",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
@ -48,28 +70,70 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 4, "execution_count": 3,
"id": "eefd7b1b", "id": "eefd7b1b",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
"with open(\"dev-0/in.tsv\") as f:\n", "with open(\"svm/in.tsv\", encoding='utf-8') as f:\n",
" x_dev = f.readlines()" " x_dev = f.readlines()\n"
] ]
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 5, "execution_count": 4,
"id": "effadd92",
"metadata": {},
"outputs": [],
"source": [
"x_train = x_train[:100000]"
]
},
{
"cell_type": "code",
"execution_count": 7,
"id": "3981d3cb",
"metadata": {},
"outputs": [],
"source": [
"y_train = y_train[:100000]"
]
},
{
"cell_type": "code",
"execution_count": 9,
"id": "bef853f6",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"100000"
]
},
"execution_count": 9,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"\n",
"len(y_train)"
]
},
{
"cell_type": "code",
"execution_count": 10,
"id": "6696a4d0", "id": "6696a4d0",
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
"data": { "data": {
"text/plain": [ "text/plain": [
"array([1, 0, 0, ..., 0, 0, 1])" "array([1, 0, 0, ..., 0, 0, 0], dtype=int64)"
] ]
}, },
"execution_count": 5, "execution_count": 10,
"metadata": {}, "metadata": {},
"output_type": "execute_result" "output_type": "execute_result"
} }
@ -81,7 +145,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 8, "execution_count": 11,
"id": "5488f657", "id": "5488f657",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
@ -91,7 +155,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": null, "execution_count": 12,
"id": "ddbb1608", "id": "ddbb1608",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
@ -101,7 +165,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": null, "execution_count": 13,
"id": "b286bec3", "id": "b286bec3",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
@ -111,7 +175,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": null, "execution_count": 14,
"id": "0b1fac69", "id": "0b1fac69",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],

5272
svm/out.tsv Normal file

File diff suppressed because it is too large Load Diff

View File

@ -289576,4 +289576,4 @@
0 0
0 0
0 0
1 1
Can't render this file because it is too large.

BIN
train/in.tsv.xz Normal file

Binary file not shown.