theblackcat102 commited on
Commit
41d6eb4
·
1 Parent(s): 32d2a7f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +66 -2
README.md CHANGED
@@ -45,6 +45,70 @@ dataset_info:
45
  download_size: 311064786
46
  dataset_size: 566804417
47
  ---
48
- # Dataset Card for "crossvalidated-posts"
49
 
50
- [More Information needed](https://github.com/huggingface/datasets/blob/main/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
  download_size: 311064786
46
  dataset_size: 566804417
47
  ---
48
+ # Cross Validated / stats.stackexchange.com
49
 
50
+ ## Dataset Summary
51
+
52
+ This dataset contains all posts submitted to stats.stackexchange.com before the 30th of August 2023 formatted as **Markdown text**.<br>
53
+ The data is sourced from [Internet Archive StackExchange Data Dump](https://archive.org/download/stackexchange) and follows the format by [mikex86/stackoverflow-posts](https://huggingface.co/datasets/mikex86/stackoverflow-posts)
54
+
55
+ ## Dataset Structure
56
+
57
+ Each record corresponds to one post of a particular type.
58
+ Original ordering from the data dump is not exactly preserved due to parallelism in the script used to process the data dump.
59
+ The markdown content of each post is contained in the `Body` field. The license for a particular post is contained in the `ContentLicense` field.
60
+
61
+
62
+ ### Data Fields
63
+ ```typescript
64
+ {
65
+ Id: long,
66
+ PostTypeId: long, // 1=Question, 2=Answer, 3=Orphaned tag wiki, 4=Tag wiki excerpt, 5=Tag wiki, 6=Moderator nomination, 7=Wiki Placeholder, 8=Privilige Wiki
67
+ AcceptedAnswerId: long | null, // only present if PostTypeId=1
68
+ ParentId: long | null, // only present if PostTypeId=2
69
+ Score: long,
70
+ ViewCount: long | null,
71
+ Body: string | null,
72
+ Title: string | null,
73
+ ContentLicense: string | null,
74
+ FavoriteCount: long | null,
75
+ CreationDate: string | null,
76
+ LastActivityDate: string | null,
77
+ LastEditDate: string | null,
78
+ LastEditorUserId: long | null,
79
+ OwnerUserId: long | null,
80
+ Tags: array<string> | null
81
+ }
82
+ ```
83
+ Also consider the [StackExchange Datadump Schema Documentation](https://meta.stackexchange.com/questions/2677/database-schema-documentation-for-the-public-data-dump-and-sede), as all fields
84
+ have analogs in the original dump format.
85
+
86
+ ## How to use?
87
+
88
+ ```python
89
+ from datasets import load_dataset
90
+
91
+ # predownload full dataset
92
+ ds = load_dataset('theblackcat102/crossvalidated-posts', split='train')
93
+
94
+ # dataset streaming (will only download the data as needed)
95
+ ds = load_dataset('theblackcat102/crossvalidated-posts', split='train', streaming=True)
96
+
97
+ for sample in iter(ds): print(sample["Body"])
98
+ ```
99
+
100
+ ## How is the text stored?
101
+
102
+ The original Data Dump formats the "Body" field as HTML, using tags such as `<code>`, `<h1>`, `<ul>`, etc.
103
+ This HTML format has been converted to Markdown following [mikex86/stackoverflow-posts](https://huggingface.co/datasets/mikex86/stackoverflow-posts) conversion rule.
104
+
105
+ ```markdown
106
+ After differencing I saw that my constant/intercept is not statistically significant. Does anybody know how to fit the same model without the const term?
107
+ im using statsmodels.tsa.arima.model
108
+ To give a relative example I have: `ARIMA(data, order=(3,0,0))` an AR(3) model and say it that the second coefficient is insignificant. I can get rid of it by typing
109
+ ```
110
+ ARMA(data,order=([1, 3], 0, 0)
111
+ ```
112
+
113
+ but how can I get rid of coefficient??
114
+ ```