#System Architecture patterns
- N-Tier
- Event-Driven - Mediator / Broker
- Microkernel
- MicroServices
- Blackboard
- client - MVC / MVP / MVVM
- server - RPC / Remoting / WS / SOA / REST
- Space-Based
#System Architecture patterns
in a nutshell: fit trainingData (train a model), transform testData (predict with model)
#Transformers
#JIT Compiler Tuning
##Hotspot Compilation Mechanism Selection
##Advanced JIT Tuning:
#Redis Commands
##Generic Commands
private static void jCodeModelGen(Map<String, Class<?>> mapping, String className) { | |
try { | |
int version = 10; | |
JCodeModel codeModel = new JCodeModel(); | |
JPackage codeModel_Package = codeModel._package("com.example.pb"); | |
if (className == null || className.trim().length() == 0) { | |
className = "Generated" + String.valueOf(version); | |
} |
This post is based upon the standard - not supported with VC compiler ! Try these techniques using GCC / LLVM compilers and QtCreator / CLion IDEs
=
rather than strcpy()
for copying , ==
rather than strcmp()
for comparingconst
, constexpr
functions rather than #DEFINE
, macrosvoid*
, union
, and raw casts (use static_cast
instead)std:string
instead of char*
Estimator
- learns from data: can be a classification, regression , clustering that extracts/filters useful features from raw data - implements set_params
, fit(X,y)
, predict(T)
, score
(judge the quality of fit / predict), predict_proba
(confidence level)Transformer
- transform
(reduce dimensionality)/ inverse_transform
, - clean (sklearn.preprocessing
), reduce dimensions (sklearn.unsupervised _reduction
), expand (sklearn.kernel_approximation
) or generate feature representations (sklearn.feature_extraction
).properties: labels_
, cluster_centers_
. distance metrics - maximize distance between samples in different classes, and minimizes it within each class: Euclidean distance (l2), Manhattan distance (l1) - good for sparse features, cosine distance - invariant to global scalings, or any precomputed affinity matrix.
dbscan
- deterministicly separate areas of high density from