Giter Club home page Giter Club logo

aidotnet's Introduction

CodeQL Analyis Codacy Badge

Ai.Net

This is a library (currently in preview) for getting the latest and greatest ai algorithms and bringing them directly to the .net community. Our approach for this library was to both provide an easy way for beginners to be able to use AI/ML since it usually has a very steep learning curve, and an easy way for expert level users to be able to fully customize everything about our algorithms. For now we are showcasing our simplified approach by providing simple linear regression to get feedback on how we can improve our library. We will be adding more algorithms in the future and we are open to any contributions to this library. Please let us know what you think about our approach. We will be handling all ai algorithms using the same methods.

How to use this library

Here is an example to show how easy it is to use this library to get a trained model, get metrics for the trained model, and generate new predictions:

using AiDotNet.Regression;

var inputs = new double[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
var outputs = new double[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };

var simpleRegression = new SimpleRegression(inputs, outputs);
var metrics = simpleRegression.Metrics;
var predictions = simpleRegression.Predictions;

Here is an example for more advanced users to customize everything used in the algorithm:

using AiDotNet.Regression;
using AiDotNet.Normalization;

var inputs = new double[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
var outputs = new double[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };

var advancedSimpleRegression = new SimpleRegression(inputs, outputs, new SimpleRegressionOptions()
{
    TrainingPctSize = 20,
    Normalization = new DecimalNormalization()
});
var metrics2 = advancedSimpleRegression.Metrics;
var predictions2 = advancedSimpleRegression.Predictions;

aidotnet's People

Contributors

ooples avatar dependabot[bot] avatar dashboardman avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.