Skip to content

Commit 13f070f

Browse files
committed
specific content when demo data is used in synthetic data
1 parent a49cafa commit 13f070f

File tree

4 files changed

+20
-6
lines changed

4 files changed

+20
-6
lines changed

src/assets/synthetic-data.tsx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -129,12 +129,14 @@ def run():
129129
{'type': 'heading', 'data': sdgMethod}
130130
))
131131
if isDemo:
132-
setResult(json.dumps(
133-
{'type': 'heading', 'data': '''Demo'''}
134-
))
135-
setResult(json.dumps(
136-
{'type': 'text', 'data': '''A demo dataset is loaded below. We will now generate synthetic data on the columns: 'sex', 'race1', 'ugpa', 'bar'. We will be using the Gaussian Copula method and evaluate the distribution and correlation differences between the real and synthetic data.'''}
137-
))
132+
setResult(json.dumps({
133+
'type': 'heading',
134+
'headingKey': 'syntheticData.demo.heading'
135+
}))
136+
setResult(json.dumps({
137+
'type': 'text',
138+
'key': 'syntheticData.demo.description'
139+
}))
138140
139141
setResult(json.dumps(
140142
{'type': 'data-set-preview', 'data': ''}

src/index.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,8 @@
66
p a {
77
@apply text-blue-500 underline;
88
}
9+
10+
ul {
11+
@apply list-disc list-inside;
12+
}
913
}

src/locales/en.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@
5757
}
5858
},
5959
"syntheticData": {
60+
"demo": {
61+
"heading": "Information about demo dataset",
62+
"description": "**UI text** A subset of the [Law School Admission Bar*](https://www.kaggle.com/datasets/danofer/law-school-admissions-bar-passage) dataset is used as a demo. Synthetic data will be generated for the following columns:\n \n  \n- sex: student gender, i.e. 1 (male), 2 (female)\n- race1: race, i.e. asian, black, hispanic, white, other\n- ugpa: The student's undergraduate GPA, continous variable;\n- bar: Ground truth label indicating whether or not the student passed the bar, i.e. passed 1st time, passed 2nd time, failed, non-graduated\n \n  \n\nThe CART method will be used evaluate the distribution and correlation differences between the real and synthetic data.\n \n  \n\n*The original paper can be found [here](https://files.eric.ed.gov/fulltext/ED469370.pdf)."
63+
},
6064
"exportToPDF": "Download evaluation report as PDF",
6165
"exportToJSON": "Download synthetic data as JSON",
6266
"exportToCSV": "Download synthetic data as CSV",

src/locales/nl.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@
5757
}
5858
},
5959
"syntheticData": {
60+
"demo": {
61+
"heading": "Informatie over demodataset",
62+
"description": "**UI-tekst** Een subset van de [Law School Admission Bar*](https://www.kaggle.com/datasets/danofer/law-school-admissions-bar-passage) dataset wordt gebruikt als demo. Er zullen synthetische gegevens worden gegenereerd voor de volgende kolommen:\n \n  \n\n- sex: geslacht van de student, d.w.z. 1 (man), 2 (vrouw)\n- race1: etniciteit, d.w.z. aziatisch, zwart, hispanic, wit, anders\n- ugpa: Het GPA van de student tijdens de undergraduate-opleiding, continue variabele;\n- bar: Waarheidslabel dat aangeeft of de student is geslaagd voor de bar, d.w.z. geslaagd 1e keer, geslaagd 2e keer, gezakt, niet-afgestudeerd\n \n  \n\nDe CART-methode zal worden gebruikt om de verschillen in distributie en correlatie tussen de echte en synthetische gegevens te evalueren.\n \n  \n\n*Het oorspronkelijke artikel is [hier](https://files.eric.ed.gov/fulltext/ED469370.pdf) te vinden."
63+
},
6064
"exportToPDF": "Download evulatie rapport als PDF",
6165
"exportToJSON": "Download synthetische data als JSON",
6266
"exportToCSV": "Download synthetische data als CSV",

0 commit comments

Comments
 (0)