Comments (5)
Thank you for your interest to our library.
Please give us several days to run the analysis on this example.
It would help us a lot if you share the exact modifications that you do in NeuralNetConfiguratorDistr.java that lead to NaN values in the results.
from onedal.
@Vika-F I am trying neural network on MNIST data. MNIST data contains 10 labels. So I am changing number of neurons in last layer to 10.
Link for exact line number -
https://github.com/01org/daal/blob/daal_2018_beta_update1/examples/java/com/intel/daal/examples/neural_networks/NeuralNetConfiguratorDistr.java#L60
from onedal.
Thank you for the clarification.
We will analyze the issue and come back to you with the results.
from onedal.
Per our analysis, there is a bug in the distributed training of a neural network in the present version of Intel DAAL: weights and biases are not properly initialized in the beginning of the computations.
We plan to fix it in the future versions of the library.
The workaround for this bug is below: add the piece of the code
if (i == 0) {
/* Retrieve training model of the neural network on master node */
TrainingModel trainingModelOnMaster = net.getResult().get(TrainingResultId.model);
/* Retrieve training model of the neural network on local node */
TrainingModel trainingModelOnLocal = netLocal[0].input.get(DistributedStep1LocalInputId.inputModel);
/* Set weights and biases on master node using the weights and biases from local node */
trainingModelOnMaster.setWeightsAndBiases(trainingModelOnLocal.getWeightsAndBiases());
/* Set initialization flag parameter as true in all forward layers of the training model on master node */
ForwardLayers forwardLayers = trainingModelOnMaster.getForwardLayers();
for (int j = 0; j < forwardLayers.size(); j++) {
forwardLayers.get(j).getLayerParameter().setWeightsAndBiasesInitializationFlag(true);
}
}
into the example NeuralNetDenseDistr.java#L156
from onedal.
Thanks @Vika-F .
It is working now.
from onedal.
Related Issues (20)
- Can not deploy an application that is dynamically linked against oneDAL HOT 6
- How to make a debug build (missing daal_vmlipp_cored.lib)? HOT 7
- Feature request: Add support for ClangCl on MSVC HOT 4
- Looking forward to kd-tree implementation.. HOT 1
- Support for accelerating NGBoost HOT 1
- Compile Failure: "No kernel name provided without -fsycl-unnamed-lambda enabled!" HOT 2
- Support for RISC-V architecture HOT 1
- Error in running daal c++ examples HOT 4
- Datasets used for producing speedup benchmarks in scikit-learn intelex HOT 1
- Remote branch develop not found in upstream origin HOT 2
- `xsyrk` vs `xxsyrk` vs `dsyrk` (in netlib LAPACK) HOT 4
- PCA tests fail periodically.
- Not able to build daal/cpp examples HOT 3
- How to validate results when adding a new backend (i.e., OpenBLAS, Lapack, etc) HOT 1
- Differences betwen SPBLAS - xcsrmultd & xcsrmm ? HOT 1
- How to perform LightGBM inference in online mode using c++? HOT 7
- Fatal error: stdlib.h: No such file or directory from #include_next <stdlib.h> HOT 2
- Add single precision support for roc_auc_score HOT 2
- Improvement: Allow to pass arguments to error message functions
- LinuxMakeGNU_OpenBLAS_x86 and LinuxMakeLLVM_OpenBLAS_rv64 Public CI failing HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from onedal.