Dataset Viewer
Auto-converted to Parquet Duplicate
id
stringlengths
8
9
chunk_id
stringlengths
8
9
text
stringclasses
6 values
start_text
int64
235
36k
stop_text
int64
559
36.1k
code
stringclasses
14 values
start_code
int64
356
8.04k
stop_code
int64
386
8.58k
__index_level_0__
int64
0
35
chap04-0
chap04-0
4 Implementing Text Classification Using Perceptron and Logistic Regression In the previous chapters we have discussed the theory behind the perceptron and logistic regression, including mathematical explanations of how and why they are able to learn from examples. In this chapter we will transition from math to co...
11,350
11,432
#!/usr/bin/env python # coding: utf-8 # # Binary Text Classification with Perceptron # In[1]: import random import numpy as np from tqdm.notebook import tqdm # set this variable to a number to be used as the random seed # or to None if you don't want to set a random seed seed = 1234 if seed is not None: rando...
5,070
5,166
0
chap04-1
chap04-1
4 Implementing Text Classification Using Perceptron and Logistic Regression In the previous chapters we have discussed the theory behind the perceptron and logistic regression, including mathematical explanations of how and why they are able to learn from examples. In this chapter we will transition from math to co...
16,510
16,556
#!/usr/bin/env python # coding: utf-8 # # Binary Text Classification with # # Logistic Regression Implemented from Scratch # In[1]: import random import numpy as np from tqdm.notebook import tqdm # set this variable to a number to be used as the random seed # or to None if you don't want to set a random seed see...
4,482
4,514
1
chap04-2
chap04-2
4 Implementing Text Classification Using Perceptron and Logistic Regression In the previous chapters we have discussed the theory behind the perceptron and logistic regression, including mathematical explanations of how and why they are able to learn from examples. In this chapter we will transition from math to co...
27,786
27,991
#!/usr/bin/env python # coding: utf-8 # # Multiclass Text Classification with # # Logistic Regression Implemented with PyTorch and CE Loss # First, we will do some initialization. # In[1]: import random import torch import numpy as np import pandas as pd from tqdm.notebook import tqdm # enable tqdm in pandas tqd...
2,684
2,750
2
chap04-3
chap04-3
4 Implementing Text Classification Using Perceptron and Logistic Regression In the previous chapters we have discussed the theory behind the perceptron and logistic regression, including mathematical explanations of how and why they are able to learn from examples. In this chapter we will transition from math to co...
16,420
16,500
#!/usr/bin/env python # coding: utf-8 # # Binary Text Classification with # # Logistic Regression Implemented from Scratch # In[1]: import random import numpy as np from tqdm.notebook import tqdm # set this variable to a number to be used as the random seed # or to None if you don't want to set a random seed see...
4,407
4,453
3
chap04-4
chap04-4
"4 \n\nImplementing Text Classification Using Perceptron and Logistic Regression \n\nIn the previous(...TRUNCATED)
9,407
9,479
"#!/usr/bin/env python\n# coding: utf-8\n\n# # Binary Text Classification with Perceptron\n\n# In[1](...TRUNCATED)
3,534
3,558
4
chap04-5
chap04-5
"4 \n\nImplementing Text Classification Using Perceptron and Logistic Regression \n\nIn the previous(...TRUNCATED)
10,827
10,931
"#!/usr/bin/env python\n# coding: utf-8\n\n# # Binary Text Classification with Perceptron\n\n# In[1](...TRUNCATED)
4,004
4,054
5
chap04-6
chap04-6
"4 \n\nImplementing Text Classification Using Perceptron and Logistic Regression \n\nIn the previous(...TRUNCATED)
23,684
24,252
"#!/usr/bin/env python\n# coding: utf-8\n\n# # Multiclass Text Classification with \n# # Logistic Re(...TRUNCATED)
1,551
1,715
6
chap04-7
chap04-7
"4 \n\nImplementing Text Classification Using Perceptron and Logistic Regression \n\nIn the previous(...TRUNCATED)
22,466
22,543
"#!/usr/bin/env python\n# coding: utf-8\n\n# # Multiclass Text Classification with \n# # Logistic Re(...TRUNCATED)
1,054
1,179
7
chap04-8
chap04-8
"4 \n\nImplementing Text Classification Using Perceptron and Logistic Regression \n\nIn the previous(...TRUNCATED)
8,010
8,094
"#!/usr/bin/env python\n# coding: utf-8\n\n# # Binary Text Classification with Perceptron\n\n# In[1](...TRUNCATED)
2,401
2,437
8
chap04-9
chap04-9
"4 \n\nImplementing Text Classification Using Perceptron and Logistic Regression \n\nIn the previous(...TRUNCATED)
19,082
19,452
"#!/usr/bin/env python\n# coding: utf-8\n\n# # Binary Text Classification with \n# # Logistic Regres(...TRUNCATED)
4,090
4,394
9
End of preview. Expand in Data Studio

Dataset Card for "metal-python-gentlenlp-explanatations"

More Information needed

Downloads last month
3