today I want to fulfill my promise that I gave to one of my readers.
He left at mine blog following question:
How do we use required<> in place of current<> and pass some string constant for selector? That question was asked in context of this article.
That is good question and I also want to add that answer on it will be at least to some degree disappointing. First of all, if you work with selectors, you can't use Required. Required is intended for use in Graphs.
But if you want to use some constant filtering conditions, you don't need Required attribute at all. You can use mechanism of Constants, which works perfectly without Required.
Take a look at the … more
today I want to write a short notice on how to create new sales order in Acumatica properly.
So, first of all take not that SOOrder type has two keys. One key is or order type, and second key is for OrderNbr.
It means that you can't do code like this:
var newSOrder = sOEntry.Document.Insert();
or actually you can, but later you'll face some issues with duplicated sales orders ( as I recently faced ).
But what you should do if you wish create new Sales order is the following code snippet:
var newSOrder = new SOOrder();
newSOrder.OrderType = sorder.AcumaticaOrderType; … more
today I want to describe a bit more about cross validation and how to work with it in Python. Here I describe how to split learning set once or how to use different cross validation strategies.
Before I'll continue, I'd like to describe different types of splitting data for training.
There are following ways to split data:
1. Split on 70/30 ( sometime 80/20 ) on two sets: Training data, Validation data.
You train data on training data, and validate on holdout data.
This approach has following pros/cons:
(+) model is trained only once
(-) depends from the splitting
(+/-) works fine for big data sets
In order to understand one more case take a look at … more
today I want to write a few words about built in data sets in sklearn library of python but from Visual Studio 2017 prospective. You may ask why Visual Studio 2017 if there are plenty of other options? I can say that main reason is becuase I like debugging features that availabile in Visual Studio which make my life much simpler.
Initial headers and one function
So, before we continue, we need as usually in Pythong import some basic libraries. You can do it in Visual studio like this:
from matplotlib import pylab
import matplotlib.pyplot as pyplot
import numpy as np
from sklearn import datasets
def sanitize_sequence(data): … more
Today I want to write a really short description of different kind of tests, which can be perfomed by code.
Unit test: Specify and test one point of the interface of single method of a class. This should have a very small and well described scope. Complicated dependencies and activities to the outside staff are stubbed or mocked.
Integration test: Test the correct co-operation of multiple subsystems. There is whole ecosystem here, from testing integration between two classes, to testing integration with the production environment.
Smoke test (AKA Load test, AKA Sanity check): A simple integration test where we just check that when the system under test is … more
today I want to describe some tricky feature of Automation steps.
Quite often in Acumatica I face interesting challenge. I've added some code in Row_Selected, open some screen, and to mine disappointment I find that screen totally ignores mine code. What can stand behind such weird behaviour?
One of the explanations can lie behind automation steps. If to put simply, automation steps is a feature of Acumatica, that allows to program it without any usage of C# code. All that is needed from you as Acumatica user is just add via GUI designer staff on the form and then via automation steps configure it's behaviour.
So, let's consider some details, that can help you to … more