today I want to share some knowledge about interesting feature of Acumatica: Approve and Reject actions in Purchase orders screen.
When I was asked how long it will take to modify behaviour of Approve and Reject actions, I've thought it will be easy task. Find appropriate Actions, overload then and enjoy life. But with those two actions life is more complicated.
After speaking with Acumatica support I've realized that those two actions are declared as Automation steps, so in order to work with those actions it will be needed to look into knowledge about Automation steps. The only memeber that has relation to those actions are type of EPApprovalAutomation.
So, in order … more
here I want to preserve for future usage my code which I've used to train model for one of Kagglecompetitions:
1 package org.deeplearning4j.examples.convolution;
3 import com.google.common.io.LittleEndianDataInputStream;
4 import org.deeplearning4j.api.storage.StatsStorage;
5 import org.deeplearning4j.datasets.iterator.BaseDatasetIterator;
6 import org.deeplearning4j.datasets.iterator.FloatsDataSetIterator;
7 import org.deeplearning4j.datasets.iterator.impl.ListDataSetIterator;
8 import org.deeplearning4j.datasets.iterator.impl.MnistDataSetIterator;
9 import org.deeplearning4j.eval.Evaluation;
10 import org.deeplearning4j.nn.api. … more
today I want to document one simple feature of Deeplearning4j library. Recently I had an assignment to feed into neural network for Deeplearning4j.
If your learning set is not big ( later I'll explain what big means ) then you can put all your data into INDArray and then based on that you can create DataSet. Take a look at fragments of XorExample.java:
1 // list off input values, 4 training samples with data for 2
2 // input-neurons each
3 INDArray input = Nd4j.zeros(4, 2);
5 // correspondending list with expected output values, 4 training samples
6 // with data for 2 output-neurons each
7 INDArray labels = Nd4j. … more
today I want to show sample of code on overriding Persist method in Acumatica.
Consider following scenario, you need to modify saving logic of screen Purchase Orders in Acumatica. How you can achieve this? Following steps can help you to do this:
Create extension class for POOrderEntry
Override Perist method
Both of those details implemented below:
public class POOrderEntryExt : PXGraphExtension<POOrderEntry>
public void Persist(Action del)
//Here you can add some of your code that should be executed before persisting PO Order to database
With such simple steps you can modify persisting … more
today I want to write a short note about normalization for neural networks.
So, first goes formula how to normalize input in range [0, 1] ( taken from here ):
Another good for me example is going below ( taken from here ):
p = [4 4 3 3 4;
2 1 2 1 1;
2 2 2 4 2];
a = min(p(:));
b = max(p(:));
ra = 0.9;
rb = 0.1;
pa = (((ra-rb) * (p - a)) / (b - a)) + rb;
In this example ra stands for maximum value of range, rb stands for minimum value of range that we want to make.
today I want to document another issue that took from me plenty of time. Recently I've used following code in Python in order to save array of numpy numbers:
import numpy as np
newImage = ...some way of getting array
But when I tried to get that content in Java code, I faced issue that my inputs where unreadable by Java. After spending some time over net I've found that Python uses little endian encoding, while Java uses another encoding for saving floats.
So my research of little endian gave me the following code result in java for reading little endian:
InputStream inputStream = null;DataInputStream dataInputStream = null; … more