fix output

This commit is contained in:
s444417 2022-05-18 10:57:49 +02:00
parent 5ad6b81959
commit b216454b77
3 changed files with 428 additions and 4 deletions

View File

@ -4998,3 +4998,275 @@
0
0
0
0
0
0
1
1
0
0
0
1
0
1
1
0
0
1
1
0
0
0
1
1
1
1
1
1
0
0
0
0
1
0
1
1
1
0
1
1
0
0
0
0
0
1
0
0
1
0
0
1
0
1
0
0
0
1
1
0
1
1
0
1
1
1
0
0
0
0
0
0
0
1
0
0
1
0
0
1
1
1
1
0
1
0
1
0
1
0
0
0
0
1
0
0
0
0
1
1
1
1
1
0
1
0
1
1
1
0
1
0
0
0
0
0
1
0
1
0
1
0
1
0
0
0
1
1
0
0
0
1
0
0
1
0
1
1
1
0
0
1
0
0
1
1
0
0
1
0
1
1
0
0
1
1
0
1
1
0
0
1
0
1
1
1
0
0
0
0
0
1
0
1
1
0
1
0
0
0
0
1
1
1
0
0
0
1
1
1
0
0
0
0
1
1
0
1
1
1
1
0
1
0
1
1
1
1
0
0
1
0
0
1
0
0
0
1
1
0
0
0
0
0
0
0
1
1
1
1
0
0
1
0
1
1
0
0
1
1
1
1
1
1
0
0
1
0
0
1
1
0
0
0
0
0
0
1
1
0
0
0
0
1
0
0
1
0
0
1
1
1
0
0
1

1 0
4998 0
4999 0
5000 0
5001 0
5002 0
5003 0
5004 1
5005 1
5006 0
5007 0
5008 0
5009 1
5010 0
5011 1
5012 1
5013 0
5014 0
5015 1
5016 1
5017 0
5018 0
5019 0
5020 1
5021 1
5022 1
5023 1
5024 1
5025 1
5026 0
5027 0
5028 0
5029 0
5030 1
5031 0
5032 1
5033 1
5034 1
5035 0
5036 1
5037 1
5038 0
5039 0
5040 0
5041 0
5042 0
5043 1
5044 0
5045 0
5046 1
5047 0
5048 0
5049 1
5050 0
5051 1
5052 0
5053 0
5054 0
5055 1
5056 1
5057 0
5058 1
5059 1
5060 0
5061 1
5062 1
5063 1
5064 0
5065 0
5066 0
5067 0
5068 0
5069 0
5070 0
5071 1
5072 0
5073 0
5074 1
5075 0
5076 0
5077 1
5078 1
5079 1
5080 1
5081 0
5082 1
5083 0
5084 1
5085 0
5086 1
5087 0
5088 0
5089 0
5090 0
5091 1
5092 0
5093 0
5094 0
5095 0
5096 1
5097 1
5098 1
5099 1
5100 1
5101 0
5102 1
5103 0
5104 1
5105 1
5106 1
5107 0
5108 1
5109 0
5110 0
5111 0
5112 0
5113 0
5114 1
5115 0
5116 1
5117 0
5118 1
5119 0
5120 1
5121 0
5122 0
5123 0
5124 1
5125 1
5126 0
5127 0
5128 0
5129 1
5130 0
5131 0
5132 1
5133 0
5134 1
5135 1
5136 1
5137 0
5138 0
5139 1
5140 0
5141 0
5142 1
5143 1
5144 0
5145 0
5146 1
5147 0
5148 1
5149 1
5150 0
5151 0
5152 1
5153 1
5154 0
5155 1
5156 1
5157 0
5158 0
5159 1
5160 0
5161 1
5162 1
5163 1
5164 0
5165 0
5166 0
5167 0
5168 0
5169 1
5170 0
5171 1
5172 1
5173 0
5174 1
5175 0
5176 0
5177 0
5178 0
5179 1
5180 1
5181 1
5182 0
5183 0
5184 0
5185 1
5186 1
5187 1
5188 0
5189 0
5190 0
5191 0
5192 1
5193 1
5194 0
5195 1
5196 1
5197 1
5198 1
5199 0
5200 1
5201 0
5202 1
5203 1
5204 1
5205 1
5206 0
5207 0
5208 1
5209 0
5210 0
5211 1
5212 0
5213 0
5214 0
5215 1
5216 1
5217 0
5218 0
5219 0
5220 0
5221 0
5222 0
5223 0
5224 1
5225 1
5226 1
5227 1
5228 0
5229 0
5230 1
5231 0
5232 1
5233 1
5234 0
5235 0
5236 1
5237 1
5238 1
5239 1
5240 1
5241 1
5242 0
5243 0
5244 1
5245 0
5246 0
5247 1
5248 1
5249 0
5250 0
5251 0
5252 0
5253 0
5254 0
5255 1
5256 1
5257 0
5258 0
5259 0
5260 0
5261 1
5262 0
5263 0
5264 1
5265 0
5266 0
5267 1
5268 1
5269 1
5270 0
5271 0
5272 1

