Skip to content

Commit 17fb2e2

Browse files
committed
Write more.
1 parent 8952da8 commit 17fb2e2

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

NanoNeuron.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -194,10 +194,10 @@ console.log('Cost on new testing data:', testCost); // i.e. -> 0.0000023
194194
// Now, since we see that our NanoNeuron "kid" has performed well in the "school" during the training
195195
// and that he can convert Celsius to Fahrenheit temperatures correctly even for the data it hasn't seen
196196
// we can call it "smart" and ask him some questions. This was the ultimate goal of whole training process.
197-
const customTempInCelsius = 70;
198-
const customPrediction = nanoNeuron.predict(customTempInCelsius);
199-
console.log(`NanoNeuron "thinks" that ${customTempInCelsius}°C in Fahrenheit is:`, customPrediction); // -> 158.0002
200-
console.log('Correct answer is:', celsiusToFahrenheit(customTempInCelsius)); // -> 158
197+
const tempInCelsius = 70;
198+
const customPrediction = nanoNeuron.predict(tempInCelsius);
199+
console.log(`NanoNeuron "thinks" that ${tempInCelsius}°C in Fahrenheit is:`, customPrediction); // -> 158.0002
200+
console.log('Correct answer is:', celsiusToFahrenheit(tempInCelsius)); // -> 158
201201

202202
// So close! As all the humans our NanoNeuron is good but not ideal :)
203203
// Happy learning to you!

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -280,10 +280,10 @@ console.log('Cost on new testing data:', testCost); // i.e. -> 0.0000023
280280
Now, since we see that our NanoNeuron "kid" has performed well in the "school" during the training and that he can convert Celsius to Fahrenheit temperatures correctly even for the data it hasn't seen we can call it "smart" and ask him some questions. This was the ultimate goal of whole training process.
281281

282282
```javascript
283-
const customTempInCelsius = 70;
284-
const customPrediction = nanoNeuron.predict(customTempInCelsius);
285-
console.log(`NanoNeuron "thinks" that ${customTempInCelsius}°C in Fahrenheit is:`, customPrediction); // -> 158.0002
286-
console.log('Correct answer is:', celsiusToFahrenheit(customTempInCelsius)); // -> 158
283+
const tempInCelsius = 70;
284+
const customPrediction = nanoNeuron.predict(tempInCelsius);
285+
console.log(`NanoNeuron "thinks" that ${tempInCelsius}°C in Fahrenheit is:`, customPrediction); // -> 158.0002
286+
console.log('Correct answer is:', celsiusToFahrenheit(tempInCelsius)); // -> 158
287287
```
288288

289289
So close! As all the humans our NanoNeuron is good but not ideal :)

0 commit comments

Comments
 (0)