Update README.md
Browse files
README.md
CHANGED
@@ -21,21 +21,21 @@ It achieves the following results on the evaluation set:
|
|
21 |
|
22 |
## Model description
|
23 |
|
24 |
-
train_df = pd.read_csv('/content/drive/My Drive/DATASETS/wiki_toxic/train.csv')
|
25 |
-
validation_df = pd.read_csv('/content/drive/My Drive/DATASETS/wiki_toxic/validation.csv')
|
26 |
-
#test_df = pd.read_csv('/content/drive/My Drive/wiki_toxic/test.csv')
|
27 |
-
frac = 0.9
|
28 |
-
#TRAIN
|
29 |
-
print(train_df.shape[0]) # get the number of rows in the dataframe
|
30 |
-
rows_to_delete = train_df.sample(frac=frac, random_state=1)
|
31 |
-
train_df = train_df.drop(rows_to_delete.index)
|
32 |
-
print(train_df.shape[0])
|
33 |
-
|
34 |
-
#VALIDATION
|
35 |
-
print(validation_df.shape[0]) # get the number of rows in the dataframe
|
36 |
-
rows_to_delete = validation_df.sample(frac=frac, random_state=1)
|
37 |
-
validation_df = validation_df.drop(rows_to_delete.index)
|
38 |
-
print(validation_df.shape[0])
|
39 |
|
40 |
## Intended uses & limitations
|
41 |
|
|
|
21 |
|
22 |
## Model description
|
23 |
|
24 |
+
train_df = pd.read_csv('/content/drive/My Drive/DATASETS/wiki_toxic/train.csv')\
|
25 |
+
validation_df = pd.read_csv('/content/drive/My Drive/DATASETS/wiki_toxic/validation.csv')\
|
26 |
+
#test_df = pd.read_csv('/content/drive/My Drive/wiki_toxic/test.csv')\
|
27 |
+
frac = 0.9\
|
28 |
+
#TRAIN\
|
29 |
+
print(train_df.shape[0]) # get the number of rows in the dataframe\
|
30 |
+
rows_to_delete = train_df.sample(frac=frac, random_state=1)\
|
31 |
+
train_df = train_df.drop(rows_to_delete.index)\
|
32 |
+
print(train_df.shape[0])\
|
33 |
+
|
34 |
+
#VALIDATION\
|
35 |
+
print(validation_df.shape[0]) # get the number of rows in the dataframe\
|
36 |
+
rows_to_delete = validation_df.sample(frac=frac, random_state=1)\
|
37 |
+
validation_df = validation_df.drop(rows_to_delete.index)\
|
38 |
+
print(validation_df.shape[0])\
|
39 |
|
40 |
## Intended uses & limitations
|
41 |
|