ApexCode.Interactive.Formatting
0.0.1-beta.4
ML.NET Formatters and Helpers for Jupyter Notebooks with .NET Kernel
(Microsoft.DotNet.Interactive.Formatting)
This is a prerelease version of ApexCode.Interactive.Formatting.
There is a newer prerelease version of this package available.
See the version list below for details.
See the version list below for details.
Install-Package ApexCode.Interactive.Formatting -Version 0.0.1-beta.4
dotnet add package ApexCode.Interactive.Formatting --version 0.0.1-beta.4
<PackageReference Include="ApexCode.Interactive.Formatting" Version="0.0.1-beta.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ApexCode.Interactive.Formatting --version 0.0.1-beta.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
ApexCode Interactive Object Formatters
Register needed objects like it follows:
Jupyter Notebook
#r "nuget:ApexCode.Interactive.Formatting,0.0.1-alpha.5"
using ApexCode.Interactive.Formatting;
DataFrame, DataFrameColumn
Formatters.Register<DataFrame>();
display(df);
var columnRows = dataFrame.Columns[0];
display(columnRows);
ConfusionMatrix (variant 1)
Formatters.Register<ConfusioMatrixDisplayView>();
var categories = new string[] { "FlashLight", "Infrared", "Day", "Lighter" };
display(metrics.ConfusioMatrix.AddCategories(categories));
ConfusionMatrix (variant 2)
Formatters.Register<ConfusioMatrix>();
var categories = new string[] { "FlashLight", "Infrared", "Day", "Lighter" };
display(metrics.ConfusioMatrix(categories));.
ApexCode Interactive Object Formatters
Register needed objects like it follows:
Jupyter Notebook
#r "nuget:ApexCode.Interactive.Formatting,0.0.1-alpha.5"
using ApexCode.Interactive.Formatting;
DataFrame, DataFrameColumn
Formatters.Register<DataFrame>();
display(df);
var columnRows = dataFrame.Columns[0];
display(columnRows);
ConfusionMatrix (variant 1)
Formatters.Register<ConfusioMatrixDisplayView>();
var categories = new string[] { "FlashLight", "Infrared", "Day", "Lighter" };
display(metrics.ConfusioMatrix.AddCategories(categories));
ConfusionMatrix (variant 2)
Formatters.Register<ConfusioMatrix>();
var categories = new string[] { "FlashLight", "Infrared", "Day", "Lighter" };
display(metrics.ConfusioMatrix(categories));.
Release Notes
So far, implemented formatters are:
DataFrame, DataFrameColumn
ConfusionMatrix for Multi-classification (I got inspired from the excellent Jupyter Notebooks here: https://xamlbrewer.wordpress.com/2020/02/20/getting-started-with-ml-net-in-jupyter-notebooks where you can find ConfusionMatrix for binary classification)
MulticlassClassificationMetrics
Dependencies
-
.NETCoreApp 3.1
- MathNet.Numerics (>= 4.11.0)
- Microsoft.Data.Analysis (>= 0.4.0)
- Microsoft.DotNet.Interactive (>= 1.0.0-beta.20154.7)
- Microsoft.ML (>= 1.5.0)
Used By
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version History
Version | Downloads | Last updated |
---|---|---|
0.0.1-beta.5 | 127 | 9/7/2020 |
0.0.1-beta.4 | 77 | 7/17/2020 |
0.0.1-beta.3 | 71 | 7/8/2020 |