View File

@ -194,14 +194,14 @@
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": 14,
"metadata": {},
"outputs": [],
"source": [
"testXPath = \"./dev-0/in.tsv.xz\"\n",
"testYPath = \"./dev-0/out.tsv\"\n",
"\n",
"testX = pd.read_csv(testXPath, sep='\\t', nrows=nrows, header=None)\n",
"testX = pd.read_csv(testXPath, sep='\\t', header=None)\n",
"\n",
"# testY = pd.read_csv(testYPath, sep='\\t', nrows=nrows, header=None)\n",
"testXtfidfVector = vectorizer.transform(testX[0])\n"
@ -209,14 +209,14 @@
},
{
"cell_type": "code",
"execution_count": 13,
"execution_count": 15,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[0 1 0 ... 1 1 1]\n"
"[0 1 1 ... 0 0 0]\n"
]
}
],

View File

@ -4998,3 +4998,155 @@
1
1
1
1
1
0
1
0
1
0
0
0
0
1
1
0
1
0
1
1
0
0
1
0
1
0
0
0
0
0
1
1
1
0
0
1
0
1
1
1
0
1
1
1
0
0
1
0
0
1
1
1
1
0
0
0
0
1
1
1
1
0
0
1
1
0
1
1
0
1
0
1
1
0
0
0
1
0
0
0
0
0
1
0
1
1
0
0
0
0
0
0
1
0
0
0
1
1
1
0
0
1
0
0
0
0
1
0
0
1
1
1
1
0
1
1
0
0
0
1
1
0
0
0
0
0
1
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
1

1 0
4998 1
4999 1
5000 1
5001 1
5002 1
5003 0
5004 1
5005 0
5006 1
5007 0
5008 0
5009 0
5010 0
5011 1
5012 1
5013 0
5014 1
5015 0
5016 1
5017 1
5018 0
5019 0
5020 1
5021 0
5022 1
5023 0
5024 0
5025 0
5026 0
5027 0
5028 1
5029 1
5030 1
5031 0
5032 0
5033 1
5034 0
5035 1
5036 1
5037 1
5038 0
5039 1
5040 1
5041 1
5042 0
5043 0
5044 1
5045 0
5046 0
5047 1
5048 1
5049 1
5050 1
5051 0
5052 0
5053 0
5054 0
5055 1
5056 1
5057 1
5058 1
5059 0
5060 0
5061 1
5062 1
5063 0
5064 1
5065 1
5066 0
5067 1
5068 0
5069 1
5070 1
5071 0
5072 0
5073 0
5074 1
5075 0
5076 0
5077 0
5078 0
5079 0
5080 1
5081 0
5082 1
5083 1
5084 0
5085 0
5086 0
5087 0
5088 0
5089 0
5090 1
5091 0
5092 0
5093 0
5094 1
5095 1
5096 1
5097 0
5098 0
5099 1
5100 0
5101 0
5102 0
5103 0
5104 1
5105 0
5106 0
5107 1
5108 1
5109 1
5110 1
5111 0
5112 1
5113 1
5114 0
5115 0
5116 0
5117 1
5118 1
5119 0
5120 0
5121 0
5122 0
5123 0
5124 1
5125 0
5126 1
5127 0
5128 0
5129 0
5130 1
5131 0
5132 0
5133 0
5134 0
5135 0
5136 0
5137 0
5138 0
5139 0
5140 1
5141 0
5142 0
5143 0
5144 1
5145 0
5146 0
5147 0
5148 0
5149 0
5150 0
5151 0
5152 1