Register    Login    Forum    Search    FAQ

Board index » FANN » Developing Bindings




Post new topic Reply to topic  [ 20 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: New .Net Wrapper
 Post Posted: Mon Nov 29, 2010 11:54 am 
Offline

Joined: Mon Nov 29, 2010 10:23 am
Posts: 16
Hi all,

I am currently in the process of developing a C# .Net wrapper for Fann that interfaces directly with the C/C++ layer and does not require the SOAP web service. If anyone is interested in getting a first look please let me know and I'll send it over to them.

Regards,

James


Top 
 Profile  
 
 Post subject: Re: New .Net Wrapper
 Post Posted: Mon Nov 29, 2010 3:20 pm 
Offline
User avatar

Joined: Tue Mar 06, 2007 7:24 pm
Posts: 264
Location: Copenhagen, Denmark
Sounds like a very good idea, I would be happy to take a look at it.

_________________
Steffen Nissen - http://facebook.com/profile.php?id=595485027
Project Administrator - Fast Artificial Neural Network Library (FANN)
http://leenissen.dk/fann/


Top 
 Profile  
 
 Post subject: Re: New .Net Wrapper
 Post Posted: Mon Nov 29, 2010 4:22 pm 
Offline

Joined: Mon Nov 29, 2010 10:23 am
Posts: 16
Hi Steffen,

I'll get it stable over the next couple of days and give you an FTP link to the source.

Thanks,

James


Top 
 Profile  
 
 Post subject: Re: New .Net Wrapper
 Post Posted: Wed Dec 01, 2010 1:29 pm 
Offline

Joined: Thu Apr 19, 2007 3:05 pm
Posts: 109
i use wrapper for FANN ( written by Stephen Stagg )
http://derindelimavi.blogspot.com/2010/ ... acute.html
http://derin-deli-mavi.googlecode.com/f ... ations.zip

_________________
http://derindelimavi.blogspot.com/


Top 
 Profile  
 
 Post subject: Re: New .Net Wrapper
 Post Posted: Thu Dec 09, 2010 2:24 pm 
Offline

Joined: Mon Nov 29, 2010 10:23 am
Posts: 16
I'm trying to make a more .Net oriented version than Mr Stagg's that reflects the fann_cpp classes as closely as possible. Sorry for the delay, I hope to get the first cut out this weekend.

Regards,

James


Top 
 Profile  
 
 Post subject: Re: New .Net Wrapper
 Post Posted: Sat Dec 11, 2010 12:52 am 
Offline

Joined: Mon Nov 29, 2010 10:23 am
Posts: 16
Here's my initial alpha cut.

See attached file

Just unzip into your fann 2.1.0 folder and navigate into the Fann.Net folder for the solution. You will need to get a copy of the boost library and set your include path to point at it in order to build. Also make sure that you build Double MultiThreaded projects in the existing MicrosoftWindowsDll project as Fann.Net requires these libs.

At the moment Callbacks are not implemented because of a strange crash that occurs ( if anyone has any clues as to what this may be then please let me know).

My contact details are at the top of the source files, feel free to get in touch if you have any questions or ideas.

Have fun.

James


Attachments:
Fann.Net.0.5.0.zip [22.7 KiB]
Downloaded 407 times


Last edited by onemorezero on Thu Feb 03, 2011 8:50 am, edited 1 time in total.
Top 
 Profile  
 
 Post subject: Re: New .Net Wrapper
 Post Posted: Wed Jan 05, 2011 1:37 pm 
Offline

Joined: Wed Jan 05, 2011 1:20 pm
Posts: 2
Dear all,

Please find attached my very crude (rushed) .net interface to the FANN dll. Very basic functionality at the moment and the code is messy with sparse comments. I'll probably only update as I need, but will post here. I also apologise for duplicating the assembly name fannDotNet - I wasn't feeling very imaginative! The zip file includes my VS2005 C# source and some C# code for testing the xor dataset. There is also a MatLab script included (fann.m) that uses the library. It's hiding in the test code debug directory.


Cheers,

Pete


Attachments:
File comment: .NET Wrapper to FANN C Library written in C#
fannDotNet.zip [191.5 KiB]
Downloaded 514 times
Top 
 Profile  
 
 Post subject: Re: New .Net Wrapper
 Post Posted: Tue May 31, 2011 9:57 am 
Offline

Joined: Tue May 31, 2011 9:49 am
Posts: 6
Hey,

When runing your Xor test I get the followin error:

{"Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.":null}

I'm using VS 2010 Express


Top 
 Profile  
 
 Post subject: Re: New .Net Wrapper
 Post Posted: Thu Jun 02, 2011 9:11 am 
Offline

Joined: Mon Nov 29, 2010 10:23 am
Posts: 16
Hi,

You will either need to set your project to build using the the .Net 2 framework or rebuild the wrapper in .Net 4.

Regards,

James


Top 
 Profile  
 
 Post subject: Re: New .Net Wrapper
 Post Posted: Fri Jun 03, 2011 3:31 pm 
Offline

Joined: Tue May 31, 2011 9:49 am
Posts: 6
onemorezero wrote:
Hi,

You will either need to set your project to build using the the .Net 2 framework or rebuild the wrapper in .Net 4.

Regards,

James


Hey James,

Thanks for the reply... I solved it with a configuration file :)

About the callbacks, any idea what is causing the problems?

Regard
Franco


Top 
 Profile  
 
 Post subject: Re: New .Net Wrapper
 Post Posted: Fri Jun 03, 2011 8:47 pm 
Offline

Joined: Mon Nov 29, 2010 10:23 am
Posts: 16
Glad you got it working.

Sorry I haven't had chance to look into the callback issue because I have been bogged down with the stuff that pays the bills.

Regards,

James


Top 
 Profile  
 
 Post subject: Re: New .Net Wrapper
 Post Posted: Tue Jun 07, 2011 1:12 am 
Offline

Joined: Mon Nov 29, 2010 10:23 am
Posts: 16
Got the callbacks fixed ;) please see the latest version.


Top 
 Profile  
 
 Post subject: Re: New .Net Wrapper
 Post Posted: Thu Aug 04, 2011 7:59 pm 
Offline

Joined: Thu Aug 04, 2011 7:46 pm
Posts: 4
Where can we get the latest version?

Thanks.


Top 
 Profile  
 
 Post subject: Re: New .Net Wrapper
 Post Posted: Thu Aug 04, 2011 8:13 pm 
Offline

Joined: Mon Nov 29, 2010 10:23 am
Posts: 16
From here ;)

http://code.google.com/p/fanndotnetwrap ... loads/list


Top 
 Profile  
 
 Post subject: Re: New .Net Wrapper
 Post Posted: Thu Aug 04, 2011 8:21 pm 
Offline

Joined: Thu Aug 04, 2011 7:46 pm
Posts: 4
Will there be an updated version of the code?

My app uses the .Net 4 framework so I was using the wrapper rebuilt in .Net 4.


Top 
 Profile  
 
Display posts from previous:  Sort by  
 
Post new topic Reply to topic  [ 20 posts ]  Go to page 1, 2  Next

Board index » FANN » Developing Bindings


Who is online

Users browsing this forum: No registered users and 0 guests

 
 

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron