Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/bhrnjica/daany
Browse files Browse the repository at this point in the history
  • Loading branch information
Bahrudin Hrnjica committed Oct 23, 2019
2 parents 746aea5 + 6296537 commit 7e6b817
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
![Daany Logo](./docs/img/daany_logo_small.png)

Daany - DAta ANalYtics C# library with the implementation of DataFrame, Time series decomposition and various statistical parameters.
Daany - **DA**ta **AN**al**Y**tics C# library with the implementation of DataFrame, Time series decomposition and various statistical parameters.

# Data Frame

Expand Down Expand Up @@ -60,9 +60,9 @@ So let's create the Iris class with only three properties since we want to use o
```csharp
class Iris
{
public float PetalArea { get; set; }
public float SepalArea { get; set; }
public string Species { get; set; }
public float PetalArea { get; set; }
public float SepalArea { get; set; }
public string Species { get; set; }
}
```
Now that we have class type implemented we can load the data frame into ML.NET:
Expand Down Expand Up @@ -99,7 +99,7 @@ var dataPipeline = mlContext.Transforms.Conversion.MapValueToKey(
.Append(mlContext.Transforms.Concatenate("Features",nameof(Iris.SepalArea), nameof(Iris.PetalArea)));

```
Use datapipeline and trainSet and train and build the model. Algorithm selection and training process is implemented in the ```Train``` method.:
Use datapipeline and trainSet to train and build the model.
```csharp
//train and build the model
//create Trainer
Expand Down Expand Up @@ -134,8 +134,8 @@ With SSA, you can decompose the time series into any number of components (signa

```csharp
var strPath = $"{root}/AirPassengers.csv";
var mlDF = DataFrame.FromCsv(strPath, sep: ",");
var ts = mlDF["#Passengers"].Select(f => Convert.ToDouble(f));//create time series
var mlDF = DataFrame.FromCsv(strPath, sep: ',');
var ts = mlDF["#Passengers"].Select(f => Convert.ToDouble(f));//create time series from data frame
```
Now that we have AirPasanger time series, we can create SSA object by passing the time series into it:
```csharp
Expand Down

0 comments on commit 7e6b817

Please sign in to comment.