-
Notifications
You must be signed in to change notification settings - Fork 19
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
Lower Level api #23
Comments
No, there's no lower level API unfortunately. But you could adapt your data, set the batchsize to N and train for 1 iteration to get what you want... You would need to implement an IDataSource that accepted the first two arguments to your Train method (something like VectorDataSource). For your weights argument you would need to implement an IAction that weighted the error signal based on the weights (something like ConstrainSignal) and add it to the graph just before the backpropagation. |
Thank you . I will give it a try. |
You would need to create a custom Softmax activation to achieve that. You could use the existing softmax activation as a guide but instead of calculating softmax over the entire matrix it could split the matrix both forward and backward on each distribution (GetNewMatrixFromColumns) and then combine them again afterwards as the output. |
Hi, how is it possible to use nuget packages if "No, there's no lower level API" ? Is there an example using this package ? |
Example code for https://www.nuget.org/packages/BrightWire/ (v3) is here: https://github.com/jdermody/brightwire/tree/master/ExampleCode Example code for https://www.nuget.org/packages/BrightWire.Net4/ (v2) is here: https://github.com/jdermody/brightwire-v2/tree/master/SampleCode |
Ok, there is no problem to test all these examples in their original solution. But, if I put a nuget package in my personal project for example on BrightWire.Net4, and try to compile the XOR example, then it is not possible to use DataTableBuilder because its accessibility is friend and not public: impossible to compile in a personal project! |
I see your point - the current design is that everything is created through indirection and the classes themselves are not public from the assembly. The drawback of this is that the usage is less obvious. For example in BrightWire.Net4 you create a data table builder like this:
In BrightWire (,net core) you do it like this:
BrightWire (.net core) is a more consistent in that everything is available through the context, which acts as an extension point via extension methods in other assemblies. I suppose this approach is one of framework rather than library, but perhaps the better design is to be both. |
Ok thanks!, now I have a problem with: |
Ok, I found out how it works, thank you very much! Here it is with BrightWire.Net4 in VB .NET:
|
Hi i want to use BrightWire to implement the following simple interface.
The problem is that the library is very strongly coupled with data source.
Is there a lower level api where i can implement a feed forward neural network model , that holds its state(weights) , can be serializable , and is always ready for training and prediction.
This is easily achievable with CNTK and Tenroflow. Their problem is that they only suppoort 64 bit.
The text was updated successfully, but these errors were encountered: