Code Monkey home page Code Monkey logo

nexosisclient-net's Introduction

Nexosis .NET API Client

Build status

Installation

You need to be using a project referencing .NET Standard (any version of .NET Core or .NET Framework 4.6.2 or above).

PM> Install-Package Nexosis.Api.Client 

Usage

The most basic thing you can do with the API is submit some data and ask for predictions all at once. This can be done if you have a CSV file with the following code:

   var client = new NexosisClient("YOUR API KEY HERE");
   using (var file = File.OpenText("C:\\path\\to\\file.csv"))
   {
       var dataSetName = "myfile";
       var data = await client.DataSets.Create(DataSet.From(dataSetname, file));
       var session = await client.Sessions.CreateForecast(Sessions.Forecast(dataSetName, DateTimeOffset.Parse("2017-03-25 -0:00"), DateTimeOffset.Parse("2017-04-25 -0:00"), ResultInterval.Day, "sales"));

       Console.WriteLine($"{session.Id}");
   }

For this to work, the CSV file must have a header with the names of the columns in the file. One of those must be named "timeStamp", and in this example, there is a second column named "sales".

Once the forecasting is complete, you will receive an email notification. Using the sessionId from above, you will want to get results with the following call:

    var results = await client.Sessions.GetResults(sessionId);
    // results has a .Data property with the forecast values

Issues

Create a new issue. Please include code to reproduce the error if possible.

Pull requests are welcome.

nexosisclient-net's People

Contributors

vermeeca avatar zacharybussey avatar jeffgabriel avatar jeffesp avatar timfalls avatar

Watchers

Matthew D. Groves avatar James Cloos 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.