dotnet / dotnet/machinelearning-samples

Log10 vs Math.Pow

Open
#318 0 comments 0 reactions 0 assignees View on GitHub
need-further-analysis
Dominant language
PowerShell
Stars
4.7k
Forks
2.7k
Avg merge
2d 22h
Merged PRs (30d)
1

Description

In the sample code log 10 value converted to real value like below
```

Console.WriteLine($"Country: {dataSample.country}, month to predict: {dataSample.month + 1}," +
$" year: {dataSample.year} - Real value (US$): {Math.Pow(6.0084501F, 10)}, " +
$"Predicted Forecast (US$): {Math.Pow(prediction.Score, 10)}");

```
is that correct? return real value is not matched against values in the dataset, shouldn't be the other way ?

for example
Real value (US$): {Math.Pow(10,6.0084501F)},

Kind of high school algebra

`log b = n just in case a^n=b`

Pow(10,Log10(x)) = X, for all x

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.