accord-net / framework

Machine learning, computer vision, statistics and general scientific computing for .NET
http://accord-framework.net
GNU Lesser General Public License v2.1
4.49k stars 1.99k forks source link

Xamarin Workbooks #651

Open larcai opened 7 years ago

larcai commented 7 years ago

Today I created 2 Xamarin Workbooks to demo the accord framework. This is very much like the Jupyter notebooks for the Python Machine Learning world. You can find it here on GitHub. Hopefully we can have mode samples/demos like this. See https://github.com/larcai/cognibooks/tree/master/accordframework Some screenshots, Enjoy! image

image

cesarsouza commented 7 years ago

Hi @larcai,

This is really excellent!! Thanks a lot for the effort and letting me know about it! I am actually in the process of expanding the documentation, and I was about to add some new tutorial sample applications to show short examples on how to use the framework. However, they were just console applications. If they could be adapted into Xamarin Workbooks it would be much better!

I will update this issue once I upload them, and will see how they could be converted into Xamarin Workbooks. Thanks again for letting me know about them!

Regards, Cesar

cesarsouza commented 7 years ago

I have just committed the tutorial samples I had mentioned to https://github.com/accord-net/framework/tree/ec98414d2c947e8032ad45f01643092b30891f2f/Samples/Tutorials

It would be nice to see if they could be converted to Xamarin workbooks in the near future.

JimSEOW commented 7 years ago

@larcai @cesarsouza It will be great for the community that Xamarin Workbook based on .NET allows python independent deployment e.g. Eventually an UWP app or to be integrated into One NOTE for ink marking/sharing TRUELY .NET UNIQUE

abock commented 7 years ago

Hi! I'm the lead for Xamarin Workbooks. We have an integration SDK that ideally Accord would adopt. It would involve shipping an additional assembly in your NuGet that Workbooks would automatically load once the workbook references the main NuGet.

However, as a stop-gap we'd be happy to bake support directly into the Workbooks core for Accord. This would have to be done via reflection, so it would be ideal that it only be a short term stop-gap until we could integrate support directly into the Accord NuGet if that would be acceptable (and we are happy to do the work and submit a pull request here if you'd be willing to accept it!)

Cheers!

cesarsouza commented 7 years ago

Hi @abock !

Thanks for reaching out, Xamarin Workbooks look like a quite useful project. I would surely include support for it, but I might have a few questions to ask first!

At this moment I don't have many representations that I could include in my Xamarin.Workbooks integration. Surely it would be nice to add image and other viewers at some point, but I don't have much time to add them right now.

Thus said, in order to add support for Xamarin Workbooks, does it suffice to simply include an assembly with a single class with the following code, and then update the .nuspec file to copy it to a 'xamarin.interactive' target?

using Xamarin.Interactive;

public class SampleIntegration : IAgentIntegration
{
    public void IntegrateWith (IAgent agent)
    {
    }
}

If that is the case, then yes I could add such a feature in the next few days!

Regards, Cesar

cesarsouza commented 7 years ago

Hi @abock, @larcai,

Do you happen to know whether to support Xamarin Workbooks all that is necessary to be done is to include an assembly with a single class with above code, and then update the .nuspec file to copy it to a 'xamarin.interactive' target, as stated above?

Regards, Cesar

BenjaVR commented 6 years ago

Hello @abock, I was wondering if you have any update about this? Looks very promising.