Skip to content

Commit 8786aee

Browse files
authored
Merge pull request #24 from thedamian/master
Correction of type of readCSV and a const required in node
2 parents 0e2606e + 081ae54 commit 8786aee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/titanic-survival-prediction-using-danfo.js-and-tensorflow.js.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ let encoder = new dfd.LabelEncoder()
145145
let cols = ["Sex", "Name"]
146146
cols.forEach(col => {
147147
encoder.fit(df[col])
148-
enc_val = encoder.transform(df[col])
148+
const enc_val = encoder.transform(df[col])
149149
df.addColumn( col, enc_val, { inplace: true })
150150
})
151151

@@ -225,7 +225,7 @@ async function load_process_data() {
225225
let cols = ["Sex", "Name"]
226226
cols.forEach(col => {
227227
encoder.fit(df[col])
228-
enc_val = encoder.transform(df[col])
228+
const enc_val = encoder.transform(df[col])
229229
df.addColumn( col, enc_val, { inplace: true })
230230
})
231231

0 commit comments

Comments
 (0)