Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ActivationNetwork.Save throws platform not supported exception #20

Open
poleindraneel opened this issue May 30, 2016 · 5 comments
Open

Comments

@poleindraneel
Copy link

In neural networks, Save method of ActivationNetwork class, throws platform not supported exception.
image

@anders9ustafsson
Copy link
Contributor

This sounds like you have forgotten to explicitly include the Shim NuGet package in your application. Explicitly add Shim via NuGet to your application, and I think your problem will go away.

@anders9ustafsson
Copy link
Contributor

@poleindraneel Were you able to resolve this issue yourself?

@poleindraneel
Copy link
Author

Hi @anders9ustafsson , Well, Shim only provides not implemented exception for this method. So basically this method is not implemented on .NET Core version of the library. We forked Portable Aforge at https://github.com/daenetCorporation/, and implemented these methods on our own. We will soon be sending pull request for this.

@anders9ustafsson
Copy link
Contributor

@poleindraneel OK, I see, so you are trying this on .NET Core with a PCL library instance? Which PCL profile are you using, and which .NET Standard level are you targeting?

I have not come so far yet as to natively support .NET Core in Shim. Should maybe consider to do this. On the other hand the .NET Standard API may make it simpler to support e.g. the Accord code "out-of-the-box" without the Shim workaround. We'll see what the future may bring :-)

@poleindraneel
Copy link
Author

@anders9ustafsson So we are actually targeting it to .NET Core 1.0 i.e "NETStandard.Library": "1.6.0" i.e .NET Standard 4.6.3. We have implemented serialization and deserialization for neuro to save and load the neural network in .NET Core environment. (Our aim it to use AForge on devices such as Raspberry Pi and HoloLens :)) I believe this will be easier for you when you plan to support .NET Core in future. You can have a look at our changes in the forked repository however I am not yet 100% sure that all the changes are checked in. I will ask my teammate to check in everything and send a pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants