From de2461eb0ab1edd8235c7d1e86b8a992318e2c45 Mon Sep 17 00:00:00 2001 From: anuunchin <88698977+anuunchin@users.noreply.github.com> Date: Wed, 24 Sep 2025 15:25:42 +0200 Subject: [PATCH 1/2] [SYSTEMDS-3330] Documentation of builtin functions (main) This commit adds new automatic generation of separated doc files for all builtin functions, and automatic generation of tests for builtin functions. All based on the original documentation in individual builtin scripts. This change will simplify the development of builtin functions and help new users across both the Python api and internal DML testing. Closes #2292 --- scripts/builtin/dist.dml | 15 ++++ scripts/builtin/img_brightness.dml | 19 ++++- scripts/builtin/img_brightness_linearized.dml | 19 ++++- scripts/builtin/img_crop.dml | 19 ++++- scripts/builtin/img_crop_linearized.dml | 19 ++++- scripts/builtin/img_cutout.dml | 20 +++++ scripts/builtin/img_cutout_linearized.dml | 23 +++++- scripts/builtin/img_invert.dml | 21 +++++- scripts/builtin/img_invert_linearized.dml | 21 +++++- scripts/builtin/img_mirror.dml | 23 +++++- scripts/builtin/img_mirror_linearized.dml | 48 +++++++++++- scripts/builtin/img_posterize.dml | 23 +++++- scripts/builtin/img_posterize_linearized.dml | 23 +++++- scripts/builtin/img_rotate.dml | 19 +++++ scripts/builtin/img_rotate_linearized.dml | 25 ++++++- scripts/builtin/img_sample_pairing.dml | 28 ++++++- .../builtin/img_sample_pairing_linearized.dml | 26 ++++++- scripts/builtin/img_shear.dml | 19 +++++ scripts/builtin/img_shear_linearized.dml | 23 +++++- scripts/builtin/img_transform.dml | 19 +++++ scripts/builtin/img_transform_linearized.dml | 25 ++++++- scripts/builtin/img_translate.dml | 19 +++++ scripts/builtin/img_translate_linearized.dml | 22 +++++- scripts/builtin/lm.dml | 30 ++++++++ scripts/builtin/normalize.dml | 14 ++++ scripts/builtin/randomForest.dml | 41 ++++++++++ scripts/builtin/randomForestPredict.dml | 43 +++++++++++ scripts/builtin/toOneHot.dml | 16 ++++ .../docs/source/api/operator/algorithms.rst | 7 +- .../source/api/operator/algorithms/WoE.rst | 4 + .../api/operator/algorithms/WoEApply.rst | 4 + .../api/operator/algorithms/abstain.rst | 4 + .../source/api/operator/algorithms/adasyn.rst | 4 + .../source/api/operator/algorithms/als.rst | 4 + .../source/api/operator/algorithms/alsCG.rst | 4 + .../source/api/operator/algorithms/alsDS.rst | 4 + .../api/operator/algorithms/alsPredict.rst | 4 + .../operator/algorithms/alsTopkPredict.rst | 4 + .../source/api/operator/algorithms/ampute.rst | 4 + .../operator/algorithms/apply_pipeline.rst | 4 + .../source/api/operator/algorithms/arima.rst | 4 + .../source/api/operator/algorithms/auc.rst | 4 + .../algorithms/autoencoder_2layer.rst | 4 + .../source/api/operator/algorithms/bandit.rst | 4 + .../source/api/operator/algorithms/bivar.rst | 4 + .../api/operator/algorithms/components.rst | 4 + .../operator/algorithms/confusionMatrix.rst | 4 + .../algorithms/cooccurrenceMatrix.rst | 4 + .../source/api/operator/algorithms/cor.rst | 4 + .../api/operator/algorithms/correctTypos.rst | 4 + .../operator/algorithms/correctTyposApply.rst | 4 + .../source/api/operator/algorithms/cox.rst | 4 + .../api/operator/algorithms/cspline.rst | 4 + .../api/operator/algorithms/csplineCG.rst | 4 + .../api/operator/algorithms/csplineDS.rst | 4 + .../source/api/operator/algorithms/cvlm.rst | 4 + .../source/api/operator/algorithms/dbscan.rst | 4 + .../api/operator/algorithms/dbscanApply.rst | 4 + .../api/operator/algorithms/decisionTree.rst | 4 + .../algorithms/decisionTreePredict.rst | 4 + .../api/operator/algorithms/deepWalk.rst | 4 + .../operator/algorithms/denialConstraints.rst | 4 + .../algorithms/differenceStatistics.rst | 4 + .../api/operator/algorithms/discoverFD.rst | 4 + .../source/api/operator/algorithms/dist.rst | 4 + .../source/api/operator/algorithms/dmv.rst | 4 + .../source/api/operator/algorithms/ema.rst | 4 + .../operator/algorithms/executePipeline.rst | 4 + .../api/operator/algorithms/f1Score.rst | 4 + .../source/api/operator/algorithms/fdr.rst | 4 + .../api/operator/algorithms/ffPredict.rst | 4 + .../api/operator/algorithms/ffTrain.rst | 4 + .../api/operator/algorithms/fit_pipeline.rst | 4 + .../operator/algorithms/fixInvalidLengths.rst | 4 + .../algorithms/fixInvalidLengthsApply.rst | 4 + .../operator/algorithms/flattenQuantile.rst | 4 + .../api/operator/algorithms/frameSort.rst | 4 + .../operator/algorithms/frequencyEncode.rst | 4 + .../algorithms/frequencyEncodeApply.rst | 4 + .../source/api/operator/algorithms/garch.rst | 4 + .../algorithms/gaussianClassifier.rst | 4 + .../api/operator/algorithms/getAccuracy.rst | 4 + .../source/api/operator/algorithms/glm.rst | 4 + .../api/operator/algorithms/glmPredict.rst | 4 + .../source/api/operator/algorithms/glove.rst | 4 + .../source/api/operator/algorithms/gmm.rst | 4 + .../api/operator/algorithms/gmmPredict.rst | 4 + .../source/api/operator/algorithms/gnmf.rst | 4 + .../api/operator/algorithms/gridSearch.rst | 4 + .../algorithms/hospitalResidencyMatch.rst | 4 + .../api/operator/algorithms/hyperband.rst | 4 + .../operator/algorithms/img_brightness.rst | 4 + .../algorithms/img_brightness_linearized.rst | 4 + .../api/operator/algorithms/img_crop.rst | 4 + .../algorithms/img_crop_linearized.rst | 4 + .../api/operator/algorithms/img_cutout.rst | 4 + .../algorithms/img_cutout_linearized.rst | 4 + .../api/operator/algorithms/img_invert.rst | 4 + .../algorithms/img_invert_linearized.rst | 4 + .../api/operator/algorithms/img_mirror.rst | 4 + .../algorithms/img_mirror_linearized.rst | 4 + .../api/operator/algorithms/img_posterize.rst | 4 + .../algorithms/img_posterize_linearized.rst | 4 + .../api/operator/algorithms/img_rotate.rst | 4 + .../algorithms/img_rotate_linearized.rst | 4 + .../algorithms/img_sample_pairing.rst | 4 + .../img_sample_pairing_linearized.rst | 4 + .../api/operator/algorithms/img_shear.rst | 4 + .../algorithms/img_shear_linearized.rst | 4 + .../api/operator/algorithms/img_transform.rst | 4 + .../algorithms/img_transform_linearized.rst | 4 + .../api/operator/algorithms/img_translate.rst | 4 + .../algorithms/img_translate_linearized.rst | 4 + .../operator/algorithms/impurityMeasures.rst | 4 + .../api/operator/algorithms/imputeByFD.rst | 4 + .../operator/algorithms/imputeByFDApply.rst | 4 + .../api/operator/algorithms/imputeByKNN.rst | 4 + .../api/operator/algorithms/imputeByMean.rst | 4 + .../operator/algorithms/imputeByMeanApply.rst | 4 + .../operator/algorithms/imputeByMedian.rst | 4 + .../algorithms/imputeByMedianApply.rst | 4 + .../api/operator/algorithms/imputeByMode.rst | 4 + .../operator/algorithms/imputeByModeApply.rst | 4 + .../api/operator/algorithms/incSliceLine.rst | 4 + .../api/operator/algorithms/intersect.rst | 4 + .../source/api/operator/algorithms/km.rst | 4 + .../source/api/operator/algorithms/kmeans.rst | 4 + .../api/operator/algorithms/kmeansPredict.rst | 4 + .../source/api/operator/algorithms/knn.rst | 4 + .../api/operator/algorithms/knnGraph.rst | 4 + .../source/api/operator/algorithms/knnbf.rst | 4 + .../source/api/operator/algorithms/l2svm.rst | 4 + .../api/operator/algorithms/l2svmPredict.rst | 4 + .../source/api/operator/algorithms/lasso.rst | 4 + .../api/operator/algorithms/lenetPredict.rst | 4 + .../api/operator/algorithms/lenetTrain.rst | 4 + .../source/api/operator/algorithms/lm.rst | 4 + .../source/api/operator/algorithms/lmCG.rst | 4 + .../source/api/operator/algorithms/lmDS.rst | 4 + .../api/operator/algorithms/lmPredict.rst | 4 + .../operator/algorithms/lmPredictStats.rst | 4 + .../api/operator/algorithms/logSumExp.rst | 4 + .../source/api/operator/algorithms/mae.rst | 4 + .../source/api/operator/algorithms/mape.rst | 4 + .../api/operator/algorithms/matrixProfile.rst | 4 + .../source/api/operator/algorithms/mcc.rst | 4 + .../source/api/operator/algorithms/mdedup.rst | 4 + .../source/api/operator/algorithms/mice.rst | 4 + .../api/operator/algorithms/miceApply.rst | 4 + .../source/api/operator/algorithms/mse.rst | 4 + .../source/api/operator/algorithms/msmape.rst | 4 + .../source/api/operator/algorithms/msvm.rst | 4 + .../api/operator/algorithms/msvmPredict.rst | 4 + .../api/operator/algorithms/multiLogReg.rst | 4 + .../algorithms/multiLogRegPredict.rst | 4 + .../api/operator/algorithms/na_locf.rst | 4 + .../api/operator/algorithms/naiveBayes.rst | 4 + .../operator/algorithms/naiveBayesPredict.rst | 4 + .../api/operator/algorithms/normalize.rst | 4 + .../operator/algorithms/normalizeApply.rst | 4 + .../source/api/operator/algorithms/nrmse.rst | 4 + .../api/operator/algorithms/outlier.rst | 4 + .../operator/algorithms/outlierByArima.rst | 4 + .../api/operator/algorithms/outlierByIQR.rst | 4 + .../operator/algorithms/outlierByIQRApply.rst | 4 + .../api/operator/algorithms/outlierBySd.rst | 4 + .../operator/algorithms/outlierBySdApply.rst | 4 + .../api/operator/algorithms/pageRank.rst | 4 + .../source/api/operator/algorithms/pca.rst | 4 + .../api/operator/algorithms/pcaInverse.rst | 4 + .../api/operator/algorithms/pcaTransform.rst | 4 + .../source/api/operator/algorithms/pnmf.rst | 4 + .../source/api/operator/algorithms/ppca.rst | 4 + .../source/api/operator/algorithms/psnr.rst | 4 + .../operator/algorithms/quantizeByCluster.rst | 4 + .../api/operator/algorithms/raGroupby.rst | 4 + .../source/api/operator/algorithms/raJoin.rst | 4 + .../api/operator/algorithms/raSelection.rst | 4 + .../api/operator/algorithms/randomForest.rst | 4 + .../algorithms/randomForestPredict.rst | 4 + .../source/api/operator/algorithms/rmse.rst | 4 + .../source/api/operator/algorithms/scale.rst | 4 + .../api/operator/algorithms/scaleApply.rst | 4 + .../api/operator/algorithms/scaleMinMax.rst | 4 + .../operator/algorithms/selectByVarThresh.rst | 4 + .../source/api/operator/algorithms/ses.rst | 4 + .../api/operator/algorithms/setdiff.rst | 4 + .../api/operator/algorithms/shapExplainer.rst | 4 + .../api/operator/algorithms/sherlock.rst | 4 + .../operator/algorithms/sherlockPredict.rst | 4 + .../api/operator/algorithms/shortestPath.rst | 4 + .../api/operator/algorithms/sigmoid.rst | 4 + .../api/operator/algorithms/skewness.rst | 4 + .../api/operator/algorithms/sliceLine.rst | 4 + .../operator/algorithms/sliceLineDebug.rst | 4 + .../operator/algorithms/sliceLineExtract.rst | 4 + .../api/operator/algorithms/slicefinder.rst | 4 + .../source/api/operator/algorithms/smape.rst | 4 + .../source/api/operator/algorithms/smote.rst | 4 + .../api/operator/algorithms/softmax.rst | 4 + .../source/api/operator/algorithms/split.rst | 4 + .../api/operator/algorithms/splitBalanced.rst | 4 + .../api/operator/algorithms/sqrtMatrix.rst | 4 + .../operator/algorithms/stableMarriage.rst | 4 + .../api/operator/algorithms/statsNA.rst | 4 + .../source/api/operator/algorithms/steplm.rst | 4 + .../api/operator/algorithms/stratstats.rst | 4 + .../algorithms/symmetricDifference.rst | 4 + .../source/api/operator/algorithms/tSNE.rst | 4 + .../api/operator/algorithms/toOneHot.rst | 4 + .../api/operator/algorithms/tomeklink.rst | 4 + .../api/operator/algorithms/topk_cleaning.rst | 4 + .../api/operator/algorithms/underSampling.rst | 4 + .../source/api/operator/algorithms/union.rst | 4 + .../source/api/operator/algorithms/univar.rst | 4 + .../api/operator/algorithms/vectorToCsv.rst | 4 + .../source/api/operator/algorithms/wer.rst | 4 + .../api/operator/algorithms/winsorize.rst | 4 + .../operator/algorithms/winsorizeApply.rst | 4 + .../api/operator/algorithms/xdummy1.rst | 4 + .../api/operator/algorithms/xdummy2.rst | 4 + .../api/operator/algorithms/xgboost.rst | 4 + .../xgboostPredictClassification.rst | 4 + .../algorithms/xgboostPredictRegression.rst | 4 + src/main/python/generator/dml_parser.py | 24 +++++- src/main/python/generator/generator.py | 75 ++++++++++++++++++- .../operator/algorithm/builtin/dist.py | 15 ++++ .../algorithm/builtin/img_brightness.py | 19 ++++- .../builtin/img_brightness_linearized.py | 19 ++++- .../operator/algorithm/builtin/img_crop.py | 19 ++++- .../algorithm/builtin/img_crop_linearized.py | 19 ++++- .../operator/algorithm/builtin/img_cutout.py | 20 +++++ .../builtin/img_cutout_linearized.py | 21 +++++- .../operator/algorithm/builtin/img_invert.py | 21 +++++- .../builtin/img_invert_linearized.py | 21 +++++- .../operator/algorithm/builtin/img_mirror.py | 23 +++++- .../builtin/img_mirror_linearized.py | 48 +++++++++++- .../algorithm/builtin/img_posterize.py | 23 +++++- .../builtin/img_posterize_linearized.py | 23 +++++- .../operator/algorithm/builtin/img_rotate.py | 19 +++++ .../builtin/img_rotate_linearized.py | 23 +++++- .../algorithm/builtin/img_sample_pairing.py | 28 ++++++- .../builtin/img_sample_pairing_linearized.py | 26 ++++++- .../operator/algorithm/builtin/img_shear.py | 19 +++++ .../algorithm/builtin/img_shear_linearized.py | 23 +++++- .../algorithm/builtin/img_transform.py | 19 +++++ .../builtin/img_transform_linearized.py | 23 +++++- .../algorithm/builtin/img_translate.py | 19 +++++ .../builtin/img_translate_linearized.py | 22 +++++- .../systemds/operator/algorithm/builtin/lm.py | 30 ++++++++ .../operator/algorithm/builtin/normalize.py | 14 ++++ .../algorithm/builtin/randomForest.py | 41 ++++++++++ .../algorithm/builtin/randomForestPredict.py | 43 +++++++++++ .../operator/algorithm/builtin/toOneHot.py | 16 ++++ src/main/python/tests/algorithms/test_lm.py | 65 ---------------- src/main/python/tests/auto_tests/test_dist.py | 44 +++++++++++ .../tests/auto_tests/test_img_brightness.py | 46 ++++++++++++ .../test_img_brightness_linearized.py | 46 ++++++++++++ .../python/tests/auto_tests/test_img_crop.py | 46 ++++++++++++ .../auto_tests/test_img_crop_linearized.py | 46 ++++++++++++ .../tests/auto_tests/test_img_cutout.py | 48 ++++++++++++ .../auto_tests/test_img_cutout_linearized.py | 48 ++++++++++++ .../tests/auto_tests/test_img_invert.py | 48 ++++++++++++ .../auto_tests/test_img_invert_linearized.py | 48 ++++++++++++ .../tests/auto_tests/test_img_mirror.py | 48 ++++++++++++ .../test_img_mirror_linearized_0.py | 48 ++++++++++++ .../test_img_mirror_linearized_1.py | 55 ++++++++++++++ .../tests/auto_tests/test_img_posterize.py | 48 ++++++++++++ .../test_img_posterize_linearized.py | 48 ++++++++++++ .../tests/auto_tests/test_img_rotate.py | 48 ++++++++++++ .../auto_tests/test_img_rotate_linearized.py | 48 ++++++++++++ .../auto_tests/test_img_sample_pairing.py | 53 +++++++++++++ .../test_img_sample_pairing_linearized.py | 53 +++++++++++++ .../python/tests/auto_tests/test_img_shear.py | 48 ++++++++++++ .../auto_tests/test_img_shear_linearized.py | 48 ++++++++++++ .../tests/auto_tests/test_img_transform.py | 48 ++++++++++++ .../test_img_transform_linearized.py | 48 ++++++++++++ .../tests/auto_tests/test_img_translate.py | 48 ++++++++++++ .../test_img_translate_linearized.py | 48 ++++++++++++ src/main/python/tests/auto_tests/test_lm.py | 59 +++++++++++++++ .../python/tests/auto_tests/test_normalize.py | 43 +++++++++++ .../tests/auto_tests/test_randomForest.py | 71 ++++++++++++++++++ .../auto_tests/test_randomForestPredict.py | 71 ++++++++++++++++++ .../python/tests/auto_tests/test_toOneHot.py | 45 +++++++++++ 284 files changed, 3600 insertions(+), 115 deletions(-) create mode 100644 src/main/python/docs/source/api/operator/algorithms/WoE.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/WoEApply.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/abstain.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/adasyn.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/als.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/alsCG.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/alsDS.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/alsPredict.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/alsTopkPredict.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/ampute.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/apply_pipeline.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/arima.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/auc.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/autoencoder_2layer.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/bandit.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/bivar.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/components.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/confusionMatrix.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/cooccurrenceMatrix.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/cor.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/correctTypos.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/correctTyposApply.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/cox.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/cspline.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/csplineCG.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/csplineDS.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/cvlm.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/dbscan.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/dbscanApply.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/decisionTree.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/decisionTreePredict.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/deepWalk.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/denialConstraints.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/differenceStatistics.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/discoverFD.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/dist.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/dmv.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/ema.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/executePipeline.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/f1Score.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/fdr.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/ffPredict.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/ffTrain.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/fit_pipeline.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/fixInvalidLengths.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/fixInvalidLengthsApply.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/flattenQuantile.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/frameSort.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/frequencyEncode.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/frequencyEncodeApply.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/garch.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/gaussianClassifier.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/getAccuracy.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/glm.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/glmPredict.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/glove.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/gmm.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/gmmPredict.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/gnmf.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/gridSearch.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/hospitalResidencyMatch.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/hyperband.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/img_brightness.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/img_brightness_linearized.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/img_crop.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/img_crop_linearized.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/img_cutout.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/img_cutout_linearized.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/img_invert.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/img_invert_linearized.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/img_mirror.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/img_mirror_linearized.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/img_posterize.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/img_posterize_linearized.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/img_rotate.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/img_rotate_linearized.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/img_sample_pairing.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/img_sample_pairing_linearized.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/img_shear.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/img_shear_linearized.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/img_transform.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/img_transform_linearized.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/img_translate.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/img_translate_linearized.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/impurityMeasures.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/imputeByFD.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/imputeByFDApply.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/imputeByKNN.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/imputeByMean.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/imputeByMeanApply.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/imputeByMedian.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/imputeByMedianApply.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/imputeByMode.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/imputeByModeApply.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/incSliceLine.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/intersect.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/km.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/kmeans.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/kmeansPredict.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/knn.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/knnGraph.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/knnbf.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/l2svm.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/l2svmPredict.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/lasso.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/lenetPredict.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/lenetTrain.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/lm.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/lmCG.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/lmDS.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/lmPredict.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/lmPredictStats.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/logSumExp.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/mae.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/mape.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/matrixProfile.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/mcc.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/mdedup.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/mice.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/miceApply.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/mse.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/msmape.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/msvm.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/msvmPredict.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/multiLogReg.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/multiLogRegPredict.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/na_locf.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/naiveBayes.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/naiveBayesPredict.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/normalize.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/normalizeApply.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/nrmse.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/outlier.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/outlierByArima.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/outlierByIQR.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/outlierByIQRApply.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/outlierBySd.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/outlierBySdApply.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/pageRank.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/pca.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/pcaInverse.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/pcaTransform.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/pnmf.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/ppca.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/psnr.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/quantizeByCluster.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/raGroupby.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/raJoin.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/raSelection.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/randomForest.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/randomForestPredict.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/rmse.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/scale.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/scaleApply.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/scaleMinMax.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/selectByVarThresh.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/ses.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/setdiff.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/shapExplainer.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/sherlock.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/sherlockPredict.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/shortestPath.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/sigmoid.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/skewness.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/sliceLine.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/sliceLineDebug.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/sliceLineExtract.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/slicefinder.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/smape.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/smote.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/softmax.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/split.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/splitBalanced.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/sqrtMatrix.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/stableMarriage.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/statsNA.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/steplm.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/stratstats.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/symmetricDifference.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/tSNE.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/toOneHot.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/tomeklink.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/topk_cleaning.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/underSampling.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/union.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/univar.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/vectorToCsv.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/wer.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/winsorize.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/winsorizeApply.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/xdummy1.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/xdummy2.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/xgboost.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/xgboostPredictClassification.rst create mode 100644 src/main/python/docs/source/api/operator/algorithms/xgboostPredictRegression.rst delete mode 100644 src/main/python/tests/algorithms/test_lm.py create mode 100644 src/main/python/tests/auto_tests/test_dist.py create mode 100644 src/main/python/tests/auto_tests/test_img_brightness.py create mode 100644 src/main/python/tests/auto_tests/test_img_brightness_linearized.py create mode 100644 src/main/python/tests/auto_tests/test_img_crop.py create mode 100644 src/main/python/tests/auto_tests/test_img_crop_linearized.py create mode 100644 src/main/python/tests/auto_tests/test_img_cutout.py create mode 100644 src/main/python/tests/auto_tests/test_img_cutout_linearized.py create mode 100644 src/main/python/tests/auto_tests/test_img_invert.py create mode 100644 src/main/python/tests/auto_tests/test_img_invert_linearized.py create mode 100644 src/main/python/tests/auto_tests/test_img_mirror.py create mode 100644 src/main/python/tests/auto_tests/test_img_mirror_linearized_0.py create mode 100644 src/main/python/tests/auto_tests/test_img_mirror_linearized_1.py create mode 100644 src/main/python/tests/auto_tests/test_img_posterize.py create mode 100644 src/main/python/tests/auto_tests/test_img_posterize_linearized.py create mode 100644 src/main/python/tests/auto_tests/test_img_rotate.py create mode 100644 src/main/python/tests/auto_tests/test_img_rotate_linearized.py create mode 100644 src/main/python/tests/auto_tests/test_img_sample_pairing.py create mode 100644 src/main/python/tests/auto_tests/test_img_sample_pairing_linearized.py create mode 100644 src/main/python/tests/auto_tests/test_img_shear.py create mode 100644 src/main/python/tests/auto_tests/test_img_shear_linearized.py create mode 100644 src/main/python/tests/auto_tests/test_img_transform.py create mode 100644 src/main/python/tests/auto_tests/test_img_transform_linearized.py create mode 100644 src/main/python/tests/auto_tests/test_img_translate.py create mode 100644 src/main/python/tests/auto_tests/test_img_translate_linearized.py create mode 100644 src/main/python/tests/auto_tests/test_lm.py create mode 100644 src/main/python/tests/auto_tests/test_normalize.py create mode 100644 src/main/python/tests/auto_tests/test_randomForest.py create mode 100644 src/main/python/tests/auto_tests/test_randomForestPredict.py create mode 100644 src/main/python/tests/auto_tests/test_toOneHot.py diff --git a/scripts/builtin/dist.dml b/scripts/builtin/dist.dml index f296fd717bc..831992b192b 100644 --- a/scripts/builtin/dist.dml +++ b/scripts/builtin/dist.dml @@ -21,6 +21,21 @@ # Returns Euclidean distance matrix (distances between N n-dimensional points) # +# .. code-block:: python +# +# >>> import numpy as np +# >>> from systemds.context import SystemDSContext +# >>> from systemds.operator.algorithm import dist +# >>> +# >>> with SystemDSContext() as sds: +# ... X = sds.from_numpy(np.array([[0], [3], [4]])) +# ... out = dist(X).compute() +# ... print(out) +# [[0. 3. 4.] +# [3. 0. 1.] +# [4. 1. 0.]] +# +# # INPUT: # -------------------------------------------------------------------------------- # X Matrix to calculate the distance inside diff --git a/scripts/builtin/img_brightness.dml b/scripts/builtin/img_brightness.dml index 100ccb7588b..dda7eba23dc 100644 --- a/scripts/builtin/img_brightness.dml +++ b/scripts/builtin/img_brightness.dml @@ -21,9 +21,26 @@ # The img_brightness-function is an image data augmentation function. It changes the brightness of the image. # +# .. code-block:: python +# +# >>> import numpy as np +# >>> from systemds.context import SystemDSContext +# >>> from systemds.operator.algorithm import img_brightness +# >>> +# >>> with SystemDSContext() as sds: +# ... img = sds.from_numpy( +# ... np.array([[ 50, 100, +# ... 150, 200 ]], dtype=np.float32) +# ... ) +# ... result_img = img_brightness(img, 30.0, 150).compute() +# ... print(result_img.reshape(2, 2)) +# [[ 80. 130.] +# [150. 150.]] +# +# # INPUT: # ----------------------------------------------------------------------------------------- -# img_in Input matrix/image +# img_in Input image as 2D matrix with top left corner at [1, 1] # value The amount of brightness to be changed for the image # channel_max Maximum value of the brightness of the image # ----------------------------------------------------------------------------------------- diff --git a/scripts/builtin/img_brightness_linearized.dml b/scripts/builtin/img_brightness_linearized.dml index 8c5e72d13f9..061b4597c28 100644 --- a/scripts/builtin/img_brightness_linearized.dml +++ b/scripts/builtin/img_brightness_linearized.dml @@ -21,9 +21,26 @@ # The img_brightness_linearized-function is an image data augmentation function. It changes the brightness of one or multiple images. # +# .. code-block:: python +# +# >>> import numpy as np +# >>> from systemds.context import SystemDSContext +# >>> from systemds.operator.algorithm import img_brightness_linearized +# >>> +# >>> with SystemDSContext() as sds: +# ... img = sds.from_numpy( +# ... np.array([[ 50, 100, +# ... 150, 200 ]], dtype=np.float32) +# ... ) +# ... result_img = img_brightness_linearized(img, 30.0, 255).compute() +# ... print(result_img.reshape(2, 2)) +# [[ 80. 130.] +# [180. 230.]] +# +# # INPUT: # ----------------------------------------------------------------------------------------- -# img_in Input matrix/image (can represent multiple images every row of the matrix represents a linearized image) +# img_in Input images as linearized 2D matrix with top left corner at [1, 1] (every row represents a linearized matrix/image) # value The amount of brightness to be changed for the image # channel_max Maximum value of the brightness of the image # ----------------------------------------------------------------------------------------- diff --git a/scripts/builtin/img_crop.dml b/scripts/builtin/img_crop.dml index e85301f8bb6..be183347b35 100644 --- a/scripts/builtin/img_crop.dml +++ b/scripts/builtin/img_crop.dml @@ -21,9 +21,26 @@ # The img_crop-function is an image data augmentation function. It cuts out a subregion of an image. # +# .. code-block:: python +# +# >>> import numpy as np +# >>> from systemds.context import SystemDSContext +# >>> from systemds.operator.algorithm import img_crop +# >>> +# >>> with SystemDSContext() as sds: +# ... img = sds.from_numpy( +# ... np.array([[ 50., 100., 150.], +# ... [150., 200., 250.], +# ... [250., 200., 200.]], dtype=np.float32) +# ... ) +# ... result_img = img_crop(img, 1, 1, 1, 1).compute() +# ... print(result_img) +# [[200.]] +# +# # INPUT: # ---------------------------------------------------------------------------------------- -# img_in Input matrix/image +# img_in Input image as 2D matrix with top left corner at [1, 1] # w The width of the subregion required # h The height of the subregion required # x_offset The horizontal coordinate in the image to begin the crop operation diff --git a/scripts/builtin/img_crop_linearized.dml b/scripts/builtin/img_crop_linearized.dml index b2c2c03fd18..c79da14c141 100644 --- a/scripts/builtin/img_crop_linearized.dml +++ b/scripts/builtin/img_crop_linearized.dml @@ -21,9 +21,26 @@ # The img_crop_linearized cuts out a rectangular section of multiple linearized images. # +# .. code-block:: python +# +# >>> import numpy as np +# >>> from systemds.context import SystemDSContext +# >>> from systemds.operator.algorithm import img_crop_linearized +# >>> +# >>> with SystemDSContext() as sds: +# ... img = sds.from_numpy( +# ... np.array([[ 50., 100., 150., +# ... 150., 200., 250., +# ... 250., 200., 200. ]], dtype=np.float32) +# ... ) +# ... result_img = img_crop_linearized(img, 1, 1, 1, 1, 3, 3).compute() +# ... print(result_img) +# [[200.]] +# +# # INPUT: # ---------------------------------------------------------------------------------------- -# img_in Linearized input images as 2D matrix +# img_in Input images as linearized 2D matrix with top left corner at [1, 1] (every row represents a linearized matrix/image) # w The width of the subregion required # h The height of the subregion required # x_offset The horizontal offset for the center of the crop region diff --git a/scripts/builtin/img_cutout.dml b/scripts/builtin/img_cutout.dml index cd3f432cd0f..efe194045fc 100644 --- a/scripts/builtin/img_cutout.dml +++ b/scripts/builtin/img_cutout.dml @@ -21,6 +21,26 @@ # Image Cutout function replaces a rectangular section of an image with a constant value. # +# +# .. code-block:: python +# +# >>> import numpy as np +# >>> from systemds.context import SystemDSContext +# >>> from systemds.operator.algorithm import img_cutout +# >>> +# >>> with SystemDSContext() as sds: +# ... img = sds.from_numpy( +# ... np.array([[ 50., 100., 150.], +# ... [150., 200., 250.], +# ... [250., 200., 200.]], dtype=np.float32) +# ... ) +# ... result_img = img_cutout(img, 2, 2, 1, 1, 49.).compute() +# ... print(result_img) +# [[ 50. 100. 150.] +# [150. 49. 250.] +# [250. 200. 200.]] +# +# # INPUT: # --------------------------------------------------------------------------------------------- # img_in Input image as 2D matrix with top left corner at [1, 1] diff --git a/scripts/builtin/img_cutout_linearized.dml b/scripts/builtin/img_cutout_linearized.dml index cb923e31ba4..9e10908904c 100644 --- a/scripts/builtin/img_cutout_linearized.dml +++ b/scripts/builtin/img_cutout_linearized.dml @@ -21,14 +21,33 @@ # Image Cutout function replaces a rectangular section of an image with a constant value. # +# .. code-block:: python +# +# >>> import numpy as np +# >>> from systemds.context import SystemDSContext +# >>> from systemds.operator.algorithm import img_cutout_linearized +# >>> +# >>> with SystemDSContext() as sds: +# ... img = sds.from_numpy( +# ... np.array([[ 50., 100., 150., +# ... 150., 200., 250., +# ... 250., 200., 200. ]], dtype=np.float32) +# ... ) +# ... result_img = img_cutout_linearized(img, 2, 2, 1, 1, 25.0, 3, 3).compute() +# ... print(result_img.reshape(3, 3)) +# [[ 50. 100. 150.] +# [150. 25. 250.] +# [250. 200. 200.]] +# +# # INPUT: # --------------------------------------------------------------------------------------------- -# img_in Input images as linearized 2D matrix with top left corner at [1, 1] +# img_in Input images as linearized 2D matrix with top left corner at [1, 1] (every row represents a linearized matrix/image) # x Column index of the top left corner of the rectangle (starting at 1) # y Row index of the top left corner of the rectangle (starting at 1) # width Width of the rectangle (must be positive) # height Height of the rectangle (must be positive) -# fill_value The value to set for the rectangle +# fill_value The value to set for the rectangle # s_cols Width of a single image # s_rows Height of a single image # --------------------------------------------------------------------------------------------- diff --git a/scripts/builtin/img_invert.dml b/scripts/builtin/img_invert.dml index c52f5bed3a7..2475535aadd 100644 --- a/scripts/builtin/img_invert.dml +++ b/scripts/builtin/img_invert.dml @@ -21,9 +21,28 @@ # This is an image data augmentation function. It inverts an image. # +# .. code-block:: python +# +# >>> import numpy as np +# >>> from systemds.context import SystemDSContext +# >>> from systemds.operator.algorithm import img_invert +# >>> +# >>> with SystemDSContext() as sds: +# ... img = sds.from_numpy( +# ... np.array([[ 10., 20., 30.], +# ... [ 40., 50., 60.], +# ... [ 70., 80., 90.]], dtype=np.float32) +# ... ) +# ... result_img = img_invert(img, 210.).compute() +# ... print(result_img) +# [[200. 190. 180.] +# [170. 160. 150.] +# [140. 130. 120.]] +# +# # INPUT: # --------------------------------------------------------------------------------------------- -# img_in Input image +# img_in Input image as 2D matrix with top left corner at [1, 1] # max_value The maximum value pixels can have # --------------------------------------------------------------------------------------------- # diff --git a/scripts/builtin/img_invert_linearized.dml b/scripts/builtin/img_invert_linearized.dml index 68b245492c0..ce4c45219f1 100644 --- a/scripts/builtin/img_invert_linearized.dml +++ b/scripts/builtin/img_invert_linearized.dml @@ -21,9 +21,28 @@ # This is an image data augmentation function. It inverts an image.It can handle one or multiple images # +# .. code-block:: python +# +# >>> import numpy as np +# >>> from systemds.context import SystemDSContext +# >>> from systemds.operator.algorithm import img_invert_linearized +# >>> +# >>> with SystemDSContext() as sds: +# ... img = sds.from_numpy( +# ... np.array([[ 10., 20., 30., +# ... 40., 50., 60., +# ... 70., 80., 90. ]], dtype=np.float32) +# ... ) +# ... result_img = img_invert_linearized(img, 200.).compute() +# ... print(result_img.reshape(3, 3)) +# [[190. 180. 170.] +# [160. 150. 140.] +# [130. 120. 110.]] +# +# # INPUT: # --------------------------------------------------------------------------------------------- -# img_in Input matrix/image (every row of the matrix represents a linearized image) +# img_in Input images as linearized 2D matrix with top left corner at [1, 1] (every row represents a linearized matrix/image) # max_value The maximum value pixels can have # --------------------------------------------------------------------------------------------- # diff --git a/scripts/builtin/img_mirror.dml b/scripts/builtin/img_mirror.dml index a8836f6fd25..1b79e385a52 100644 --- a/scripts/builtin/img_mirror.dml +++ b/scripts/builtin/img_mirror.dml @@ -22,10 +22,29 @@ # This function is an image data augmentation function. # It flips an image on the X (horizontal) or Y (vertical) axis. # +# .. code-block:: python +# +# >>> import numpy as np +# >>> from systemds.context import SystemDSContext +# >>> from systemds.operator.algorithm import img_mirror +# >>> +# >>> with SystemDSContext() as sds: +# ... img = sds.from_numpy( +# ... np.array([[ 10., 20., 30.], +# ... [ 40., 50., 60.], +# ... [ 70., 80., 90.]], dtype=np.float32) +# ... ) +# ... result_img = img_mirror(img, False).compute() +# ... print(result_img) +# [[30. 20. 10.] +# [60. 50. 40.] +# [90. 80. 70.]] +# +# # INPUT: # --------------------------------------------------------------------------------------------- -# img_in Input matrix/image -# max_value The maximum value pixels can have +# img_in Input image as 2D matrix with top left corner at [1, 1] +# horizontal_axis Flip either in X or Y axis # --------------------------------------------------------------------------------------------- # # OUTPUT: diff --git a/scripts/builtin/img_mirror_linearized.dml b/scripts/builtin/img_mirror_linearized.dml index 08b3fe539f9..f56f17dabb3 100644 --- a/scripts/builtin/img_mirror_linearized.dml +++ b/scripts/builtin/img_mirror_linearized.dml @@ -22,9 +22,55 @@ # This function has the same functionality with img_mirror but it handles multiple images at # the same time. Each row of the input and output matrix represents a linearized image/matrix # It flips an image on the X (horizontal) or Y (vertical) axis. +# +# .. code-block:: python +# +# >>> import numpy as np +# >>> from systemds.context import SystemDSContext +# >>> from systemds.operator.algorithm import img_mirror_linearized +# >>> +# >>> with SystemDSContext() as sds: +# ... img = sds.from_numpy( +# ... np.array([[ 10., 20., 30., +# ... 40., 50., 60., +# ... 70., 80., 90. ]], dtype=np.float32) +# ... ) +# ... result_img = img_mirror_linearized(img, True, 3, 3).compute() +# ... print(result_img.reshape(3, 3)) +# [[70. 80. 90.] +# [40. 50. 60.] +# [10. 20. 30.]] +# +# +# .. code-block:: python +# +# >>> import numpy as np +# >>> from systemds.context import SystemDSContext +# >>> from systemds.operator.algorithm import img_mirror_linearized +# >>> +# >>> with SystemDSContext() as sds: +# ... imgs = sds.from_numpy( +# ... np.array([[ 10., 20., 30., +# ... 40., 50., 60., +# ... 70., 80., 90. ], +# ... [ 70., 80., 90., +# ... 40., 50., 60., +# ... 10., 20., 30. ]], dtype=np.float32) +# ... ) +# ... result_imgs = img_mirror_linearized(imgs, True, 3, 3).compute() +# ... print(result_imgs[0].reshape(3, 3)) +# ... print(result_imgs[1].reshape(3, 3)) +# [[70. 80. 90.] +# [40. 50. 60.] +# [10. 20. 30.]] +# [[10. 20. 30.] +# [40. 50. 60.] +# [70. 80. 90.]] +# +# # INPUT: # ----------------------------------------------------------------------------------------- -# img_matrix Input matrix/image (every row represents a linearized matrix/image) +# img_matrix Input images as linearized 2D matrix with top left corner at [1, 1] (every row represents a linearized matrix/image) # horizontal_axis flip either in X or Y axis # original_rows number of rows in the original 2-D images # original_cols number of cols in the original 2-D images diff --git a/scripts/builtin/img_posterize.dml b/scripts/builtin/img_posterize.dml index 91578b9c766..3916c828ba4 100644 --- a/scripts/builtin/img_posterize.dml +++ b/scripts/builtin/img_posterize.dml @@ -22,10 +22,29 @@ # The Image Posterize function limits pixel values to 2^bits different values in the range [0, 255]. # Assumes the input image can attain values in the range [0, 255]. # +# .. code-block:: python +# +# >>> import numpy as np +# >>> from systemds.context import SystemDSContext +# >>> from systemds.operator.algorithm import img_posterize +# >>> +# >>> with SystemDSContext() as sds: +# ... img = sds.from_numpy( +# ... np.array([[ 10., 20., 30.], +# ... [ 40., 255., 60.], +# ... [ 70., 80., 90.]], dtype=np.float32) +# ... ) +# ... result_img = img_posterize(img, 1).compute() +# ... print(result_img) +# [[ 0. 0. 0.] +# [ 0. 128. 0.] +# [ 0. 0. 0.]] +# +# # INPUT: # ------------------------------------------------------------------------------------------- -# img_in Input image -# bits The number of bits keep for the values. +# img_in Input image as 2D matrix with top left corner at [1, 1] +# bits The number of bits to keep for the values. # 1 means black and white, 8 means every integer between 0 and 255. # ------------------------------------------------------------------------------------------- # diff --git a/scripts/builtin/img_posterize_linearized.dml b/scripts/builtin/img_posterize_linearized.dml index a0edcf3ed4f..0ff833bf67f 100644 --- a/scripts/builtin/img_posterize_linearized.dml +++ b/scripts/builtin/img_posterize_linearized.dml @@ -22,10 +22,29 @@ # The Linearized Image Posterize function limits pixel values to 2^bits different values in the range [0, 255]. # Assumes the input image can attain values in the range [0, 255]. # +# .. code-block:: python +# +# >>> import numpy as np +# >>> from systemds.context import SystemDSContext +# >>> from systemds.operator.algorithm import img_posterize_linearized +# >>> +# >>> with SystemDSContext() as sds: +# ... img = sds.from_numpy( +# ... np.array([[ 10., 20., 30., +# ... 40., 255., 60., +# ... 70., 80., 90. ]], dtype=np.float32) +# ... ) +# ... result_img = img_posterize_linearized(img, 1).compute() +# ... print(result_img.reshape(3, 3)) +# [[ 0. 0. 0.] +# [ 0. 128. 0.] +# [ 0. 0. 0.]] +# +# # INPUT: # ------------------------------------------------------------------------------------------- -# img_in Row linearized input images as 2D matrix -# bits The number of bits keep for the values. +# img_in Input images as linearized 2D matrix with top left corner at [1, 1] (every row represents a linearized matrix/image) +# bits The number of bits to keep for the values. # 1 means black and white, 8 means every integer between 0 and 255. # ------------------------------------------------------------------------------------------- # diff --git a/scripts/builtin/img_rotate.dml b/scripts/builtin/img_rotate.dml index c49826c2104..d1e6da7bdac 100644 --- a/scripts/builtin/img_rotate.dml +++ b/scripts/builtin/img_rotate.dml @@ -22,6 +22,25 @@ # The Image Rotate function rotates the input image counter-clockwise around the center. # Uses nearest neighbor sampling. # +# .. code-block:: python +# +# >>> import numpy as np +# >>> from systemds.context import SystemDSContext +# >>> from systemds.operator.algorithm import img_rotate +# >>> +# >>> with SystemDSContext() as sds: +# ... img = sds.from_numpy( +# ... np.array([[ 10., 20., 30.], +# ... [ 40., 50., 60.], +# ... [ 70., 80., 90.]], dtype=np.float32) +# ... ) +# ... result_img = img_rotate(img, 3.14159, 255.).compute() +# ... print(result_img) +# [[90. 80. 70.] +# [60. 50. 40.] +# [30. 20. 10.]] +# +# # INPUT: # ----------------------------------------------------------------------------------------------- # img_in Input image as 2D matrix with top left corner at [1, 1] diff --git a/scripts/builtin/img_rotate_linearized.dml b/scripts/builtin/img_rotate_linearized.dml index f5ac43625d5..45ad077aae4 100644 --- a/scripts/builtin/img_rotate_linearized.dml +++ b/scripts/builtin/img_rotate_linearized.dml @@ -22,11 +22,32 @@ # The Linearized Image Rotate function rotates the linearized input images counter-clockwise around the center. # Uses nearest neighbor sampling. # +# .. code-block:: python +# +# >>> import numpy as np +# >>> from systemds.context import SystemDSContext +# >>> from systemds.operator.algorithm import img_rotate_linearized +# >>> +# >>> with SystemDSContext() as sds: +# ... img = sds.from_numpy( +# ... np.array([[ 10., 20., 30., +# ... 40., 50., 60., +# ... 70., 80., 90. ]], dtype=np.float32) +# ... ) +# ... result_img = img_rotate_linearized(img, 3.14159, 255., 3, 3).compute() +# ... print(result_img.reshape(3, 3)) +# [[90. 80. 70.] +# [60. 50. 40.] +# [30. 20. 10.]] +# +# # INPUT: # ----------------------------------------------------------------------------------------------- -# img_in Linearized input images as 2D matrix with top left corner at [1, 1] +# img_in Input images as linearized 2D matrix with top left corner at [1, 1] (every row represents a linearized matrix/image) # radians The value by which to rotate in radian. -# fill_value The background color revealed by the rotation +# fill_value The background color revealed by the rotation +# s_cols Width of a single image +# s_rows Height of a single image # ----------------------------------------------------------------------------------------------- # # OUTPUT: diff --git a/scripts/builtin/img_sample_pairing.dml b/scripts/builtin/img_sample_pairing.dml index 99147b25550..bac412a511e 100644 --- a/scripts/builtin/img_sample_pairing.dml +++ b/scripts/builtin/img_sample_pairing.dml @@ -21,10 +21,34 @@ # The image sample pairing function blends two images together. # +# .. code-block:: python +# +# >>> import numpy as np +# >>> from systemds.context import SystemDSContext +# >>> from systemds.operator.algorithm import img_sample_pairing +# >>> +# >>> with SystemDSContext() as sds: +# ... img_in1 = sds.from_numpy( +# ... np.array([[ 10., 20., 30.], +# ... [ 40., 50., 60.], +# ... [ 70., 80., 90.]], dtype=np.float32) +# ... ) +# ... img_in2 = sds.from_numpy( +# ... np.array([[ 30., 40., 50.], +# ... [ 60., 70., 80.], +# ... [ 90., 100., 110.]], dtype=np.float32) +# ... ) +# ... result_img = img_sample_pairing(img_in1, img_in2, 0.5).compute() +# ... print(result_img) +# [[ 20. 30. 40.] +# [ 50. 60. 70.] +# [ 80. 90. 100.]] +# +# # INPUT: # ------------------------------------------------------------------------------------------- -# img_in1 First input image -# img_in2 Second input image +# img_in1 First input image as 2D matrix with top left corner at [1, 1] +# img_in2 Second input image as 2D matrix with top left corner at [1, 1] # weight The weight given to the second image. # 0 means only img_in1, 1 means only img_in2 will be visible # ------------------------------------------------------------------------------------------- diff --git a/scripts/builtin/img_sample_pairing_linearized.dml b/scripts/builtin/img_sample_pairing_linearized.dml index f09046cc181..975d12d2b8d 100644 --- a/scripts/builtin/img_sample_pairing_linearized.dml +++ b/scripts/builtin/img_sample_pairing_linearized.dml @@ -21,9 +21,33 @@ # The image sample pairing function blends two images together. # +# .. code-block:: python +# +# >>> import numpy as np +# >>> from systemds.context import SystemDSContext +# >>> from systemds.operator.algorithm import img_sample_pairing_linearized +# >>> +# >>> with SystemDSContext() as sds: +# ... img_in1 = sds.from_numpy( +# ... np.array([[ 10., 20., 30., +# ... 40., 50., 60., +# ... 70., 80., 90. ]], dtype=np.float32) +# ... ) +# ... img_in2 = sds.from_numpy( +# ... np.array([[ 30., 40., 50., +# ... 60., 70., 80., +# ... 90., 100., 110. ]], dtype=np.float32) +# ... ) +# ... result_img = img_sample_pairing_linearized(img_in1, img_in2, 0.5).compute() +# ... print(result_img.reshape(3, 3)) +# [[ 20. 30. 40.] +# [ 50. 60. 70.] +# [ 80. 90. 100.]] +# +# # INPUT: # ------------------------------------------------------------------------------------------- -# img_in1 input matrix/image (every row is a linearized image) +# img_in1 Input images as linearized 2D matrix with top left corner at [1, 1] (every row represents a linearized matrix/image) # img_in2 Second input image (one image represented as a single row linearized matrix) # weight The weight given to the second image. # 0 means only img_in1, 1 means only img_in2 will be visible diff --git a/scripts/builtin/img_shear.dml b/scripts/builtin/img_shear.dml index 2cf00592a63..bce106d80ef 100644 --- a/scripts/builtin/img_shear.dml +++ b/scripts/builtin/img_shear.dml @@ -22,6 +22,25 @@ # This function applies a shearing transformation to an image. # Uses nearest neighbor sampling. # +# .. code-block:: python +# +# >>> import numpy as np +# >>> from systemds.context import SystemDSContext +# >>> from systemds.operator.algorithm import img_shear +# >>> +# >>> with SystemDSContext() as sds: +# ... img = sds.from_numpy( +# ... np.array([[ 10., 20., 30.], +# ... [ 40., 50., 60.], +# ... [ 70., 80., 90.]], dtype=np.float32) +# ... ) +# ... result_img = img_shear(img, 1., 0., 255).compute() +# ... print(result_img) +# [[ 10. 20. 30.] +# [255. 40. 50.] +# [255. 255. 70.]] +# +# # INPUT: # --------------------------------------------------------------------------------------------- # img_in Input image as 2D matrix with top left corner at [1, 1] diff --git a/scripts/builtin/img_shear_linearized.dml b/scripts/builtin/img_shear_linearized.dml index 79471f358b6..4bac774b28b 100644 --- a/scripts/builtin/img_shear_linearized.dml +++ b/scripts/builtin/img_shear_linearized.dml @@ -22,12 +22,33 @@ # This function applies a shearing transformation to linearized images. # Uses nearest neighbor sampling. # +# .. code-block:: python +# +# >>> import numpy as np +# >>> from systemds.context import SystemDSContext +# >>> from systemds.operator.algorithm import img_shear_linearized +# >>> +# >>> with SystemDSContext() as sds: +# ... img = sds.from_numpy( +# ... np.array([[ 10., 20., 30., +# ... 40., 50., 60., +# ... 70., 80., 90. ]], dtype=np.float32) +# ... ) +# ... result_img = img_shear_linearized(img, 1., 0., 0., 3, 3).compute() +# ... print(result_img.reshape(3, 3)) +# [[10. 20. 30.] +# [ 0. 40. 50.] +# [ 0. 0. 70.]] +# +# # INPUT: # --------------------------------------------------------------------------------------------- -# img_in Linearized input images as 2D matrix with top left corner at [1, 1] +# img_in Input images as linearized 2D matrix with top left corner at [1, 1] (every row represents a linearized matrix/image) # shear_x Shearing factor for horizontal shearing # shear_y Shearing factor for vertical shearing # fill_value The background color revealed by the shearing +# s_cols Width of a single image +# s_rows Height of a single image # --------------------------------------------------------------------------------------------- # # OUTPUT: diff --git a/scripts/builtin/img_transform.dml b/scripts/builtin/img_transform.dml index f65e2f4a5f5..d6636c0bc31 100644 --- a/scripts/builtin/img_transform.dml +++ b/scripts/builtin/img_transform.dml @@ -23,6 +23,25 @@ # Optionally resizes the image (without scaling). # Uses nearest neighbor sampling. # +# .. code-block:: python +# +# >>> import numpy as np +# >>> from systemds.context import SystemDSContext +# >>> from systemds.operator.algorithm import img_transform +# >>> +# >>> with SystemDSContext() as sds: +# ... img = sds.from_numpy( +# ... np.array([[ 10., 20., 30.], +# ... [ 40., 50., 60.], +# ... [ 70., 80., 90.]], dtype=np.float32) +# ... ) +# ... result_img = img_transform(img, 3, 3, -1., 0., 2., 0., 1., 0., 255.).compute() +# ... print(result_img) +# [[ 20. 10. 255.] +# [ 50. 40. 255.] +# [ 80. 70. 255.]] +# +# # INPUT: # ------------------------------------------------------------------------------------------- # img_in Input image as 2D matrix with top left corner at [1, 1] diff --git a/scripts/builtin/img_transform_linearized.dml b/scripts/builtin/img_transform_linearized.dml index 06867d61b2e..dc4c650c58f 100644 --- a/scripts/builtin/img_transform_linearized.dml +++ b/scripts/builtin/img_transform_linearized.dml @@ -23,13 +23,34 @@ # Optionally resizes the image (without scaling). # Uses nearest neighbor sampling. # +# .. code-block:: python +# +# >>> import numpy as np +# >>> from systemds.context import SystemDSContext +# >>> from systemds.operator.algorithm import img_transform_linearized +# >>> +# >>> with SystemDSContext() as sds: +# ... img = sds.from_numpy( +# ... np.array([[ 10., 20., 30., +# ... 40., 50., 60., +# ... 70., 80., 90. ]], dtype=np.float32) +# ... ) +# ... result_img = img_transform_linearized(img, 3, 3, -1., 0., 2., 0., 1., 0., 255., 3, 3).compute() +# ... print(result_img.reshape(3, 3)) +# [[ 20. 10. 255.] +# [ 50. 40. 255.] +# [ 80. 70. 255.]] +# +# # INPUT: # ------------------------------------------------------------------------------------------- -# img_in Linearized input images as 2D matrix with top left corner at [1, 1] +# img_in Input images as linearized 2D matrix with top left corner at [1, 1] (every row represents a linearized matrix/image) # out_w Width of the output matrix # out_h Height of the output matrix # a,b,c,d,e,f The first two rows of the affine matrix in row-major order -# fill_value The background of an image +# fill_value The background of an image +# s_cols Width of a single image +# s_rows Height of a single image # ------------------------------------------------------------------------------------------- # # OUTPUT: diff --git a/scripts/builtin/img_translate.dml b/scripts/builtin/img_translate.dml index 9bf2664d33c..687f8f04150 100644 --- a/scripts/builtin/img_translate.dml +++ b/scripts/builtin/img_translate.dml @@ -23,6 +23,25 @@ # Optionally resizes the image (without scaling). # Uses nearest neighbor sampling. # +# .. code-block:: python +# +# >>> import numpy as np +# >>> from systemds.context import SystemDSContext +# >>> from systemds.operator.algorithm import img_translate +# >>> +# >>> with SystemDSContext() as sds: +# ... img = sds.from_numpy( +# ... np.array([[ 10., 20., 30.], +# ... [ 40., 50., 60.], +# ... [ 70., 80., 90.]], dtype=np.float32) +# ... ) +# ... result_img = img_translate(img, 1., 1., 3, 3, 255.).compute() +# ... print(result_img) +# [[255. 255. 255.] +# [255. 10. 20.] +# [255. 40. 50.]] +# +# # INPUT: # ---------------------------------------------------------------------------------------------- # img_in Input image as 2D matrix with top left corner at [1, 1] diff --git a/scripts/builtin/img_translate_linearized.dml b/scripts/builtin/img_translate_linearized.dml index c2c898d21c9..2feec938007 100644 --- a/scripts/builtin/img_translate_linearized.dml +++ b/scripts/builtin/img_translate_linearized.dml @@ -22,9 +22,29 @@ # This function has the same functionality with img_translate but it handles multiple images at # the same time. Each row of the input and output matrix represents a linearized image/matrix # It translates the image and Optionally resizes the image (without scaling). +# +# .. code-block:: python +# +# >>> import numpy as np +# >>> from systemds.context import SystemDSContext +# >>> from systemds.operator.algorithm import img_translate_linearized +# >>> +# >>> with SystemDSContext() as sds: +# ... img = sds.from_numpy( +# ... np.array([[ 10., 20., 30., +# ... 40., 50., 60., +# ... 70., 80., 90. ]], dtype=np.float32) +# ... ) +# ... result_img = img_translate_linearized(img, 1., 1., 3, 3, 255.0, 3, 3).compute() +# ... print(result_img.reshape(3, 3)) +# [[255. 255. 255.] +# [255. 10. 20.] +# [255. 40. 50.]] +# +# # INPUT: # ---------------------------------------------------------------------------------------------- -# img_in Input matrix/image (every row represents a linearized matrix/image) +# img_in Input images as linearized 2D matrix with top left corner at [1, 1] (every row represents a linearized matrix/image) # offset_x The distance to move the image in x direction # offset_y The distance to move the image in y direction # out_w Width of the output image diff --git a/scripts/builtin/lm.dml b/scripts/builtin/lm.dml index b7fc55e0ff9..58f161a3ce2 100644 --- a/scripts/builtin/lm.dml +++ b/scripts/builtin/lm.dml @@ -23,6 +23,36 @@ # method or the conjugate gradient algorithm depending on the input size # of the matrices (See lmDS-function and lmCG-function respectively). # +# .. code-block:: python +# +# >>> import numpy as np +# >>> from systemds.context import SystemDSContext +# >>> from systemds.operator.algorithm import lm +# >>> +# >>> np.random.seed(0) +# >>> features = np.random.rand(10, 15) +# >>> y = np.random.rand(10, 1) +# >>> +# >>> with SystemDSContext() as sds: +# ... weights = lm(sds.from_numpy(features), sds.from_numpy(y)).compute() +# ... print(weights) +# [[-0.11538199] +# [-0.20386541] +# [-0.39956034] +# [ 1.04078623] +# [ 0.43270839] +# [ 0.18954599] +# [ 0.49858969] +# [-0.26812763] +# [ 0.09961844] +# [-0.57000751] +# [-0.43386048] +# [ 0.55358873] +# [-0.54638565] +# [ 0.2205885 ] +# [ 0.37957689]] +# +# # INPUT: # -------------------------------------------------------------------- # X Matrix of feature vectors. diff --git a/scripts/builtin/normalize.dml b/scripts/builtin/normalize.dml index 1f136757aa4..9496431ee84 100644 --- a/scripts/builtin/normalize.dml +++ b/scripts/builtin/normalize.dml @@ -22,6 +22,20 @@ # Min-max normalization (a.k.a. min-max scaling) to range [0,1]. For matrices # of positive values, this normalization preserves the input sparsity. # +# .. code-block:: python +# +# >>> import numpy as np +# >>> from systemds.context import SystemDSContext +# >>> from systemds.operator.algorithm import normalize +# >>> +# >>> with SystemDSContext() as sds: +# ... X = sds.from_numpy(np.array([[1, 2], [3, 4]])) +# ... Y, cmin, cmax = normalize(X).compute() +# ... print(Y) +# [[0. 0.] +# [1. 1.]] +# +# # INPUT: # --------------------------------------------------------------------------------------- # X Input feature matrix of shape n-by-m diff --git a/scripts/builtin/randomForest.dml b/scripts/builtin/randomForest.dml index 53529afb9a9..cd298265417 100644 --- a/scripts/builtin/randomForest.dml +++ b/scripts/builtin/randomForest.dml @@ -46,6 +46,47 @@ # prefixed by a one-hot vector of sampled features # (e.g., [1,1,1,0] if we sampled a,b,c of the four features) # +# .. code-block:: python +# +# >>> import numpy as np +# >>> from systemds.context import SystemDSContext +# >>> from systemds.operator.algorithm import randomForest, randomForestPredict +# >>> +# >>> # tiny toy dataset +# >>> X = np.array([[1], +# ... [2], +# ... [10], +# ... [11]], dtype=np.int64) +# >>> y = np.array([[1], +# ... [1], +# ... [2], +# ... [2]], dtype=np.int64) +# >>> +# >>> with SystemDSContext() as sds: +# ... X_sds = sds.from_numpy(X) +# ... y_sds = sds.from_numpy(y) +# ... +# ... ctypes = sds.from_numpy(np.array([[1, 2]], dtype=np.int64)) +# ... +# ... # train a 4-tree forest (no sampling) +# ... M = randomForest( +# ... X_sds, y_sds, ctypes, +# ... num_trees = 4, +# ... sample_frac = 1.0, +# ... feature_frac = 1.0, +# ... max_depth = 3, +# ... min_leaf = 1, +# ... min_split = 2, +# ... seed = 42 +# ... ) +# ... +# ... preds = randomForestPredict(X_sds, ctypes, M).compute() +# ... print(preds) +# [[1.] +# [1.] +# [2.] +# [2.]] +# # # INPUT: # ------------------------------------------------------------------------------ diff --git a/scripts/builtin/randomForestPredict.dml b/scripts/builtin/randomForestPredict.dml index a003f26f7d4..3a42c7f4870 100644 --- a/scripts/builtin/randomForestPredict.dml +++ b/scripts/builtin/randomForestPredict.dml @@ -22,6 +22,49 @@ # This script implements random forest prediction for recoded and binned # categorical and numerical input features. # +# +# .. code-block:: python +# +# >>> import numpy as np +# >>> from systemds.context import SystemDSContext +# >>> from systemds.operator.algorithm import randomForest, randomForestPredict +# >>> +# >>> # tiny toy dataset +# >>> X = np.array([[1], +# ... [2], +# ... [10], +# ... [11]], dtype=np.int64) +# >>> y = np.array([[1], +# ... [1], +# ... [2], +# ... [2]], dtype=np.int64) +# >>> +# >>> with SystemDSContext() as sds: +# ... X_sds = sds.from_numpy(X) +# ... y_sds = sds.from_numpy(y) +# ... +# ... ctypes = sds.from_numpy(np.array([[1, 2]], dtype=np.int64)) +# ... +# ... # train a 4-tree forest (no sampling) +# ... M = randomForest( +# ... X_sds, y_sds, ctypes, +# ... num_trees = 4, +# ... sample_frac = 1.0, +# ... feature_frac = 1.0, +# ... max_depth = 3, +# ... min_leaf = 1, +# ... min_split = 2, +# ... seed = 42 +# ... ) +# ... +# ... preds = randomForestPredict(X_sds, ctypes, M).compute() +# ... print(preds) +# [[1.] +# [1.] +# [2.] +# [2.]] +# +# # INPUT: # ------------------------------------------------------------------------------ # X Feature matrix in recoded/binned representation diff --git a/scripts/builtin/toOneHot.dml b/scripts/builtin/toOneHot.dml index 2232cdc97bc..aec58c49994 100644 --- a/scripts/builtin/toOneHot.dml +++ b/scripts/builtin/toOneHot.dml @@ -21,6 +21,22 @@ # The toOneHot-function encodes unordered categorical vector to multiple binary vectors. # +# .. code-block:: python +# +# >>> import numpy as np +# >>> from systemds.context import SystemDSContext +# >>> from systemds.operator.algorithm import toOneHot +# >>> +# >>> with SystemDSContext() as sds: +# ... X = sds.from_numpy(np.array([[1], [3], [2], [3]])) +# ... Y = toOneHot(X, numClasses=3).compute() +# ... print(Y) +# [[1. 0. 0.] +# [0. 0. 1.] +# [0. 1. 0.] +# [0. 0. 1.]] +# +# # INPUT: # ------------------------------------------------------------------------------------------ # X Vector with N integer entries between 1 and numClasses diff --git a/src/main/python/docs/source/api/operator/algorithms.rst b/src/main/python/docs/source/api/operator/algorithms.rst index 1ea5de4a435..27163896437 100644 --- a/src/main/python/docs/source/api/operator/algorithms.rst +++ b/src/main/python/docs/source/api/operator/algorithms.rst @@ -66,4 +66,9 @@ The output should be similar to [ 0.37957689]] .. automodule:: systemds.operator.algorithm - :members: \ No newline at end of file + +.. toctree:: + :maxdepth: 1 + :glob: + + algorithms/* \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/WoE.rst b/src/main/python/docs/source/api/operator/algorithms/WoE.rst new file mode 100644 index 00000000000..9712759986c --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/WoE.rst @@ -0,0 +1,4 @@ +WoE +=== + +.. autofunction:: systemds.operator.algorithm.WoE \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/WoEApply.rst b/src/main/python/docs/source/api/operator/algorithms/WoEApply.rst new file mode 100644 index 00000000000..1b612b82bbc --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/WoEApply.rst @@ -0,0 +1,4 @@ +WoEApply +======== + +.. autofunction:: systemds.operator.algorithm.WoEApply \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/abstain.rst b/src/main/python/docs/source/api/operator/algorithms/abstain.rst new file mode 100644 index 00000000000..dcef8791593 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/abstain.rst @@ -0,0 +1,4 @@ +abstain +======= + +.. autofunction:: systemds.operator.algorithm.abstain \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/adasyn.rst b/src/main/python/docs/source/api/operator/algorithms/adasyn.rst new file mode 100644 index 00000000000..28762393754 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/adasyn.rst @@ -0,0 +1,4 @@ +adasyn +====== + +.. autofunction:: systemds.operator.algorithm.adasyn \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/als.rst b/src/main/python/docs/source/api/operator/algorithms/als.rst new file mode 100644 index 00000000000..67ff3426dcd --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/als.rst @@ -0,0 +1,4 @@ +als +=== + +.. autofunction:: systemds.operator.algorithm.als \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/alsCG.rst b/src/main/python/docs/source/api/operator/algorithms/alsCG.rst new file mode 100644 index 00000000000..11407a8cd5c --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/alsCG.rst @@ -0,0 +1,4 @@ +alsCG +===== + +.. autofunction:: systemds.operator.algorithm.alsCG \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/alsDS.rst b/src/main/python/docs/source/api/operator/algorithms/alsDS.rst new file mode 100644 index 00000000000..cffde102cef --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/alsDS.rst @@ -0,0 +1,4 @@ +alsDS +===== + +.. autofunction:: systemds.operator.algorithm.alsDS \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/alsPredict.rst b/src/main/python/docs/source/api/operator/algorithms/alsPredict.rst new file mode 100644 index 00000000000..872eeff8d4f --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/alsPredict.rst @@ -0,0 +1,4 @@ +alsPredict +========== + +.. autofunction:: systemds.operator.algorithm.alsPredict \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/alsTopkPredict.rst b/src/main/python/docs/source/api/operator/algorithms/alsTopkPredict.rst new file mode 100644 index 00000000000..f68c5c4e3fc --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/alsTopkPredict.rst @@ -0,0 +1,4 @@ +alsTopkPredict +============== + +.. autofunction:: systemds.operator.algorithm.alsTopkPredict \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/ampute.rst b/src/main/python/docs/source/api/operator/algorithms/ampute.rst new file mode 100644 index 00000000000..f8b7783ef67 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/ampute.rst @@ -0,0 +1,4 @@ +ampute +====== + +.. autofunction:: systemds.operator.algorithm.ampute \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/apply_pipeline.rst b/src/main/python/docs/source/api/operator/algorithms/apply_pipeline.rst new file mode 100644 index 00000000000..1af55455dad --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/apply_pipeline.rst @@ -0,0 +1,4 @@ +apply_pipeline +============== + +.. autofunction:: systemds.operator.algorithm.apply_pipeline \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/arima.rst b/src/main/python/docs/source/api/operator/algorithms/arima.rst new file mode 100644 index 00000000000..af74a3f85fd --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/arima.rst @@ -0,0 +1,4 @@ +arima +===== + +.. autofunction:: systemds.operator.algorithm.arima \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/auc.rst b/src/main/python/docs/source/api/operator/algorithms/auc.rst new file mode 100644 index 00000000000..06457bdb4a5 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/auc.rst @@ -0,0 +1,4 @@ +auc +=== + +.. autofunction:: systemds.operator.algorithm.auc \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/autoencoder_2layer.rst b/src/main/python/docs/source/api/operator/algorithms/autoencoder_2layer.rst new file mode 100644 index 00000000000..fee877e3ab7 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/autoencoder_2layer.rst @@ -0,0 +1,4 @@ +autoencoder_2layer +================== + +.. autofunction:: systemds.operator.algorithm.autoencoder_2layer \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/bandit.rst b/src/main/python/docs/source/api/operator/algorithms/bandit.rst new file mode 100644 index 00000000000..6884f821ce3 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/bandit.rst @@ -0,0 +1,4 @@ +bandit +====== + +.. autofunction:: systemds.operator.algorithm.bandit \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/bivar.rst b/src/main/python/docs/source/api/operator/algorithms/bivar.rst new file mode 100644 index 00000000000..4def7aeac4f --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/bivar.rst @@ -0,0 +1,4 @@ +bivar +===== + +.. autofunction:: systemds.operator.algorithm.bivar \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/components.rst b/src/main/python/docs/source/api/operator/algorithms/components.rst new file mode 100644 index 00000000000..e42ca98cf68 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/components.rst @@ -0,0 +1,4 @@ +components +========== + +.. autofunction:: systemds.operator.algorithm.components \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/confusionMatrix.rst b/src/main/python/docs/source/api/operator/algorithms/confusionMatrix.rst new file mode 100644 index 00000000000..90189523894 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/confusionMatrix.rst @@ -0,0 +1,4 @@ +confusionMatrix +=============== + +.. autofunction:: systemds.operator.algorithm.confusionMatrix \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/cooccurrenceMatrix.rst b/src/main/python/docs/source/api/operator/algorithms/cooccurrenceMatrix.rst new file mode 100644 index 00000000000..d768c2f775b --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/cooccurrenceMatrix.rst @@ -0,0 +1,4 @@ +cooccurrenceMatrix +================== + +.. autofunction:: systemds.operator.algorithm.cooccurrenceMatrix \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/cor.rst b/src/main/python/docs/source/api/operator/algorithms/cor.rst new file mode 100644 index 00000000000..34484d65ce3 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/cor.rst @@ -0,0 +1,4 @@ +cor +=== + +.. autofunction:: systemds.operator.algorithm.cor \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/correctTypos.rst b/src/main/python/docs/source/api/operator/algorithms/correctTypos.rst new file mode 100644 index 00000000000..38a5b7695cb --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/correctTypos.rst @@ -0,0 +1,4 @@ +correctTypos +============ + +.. autofunction:: systemds.operator.algorithm.correctTypos \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/correctTyposApply.rst b/src/main/python/docs/source/api/operator/algorithms/correctTyposApply.rst new file mode 100644 index 00000000000..a7f3a77a312 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/correctTyposApply.rst @@ -0,0 +1,4 @@ +correctTyposApply +================= + +.. autofunction:: systemds.operator.algorithm.correctTyposApply \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/cox.rst b/src/main/python/docs/source/api/operator/algorithms/cox.rst new file mode 100644 index 00000000000..a8cbdf4248e --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/cox.rst @@ -0,0 +1,4 @@ +cox +=== + +.. autofunction:: systemds.operator.algorithm.cox \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/cspline.rst b/src/main/python/docs/source/api/operator/algorithms/cspline.rst new file mode 100644 index 00000000000..00861c0b63b --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/cspline.rst @@ -0,0 +1,4 @@ +cspline +======= + +.. autofunction:: systemds.operator.algorithm.cspline \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/csplineCG.rst b/src/main/python/docs/source/api/operator/algorithms/csplineCG.rst new file mode 100644 index 00000000000..27785cfd48d --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/csplineCG.rst @@ -0,0 +1,4 @@ +csplineCG +========= + +.. autofunction:: systemds.operator.algorithm.csplineCG \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/csplineDS.rst b/src/main/python/docs/source/api/operator/algorithms/csplineDS.rst new file mode 100644 index 00000000000..01e5a9719f0 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/csplineDS.rst @@ -0,0 +1,4 @@ +csplineDS +========= + +.. autofunction:: systemds.operator.algorithm.csplineDS \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/cvlm.rst b/src/main/python/docs/source/api/operator/algorithms/cvlm.rst new file mode 100644 index 00000000000..e11cf61abac --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/cvlm.rst @@ -0,0 +1,4 @@ +cvlm +==== + +.. autofunction:: systemds.operator.algorithm.cvlm \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/dbscan.rst b/src/main/python/docs/source/api/operator/algorithms/dbscan.rst new file mode 100644 index 00000000000..5a72b28bfbf --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/dbscan.rst @@ -0,0 +1,4 @@ +dbscan +====== + +.. autofunction:: systemds.operator.algorithm.dbscan \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/dbscanApply.rst b/src/main/python/docs/source/api/operator/algorithms/dbscanApply.rst new file mode 100644 index 00000000000..57b52e92ae1 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/dbscanApply.rst @@ -0,0 +1,4 @@ +dbscanApply +=========== + +.. autofunction:: systemds.operator.algorithm.dbscanApply \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/decisionTree.rst b/src/main/python/docs/source/api/operator/algorithms/decisionTree.rst new file mode 100644 index 00000000000..39b871ddb9f --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/decisionTree.rst @@ -0,0 +1,4 @@ +decisionTree +============ + +.. autofunction:: systemds.operator.algorithm.decisionTree \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/decisionTreePredict.rst b/src/main/python/docs/source/api/operator/algorithms/decisionTreePredict.rst new file mode 100644 index 00000000000..c2cadd0df33 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/decisionTreePredict.rst @@ -0,0 +1,4 @@ +decisionTreePredict +=================== + +.. autofunction:: systemds.operator.algorithm.decisionTreePredict \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/deepWalk.rst b/src/main/python/docs/source/api/operator/algorithms/deepWalk.rst new file mode 100644 index 00000000000..48a60442bdf --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/deepWalk.rst @@ -0,0 +1,4 @@ +deepWalk +======== + +.. autofunction:: systemds.operator.algorithm.deepWalk \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/denialConstraints.rst b/src/main/python/docs/source/api/operator/algorithms/denialConstraints.rst new file mode 100644 index 00000000000..6f9580b5ed7 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/denialConstraints.rst @@ -0,0 +1,4 @@ +denialConstraints +================= + +.. autofunction:: systemds.operator.algorithm.denialConstraints \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/differenceStatistics.rst b/src/main/python/docs/source/api/operator/algorithms/differenceStatistics.rst new file mode 100644 index 00000000000..bd5eff6c47d --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/differenceStatistics.rst @@ -0,0 +1,4 @@ +differenceStatistics +==================== + +.. autofunction:: systemds.operator.algorithm.differenceStatistics \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/discoverFD.rst b/src/main/python/docs/source/api/operator/algorithms/discoverFD.rst new file mode 100644 index 00000000000..acb39f63b0c --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/discoverFD.rst @@ -0,0 +1,4 @@ +discoverFD +========== + +.. autofunction:: systemds.operator.algorithm.discoverFD \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/dist.rst b/src/main/python/docs/source/api/operator/algorithms/dist.rst new file mode 100644 index 00000000000..048d11444ef --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/dist.rst @@ -0,0 +1,4 @@ +dist +==== + +.. autofunction:: systemds.operator.algorithm.dist \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/dmv.rst b/src/main/python/docs/source/api/operator/algorithms/dmv.rst new file mode 100644 index 00000000000..c01e47ea639 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/dmv.rst @@ -0,0 +1,4 @@ +dmv +=== + +.. autofunction:: systemds.operator.algorithm.dmv \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/ema.rst b/src/main/python/docs/source/api/operator/algorithms/ema.rst new file mode 100644 index 00000000000..1fab50bc65a --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/ema.rst @@ -0,0 +1,4 @@ +ema +=== + +.. autofunction:: systemds.operator.algorithm.ema \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/executePipeline.rst b/src/main/python/docs/source/api/operator/algorithms/executePipeline.rst new file mode 100644 index 00000000000..e06fc6e96b0 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/executePipeline.rst @@ -0,0 +1,4 @@ +executePipeline +=============== + +.. autofunction:: systemds.operator.algorithm.executePipeline \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/f1Score.rst b/src/main/python/docs/source/api/operator/algorithms/f1Score.rst new file mode 100644 index 00000000000..fe436fc41bb --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/f1Score.rst @@ -0,0 +1,4 @@ +f1Score +======= + +.. autofunction:: systemds.operator.algorithm.f1Score \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/fdr.rst b/src/main/python/docs/source/api/operator/algorithms/fdr.rst new file mode 100644 index 00000000000..a776cfa3050 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/fdr.rst @@ -0,0 +1,4 @@ +fdr +=== + +.. autofunction:: systemds.operator.algorithm.fdr \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/ffPredict.rst b/src/main/python/docs/source/api/operator/algorithms/ffPredict.rst new file mode 100644 index 00000000000..9772e15959d --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/ffPredict.rst @@ -0,0 +1,4 @@ +ffPredict +========= + +.. autofunction:: systemds.operator.algorithm.ffPredict \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/ffTrain.rst b/src/main/python/docs/source/api/operator/algorithms/ffTrain.rst new file mode 100644 index 00000000000..8e2b14ddfed --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/ffTrain.rst @@ -0,0 +1,4 @@ +ffTrain +======= + +.. autofunction:: systemds.operator.algorithm.ffTrain \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/fit_pipeline.rst b/src/main/python/docs/source/api/operator/algorithms/fit_pipeline.rst new file mode 100644 index 00000000000..d3d32e880cd --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/fit_pipeline.rst @@ -0,0 +1,4 @@ +fit_pipeline +============ + +.. autofunction:: systemds.operator.algorithm.fit_pipeline \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/fixInvalidLengths.rst b/src/main/python/docs/source/api/operator/algorithms/fixInvalidLengths.rst new file mode 100644 index 00000000000..31b0cd12335 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/fixInvalidLengths.rst @@ -0,0 +1,4 @@ +fixInvalidLengths +================= + +.. autofunction:: systemds.operator.algorithm.fixInvalidLengths \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/fixInvalidLengthsApply.rst b/src/main/python/docs/source/api/operator/algorithms/fixInvalidLengthsApply.rst new file mode 100644 index 00000000000..95e5802fb38 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/fixInvalidLengthsApply.rst @@ -0,0 +1,4 @@ +fixInvalidLengthsApply +====================== + +.. autofunction:: systemds.operator.algorithm.fixInvalidLengthsApply \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/flattenQuantile.rst b/src/main/python/docs/source/api/operator/algorithms/flattenQuantile.rst new file mode 100644 index 00000000000..e6fffa71402 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/flattenQuantile.rst @@ -0,0 +1,4 @@ +flattenQuantile +=============== + +.. autofunction:: systemds.operator.algorithm.flattenQuantile \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/frameSort.rst b/src/main/python/docs/source/api/operator/algorithms/frameSort.rst new file mode 100644 index 00000000000..87ee40c0351 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/frameSort.rst @@ -0,0 +1,4 @@ +frameSort +========= + +.. autofunction:: systemds.operator.algorithm.frameSort \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/frequencyEncode.rst b/src/main/python/docs/source/api/operator/algorithms/frequencyEncode.rst new file mode 100644 index 00000000000..e54e934d0cb --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/frequencyEncode.rst @@ -0,0 +1,4 @@ +frequencyEncode +=============== + +.. autofunction:: systemds.operator.algorithm.frequencyEncode \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/frequencyEncodeApply.rst b/src/main/python/docs/source/api/operator/algorithms/frequencyEncodeApply.rst new file mode 100644 index 00000000000..db4d94e92b4 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/frequencyEncodeApply.rst @@ -0,0 +1,4 @@ +frequencyEncodeApply +==================== + +.. autofunction:: systemds.operator.algorithm.frequencyEncodeApply \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/garch.rst b/src/main/python/docs/source/api/operator/algorithms/garch.rst new file mode 100644 index 00000000000..0c605ab8a35 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/garch.rst @@ -0,0 +1,4 @@ +garch +===== + +.. autofunction:: systemds.operator.algorithm.garch \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/gaussianClassifier.rst b/src/main/python/docs/source/api/operator/algorithms/gaussianClassifier.rst new file mode 100644 index 00000000000..e202cefae8c --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/gaussianClassifier.rst @@ -0,0 +1,4 @@ +gaussianClassifier +================== + +.. autofunction:: systemds.operator.algorithm.gaussianClassifier \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/getAccuracy.rst b/src/main/python/docs/source/api/operator/algorithms/getAccuracy.rst new file mode 100644 index 00000000000..da9b573d3db --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/getAccuracy.rst @@ -0,0 +1,4 @@ +getAccuracy +=========== + +.. autofunction:: systemds.operator.algorithm.getAccuracy \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/glm.rst b/src/main/python/docs/source/api/operator/algorithms/glm.rst new file mode 100644 index 00000000000..44a40c2a06e --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/glm.rst @@ -0,0 +1,4 @@ +glm +=== + +.. autofunction:: systemds.operator.algorithm.glm \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/glmPredict.rst b/src/main/python/docs/source/api/operator/algorithms/glmPredict.rst new file mode 100644 index 00000000000..556ac2bbc4a --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/glmPredict.rst @@ -0,0 +1,4 @@ +glmPredict +========== + +.. autofunction:: systemds.operator.algorithm.glmPredict \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/glove.rst b/src/main/python/docs/source/api/operator/algorithms/glove.rst new file mode 100644 index 00000000000..e5788753789 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/glove.rst @@ -0,0 +1,4 @@ +glove +===== + +.. autofunction:: systemds.operator.algorithm.glove \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/gmm.rst b/src/main/python/docs/source/api/operator/algorithms/gmm.rst new file mode 100644 index 00000000000..081f197ffa1 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/gmm.rst @@ -0,0 +1,4 @@ +gmm +=== + +.. autofunction:: systemds.operator.algorithm.gmm \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/gmmPredict.rst b/src/main/python/docs/source/api/operator/algorithms/gmmPredict.rst new file mode 100644 index 00000000000..9dd34ee83b5 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/gmmPredict.rst @@ -0,0 +1,4 @@ +gmmPredict +========== + +.. autofunction:: systemds.operator.algorithm.gmmPredict \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/gnmf.rst b/src/main/python/docs/source/api/operator/algorithms/gnmf.rst new file mode 100644 index 00000000000..2a7295d9da5 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/gnmf.rst @@ -0,0 +1,4 @@ +gnmf +==== + +.. autofunction:: systemds.operator.algorithm.gnmf \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/gridSearch.rst b/src/main/python/docs/source/api/operator/algorithms/gridSearch.rst new file mode 100644 index 00000000000..b59e4370045 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/gridSearch.rst @@ -0,0 +1,4 @@ +gridSearch +========== + +.. autofunction:: systemds.operator.algorithm.gridSearch \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/hospitalResidencyMatch.rst b/src/main/python/docs/source/api/operator/algorithms/hospitalResidencyMatch.rst new file mode 100644 index 00000000000..92d798e6442 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/hospitalResidencyMatch.rst @@ -0,0 +1,4 @@ +hospitalResidencyMatch +====================== + +.. autofunction:: systemds.operator.algorithm.hospitalResidencyMatch \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/hyperband.rst b/src/main/python/docs/source/api/operator/algorithms/hyperband.rst new file mode 100644 index 00000000000..270fd16601c --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/hyperband.rst @@ -0,0 +1,4 @@ +hyperband +========= + +.. autofunction:: systemds.operator.algorithm.hyperband \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/img_brightness.rst b/src/main/python/docs/source/api/operator/algorithms/img_brightness.rst new file mode 100644 index 00000000000..b43686296b3 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/img_brightness.rst @@ -0,0 +1,4 @@ +img_brightness +============== + +.. autofunction:: systemds.operator.algorithm.img_brightness \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/img_brightness_linearized.rst b/src/main/python/docs/source/api/operator/algorithms/img_brightness_linearized.rst new file mode 100644 index 00000000000..a0ac5c1ea7e --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/img_brightness_linearized.rst @@ -0,0 +1,4 @@ +img_brightness_linearized +========================= + +.. autofunction:: systemds.operator.algorithm.img_brightness_linearized \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/img_crop.rst b/src/main/python/docs/source/api/operator/algorithms/img_crop.rst new file mode 100644 index 00000000000..eab6bb2a07d --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/img_crop.rst @@ -0,0 +1,4 @@ +img_crop +======== + +.. autofunction:: systemds.operator.algorithm.img_crop \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/img_crop_linearized.rst b/src/main/python/docs/source/api/operator/algorithms/img_crop_linearized.rst new file mode 100644 index 00000000000..e19d3a70a83 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/img_crop_linearized.rst @@ -0,0 +1,4 @@ +img_crop_linearized +=================== + +.. autofunction:: systemds.operator.algorithm.img_crop_linearized \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/img_cutout.rst b/src/main/python/docs/source/api/operator/algorithms/img_cutout.rst new file mode 100644 index 00000000000..b9b5e8467c9 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/img_cutout.rst @@ -0,0 +1,4 @@ +img_cutout +========== + +.. autofunction:: systemds.operator.algorithm.img_cutout \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/img_cutout_linearized.rst b/src/main/python/docs/source/api/operator/algorithms/img_cutout_linearized.rst new file mode 100644 index 00000000000..7ce7c76b1de --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/img_cutout_linearized.rst @@ -0,0 +1,4 @@ +img_cutout_linearized +===================== + +.. autofunction:: systemds.operator.algorithm.img_cutout_linearized \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/img_invert.rst b/src/main/python/docs/source/api/operator/algorithms/img_invert.rst new file mode 100644 index 00000000000..be0af11a5af --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/img_invert.rst @@ -0,0 +1,4 @@ +img_invert +========== + +.. autofunction:: systemds.operator.algorithm.img_invert \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/img_invert_linearized.rst b/src/main/python/docs/source/api/operator/algorithms/img_invert_linearized.rst new file mode 100644 index 00000000000..8d0a6cf5206 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/img_invert_linearized.rst @@ -0,0 +1,4 @@ +img_invert_linearized +===================== + +.. autofunction:: systemds.operator.algorithm.img_invert_linearized \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/img_mirror.rst b/src/main/python/docs/source/api/operator/algorithms/img_mirror.rst new file mode 100644 index 00000000000..d1d31fba230 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/img_mirror.rst @@ -0,0 +1,4 @@ +img_mirror +========== + +.. autofunction:: systemds.operator.algorithm.img_mirror \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/img_mirror_linearized.rst b/src/main/python/docs/source/api/operator/algorithms/img_mirror_linearized.rst new file mode 100644 index 00000000000..56076e239fa --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/img_mirror_linearized.rst @@ -0,0 +1,4 @@ +img_mirror_linearized +===================== + +.. autofunction:: systemds.operator.algorithm.img_mirror_linearized \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/img_posterize.rst b/src/main/python/docs/source/api/operator/algorithms/img_posterize.rst new file mode 100644 index 00000000000..d2db21b114e --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/img_posterize.rst @@ -0,0 +1,4 @@ +img_posterize +============= + +.. autofunction:: systemds.operator.algorithm.img_posterize \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/img_posterize_linearized.rst b/src/main/python/docs/source/api/operator/algorithms/img_posterize_linearized.rst new file mode 100644 index 00000000000..debac6d54df --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/img_posterize_linearized.rst @@ -0,0 +1,4 @@ +img_posterize_linearized +======================== + +.. autofunction:: systemds.operator.algorithm.img_posterize_linearized \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/img_rotate.rst b/src/main/python/docs/source/api/operator/algorithms/img_rotate.rst new file mode 100644 index 00000000000..fca9801b32c --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/img_rotate.rst @@ -0,0 +1,4 @@ +img_rotate +========== + +.. autofunction:: systemds.operator.algorithm.img_rotate \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/img_rotate_linearized.rst b/src/main/python/docs/source/api/operator/algorithms/img_rotate_linearized.rst new file mode 100644 index 00000000000..f40f086f84c --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/img_rotate_linearized.rst @@ -0,0 +1,4 @@ +img_rotate_linearized +===================== + +.. autofunction:: systemds.operator.algorithm.img_rotate_linearized \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/img_sample_pairing.rst b/src/main/python/docs/source/api/operator/algorithms/img_sample_pairing.rst new file mode 100644 index 00000000000..7de25f74b52 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/img_sample_pairing.rst @@ -0,0 +1,4 @@ +img_sample_pairing +================== + +.. autofunction:: systemds.operator.algorithm.img_sample_pairing \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/img_sample_pairing_linearized.rst b/src/main/python/docs/source/api/operator/algorithms/img_sample_pairing_linearized.rst new file mode 100644 index 00000000000..8cfd5a1873f --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/img_sample_pairing_linearized.rst @@ -0,0 +1,4 @@ +img_sample_pairing_linearized +============================= + +.. autofunction:: systemds.operator.algorithm.img_sample_pairing_linearized \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/img_shear.rst b/src/main/python/docs/source/api/operator/algorithms/img_shear.rst new file mode 100644 index 00000000000..8c8144d461c --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/img_shear.rst @@ -0,0 +1,4 @@ +img_shear +========= + +.. autofunction:: systemds.operator.algorithm.img_shear \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/img_shear_linearized.rst b/src/main/python/docs/source/api/operator/algorithms/img_shear_linearized.rst new file mode 100644 index 00000000000..8907f6a90bb --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/img_shear_linearized.rst @@ -0,0 +1,4 @@ +img_shear_linearized +==================== + +.. autofunction:: systemds.operator.algorithm.img_shear_linearized \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/img_transform.rst b/src/main/python/docs/source/api/operator/algorithms/img_transform.rst new file mode 100644 index 00000000000..6bb4676270a --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/img_transform.rst @@ -0,0 +1,4 @@ +img_transform +============= + +.. autofunction:: systemds.operator.algorithm.img_transform \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/img_transform_linearized.rst b/src/main/python/docs/source/api/operator/algorithms/img_transform_linearized.rst new file mode 100644 index 00000000000..16d043af9b8 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/img_transform_linearized.rst @@ -0,0 +1,4 @@ +img_transform_linearized +======================== + +.. autofunction:: systemds.operator.algorithm.img_transform_linearized \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/img_translate.rst b/src/main/python/docs/source/api/operator/algorithms/img_translate.rst new file mode 100644 index 00000000000..8b5952f8d03 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/img_translate.rst @@ -0,0 +1,4 @@ +img_translate +============= + +.. autofunction:: systemds.operator.algorithm.img_translate \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/img_translate_linearized.rst b/src/main/python/docs/source/api/operator/algorithms/img_translate_linearized.rst new file mode 100644 index 00000000000..02f0ac813d9 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/img_translate_linearized.rst @@ -0,0 +1,4 @@ +img_translate_linearized +======================== + +.. autofunction:: systemds.operator.algorithm.img_translate_linearized \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/impurityMeasures.rst b/src/main/python/docs/source/api/operator/algorithms/impurityMeasures.rst new file mode 100644 index 00000000000..bbb6460a20e --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/impurityMeasures.rst @@ -0,0 +1,4 @@ +impurityMeasures +================ + +.. autofunction:: systemds.operator.algorithm.impurityMeasures \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/imputeByFD.rst b/src/main/python/docs/source/api/operator/algorithms/imputeByFD.rst new file mode 100644 index 00000000000..f2378547e23 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/imputeByFD.rst @@ -0,0 +1,4 @@ +imputeByFD +========== + +.. autofunction:: systemds.operator.algorithm.imputeByFD \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/imputeByFDApply.rst b/src/main/python/docs/source/api/operator/algorithms/imputeByFDApply.rst new file mode 100644 index 00000000000..90d7b526013 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/imputeByFDApply.rst @@ -0,0 +1,4 @@ +imputeByFDApply +=============== + +.. autofunction:: systemds.operator.algorithm.imputeByFDApply \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/imputeByKNN.rst b/src/main/python/docs/source/api/operator/algorithms/imputeByKNN.rst new file mode 100644 index 00000000000..3f2e21eb59c --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/imputeByKNN.rst @@ -0,0 +1,4 @@ +imputeByKNN +=========== + +.. autofunction:: systemds.operator.algorithm.imputeByKNN \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/imputeByMean.rst b/src/main/python/docs/source/api/operator/algorithms/imputeByMean.rst new file mode 100644 index 00000000000..cf7f4dc1283 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/imputeByMean.rst @@ -0,0 +1,4 @@ +imputeByMean +============ + +.. autofunction:: systemds.operator.algorithm.imputeByMean \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/imputeByMeanApply.rst b/src/main/python/docs/source/api/operator/algorithms/imputeByMeanApply.rst new file mode 100644 index 00000000000..688b48db94e --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/imputeByMeanApply.rst @@ -0,0 +1,4 @@ +imputeByMeanApply +================= + +.. autofunction:: systemds.operator.algorithm.imputeByMeanApply \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/imputeByMedian.rst b/src/main/python/docs/source/api/operator/algorithms/imputeByMedian.rst new file mode 100644 index 00000000000..a6762253de2 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/imputeByMedian.rst @@ -0,0 +1,4 @@ +imputeByMedian +============== + +.. autofunction:: systemds.operator.algorithm.imputeByMedian \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/imputeByMedianApply.rst b/src/main/python/docs/source/api/operator/algorithms/imputeByMedianApply.rst new file mode 100644 index 00000000000..a6513410a3d --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/imputeByMedianApply.rst @@ -0,0 +1,4 @@ +imputeByMedianApply +=================== + +.. autofunction:: systemds.operator.algorithm.imputeByMedianApply \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/imputeByMode.rst b/src/main/python/docs/source/api/operator/algorithms/imputeByMode.rst new file mode 100644 index 00000000000..817ec471d26 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/imputeByMode.rst @@ -0,0 +1,4 @@ +imputeByMode +============ + +.. autofunction:: systemds.operator.algorithm.imputeByMode \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/imputeByModeApply.rst b/src/main/python/docs/source/api/operator/algorithms/imputeByModeApply.rst new file mode 100644 index 00000000000..b7c78a95893 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/imputeByModeApply.rst @@ -0,0 +1,4 @@ +imputeByModeApply +================= + +.. autofunction:: systemds.operator.algorithm.imputeByModeApply \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/incSliceLine.rst b/src/main/python/docs/source/api/operator/algorithms/incSliceLine.rst new file mode 100644 index 00000000000..da2c1f58dee --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/incSliceLine.rst @@ -0,0 +1,4 @@ +incSliceLine +============ + +.. autofunction:: systemds.operator.algorithm.incSliceLine \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/intersect.rst b/src/main/python/docs/source/api/operator/algorithms/intersect.rst new file mode 100644 index 00000000000..762d68708b5 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/intersect.rst @@ -0,0 +1,4 @@ +intersect +========= + +.. autofunction:: systemds.operator.algorithm.intersect \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/km.rst b/src/main/python/docs/source/api/operator/algorithms/km.rst new file mode 100644 index 00000000000..8392789508c --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/km.rst @@ -0,0 +1,4 @@ +km +== + +.. autofunction:: systemds.operator.algorithm.km \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/kmeans.rst b/src/main/python/docs/source/api/operator/algorithms/kmeans.rst new file mode 100644 index 00000000000..7f4d1a92596 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/kmeans.rst @@ -0,0 +1,4 @@ +kmeans +====== + +.. autofunction:: systemds.operator.algorithm.kmeans \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/kmeansPredict.rst b/src/main/python/docs/source/api/operator/algorithms/kmeansPredict.rst new file mode 100644 index 00000000000..b0832ee4854 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/kmeansPredict.rst @@ -0,0 +1,4 @@ +kmeansPredict +============= + +.. autofunction:: systemds.operator.algorithm.kmeansPredict \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/knn.rst b/src/main/python/docs/source/api/operator/algorithms/knn.rst new file mode 100644 index 00000000000..c9bc1ed67d4 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/knn.rst @@ -0,0 +1,4 @@ +knn +=== + +.. autofunction:: systemds.operator.algorithm.knn \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/knnGraph.rst b/src/main/python/docs/source/api/operator/algorithms/knnGraph.rst new file mode 100644 index 00000000000..19c9c7adc25 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/knnGraph.rst @@ -0,0 +1,4 @@ +knnGraph +======== + +.. autofunction:: systemds.operator.algorithm.knnGraph \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/knnbf.rst b/src/main/python/docs/source/api/operator/algorithms/knnbf.rst new file mode 100644 index 00000000000..098af73b361 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/knnbf.rst @@ -0,0 +1,4 @@ +knnbf +===== + +.. autofunction:: systemds.operator.algorithm.knnbf \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/l2svm.rst b/src/main/python/docs/source/api/operator/algorithms/l2svm.rst new file mode 100644 index 00000000000..ab8155faaad --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/l2svm.rst @@ -0,0 +1,4 @@ +l2svm +===== + +.. autofunction:: systemds.operator.algorithm.l2svm \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/l2svmPredict.rst b/src/main/python/docs/source/api/operator/algorithms/l2svmPredict.rst new file mode 100644 index 00000000000..0aede20fcb8 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/l2svmPredict.rst @@ -0,0 +1,4 @@ +l2svmPredict +============ + +.. autofunction:: systemds.operator.algorithm.l2svmPredict \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/lasso.rst b/src/main/python/docs/source/api/operator/algorithms/lasso.rst new file mode 100644 index 00000000000..c4d8f490939 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/lasso.rst @@ -0,0 +1,4 @@ +lasso +===== + +.. autofunction:: systemds.operator.algorithm.lasso \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/lenetPredict.rst b/src/main/python/docs/source/api/operator/algorithms/lenetPredict.rst new file mode 100644 index 00000000000..f7ca6d4cfad --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/lenetPredict.rst @@ -0,0 +1,4 @@ +lenetPredict +============ + +.. autofunction:: systemds.operator.algorithm.lenetPredict \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/lenetTrain.rst b/src/main/python/docs/source/api/operator/algorithms/lenetTrain.rst new file mode 100644 index 00000000000..59a1463290c --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/lenetTrain.rst @@ -0,0 +1,4 @@ +lenetTrain +========== + +.. autofunction:: systemds.operator.algorithm.lenetTrain \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/lm.rst b/src/main/python/docs/source/api/operator/algorithms/lm.rst new file mode 100644 index 00000000000..50eded5883c --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/lm.rst @@ -0,0 +1,4 @@ +lm +== + +.. autofunction:: systemds.operator.algorithm.lm \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/lmCG.rst b/src/main/python/docs/source/api/operator/algorithms/lmCG.rst new file mode 100644 index 00000000000..e0242f13770 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/lmCG.rst @@ -0,0 +1,4 @@ +lmCG +==== + +.. autofunction:: systemds.operator.algorithm.lmCG \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/lmDS.rst b/src/main/python/docs/source/api/operator/algorithms/lmDS.rst new file mode 100644 index 00000000000..52255a93104 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/lmDS.rst @@ -0,0 +1,4 @@ +lmDS +==== + +.. autofunction:: systemds.operator.algorithm.lmDS \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/lmPredict.rst b/src/main/python/docs/source/api/operator/algorithms/lmPredict.rst new file mode 100644 index 00000000000..a7179cb84e5 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/lmPredict.rst @@ -0,0 +1,4 @@ +lmPredict +========= + +.. autofunction:: systemds.operator.algorithm.lmPredict \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/lmPredictStats.rst b/src/main/python/docs/source/api/operator/algorithms/lmPredictStats.rst new file mode 100644 index 00000000000..984fd907304 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/lmPredictStats.rst @@ -0,0 +1,4 @@ +lmPredictStats +============== + +.. autofunction:: systemds.operator.algorithm.lmPredictStats \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/logSumExp.rst b/src/main/python/docs/source/api/operator/algorithms/logSumExp.rst new file mode 100644 index 00000000000..aea539ced3b --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/logSumExp.rst @@ -0,0 +1,4 @@ +logSumExp +========= + +.. autofunction:: systemds.operator.algorithm.logSumExp \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/mae.rst b/src/main/python/docs/source/api/operator/algorithms/mae.rst new file mode 100644 index 00000000000..36094918d88 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/mae.rst @@ -0,0 +1,4 @@ +mae +=== + +.. autofunction:: systemds.operator.algorithm.mae \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/mape.rst b/src/main/python/docs/source/api/operator/algorithms/mape.rst new file mode 100644 index 00000000000..a2284debb88 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/mape.rst @@ -0,0 +1,4 @@ +mape +==== + +.. autofunction:: systemds.operator.algorithm.mape \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/matrixProfile.rst b/src/main/python/docs/source/api/operator/algorithms/matrixProfile.rst new file mode 100644 index 00000000000..6dd5b4a7ddc --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/matrixProfile.rst @@ -0,0 +1,4 @@ +matrixProfile +============= + +.. autofunction:: systemds.operator.algorithm.matrixProfile \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/mcc.rst b/src/main/python/docs/source/api/operator/algorithms/mcc.rst new file mode 100644 index 00000000000..918f849be8a --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/mcc.rst @@ -0,0 +1,4 @@ +mcc +=== + +.. autofunction:: systemds.operator.algorithm.mcc \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/mdedup.rst b/src/main/python/docs/source/api/operator/algorithms/mdedup.rst new file mode 100644 index 00000000000..88fd7ed5be7 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/mdedup.rst @@ -0,0 +1,4 @@ +mdedup +====== + +.. autofunction:: systemds.operator.algorithm.mdedup \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/mice.rst b/src/main/python/docs/source/api/operator/algorithms/mice.rst new file mode 100644 index 00000000000..429337e782b --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/mice.rst @@ -0,0 +1,4 @@ +mice +==== + +.. autofunction:: systemds.operator.algorithm.mice \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/miceApply.rst b/src/main/python/docs/source/api/operator/algorithms/miceApply.rst new file mode 100644 index 00000000000..2ecc09a5c25 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/miceApply.rst @@ -0,0 +1,4 @@ +miceApply +========= + +.. autofunction:: systemds.operator.algorithm.miceApply \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/mse.rst b/src/main/python/docs/source/api/operator/algorithms/mse.rst new file mode 100644 index 00000000000..b739bbda38f --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/mse.rst @@ -0,0 +1,4 @@ +mse +=== + +.. autofunction:: systemds.operator.algorithm.mse \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/msmape.rst b/src/main/python/docs/source/api/operator/algorithms/msmape.rst new file mode 100644 index 00000000000..b71f226d93b --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/msmape.rst @@ -0,0 +1,4 @@ +msmape +====== + +.. autofunction:: systemds.operator.algorithm.msmape \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/msvm.rst b/src/main/python/docs/source/api/operator/algorithms/msvm.rst new file mode 100644 index 00000000000..744f0b3dd7d --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/msvm.rst @@ -0,0 +1,4 @@ +msvm +==== + +.. autofunction:: systemds.operator.algorithm.msvm \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/msvmPredict.rst b/src/main/python/docs/source/api/operator/algorithms/msvmPredict.rst new file mode 100644 index 00000000000..7900af7168a --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/msvmPredict.rst @@ -0,0 +1,4 @@ +msvmPredict +=========== + +.. autofunction:: systemds.operator.algorithm.msvmPredict \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/multiLogReg.rst b/src/main/python/docs/source/api/operator/algorithms/multiLogReg.rst new file mode 100644 index 00000000000..603271a7026 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/multiLogReg.rst @@ -0,0 +1,4 @@ +multiLogReg +=========== + +.. autofunction:: systemds.operator.algorithm.multiLogReg \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/multiLogRegPredict.rst b/src/main/python/docs/source/api/operator/algorithms/multiLogRegPredict.rst new file mode 100644 index 00000000000..edaf7f83057 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/multiLogRegPredict.rst @@ -0,0 +1,4 @@ +multiLogRegPredict +================== + +.. autofunction:: systemds.operator.algorithm.multiLogRegPredict \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/na_locf.rst b/src/main/python/docs/source/api/operator/algorithms/na_locf.rst new file mode 100644 index 00000000000..bc1c11bbc1d --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/na_locf.rst @@ -0,0 +1,4 @@ +na_locf +======= + +.. autofunction:: systemds.operator.algorithm.na_locf \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/naiveBayes.rst b/src/main/python/docs/source/api/operator/algorithms/naiveBayes.rst new file mode 100644 index 00000000000..0dcd81e0e2d --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/naiveBayes.rst @@ -0,0 +1,4 @@ +naiveBayes +========== + +.. autofunction:: systemds.operator.algorithm.naiveBayes \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/naiveBayesPredict.rst b/src/main/python/docs/source/api/operator/algorithms/naiveBayesPredict.rst new file mode 100644 index 00000000000..96882aea3d9 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/naiveBayesPredict.rst @@ -0,0 +1,4 @@ +naiveBayesPredict +================= + +.. autofunction:: systemds.operator.algorithm.naiveBayesPredict \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/normalize.rst b/src/main/python/docs/source/api/operator/algorithms/normalize.rst new file mode 100644 index 00000000000..10ebc62538b --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/normalize.rst @@ -0,0 +1,4 @@ +normalize +========= + +.. autofunction:: systemds.operator.algorithm.normalize \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/normalizeApply.rst b/src/main/python/docs/source/api/operator/algorithms/normalizeApply.rst new file mode 100644 index 00000000000..cc42b36e95f --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/normalizeApply.rst @@ -0,0 +1,4 @@ +normalizeApply +============== + +.. autofunction:: systemds.operator.algorithm.normalizeApply \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/nrmse.rst b/src/main/python/docs/source/api/operator/algorithms/nrmse.rst new file mode 100644 index 00000000000..ad189fa0802 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/nrmse.rst @@ -0,0 +1,4 @@ +nrmse +===== + +.. autofunction:: systemds.operator.algorithm.nrmse \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/outlier.rst b/src/main/python/docs/source/api/operator/algorithms/outlier.rst new file mode 100644 index 00000000000..e79c68e3a32 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/outlier.rst @@ -0,0 +1,4 @@ +outlier +======= + +.. autofunction:: systemds.operator.algorithm.outlier \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/outlierByArima.rst b/src/main/python/docs/source/api/operator/algorithms/outlierByArima.rst new file mode 100644 index 00000000000..7ea56086d34 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/outlierByArima.rst @@ -0,0 +1,4 @@ +outlierByArima +============== + +.. autofunction:: systemds.operator.algorithm.outlierByArima \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/outlierByIQR.rst b/src/main/python/docs/source/api/operator/algorithms/outlierByIQR.rst new file mode 100644 index 00000000000..fe62f01994d --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/outlierByIQR.rst @@ -0,0 +1,4 @@ +outlierByIQR +============ + +.. autofunction:: systemds.operator.algorithm.outlierByIQR \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/outlierByIQRApply.rst b/src/main/python/docs/source/api/operator/algorithms/outlierByIQRApply.rst new file mode 100644 index 00000000000..2681463d05c --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/outlierByIQRApply.rst @@ -0,0 +1,4 @@ +outlierByIQRApply +================= + +.. autofunction:: systemds.operator.algorithm.outlierByIQRApply \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/outlierBySd.rst b/src/main/python/docs/source/api/operator/algorithms/outlierBySd.rst new file mode 100644 index 00000000000..bf7a66cf0d4 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/outlierBySd.rst @@ -0,0 +1,4 @@ +outlierBySd +=========== + +.. autofunction:: systemds.operator.algorithm.outlierBySd \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/outlierBySdApply.rst b/src/main/python/docs/source/api/operator/algorithms/outlierBySdApply.rst new file mode 100644 index 00000000000..ed34b6b6d2c --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/outlierBySdApply.rst @@ -0,0 +1,4 @@ +outlierBySdApply +================ + +.. autofunction:: systemds.operator.algorithm.outlierBySdApply \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/pageRank.rst b/src/main/python/docs/source/api/operator/algorithms/pageRank.rst new file mode 100644 index 00000000000..f1bedc84190 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/pageRank.rst @@ -0,0 +1,4 @@ +pageRank +======== + +.. autofunction:: systemds.operator.algorithm.pageRank \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/pca.rst b/src/main/python/docs/source/api/operator/algorithms/pca.rst new file mode 100644 index 00000000000..1eda6ee503f --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/pca.rst @@ -0,0 +1,4 @@ +pca +=== + +.. autofunction:: systemds.operator.algorithm.pca \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/pcaInverse.rst b/src/main/python/docs/source/api/operator/algorithms/pcaInverse.rst new file mode 100644 index 00000000000..6cc0cf1bff5 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/pcaInverse.rst @@ -0,0 +1,4 @@ +pcaInverse +========== + +.. autofunction:: systemds.operator.algorithm.pcaInverse \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/pcaTransform.rst b/src/main/python/docs/source/api/operator/algorithms/pcaTransform.rst new file mode 100644 index 00000000000..f78df2e4657 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/pcaTransform.rst @@ -0,0 +1,4 @@ +pcaTransform +============ + +.. autofunction:: systemds.operator.algorithm.pcaTransform \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/pnmf.rst b/src/main/python/docs/source/api/operator/algorithms/pnmf.rst new file mode 100644 index 00000000000..1dd0dcb367a --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/pnmf.rst @@ -0,0 +1,4 @@ +pnmf +==== + +.. autofunction:: systemds.operator.algorithm.pnmf \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/ppca.rst b/src/main/python/docs/source/api/operator/algorithms/ppca.rst new file mode 100644 index 00000000000..38e6f4468b2 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/ppca.rst @@ -0,0 +1,4 @@ +ppca +==== + +.. autofunction:: systemds.operator.algorithm.ppca \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/psnr.rst b/src/main/python/docs/source/api/operator/algorithms/psnr.rst new file mode 100644 index 00000000000..c16bb02613d --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/psnr.rst @@ -0,0 +1,4 @@ +psnr +==== + +.. autofunction:: systemds.operator.algorithm.psnr \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/quantizeByCluster.rst b/src/main/python/docs/source/api/operator/algorithms/quantizeByCluster.rst new file mode 100644 index 00000000000..1d4edf6d0d7 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/quantizeByCluster.rst @@ -0,0 +1,4 @@ +quantizeByCluster +================= + +.. autofunction:: systemds.operator.algorithm.quantizeByCluster \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/raGroupby.rst b/src/main/python/docs/source/api/operator/algorithms/raGroupby.rst new file mode 100644 index 00000000000..bdf7bc92942 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/raGroupby.rst @@ -0,0 +1,4 @@ +raGroupby +========= + +.. autofunction:: systemds.operator.algorithm.raGroupby \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/raJoin.rst b/src/main/python/docs/source/api/operator/algorithms/raJoin.rst new file mode 100644 index 00000000000..f26d443fdb3 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/raJoin.rst @@ -0,0 +1,4 @@ +raJoin +====== + +.. autofunction:: systemds.operator.algorithm.raJoin \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/raSelection.rst b/src/main/python/docs/source/api/operator/algorithms/raSelection.rst new file mode 100644 index 00000000000..7ce2f3805ee --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/raSelection.rst @@ -0,0 +1,4 @@ +raSelection +=========== + +.. autofunction:: systemds.operator.algorithm.raSelection \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/randomForest.rst b/src/main/python/docs/source/api/operator/algorithms/randomForest.rst new file mode 100644 index 00000000000..e38646fabc6 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/randomForest.rst @@ -0,0 +1,4 @@ +randomForest +============ + +.. autofunction:: systemds.operator.algorithm.randomForest \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/randomForestPredict.rst b/src/main/python/docs/source/api/operator/algorithms/randomForestPredict.rst new file mode 100644 index 00000000000..e49e104980c --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/randomForestPredict.rst @@ -0,0 +1,4 @@ +randomForestPredict +=================== + +.. autofunction:: systemds.operator.algorithm.randomForestPredict \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/rmse.rst b/src/main/python/docs/source/api/operator/algorithms/rmse.rst new file mode 100644 index 00000000000..9a4772dcbd1 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/rmse.rst @@ -0,0 +1,4 @@ +rmse +==== + +.. autofunction:: systemds.operator.algorithm.rmse \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/scale.rst b/src/main/python/docs/source/api/operator/algorithms/scale.rst new file mode 100644 index 00000000000..48a3d09415d --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/scale.rst @@ -0,0 +1,4 @@ +scale +===== + +.. autofunction:: systemds.operator.algorithm.scale \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/scaleApply.rst b/src/main/python/docs/source/api/operator/algorithms/scaleApply.rst new file mode 100644 index 00000000000..4150e19e62f --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/scaleApply.rst @@ -0,0 +1,4 @@ +scaleApply +========== + +.. autofunction:: systemds.operator.algorithm.scaleApply \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/scaleMinMax.rst b/src/main/python/docs/source/api/operator/algorithms/scaleMinMax.rst new file mode 100644 index 00000000000..a8a18237ca1 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/scaleMinMax.rst @@ -0,0 +1,4 @@ +scaleMinMax +=========== + +.. autofunction:: systemds.operator.algorithm.scaleMinMax \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/selectByVarThresh.rst b/src/main/python/docs/source/api/operator/algorithms/selectByVarThresh.rst new file mode 100644 index 00000000000..f84ccd06786 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/selectByVarThresh.rst @@ -0,0 +1,4 @@ +selectByVarThresh +================= + +.. autofunction:: systemds.operator.algorithm.selectByVarThresh \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/ses.rst b/src/main/python/docs/source/api/operator/algorithms/ses.rst new file mode 100644 index 00000000000..6e797bbfe7c --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/ses.rst @@ -0,0 +1,4 @@ +ses +=== + +.. autofunction:: systemds.operator.algorithm.ses \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/setdiff.rst b/src/main/python/docs/source/api/operator/algorithms/setdiff.rst new file mode 100644 index 00000000000..abb64d899a2 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/setdiff.rst @@ -0,0 +1,4 @@ +setdiff +======= + +.. autofunction:: systemds.operator.algorithm.setdiff \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/shapExplainer.rst b/src/main/python/docs/source/api/operator/algorithms/shapExplainer.rst new file mode 100644 index 00000000000..b376f4a5f8d --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/shapExplainer.rst @@ -0,0 +1,4 @@ +shapExplainer +============= + +.. autofunction:: systemds.operator.algorithm.shapExplainer \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/sherlock.rst b/src/main/python/docs/source/api/operator/algorithms/sherlock.rst new file mode 100644 index 00000000000..bec99c1dcc3 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/sherlock.rst @@ -0,0 +1,4 @@ +sherlock +======== + +.. autofunction:: systemds.operator.algorithm.sherlock \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/sherlockPredict.rst b/src/main/python/docs/source/api/operator/algorithms/sherlockPredict.rst new file mode 100644 index 00000000000..bb3c82835da --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/sherlockPredict.rst @@ -0,0 +1,4 @@ +sherlockPredict +=============== + +.. autofunction:: systemds.operator.algorithm.sherlockPredict \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/shortestPath.rst b/src/main/python/docs/source/api/operator/algorithms/shortestPath.rst new file mode 100644 index 00000000000..8bba99bf797 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/shortestPath.rst @@ -0,0 +1,4 @@ +shortestPath +============ + +.. autofunction:: systemds.operator.algorithm.shortestPath \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/sigmoid.rst b/src/main/python/docs/source/api/operator/algorithms/sigmoid.rst new file mode 100644 index 00000000000..b2e613532f1 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/sigmoid.rst @@ -0,0 +1,4 @@ +sigmoid +======= + +.. autofunction:: systemds.operator.algorithm.sigmoid \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/skewness.rst b/src/main/python/docs/source/api/operator/algorithms/skewness.rst new file mode 100644 index 00000000000..7d4d80df498 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/skewness.rst @@ -0,0 +1,4 @@ +skewness +======== + +.. autofunction:: systemds.operator.algorithm.skewness \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/sliceLine.rst b/src/main/python/docs/source/api/operator/algorithms/sliceLine.rst new file mode 100644 index 00000000000..df6362d9f71 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/sliceLine.rst @@ -0,0 +1,4 @@ +sliceLine +========= + +.. autofunction:: systemds.operator.algorithm.sliceLine \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/sliceLineDebug.rst b/src/main/python/docs/source/api/operator/algorithms/sliceLineDebug.rst new file mode 100644 index 00000000000..0f5a3f19cfb --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/sliceLineDebug.rst @@ -0,0 +1,4 @@ +sliceLineDebug +============== + +.. autofunction:: systemds.operator.algorithm.sliceLineDebug \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/sliceLineExtract.rst b/src/main/python/docs/source/api/operator/algorithms/sliceLineExtract.rst new file mode 100644 index 00000000000..94b0bbc0113 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/sliceLineExtract.rst @@ -0,0 +1,4 @@ +sliceLineExtract +================ + +.. autofunction:: systemds.operator.algorithm.sliceLineExtract \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/slicefinder.rst b/src/main/python/docs/source/api/operator/algorithms/slicefinder.rst new file mode 100644 index 00000000000..85c7fced018 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/slicefinder.rst @@ -0,0 +1,4 @@ +slicefinder +=========== + +.. autofunction:: systemds.operator.algorithm.slicefinder \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/smape.rst b/src/main/python/docs/source/api/operator/algorithms/smape.rst new file mode 100644 index 00000000000..6aadbd94205 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/smape.rst @@ -0,0 +1,4 @@ +smape +===== + +.. autofunction:: systemds.operator.algorithm.smape \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/smote.rst b/src/main/python/docs/source/api/operator/algorithms/smote.rst new file mode 100644 index 00000000000..729d9529d39 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/smote.rst @@ -0,0 +1,4 @@ +smote +===== + +.. autofunction:: systemds.operator.algorithm.smote \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/softmax.rst b/src/main/python/docs/source/api/operator/algorithms/softmax.rst new file mode 100644 index 00000000000..3d142077f96 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/softmax.rst @@ -0,0 +1,4 @@ +softmax +======= + +.. autofunction:: systemds.operator.algorithm.softmax \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/split.rst b/src/main/python/docs/source/api/operator/algorithms/split.rst new file mode 100644 index 00000000000..0c46d928195 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/split.rst @@ -0,0 +1,4 @@ +split +===== + +.. autofunction:: systemds.operator.algorithm.split \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/splitBalanced.rst b/src/main/python/docs/source/api/operator/algorithms/splitBalanced.rst new file mode 100644 index 00000000000..f9c6640a02f --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/splitBalanced.rst @@ -0,0 +1,4 @@ +splitBalanced +============= + +.. autofunction:: systemds.operator.algorithm.splitBalanced \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/sqrtMatrix.rst b/src/main/python/docs/source/api/operator/algorithms/sqrtMatrix.rst new file mode 100644 index 00000000000..f59bbb3b4a5 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/sqrtMatrix.rst @@ -0,0 +1,4 @@ +sqrtMatrix +========== + +.. autofunction:: systemds.operator.algorithm.sqrtMatrix \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/stableMarriage.rst b/src/main/python/docs/source/api/operator/algorithms/stableMarriage.rst new file mode 100644 index 00000000000..ddddbae2b26 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/stableMarriage.rst @@ -0,0 +1,4 @@ +stableMarriage +============== + +.. autofunction:: systemds.operator.algorithm.stableMarriage \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/statsNA.rst b/src/main/python/docs/source/api/operator/algorithms/statsNA.rst new file mode 100644 index 00000000000..22724284872 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/statsNA.rst @@ -0,0 +1,4 @@ +statsNA +======= + +.. autofunction:: systemds.operator.algorithm.statsNA \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/steplm.rst b/src/main/python/docs/source/api/operator/algorithms/steplm.rst new file mode 100644 index 00000000000..35cb47cff1b --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/steplm.rst @@ -0,0 +1,4 @@ +steplm +====== + +.. autofunction:: systemds.operator.algorithm.steplm \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/stratstats.rst b/src/main/python/docs/source/api/operator/algorithms/stratstats.rst new file mode 100644 index 00000000000..65ec9dd1b42 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/stratstats.rst @@ -0,0 +1,4 @@ +stratstats +========== + +.. autofunction:: systemds.operator.algorithm.stratstats \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/symmetricDifference.rst b/src/main/python/docs/source/api/operator/algorithms/symmetricDifference.rst new file mode 100644 index 00000000000..494e632383f --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/symmetricDifference.rst @@ -0,0 +1,4 @@ +symmetricDifference +=================== + +.. autofunction:: systemds.operator.algorithm.symmetricDifference \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/tSNE.rst b/src/main/python/docs/source/api/operator/algorithms/tSNE.rst new file mode 100644 index 00000000000..1021a052198 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/tSNE.rst @@ -0,0 +1,4 @@ +tSNE +==== + +.. autofunction:: systemds.operator.algorithm.tSNE \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/toOneHot.rst b/src/main/python/docs/source/api/operator/algorithms/toOneHot.rst new file mode 100644 index 00000000000..8c220b3d866 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/toOneHot.rst @@ -0,0 +1,4 @@ +toOneHot +======== + +.. autofunction:: systemds.operator.algorithm.toOneHot \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/tomeklink.rst b/src/main/python/docs/source/api/operator/algorithms/tomeklink.rst new file mode 100644 index 00000000000..4fd0bd17f78 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/tomeklink.rst @@ -0,0 +1,4 @@ +tomeklink +========= + +.. autofunction:: systemds.operator.algorithm.tomeklink \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/topk_cleaning.rst b/src/main/python/docs/source/api/operator/algorithms/topk_cleaning.rst new file mode 100644 index 00000000000..b57c24f3a47 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/topk_cleaning.rst @@ -0,0 +1,4 @@ +topk_cleaning +============= + +.. autofunction:: systemds.operator.algorithm.topk_cleaning \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/underSampling.rst b/src/main/python/docs/source/api/operator/algorithms/underSampling.rst new file mode 100644 index 00000000000..0b7b146b0af --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/underSampling.rst @@ -0,0 +1,4 @@ +underSampling +============= + +.. autofunction:: systemds.operator.algorithm.underSampling \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/union.rst b/src/main/python/docs/source/api/operator/algorithms/union.rst new file mode 100644 index 00000000000..24da31088ff --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/union.rst @@ -0,0 +1,4 @@ +union +===== + +.. autofunction:: systemds.operator.algorithm.union \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/univar.rst b/src/main/python/docs/source/api/operator/algorithms/univar.rst new file mode 100644 index 00000000000..c4df0e4e758 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/univar.rst @@ -0,0 +1,4 @@ +univar +====== + +.. autofunction:: systemds.operator.algorithm.univar \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/vectorToCsv.rst b/src/main/python/docs/source/api/operator/algorithms/vectorToCsv.rst new file mode 100644 index 00000000000..c1c9e2cbc09 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/vectorToCsv.rst @@ -0,0 +1,4 @@ +vectorToCsv +=========== + +.. autofunction:: systemds.operator.algorithm.vectorToCsv \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/wer.rst b/src/main/python/docs/source/api/operator/algorithms/wer.rst new file mode 100644 index 00000000000..9ea55cbd1fe --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/wer.rst @@ -0,0 +1,4 @@ +wer +=== + +.. autofunction:: systemds.operator.algorithm.wer \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/winsorize.rst b/src/main/python/docs/source/api/operator/algorithms/winsorize.rst new file mode 100644 index 00000000000..43c20fbc652 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/winsorize.rst @@ -0,0 +1,4 @@ +winsorize +========= + +.. autofunction:: systemds.operator.algorithm.winsorize \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/winsorizeApply.rst b/src/main/python/docs/source/api/operator/algorithms/winsorizeApply.rst new file mode 100644 index 00000000000..f4b3c9e983c --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/winsorizeApply.rst @@ -0,0 +1,4 @@ +winsorizeApply +============== + +.. autofunction:: systemds.operator.algorithm.winsorizeApply \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/xdummy1.rst b/src/main/python/docs/source/api/operator/algorithms/xdummy1.rst new file mode 100644 index 00000000000..20e4eed2b36 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/xdummy1.rst @@ -0,0 +1,4 @@ +xdummy1 +======= + +.. autofunction:: systemds.operator.algorithm.xdummy1 \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/xdummy2.rst b/src/main/python/docs/source/api/operator/algorithms/xdummy2.rst new file mode 100644 index 00000000000..9254147e691 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/xdummy2.rst @@ -0,0 +1,4 @@ +xdummy2 +======= + +.. autofunction:: systemds.operator.algorithm.xdummy2 \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/xgboost.rst b/src/main/python/docs/source/api/operator/algorithms/xgboost.rst new file mode 100644 index 00000000000..506771aa6d8 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/xgboost.rst @@ -0,0 +1,4 @@ +xgboost +======= + +.. autofunction:: systemds.operator.algorithm.xgboost \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/xgboostPredictClassification.rst b/src/main/python/docs/source/api/operator/algorithms/xgboostPredictClassification.rst new file mode 100644 index 00000000000..b65b35c8ebd --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/xgboostPredictClassification.rst @@ -0,0 +1,4 @@ +xgboostPredictClassification +============================ + +.. autofunction:: systemds.operator.algorithm.xgboostPredictClassification \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/xgboostPredictRegression.rst b/src/main/python/docs/source/api/operator/algorithms/xgboostPredictRegression.rst new file mode 100644 index 00000000000..1e331011902 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/xgboostPredictRegression.rst @@ -0,0 +1,4 @@ +xgboostPredictRegression +======================== + +.. autofunction:: systemds.operator.algorithm.xgboostPredictRegression \ No newline at end of file diff --git a/src/main/python/generator/dml_parser.py b/src/main/python/generator/dml_parser.py index 8e835e96a12..e9079b95d63 100644 --- a/src/main/python/generator/dml_parser.py +++ b/src/main/python/generator/dml_parser.py @@ -23,7 +23,7 @@ import json import os import re - +import textwrap class FunctionParser(object): header_input_pattern = r"^[ \t\n]*[#]+[ \t\n]*input[ \t\n\w:;.,#]*[\s#\-]*[#]+[\w\s\d:,.()\" \t\n\-]*[\s#\-]*$" @@ -196,10 +196,30 @@ def parse_header(self, path: str): input_parameters = self.parse_input_output_string(h_input) output_parameters = self.parse_input_output_string(h_output) + with open(path, 'r') as f: + content = f.read() + pat = re.compile( + r""" + ^\#\s*\.\.\s*code-block::\s*python # .. code-block:: python + (.*?) # ← capture the actual example + (?= # stop just before + ^\#\s*(?:INPUT:| # → “# INPUT:” OR + \.\.\s*code-block::\s*python) # → another “# .. code-block:: python” + ) + """, + re.MULTILINE | re.DOTALL | re.VERBOSE, + ) + code_blocks = [] + for match in pat.finditer(content): + raw_block = match.group(1) + code_lines = [line.lstrip("#") for line in raw_block.splitlines()] # Remove leading # + code_block = textwrap.dedent("\n".join([code_line for code_line in code_lines if code_line != ""])) + code_blocks.append(code_block) data = {'description': description, 'parameters': input_parameters, - 'return_values': output_parameters} + 'return_values': output_parameters, + 'code_blocks': code_blocks} return data def parse_input_output_string(self, data: str): diff --git a/src/main/python/generator/generator.py b/src/main/python/generator/generator.py index b124feff190..e321d8336c4 100644 --- a/src/main/python/generator/generator.py +++ b/src/main/python/generator/generator.py @@ -35,6 +35,10 @@ class PythonAPIFileGenerator(object): target_path = os.path.join(os.path.dirname(os.path.dirname( __file__)), 'systemds', 'operator', 'algorithm', 'builtin') + test_path = os.path.join(os.path.dirname(os.path.dirname( + __file__)), 'tests', 'auto_tests') + rst_path = os.path.join(os.path.dirname(os.path.dirname( + __file__)), 'docs', 'source', 'api', 'operator', 'algorithms') licence_path = os.path.join('resources', 'template_python_script_license') template_path = os.path.join('resources', 'template_python_script_imports') @@ -55,6 +59,8 @@ def __init__(self, source_path: str, extension: str = 'py'): self.extension = '.{extension}'.format(extension=extension) os.makedirs(self.__class__.target_path, exist_ok=True) + os.makedirs(self.__class__.test_path, exist_ok=True) + os.makedirs(self.__class__.rst_path, exist_ok=True) self.function_names = list() for name in manually_added_algorithm_builtins: # only add files which actually exist, to avoid breaking @@ -89,13 +95,59 @@ def generate_file(self, filename: str, file_content: str, dml_file: str): with open(target_file, "w") as new_script: new_script.write(self.licence) new_script.write(self.generated_by) - new_script.write((self.generated_from + dml_file.replace("\\", "/") + "\n").replace( - "../", "").replace("src/main/python/generator/", "")) + relative_path = os.path.relpath(dml_file, start=self.source_path) + new_script.write(f"{self.generated_from}scripts/builtin/{relative_path}\n") new_script.write(self.imports) new_script.write(file_content) self.function_names.append(filename) + def generate_test_file(self, function_name: str, code_block: str = None): + """ + Generates a test file for the given function + """ + target_file = os.path.join(self.test_path, f"test_{function_name}") + self.extension + with open(target_file, "w") as test_script: + test_script.write(self.licence) + test_script.write(self.generated_by) + test_script.write("import unittest, contextlib, io\n") + + test_script.write(f"class Test{function_name.upper()}(unittest.TestCase):\n") + test_script.write(f" def test_{function_name}(self):\n") + if code_block: + test_script.write(" # Example test case provided in python the code block\n") + test_script.write(" buf = io.StringIO()\n") + test_script.write(" with contextlib.redirect_stdout(buf):\n") + + expected ="" + for raw_line in code_block.splitlines(keepends=True): # keepends=True → ‘\n’ is preserved + stripped = raw_line.lstrip() + if stripped.startswith((">>>", "...")): + code_line = stripped[4:] + if code_line.strip(): + test_script.write(f" {code_line}") + else: + test_script.write("\n") + else: + expected += raw_line + expected = expected.lstrip("\n") + test_script.write(f'\n expected="""{expected}"""\n') + test_script.write(f" self.assertEqual(buf.getvalue().strip(), expected)\n") + + test_script.write("\nif __name__ == '__main__':\n") + test_script.write(" unittest.main()\n") + + def generate_rst_file(self, function_name: str): + """ + Generates an rst file for the given function + """ + target_file = os.path.join(self.rst_path, f"{function_name}") + ".rst" + with open(target_file, "w") as rst_script: + # rst_script.write(self.licence) + rst_script.write(function_name + "\n") + rst_script.write("=" * len(function_name) + "\n\n") + rst_script.write(f".. autofunction:: systemds.operator.algorithm.{function_name}") + def generate_init_file(self): with open(self.init_path, "w") as init_file: init_file.write(self.licence) @@ -390,6 +442,8 @@ def format_exception(e): try: header_data = f_parser.parse_header(dml_file) data = f_parser.parse_function(dml_file) + if not data: + continue f_parser.check_parameters(header_data, data) doc_generator.generate_documentation(header_data, data) @@ -404,5 +458,22 @@ def format_exception(e): continue file_generator.generate_file( data["function_name"], script_content, dml_file) + + # Generate test cases using the code blocks + test_examples = header_data.get("code_blocks", None) + if test_examples: + for i, test_example in enumerate(test_examples): + test_example_name = data["function_name"] + # Don't add test number if only one example + if len(test_examples) > 1: + test_example_name += f"_{i}" + file_generator.generate_test_file(test_example_name, test_example) + # TODO: dml test case files should also be created + else: + print(f"[INFO] Skipping python test case creation for '{data['function_name']}': No code example.") + + # Generate rst file + file_generator.generate_rst_file(data["function_name"]) + file_generator.function_names.sort() file_generator.generate_init_file() diff --git a/src/main/python/systemds/operator/algorithm/builtin/dist.py b/src/main/python/systemds/operator/algorithm/builtin/dist.py index 5f33d96bc22..c04f6fb1f4e 100644 --- a/src/main/python/systemds/operator/algorithm/builtin/dist.py +++ b/src/main/python/systemds/operator/algorithm/builtin/dist.py @@ -32,6 +32,21 @@ def dist(X: Matrix): """ Returns Euclidean distance matrix (distances between N n-dimensional points) + .. code-block:: python + + >>> import numpy as np + >>> from systemds.context import SystemDSContext + >>> from systemds.operator.algorithm import dist + >>> + >>> with SystemDSContext() as sds: + ... X = sds.from_numpy(np.array([[0], [3], [4]])) + ... out = dist(X).compute() + ... print(out) + [[0. 3. 4.] + [3. 0. 1.] + [4. 1. 0.]] + + :param X: Matrix to calculate the distance inside diff --git a/src/main/python/systemds/operator/algorithm/builtin/img_brightness.py b/src/main/python/systemds/operator/algorithm/builtin/img_brightness.py index 63a472716ab..a7e93f13a1b 100644 --- a/src/main/python/systemds/operator/algorithm/builtin/img_brightness.py +++ b/src/main/python/systemds/operator/algorithm/builtin/img_brightness.py @@ -34,9 +34,26 @@ def img_brightness(img_in: Matrix, """ The img_brightness-function is an image data augmentation function. It changes the brightness of the image. + .. code-block:: python + >>> import numpy as np + >>> from systemds.context import SystemDSContext + >>> from systemds.operator.algorithm import img_brightness + >>> + >>> with SystemDSContext() as sds: + ... img = sds.from_numpy( + ... np.array([[ 50, 100, + ... 150, 200 ]], dtype=np.float32) + ... ) + ... result_img = img_brightness(img, 30.0, 150).compute() + ... print(result_img.reshape(2, 2)) + [[ 80. 130.] + [150. 150.]] - :param img_in: Input matrix/image + + + + :param img_in: Input image as 2D matrix with top left corner at [1, 1] :param value: The amount of brightness to be changed for the image :param channel_max: Maximum value of the brightness of the image :return: Output matrix/image diff --git a/src/main/python/systemds/operator/algorithm/builtin/img_brightness_linearized.py b/src/main/python/systemds/operator/algorithm/builtin/img_brightness_linearized.py index a5b62012f50..c5c107526e5 100644 --- a/src/main/python/systemds/operator/algorithm/builtin/img_brightness_linearized.py +++ b/src/main/python/systemds/operator/algorithm/builtin/img_brightness_linearized.py @@ -34,9 +34,26 @@ def img_brightness_linearized(img_in: Matrix, """ The img_brightness_linearized-function is an image data augmentation function. It changes the brightness of one or multiple images. + .. code-block:: python + >>> import numpy as np + >>> from systemds.context import SystemDSContext + >>> from systemds.operator.algorithm import img_brightness_linearized + >>> + >>> with SystemDSContext() as sds: + ... img = sds.from_numpy( + ... np.array([[ 50, 100, + ... 150, 200 ]], dtype=np.float32) + ... ) + ... result_img = img_brightness_linearized(img, 30.0, 255).compute() + ... print(result_img.reshape(2, 2)) + [[ 80. 130.] + [180. 230.]] - :param img_in: Input matrix/image (can represent multiple images every row of the matrix represents a linearized image) + + + + :param img_in: Input images as linearized 2D matrix with top left corner at [1, 1] (every row represents a linearized matrix/image) :param value: The amount of brightness to be changed for the image :param channel_max: Maximum value of the brightness of the image :return: Output matrix/images (every row of the matrix represents a linearized image) diff --git a/src/main/python/systemds/operator/algorithm/builtin/img_crop.py b/src/main/python/systemds/operator/algorithm/builtin/img_crop.py index f0432c7578a..f5eed9a2ea2 100644 --- a/src/main/python/systemds/operator/algorithm/builtin/img_crop.py +++ b/src/main/python/systemds/operator/algorithm/builtin/img_crop.py @@ -36,9 +36,26 @@ def img_crop(img_in: Matrix, """ The img_crop-function is an image data augmentation function. It cuts out a subregion of an image. + .. code-block:: python + >>> import numpy as np + >>> from systemds.context import SystemDSContext + >>> from systemds.operator.algorithm import img_crop + >>> + >>> with SystemDSContext() as sds: + ... img = sds.from_numpy( + ... np.array([[ 50., 100., 150.], + ... [150., 200., 250.], + ... [250., 200., 200.]], dtype=np.float32) + ... ) + ... result_img = img_crop(img, 1, 1, 1, 1).compute() + ... print(result_img) + [[200.]] - :param img_in: Input matrix/image + + + + :param img_in: Input image as 2D matrix with top left corner at [1, 1] :param w: The width of the subregion required :param h: The height of the subregion required :param x_offset: The horizontal coordinate in the image to begin the crop operation diff --git a/src/main/python/systemds/operator/algorithm/builtin/img_crop_linearized.py b/src/main/python/systemds/operator/algorithm/builtin/img_crop_linearized.py index 4321a8af0db..46fcf802f45 100644 --- a/src/main/python/systemds/operator/algorithm/builtin/img_crop_linearized.py +++ b/src/main/python/systemds/operator/algorithm/builtin/img_crop_linearized.py @@ -38,9 +38,26 @@ def img_crop_linearized(img_in: Matrix, """ The img_crop_linearized cuts out a rectangular section of multiple linearized images. + .. code-block:: python + >>> import numpy as np + >>> from systemds.context import SystemDSContext + >>> from systemds.operator.algorithm import img_crop_linearized + >>> + >>> with SystemDSContext() as sds: + ... img = sds.from_numpy( + ... np.array([[ 50., 100., 150., + ... 150., 200., 250., + ... 250., 200., 200. ]], dtype=np.float32) + ... ) + ... result_img = img_crop_linearized(img, 1, 1, 1, 1, 3, 3).compute() + ... print(result_img) + [[200.]] - :param img_in: Linearized input images as 2D matrix + + + + :param img_in: Input images as linearized 2D matrix with top left corner at [1, 1] (every row represents a linearized matrix/image) :param w: The width of the subregion required :param h: The height of the subregion required :param x_offset: The horizontal offset for the center of the crop region diff --git a/src/main/python/systemds/operator/algorithm/builtin/img_cutout.py b/src/main/python/systemds/operator/algorithm/builtin/img_cutout.py index 93befbd7366..110e91e9e9d 100644 --- a/src/main/python/systemds/operator/algorithm/builtin/img_cutout.py +++ b/src/main/python/systemds/operator/algorithm/builtin/img_cutout.py @@ -38,6 +38,26 @@ def img_cutout(img_in: Matrix, Image Cutout function replaces a rectangular section of an image with a constant value. + .. code-block:: python + + >>> import numpy as np + >>> from systemds.context import SystemDSContext + >>> from systemds.operator.algorithm import img_cutout + >>> + >>> with SystemDSContext() as sds: + ... img = sds.from_numpy( + ... np.array([[ 50., 100., 150.], + ... [150., 200., 250.], + ... [250., 200., 200.]], dtype=np.float32) + ... ) + ... result_img = img_cutout(img, 2, 2, 1, 1, 49.).compute() + ... print(result_img) + [[ 50. 100. 150.] + [150. 49. 250.] + [250. 200. 200.]] + + + :param img_in: Input image as 2D matrix with top left corner at [1, 1] :param x: Column index of the top left corner of the rectangle (starting at 1) diff --git a/src/main/python/systemds/operator/algorithm/builtin/img_cutout_linearized.py b/src/main/python/systemds/operator/algorithm/builtin/img_cutout_linearized.py index 2dd0c52239f..765885c663b 100644 --- a/src/main/python/systemds/operator/algorithm/builtin/img_cutout_linearized.py +++ b/src/main/python/systemds/operator/algorithm/builtin/img_cutout_linearized.py @@ -39,9 +39,28 @@ def img_cutout_linearized(img_in: Matrix, """ Image Cutout function replaces a rectangular section of an image with a constant value. + .. code-block:: python + >>> import numpy as np + >>> from systemds.context import SystemDSContext + >>> from systemds.operator.algorithm import img_cutout_linearized + >>> + >>> with SystemDSContext() as sds: + ... img = sds.from_numpy( + ... np.array([[ 50., 100., 150., + ... 150., 200., 250., + ... 250., 200., 200. ]], dtype=np.float32) + ... ) + ... result_img = img_cutout_linearized(img, 2, 2, 1, 1, 25.0, 3, 3).compute() + ... print(result_img.reshape(3, 3)) + [[ 50. 100. 150.] + [150. 25. 250.] + [250. 200. 200.]] - :param img_in: Input images as linearized 2D matrix with top left corner at [1, 1] + + + + :param img_in: Input images as linearized 2D matrix with top left corner at [1, 1] (every row represents a linearized matrix/image) :param x: Column index of the top left corner of the rectangle (starting at 1) :param y: Row index of the top left corner of the rectangle (starting at 1) :param width: Width of the rectangle (must be positive) diff --git a/src/main/python/systemds/operator/algorithm/builtin/img_invert.py b/src/main/python/systemds/operator/algorithm/builtin/img_invert.py index a555f23708c..32ad67c4059 100644 --- a/src/main/python/systemds/operator/algorithm/builtin/img_invert.py +++ b/src/main/python/systemds/operator/algorithm/builtin/img_invert.py @@ -33,9 +33,28 @@ def img_invert(img_in: Matrix, """ This is an image data augmentation function. It inverts an image. + .. code-block:: python + >>> import numpy as np + >>> from systemds.context import SystemDSContext + >>> from systemds.operator.algorithm import img_invert + >>> + >>> with SystemDSContext() as sds: + ... img = sds.from_numpy( + ... np.array([[ 10., 20., 30.], + ... [ 40., 50., 60.], + ... [ 70., 80., 90.]], dtype=np.float32) + ... ) + ... result_img = img_invert(img, 210.).compute() + ... print(result_img) + [[200. 190. 180.] + [170. 160. 150.] + [140. 130. 120.]] - :param img_in: Input image + + + + :param img_in: Input image as 2D matrix with top left corner at [1, 1] :param max_value: The maximum value pixels can have :return: Output image """ diff --git a/src/main/python/systemds/operator/algorithm/builtin/img_invert_linearized.py b/src/main/python/systemds/operator/algorithm/builtin/img_invert_linearized.py index 2f66a0b8be2..59e30a3c77d 100644 --- a/src/main/python/systemds/operator/algorithm/builtin/img_invert_linearized.py +++ b/src/main/python/systemds/operator/algorithm/builtin/img_invert_linearized.py @@ -33,9 +33,28 @@ def img_invert_linearized(img_in: Matrix, """ This is an image data augmentation function. It inverts an image.It can handle one or multiple images + .. code-block:: python + >>> import numpy as np + >>> from systemds.context import SystemDSContext + >>> from systemds.operator.algorithm import img_invert_linearized + >>> + >>> with SystemDSContext() as sds: + ... img = sds.from_numpy( + ... np.array([[ 10., 20., 30., + ... 40., 50., 60., + ... 70., 80., 90. ]], dtype=np.float32) + ... ) + ... result_img = img_invert_linearized(img, 200.).compute() + ... print(result_img.reshape(3, 3)) + [[190. 180. 170.] + [160. 150. 140.] + [130. 120. 110.]] - :param img_in: Input matrix/image (every row of the matrix represents a linearized image) + + + + :param img_in: Input images as linearized 2D matrix with top left corner at [1, 1] (every row represents a linearized matrix/image) :param max_value: The maximum value pixels can have :return: Output images (every row of the matrix represents a linearized image) """ diff --git a/src/main/python/systemds/operator/algorithm/builtin/img_mirror.py b/src/main/python/systemds/operator/algorithm/builtin/img_mirror.py index 285d25fbf29..94d95438fb5 100644 --- a/src/main/python/systemds/operator/algorithm/builtin/img_mirror.py +++ b/src/main/python/systemds/operator/algorithm/builtin/img_mirror.py @@ -34,10 +34,29 @@ def img_mirror(img_in: Matrix, This function is an image data augmentation function. It flips an image on the X (horizontal) or Y (vertical) axis. + .. code-block:: python + >>> import numpy as np + >>> from systemds.context import SystemDSContext + >>> from systemds.operator.algorithm import img_mirror + >>> + >>> with SystemDSContext() as sds: + ... img = sds.from_numpy( + ... np.array([[ 10., 20., 30.], + ... [ 40., 50., 60.], + ... [ 70., 80., 90.]], dtype=np.float32) + ... ) + ... result_img = img_mirror(img, False).compute() + ... print(result_img) + [[30. 20. 10.] + [60. 50. 40.] + [90. 80. 70.]] - :param img_in: Input matrix/image - :param max_value: The maximum value pixels can have + + + + :param img_in: Input image as 2D matrix with top left corner at [1, 1] + :param horizontal_axis: Flip either in X or Y axis :return: Flipped matrix/image """ diff --git a/src/main/python/systemds/operator/algorithm/builtin/img_mirror_linearized.py b/src/main/python/systemds/operator/algorithm/builtin/img_mirror_linearized.py index 1c6ae58ad03..fdde6506c32 100644 --- a/src/main/python/systemds/operator/algorithm/builtin/img_mirror_linearized.py +++ b/src/main/python/systemds/operator/algorithm/builtin/img_mirror_linearized.py @@ -37,8 +37,54 @@ def img_mirror_linearized(img_matrix: Matrix, the same time. Each row of the input and output matrix represents a linearized image/matrix It flips an image on the X (horizontal) or Y (vertical) axis. + .. code-block:: python - :param img_matrix: Input matrix/image (every row represents a linearized matrix/image) + >>> import numpy as np + >>> from systemds.context import SystemDSContext + >>> from systemds.operator.algorithm import img_mirror_linearized + >>> + >>> with SystemDSContext() as sds: + ... img = sds.from_numpy( + ... np.array([[ 10., 20., 30., + ... 40., 50., 60., + ... 70., 80., 90. ]], dtype=np.float32) + ... ) + ... result_img = img_mirror_linearized(img, True, 3, 3).compute() + ... print(result_img.reshape(3, 3)) + [[70. 80. 90.] + [40. 50. 60.] + [10. 20. 30.]] + + + .. code-block:: python + + >>> import numpy as np + >>> from systemds.context import SystemDSContext + >>> from systemds.operator.algorithm import img_mirror_linearized + >>> + >>> with SystemDSContext() as sds: + ... imgs = sds.from_numpy( + ... np.array([[ 10., 20., 30., + ... 40., 50., 60., + ... 70., 80., 90. ], + ... [ 70., 80., 90., + ... 40., 50., 60., + ... 10., 20., 30. ]], dtype=np.float32) + ... ) + ... result_imgs = img_mirror_linearized(imgs, True, 3, 3).compute() + ... print(result_imgs[0].reshape(3, 3)) + ... print(result_imgs[1].reshape(3, 3)) + [[70. 80. 90.] + [40. 50. 60.] + [10. 20. 30.]] + [[10. 20. 30.] + [40. 50. 60.] + [70. 80. 90.]] + + + + + :param img_matrix: Input images as linearized 2D matrix with top left corner at [1, 1] (every row represents a linearized matrix/image) :param horizontal_axis: flip either in X or Y axis :param original_rows: number of rows in the original 2-D images :param original_cols: number of cols in the original 2-D images diff --git a/src/main/python/systemds/operator/algorithm/builtin/img_posterize.py b/src/main/python/systemds/operator/algorithm/builtin/img_posterize.py index e314b0e7ca0..ae1b367ded5 100644 --- a/src/main/python/systemds/operator/algorithm/builtin/img_posterize.py +++ b/src/main/python/systemds/operator/algorithm/builtin/img_posterize.py @@ -34,10 +34,29 @@ def img_posterize(img_in: Matrix, The Image Posterize function limits pixel values to 2^bits different values in the range [0, 255]. Assumes the input image can attain values in the range [0, 255]. + .. code-block:: python + >>> import numpy as np + >>> from systemds.context import SystemDSContext + >>> from systemds.operator.algorithm import img_posterize + >>> + >>> with SystemDSContext() as sds: + ... img = sds.from_numpy( + ... np.array([[ 10., 20., 30.], + ... [ 40., 255., 60.], + ... [ 70., 80., 90.]], dtype=np.float32) + ... ) + ... result_img = img_posterize(img, 1).compute() + ... print(result_img) + [[ 0. 0. 0.] + [ 0. 128. 0.] + [ 0. 0. 0.]] - :param img_in: Input image - :param bits: The number of bits keep for the values. + + + + :param img_in: Input image as 2D matrix with top left corner at [1, 1] + :param bits: The number of bits to keep for the values. 1 means black and white, 8 means every integer between 0 and 255. :return: Output image """ diff --git a/src/main/python/systemds/operator/algorithm/builtin/img_posterize_linearized.py b/src/main/python/systemds/operator/algorithm/builtin/img_posterize_linearized.py index 286ce0222df..508145943fb 100644 --- a/src/main/python/systemds/operator/algorithm/builtin/img_posterize_linearized.py +++ b/src/main/python/systemds/operator/algorithm/builtin/img_posterize_linearized.py @@ -34,10 +34,29 @@ def img_posterize_linearized(img_in: Matrix, The Linearized Image Posterize function limits pixel values to 2^bits different values in the range [0, 255]. Assumes the input image can attain values in the range [0, 255]. + .. code-block:: python + >>> import numpy as np + >>> from systemds.context import SystemDSContext + >>> from systemds.operator.algorithm import img_posterize_linearized + >>> + >>> with SystemDSContext() as sds: + ... img = sds.from_numpy( + ... np.array([[ 10., 20., 30., + ... 40., 255., 60., + ... 70., 80., 90. ]], dtype=np.float32) + ... ) + ... result_img = img_posterize_linearized(img, 1).compute() + ... print(result_img.reshape(3, 3)) + [[ 0. 0. 0.] + [ 0. 128. 0.] + [ 0. 0. 0.]] - :param img_in: Row linearized input images as 2D matrix - :param bits: The number of bits keep for the values. + + + + :param img_in: Input images as linearized 2D matrix with top left corner at [1, 1] (every row represents a linearized matrix/image) + :param bits: The number of bits to keep for the values. 1 means black and white, 8 means every integer between 0 and 255. :return: Row linearized output images as 2D matrix """ diff --git a/src/main/python/systemds/operator/algorithm/builtin/img_rotate.py b/src/main/python/systemds/operator/algorithm/builtin/img_rotate.py index b8ab1ec0687..55f7f28864b 100644 --- a/src/main/python/systemds/operator/algorithm/builtin/img_rotate.py +++ b/src/main/python/systemds/operator/algorithm/builtin/img_rotate.py @@ -35,6 +35,25 @@ def img_rotate(img_in: Matrix, The Image Rotate function rotates the input image counter-clockwise around the center. Uses nearest neighbor sampling. + .. code-block:: python + + >>> import numpy as np + >>> from systemds.context import SystemDSContext + >>> from systemds.operator.algorithm import img_rotate + >>> + >>> with SystemDSContext() as sds: + ... img = sds.from_numpy( + ... np.array([[ 10., 20., 30.], + ... [ 40., 50., 60.], + ... [ 70., 80., 90.]], dtype=np.float32) + ... ) + ... result_img = img_rotate(img, 3.14159, 255.).compute() + ... print(result_img) + [[90. 80. 70.] + [60. 50. 40.] + [30. 20. 10.]] + + :param img_in: Input image as 2D matrix with top left corner at [1, 1] diff --git a/src/main/python/systemds/operator/algorithm/builtin/img_rotate_linearized.py b/src/main/python/systemds/operator/algorithm/builtin/img_rotate_linearized.py index 94e7ecbff2b..9b1c1725de9 100644 --- a/src/main/python/systemds/operator/algorithm/builtin/img_rotate_linearized.py +++ b/src/main/python/systemds/operator/algorithm/builtin/img_rotate_linearized.py @@ -37,11 +37,32 @@ def img_rotate_linearized(img_in: Matrix, The Linearized Image Rotate function rotates the linearized input images counter-clockwise around the center. Uses nearest neighbor sampling. + .. code-block:: python + >>> import numpy as np + >>> from systemds.context import SystemDSContext + >>> from systemds.operator.algorithm import img_rotate_linearized + >>> + >>> with SystemDSContext() as sds: + ... img = sds.from_numpy( + ... np.array([[ 10., 20., 30., + ... 40., 50., 60., + ... 70., 80., 90. ]], dtype=np.float32) + ... ) + ... result_img = img_rotate_linearized(img, 3.14159, 255., 3, 3).compute() + ... print(result_img.reshape(3, 3)) + [[90. 80. 70.] + [60. 50. 40.] + [30. 20. 10.]] - :param img_in: Linearized input images as 2D matrix with top left corner at [1, 1] + + + + :param img_in: Input images as linearized 2D matrix with top left corner at [1, 1] (every row represents a linearized matrix/image) :param radians: The value by which to rotate in radian. :param fill_value: The background color revealed by the rotation + :param s_cols: Width of a single image + :param s_rows: Height of a single image :return: Output images in linearized form as 2D matrix with top left corner at [1, 1] """ diff --git a/src/main/python/systemds/operator/algorithm/builtin/img_sample_pairing.py b/src/main/python/systemds/operator/algorithm/builtin/img_sample_pairing.py index 892c524baf7..c757d626bd9 100644 --- a/src/main/python/systemds/operator/algorithm/builtin/img_sample_pairing.py +++ b/src/main/python/systemds/operator/algorithm/builtin/img_sample_pairing.py @@ -34,10 +34,34 @@ def img_sample_pairing(img_in1: Matrix, """ The image sample pairing function blends two images together. + .. code-block:: python + >>> import numpy as np + >>> from systemds.context import SystemDSContext + >>> from systemds.operator.algorithm import img_sample_pairing + >>> + >>> with SystemDSContext() as sds: + ... img_in1 = sds.from_numpy( + ... np.array([[ 10., 20., 30.], + ... [ 40., 50., 60.], + ... [ 70., 80., 90.]], dtype=np.float32) + ... ) + ... img_in2 = sds.from_numpy( + ... np.array([[ 30., 40., 50.], + ... [ 60., 70., 80.], + ... [ 90., 100., 110.]], dtype=np.float32) + ... ) + ... result_img = img_sample_pairing(img_in1, img_in2, 0.5).compute() + ... print(result_img) + [[ 20. 30. 40.] + [ 50. 60. 70.] + [ 80. 90. 100.]] - :param img_in1: First input image - :param img_in2: Second input image + + + + :param img_in1: First input image as 2D matrix with top left corner at [1, 1] + :param img_in2: Second input image as 2D matrix with top left corner at [1, 1] :param weight: The weight given to the second image. 0 means only img_in1, 1 means only img_in2 will be visible :return: Output image diff --git a/src/main/python/systemds/operator/algorithm/builtin/img_sample_pairing_linearized.py b/src/main/python/systemds/operator/algorithm/builtin/img_sample_pairing_linearized.py index a7f08c74f41..4368e2ddc38 100644 --- a/src/main/python/systemds/operator/algorithm/builtin/img_sample_pairing_linearized.py +++ b/src/main/python/systemds/operator/algorithm/builtin/img_sample_pairing_linearized.py @@ -34,9 +34,33 @@ def img_sample_pairing_linearized(img_in1: Matrix, """ The image sample pairing function blends two images together. + .. code-block:: python + >>> import numpy as np + >>> from systemds.context import SystemDSContext + >>> from systemds.operator.algorithm import img_sample_pairing_linearized + >>> + >>> with SystemDSContext() as sds: + ... img_in1 = sds.from_numpy( + ... np.array([[ 10., 20., 30., + ... 40., 50., 60., + ... 70., 80., 90. ]], dtype=np.float32) + ... ) + ... img_in2 = sds.from_numpy( + ... np.array([[ 30., 40., 50., + ... 60., 70., 80., + ... 90., 100., 110. ]], dtype=np.float32) + ... ) + ... result_img = img_sample_pairing_linearized(img_in1, img_in2, 0.5).compute() + ... print(result_img.reshape(3, 3)) + [[ 20. 30. 40.] + [ 50. 60. 70.] + [ 80. 90. 100.]] - :param img_in1: input matrix/image (every row is a linearized image) + + + + :param img_in1: Input images as linearized 2D matrix with top left corner at [1, 1] (every row represents a linearized matrix/image) :param img_in2: Second input image (one image represented as a single row linearized matrix) :param weight: The weight given to the second image. 0 means only img_in1, 1 means only img_in2 will be visible diff --git a/src/main/python/systemds/operator/algorithm/builtin/img_shear.py b/src/main/python/systemds/operator/algorithm/builtin/img_shear.py index 44ad9f6883a..b9c6a22cabb 100644 --- a/src/main/python/systemds/operator/algorithm/builtin/img_shear.py +++ b/src/main/python/systemds/operator/algorithm/builtin/img_shear.py @@ -36,6 +36,25 @@ def img_shear(img_in: Matrix, This function applies a shearing transformation to an image. Uses nearest neighbor sampling. + .. code-block:: python + + >>> import numpy as np + >>> from systemds.context import SystemDSContext + >>> from systemds.operator.algorithm import img_shear + >>> + >>> with SystemDSContext() as sds: + ... img = sds.from_numpy( + ... np.array([[ 10., 20., 30.], + ... [ 40., 50., 60.], + ... [ 70., 80., 90.]], dtype=np.float32) + ... ) + ... result_img = img_shear(img, 1., 0., 255).compute() + ... print(result_img) + [[ 10. 20. 30.] + [255. 40. 50.] + [255. 255. 70.]] + + :param img_in: Input image as 2D matrix with top left corner at [1, 1] diff --git a/src/main/python/systemds/operator/algorithm/builtin/img_shear_linearized.py b/src/main/python/systemds/operator/algorithm/builtin/img_shear_linearized.py index a470c8a08c2..96899e6d06a 100644 --- a/src/main/python/systemds/operator/algorithm/builtin/img_shear_linearized.py +++ b/src/main/python/systemds/operator/algorithm/builtin/img_shear_linearized.py @@ -38,12 +38,33 @@ def img_shear_linearized(img_in: Matrix, This function applies a shearing transformation to linearized images. Uses nearest neighbor sampling. + .. code-block:: python + >>> import numpy as np + >>> from systemds.context import SystemDSContext + >>> from systemds.operator.algorithm import img_shear_linearized + >>> + >>> with SystemDSContext() as sds: + ... img = sds.from_numpy( + ... np.array([[ 10., 20., 30., + ... 40., 50., 60., + ... 70., 80., 90. ]], dtype=np.float32) + ... ) + ... result_img = img_shear_linearized(img, 1., 0., 0., 3, 3).compute() + ... print(result_img.reshape(3, 3)) + [[10. 20. 30.] + [ 0. 40. 50.] + [ 0. 0. 70.]] - :param img_in: Linearized input images as 2D matrix with top left corner at [1, 1] + + + + :param img_in: Input images as linearized 2D matrix with top left corner at [1, 1] (every row represents a linearized matrix/image) :param shear_x: Shearing factor for horizontal shearing :param shear_y: Shearing factor for vertical shearing :param fill_value: The background color revealed by the shearing + :param s_cols: Width of a single image + :param s_rows: Height of a single image :return: Output images in linearized form as 2D matrix with top left corner at [1, 1] """ diff --git a/src/main/python/systemds/operator/algorithm/builtin/img_transform.py b/src/main/python/systemds/operator/algorithm/builtin/img_transform.py index 73095816bdf..51a2468e1ad 100644 --- a/src/main/python/systemds/operator/algorithm/builtin/img_transform.py +++ b/src/main/python/systemds/operator/algorithm/builtin/img_transform.py @@ -43,6 +43,25 @@ def img_transform(img_in: Matrix, Optionally resizes the image (without scaling). Uses nearest neighbor sampling. + .. code-block:: python + + >>> import numpy as np + >>> from systemds.context import SystemDSContext + >>> from systemds.operator.algorithm import img_transform + >>> + >>> with SystemDSContext() as sds: + ... img = sds.from_numpy( + ... np.array([[ 10., 20., 30.], + ... [ 40., 50., 60.], + ... [ 70., 80., 90.]], dtype=np.float32) + ... ) + ... result_img = img_transform(img, 3, 3, -1., 0., 2., 0., 1., 0., 255.).compute() + ... print(result_img) + [[ 20. 10. 255.] + [ 50. 40. 255.] + [ 80. 70. 255.]] + + :param img_in: Input image as 2D matrix with top left corner at [1, 1] diff --git a/src/main/python/systemds/operator/algorithm/builtin/img_transform_linearized.py b/src/main/python/systemds/operator/algorithm/builtin/img_transform_linearized.py index 8020b22a54e..fb706fc2f93 100644 --- a/src/main/python/systemds/operator/algorithm/builtin/img_transform_linearized.py +++ b/src/main/python/systemds/operator/algorithm/builtin/img_transform_linearized.py @@ -45,13 +45,34 @@ def img_transform_linearized(img_in: Matrix, Optionally resizes the image (without scaling). Uses nearest neighbor sampling. + .. code-block:: python + >>> import numpy as np + >>> from systemds.context import SystemDSContext + >>> from systemds.operator.algorithm import img_transform_linearized + >>> + >>> with SystemDSContext() as sds: + ... img = sds.from_numpy( + ... np.array([[ 10., 20., 30., + ... 40., 50., 60., + ... 70., 80., 90. ]], dtype=np.float32) + ... ) + ... result_img = img_transform_linearized(img, 3, 3, -1., 0., 2., 0., 1., 0., 255., 3, 3).compute() + ... print(result_img.reshape(3, 3)) + [[ 20. 10. 255.] + [ 50. 40. 255.] + [ 80. 70. 255.]] - :param img_in: Linearized input images as 2D matrix with top left corner at [1, 1] + + + + :param img_in: Input images as linearized 2D matrix with top left corner at [1, 1] (every row represents a linearized matrix/image) :param out_w: Width of the output matrix :param out_h: Height of the output matrix :param a,b,c,d,e,f: The first two rows of the affine matrix in row-major order :param fill_value: The background of an image + :param s_cols: Width of a single image + :param s_rows: Height of a single image :return: Output images in linearized form as 2D matrix with top left corner at [1, 1] """ diff --git a/src/main/python/systemds/operator/algorithm/builtin/img_translate.py b/src/main/python/systemds/operator/algorithm/builtin/img_translate.py index 9cfc991ca57..e184bdbadfe 100644 --- a/src/main/python/systemds/operator/algorithm/builtin/img_translate.py +++ b/src/main/python/systemds/operator/algorithm/builtin/img_translate.py @@ -39,6 +39,25 @@ def img_translate(img_in: Matrix, Optionally resizes the image (without scaling). Uses nearest neighbor sampling. + .. code-block:: python + + >>> import numpy as np + >>> from systemds.context import SystemDSContext + >>> from systemds.operator.algorithm import img_translate + >>> + >>> with SystemDSContext() as sds: + ... img = sds.from_numpy( + ... np.array([[ 10., 20., 30.], + ... [ 40., 50., 60.], + ... [ 70., 80., 90.]], dtype=np.float32) + ... ) + ... result_img = img_translate(img, 1., 1., 3, 3, 255.).compute() + ... print(result_img) + [[255. 255. 255.] + [255. 10. 20.] + [255. 40. 50.]] + + :param img_in: Input image as 2D matrix with top left corner at [1, 1] diff --git a/src/main/python/systemds/operator/algorithm/builtin/img_translate_linearized.py b/src/main/python/systemds/operator/algorithm/builtin/img_translate_linearized.py index 92098dab2c7..9b3e2eab92f 100644 --- a/src/main/python/systemds/operator/algorithm/builtin/img_translate_linearized.py +++ b/src/main/python/systemds/operator/algorithm/builtin/img_translate_linearized.py @@ -41,8 +41,28 @@ def img_translate_linearized(img_in: Matrix, the same time. Each row of the input and output matrix represents a linearized image/matrix It translates the image and Optionally resizes the image (without scaling). + .. code-block:: python - :param img_in: Input matrix/image (every row represents a linearized matrix/image) + >>> import numpy as np + >>> from systemds.context import SystemDSContext + >>> from systemds.operator.algorithm import img_translate_linearized + >>> + >>> with SystemDSContext() as sds: + ... img = sds.from_numpy( + ... np.array([[ 10., 20., 30., + ... 40., 50., 60., + ... 70., 80., 90. ]], dtype=np.float32) + ... ) + ... result_img = img_translate_linearized(img, 1., 1., 3, 3, 255.0, 3, 3).compute() + ... print(result_img.reshape(3, 3)) + [[255. 255. 255.] + [255. 10. 20.] + [255. 40. 50.]] + + + + + :param img_in: Input images as linearized 2D matrix with top left corner at [1, 1] (every row represents a linearized matrix/image) :param offset_x: The distance to move the image in x direction :param offset_y: The distance to move the image in y direction :param out_w: Width of the output image diff --git a/src/main/python/systemds/operator/algorithm/builtin/lm.py b/src/main/python/systemds/operator/algorithm/builtin/lm.py index e67bbb366fc..fa317fb22c2 100644 --- a/src/main/python/systemds/operator/algorithm/builtin/lm.py +++ b/src/main/python/systemds/operator/algorithm/builtin/lm.py @@ -36,6 +36,36 @@ def lm(X: Matrix, method or the conjugate gradient algorithm depending on the input size of the matrices (See lmDS-function and lmCG-function respectively). + .. code-block:: python + + >>> import numpy as np + >>> from systemds.context import SystemDSContext + >>> from systemds.operator.algorithm import lm + >>> + >>> np.random.seed(0) + >>> features = np.random.rand(10, 15) + >>> y = np.random.rand(10, 1) + >>> + >>> with SystemDSContext() as sds: + ... weights = lm(sds.from_numpy(features), sds.from_numpy(y)).compute() + ... print(weights) + [[-0.11538199] + [-0.20386541] + [-0.39956034] + [ 1.04078623] + [ 0.43270839] + [ 0.18954599] + [ 0.49858969] + [-0.26812763] + [ 0.09961844] + [-0.57000751] + [-0.43386048] + [ 0.55358873] + [-0.54638565] + [ 0.2205885 ] + [ 0.37957689]] + + :param X: Matrix of feature vectors. diff --git a/src/main/python/systemds/operator/algorithm/builtin/normalize.py b/src/main/python/systemds/operator/algorithm/builtin/normalize.py index 9353f75b8bf..f4dd5bbd123 100644 --- a/src/main/python/systemds/operator/algorithm/builtin/normalize.py +++ b/src/main/python/systemds/operator/algorithm/builtin/normalize.py @@ -33,6 +33,20 @@ def normalize(X: Matrix): Min-max normalization (a.k.a. min-max scaling) to range [0,1]. For matrices of positive values, this normalization preserves the input sparsity. + .. code-block:: python + + >>> import numpy as np + >>> from systemds.context import SystemDSContext + >>> from systemds.operator.algorithm import normalize + >>> + >>> with SystemDSContext() as sds: + ... X = sds.from_numpy(np.array([[1, 2], [3, 4]])) + ... Y, cmin, cmax = normalize(X).compute() + ... print(Y) + [[0. 0.] + [1. 1.]] + + :param X: Input feature matrix of shape n-by-m diff --git a/src/main/python/systemds/operator/algorithm/builtin/randomForest.py b/src/main/python/systemds/operator/algorithm/builtin/randomForest.py index 177ebd3fd38..f100d28092f 100644 --- a/src/main/python/systemds/operator/algorithm/builtin/randomForest.py +++ b/src/main/python/systemds/operator/algorithm/builtin/randomForest.py @@ -60,6 +60,47 @@ def randomForest(X: Matrix, prefixed by a one-hot vector of sampled features (e.g., [1,1,1,0] if we sampled a,b,c of the four features) + .. code-block:: python + + >>> import numpy as np + >>> from systemds.context import SystemDSContext + >>> from systemds.operator.algorithm import randomForest, randomForestPredict + >>> + >>> # tiny toy dataset + >>> X = np.array([[1], + ... [2], + ... [10], + ... [11]], dtype=np.int64) + >>> y = np.array([[1], + ... [1], + ... [2], + ... [2]], dtype=np.int64) + >>> + >>> with SystemDSContext() as sds: + ... X_sds = sds.from_numpy(X) + ... y_sds = sds.from_numpy(y) + ... + ... ctypes = sds.from_numpy(np.array([[1, 2]], dtype=np.int64)) + ... + ... # train a 4-tree forest (no sampling) + ... M = randomForest( + ... X_sds, y_sds, ctypes, + ... num_trees = 4, + ... sample_frac = 1.0, + ... feature_frac = 1.0, + ... max_depth = 3, + ... min_leaf = 1, + ... min_split = 2, + ... seed = 42 + ... ) + ... + ... preds = randomForestPredict(X_sds, ctypes, M).compute() + ... print(preds) + [[1.] + [1.] + [2.] + [2.]] + diff --git a/src/main/python/systemds/operator/algorithm/builtin/randomForestPredict.py b/src/main/python/systemds/operator/algorithm/builtin/randomForestPredict.py index bff00217e27..78dc1bda3f1 100644 --- a/src/main/python/systemds/operator/algorithm/builtin/randomForestPredict.py +++ b/src/main/python/systemds/operator/algorithm/builtin/randomForestPredict.py @@ -37,6 +37,49 @@ def randomForestPredict(X: Matrix, categorical and numerical input features. + .. code-block:: python + + >>> import numpy as np + >>> from systemds.context import SystemDSContext + >>> from systemds.operator.algorithm import randomForest, randomForestPredict + >>> + >>> # tiny toy dataset + >>> X = np.array([[1], + ... [2], + ... [10], + ... [11]], dtype=np.int64) + >>> y = np.array([[1], + ... [1], + ... [2], + ... [2]], dtype=np.int64) + >>> + >>> with SystemDSContext() as sds: + ... X_sds = sds.from_numpy(X) + ... y_sds = sds.from_numpy(y) + ... + ... ctypes = sds.from_numpy(np.array([[1, 2]], dtype=np.int64)) + ... + ... # train a 4-tree forest (no sampling) + ... M = randomForest( + ... X_sds, y_sds, ctypes, + ... num_trees = 4, + ... sample_frac = 1.0, + ... feature_frac = 1.0, + ... max_depth = 3, + ... min_leaf = 1, + ... min_split = 2, + ... seed = 42 + ... ) + ... + ... preds = randomForestPredict(X_sds, ctypes, M).compute() + ... print(preds) + [[1.] + [1.] + [2.] + [2.]] + + + :param X: Feature matrix in recoded/binned representation :param y: Label matrix in recoded/binned representation, diff --git a/src/main/python/systemds/operator/algorithm/builtin/toOneHot.py b/src/main/python/systemds/operator/algorithm/builtin/toOneHot.py index 0ad76ec5f70..436ed64df72 100644 --- a/src/main/python/systemds/operator/algorithm/builtin/toOneHot.py +++ b/src/main/python/systemds/operator/algorithm/builtin/toOneHot.py @@ -33,6 +33,22 @@ def toOneHot(X: Matrix, """ The toOneHot-function encodes unordered categorical vector to multiple binary vectors. + .. code-block:: python + + >>> import numpy as np + >>> from systemds.context import SystemDSContext + >>> from systemds.operator.algorithm import toOneHot + >>> + >>> with SystemDSContext() as sds: + ... X = sds.from_numpy(np.array([[1], [3], [2], [3]])) + ... Y = toOneHot(X, numClasses=3).compute() + ... print(Y) + [[1. 0. 0.] + [0. 0. 1.] + [0. 1. 0.] + [0. 0. 1.]] + + :param X: Vector with N integer entries between 1 and numClasses diff --git a/src/main/python/tests/algorithms/test_lm.py b/src/main/python/tests/algorithms/test_lm.py deleted file mode 100644 index aad8abac66a..00000000000 --- a/src/main/python/tests/algorithms/test_lm.py +++ /dev/null @@ -1,65 +0,0 @@ -# ------------------------------------------------------------- -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# -# ------------------------------------------------------------- - -import unittest - -import numpy as np -from sklearn.linear_model import LinearRegression -from systemds.context import SystemDSContext -from systemds.operator.algorithm import lm - -np.random.seed(7) - - -class TestLm(unittest.TestCase): - - sds: SystemDSContext = None - - @classmethod - def setUpClass(cls): - cls.sds = SystemDSContext() - - @classmethod - def tearDownClass(cls): - cls.sds.close() - - def test_lm_simple(self): - # if the dimensions of the input is 1, then the - X = np.random.rand(30, 1) - Y = np.random.rand(30, 1) - regressor = LinearRegression(fit_intercept=False) - model = regressor.fit(X, Y).coef_ - - X_sds = self.sds.from_numpy(X) - Y_sds = self.sds.from_numpy(Y) - - sds_model_weights = lm(X_sds, Y_sds, verbose=False).compute() - model = model.reshape(sds_model_weights.shape) - - eps = 1e-03 - - self.assertTrue( - np.allclose(sds_model_weights, model, eps), "All elements are not close" - ) - - -if __name__ == "__main__": - unittest.main(exit=False) diff --git a/src/main/python/tests/auto_tests/test_dist.py b/src/main/python/tests/auto_tests/test_dist.py new file mode 100644 index 00000000000..6a3e39f05da --- /dev/null +++ b/src/main/python/tests/auto_tests/test_dist.py @@ -0,0 +1,44 @@ +# ------------------------------------------------------------- +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# ------------------------------------------------------------- + +# Autogenerated By : src/main/python/generator/generator.py +import unittest, contextlib, io +class TestDIST(unittest.TestCase): + def test_dist(self): + # Example test case provided in python the code block + buf = io.StringIO() + with contextlib.redirect_stdout(buf): + import numpy as np + from systemds.context import SystemDSContext + from systemds.operator.algorithm import dist + + with SystemDSContext() as sds: + X = sds.from_numpy(np.array([[0], [3], [4]])) + out = dist(X).compute() + print(out) + + expected="""[[0. 3. 4.] + [3. 0. 1.] + [4. 1. 0.]]""" + self.assertEqual(buf.getvalue().strip(), expected) + +if __name__ == '__main__': + unittest.main() diff --git a/src/main/python/tests/auto_tests/test_img_brightness.py b/src/main/python/tests/auto_tests/test_img_brightness.py new file mode 100644 index 00000000000..f30545cd769 --- /dev/null +++ b/src/main/python/tests/auto_tests/test_img_brightness.py @@ -0,0 +1,46 @@ +# ------------------------------------------------------------- +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# ------------------------------------------------------------- + +# Autogenerated By : src/main/python/generator/generator.py +import unittest, contextlib, io +class TestIMG_BRIGHTNESS(unittest.TestCase): + def test_img_brightness(self): + # Example test case provided in python the code block + buf = io.StringIO() + with contextlib.redirect_stdout(buf): + import numpy as np + from systemds.context import SystemDSContext + from systemds.operator.algorithm import img_brightness + + with SystemDSContext() as sds: + img = sds.from_numpy( + np.array([[ 50, 100, + 150, 200 ]], dtype=np.float32) + ) + result_img = img_brightness(img, 30.0, 150).compute() + print(result_img.reshape(2, 2)) + + expected="""[[ 80. 130.] + [150. 150.]]""" + self.assertEqual(buf.getvalue().strip(), expected) + +if __name__ == '__main__': + unittest.main() diff --git a/src/main/python/tests/auto_tests/test_img_brightness_linearized.py b/src/main/python/tests/auto_tests/test_img_brightness_linearized.py new file mode 100644 index 00000000000..a82bab31536 --- /dev/null +++ b/src/main/python/tests/auto_tests/test_img_brightness_linearized.py @@ -0,0 +1,46 @@ +# ------------------------------------------------------------- +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# ------------------------------------------------------------- + +# Autogenerated By : src/main/python/generator/generator.py +import unittest, contextlib, io +class TestIMG_BRIGHTNESS_LINEARIZED(unittest.TestCase): + def test_img_brightness_linearized(self): + # Example test case provided in python the code block + buf = io.StringIO() + with contextlib.redirect_stdout(buf): + import numpy as np + from systemds.context import SystemDSContext + from systemds.operator.algorithm import img_brightness_linearized + + with SystemDSContext() as sds: + img = sds.from_numpy( + np.array([[ 50, 100, + 150, 200 ]], dtype=np.float32) + ) + result_img = img_brightness_linearized(img, 30.0, 255).compute() + print(result_img.reshape(2, 2)) + + expected="""[[ 80. 130.] + [180. 230.]]""" + self.assertEqual(buf.getvalue().strip(), expected) + +if __name__ == '__main__': + unittest.main() diff --git a/src/main/python/tests/auto_tests/test_img_crop.py b/src/main/python/tests/auto_tests/test_img_crop.py new file mode 100644 index 00000000000..ac94a9f8338 --- /dev/null +++ b/src/main/python/tests/auto_tests/test_img_crop.py @@ -0,0 +1,46 @@ +# ------------------------------------------------------------- +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# ------------------------------------------------------------- + +# Autogenerated By : src/main/python/generator/generator.py +import unittest, contextlib, io +class TestIMG_CROP(unittest.TestCase): + def test_img_crop(self): + # Example test case provided in python the code block + buf = io.StringIO() + with contextlib.redirect_stdout(buf): + import numpy as np + from systemds.context import SystemDSContext + from systemds.operator.algorithm import img_crop + + with SystemDSContext() as sds: + img = sds.from_numpy( + np.array([[ 50., 100., 150.], + [150., 200., 250.], + [250., 200., 200.]], dtype=np.float32) + ) + result_img = img_crop(img, 1, 1, 1, 1).compute() + print(result_img) + + expected="""[[200.]]""" + self.assertEqual(buf.getvalue().strip(), expected) + +if __name__ == '__main__': + unittest.main() diff --git a/src/main/python/tests/auto_tests/test_img_crop_linearized.py b/src/main/python/tests/auto_tests/test_img_crop_linearized.py new file mode 100644 index 00000000000..ae223721886 --- /dev/null +++ b/src/main/python/tests/auto_tests/test_img_crop_linearized.py @@ -0,0 +1,46 @@ +# ------------------------------------------------------------- +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# ------------------------------------------------------------- + +# Autogenerated By : src/main/python/generator/generator.py +import unittest, contextlib, io +class TestIMG_CROP_LINEARIZED(unittest.TestCase): + def test_img_crop_linearized(self): + # Example test case provided in python the code block + buf = io.StringIO() + with contextlib.redirect_stdout(buf): + import numpy as np + from systemds.context import SystemDSContext + from systemds.operator.algorithm import img_crop_linearized + + with SystemDSContext() as sds: + img = sds.from_numpy( + np.array([[ 50., 100., 150., + 150., 200., 250., + 250., 200., 200. ]], dtype=np.float32) + ) + result_img = img_crop_linearized(img, 1, 1, 1, 1, 3, 3).compute() + print(result_img) + + expected="""[[200.]]""" + self.assertEqual(buf.getvalue().strip(), expected) + +if __name__ == '__main__': + unittest.main() diff --git a/src/main/python/tests/auto_tests/test_img_cutout.py b/src/main/python/tests/auto_tests/test_img_cutout.py new file mode 100644 index 00000000000..e66f0aed6f2 --- /dev/null +++ b/src/main/python/tests/auto_tests/test_img_cutout.py @@ -0,0 +1,48 @@ +# ------------------------------------------------------------- +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# ------------------------------------------------------------- + +# Autogenerated By : src/main/python/generator/generator.py +import unittest, contextlib, io +class TestIMG_CUTOUT(unittest.TestCase): + def test_img_cutout(self): + # Example test case provided in python the code block + buf = io.StringIO() + with contextlib.redirect_stdout(buf): + import numpy as np + from systemds.context import SystemDSContext + from systemds.operator.algorithm import img_cutout + + with SystemDSContext() as sds: + img = sds.from_numpy( + np.array([[ 50., 100., 150.], + [150., 200., 250.], + [250., 200., 200.]], dtype=np.float32) + ) + result_img = img_cutout(img, 2, 2, 1, 1, 49.).compute() + print(result_img) + + expected="""[[ 50. 100. 150.] + [150. 49. 250.] + [250. 200. 200.]]""" + self.assertEqual(buf.getvalue().strip(), expected) + +if __name__ == '__main__': + unittest.main() diff --git a/src/main/python/tests/auto_tests/test_img_cutout_linearized.py b/src/main/python/tests/auto_tests/test_img_cutout_linearized.py new file mode 100644 index 00000000000..f553b140393 --- /dev/null +++ b/src/main/python/tests/auto_tests/test_img_cutout_linearized.py @@ -0,0 +1,48 @@ +# ------------------------------------------------------------- +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# ------------------------------------------------------------- + +# Autogenerated By : src/main/python/generator/generator.py +import unittest, contextlib, io +class TestIMG_CUTOUT_LINEARIZED(unittest.TestCase): + def test_img_cutout_linearized(self): + # Example test case provided in python the code block + buf = io.StringIO() + with contextlib.redirect_stdout(buf): + import numpy as np + from systemds.context import SystemDSContext + from systemds.operator.algorithm import img_cutout_linearized + + with SystemDSContext() as sds: + img = sds.from_numpy( + np.array([[ 50., 100., 150., + 150., 200., 250., + 250., 200., 200. ]], dtype=np.float32) + ) + result_img = img_cutout_linearized(img, 2, 2, 1, 1, 25.0, 3, 3).compute() + print(result_img.reshape(3, 3)) + + expected="""[[ 50. 100. 150.] + [150. 25. 250.] + [250. 200. 200.]]""" + self.assertEqual(buf.getvalue().strip(), expected) + +if __name__ == '__main__': + unittest.main() diff --git a/src/main/python/tests/auto_tests/test_img_invert.py b/src/main/python/tests/auto_tests/test_img_invert.py new file mode 100644 index 00000000000..a11ff19e99a --- /dev/null +++ b/src/main/python/tests/auto_tests/test_img_invert.py @@ -0,0 +1,48 @@ +# ------------------------------------------------------------- +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# ------------------------------------------------------------- + +# Autogenerated By : src/main/python/generator/generator.py +import unittest, contextlib, io +class TestIMG_INVERT(unittest.TestCase): + def test_img_invert(self): + # Example test case provided in python the code block + buf = io.StringIO() + with contextlib.redirect_stdout(buf): + import numpy as np + from systemds.context import SystemDSContext + from systemds.operator.algorithm import img_invert + + with SystemDSContext() as sds: + img = sds.from_numpy( + np.array([[ 10., 20., 30.], + [ 40., 50., 60.], + [ 70., 80., 90.]], dtype=np.float32) + ) + result_img = img_invert(img, 210.).compute() + print(result_img) + + expected="""[[200. 190. 180.] + [170. 160. 150.] + [140. 130. 120.]]""" + self.assertEqual(buf.getvalue().strip(), expected) + +if __name__ == '__main__': + unittest.main() diff --git a/src/main/python/tests/auto_tests/test_img_invert_linearized.py b/src/main/python/tests/auto_tests/test_img_invert_linearized.py new file mode 100644 index 00000000000..65db0866c9c --- /dev/null +++ b/src/main/python/tests/auto_tests/test_img_invert_linearized.py @@ -0,0 +1,48 @@ +# ------------------------------------------------------------- +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# ------------------------------------------------------------- + +# Autogenerated By : src/main/python/generator/generator.py +import unittest, contextlib, io +class TestIMG_INVERT_LINEARIZED(unittest.TestCase): + def test_img_invert_linearized(self): + # Example test case provided in python the code block + buf = io.StringIO() + with contextlib.redirect_stdout(buf): + import numpy as np + from systemds.context import SystemDSContext + from systemds.operator.algorithm import img_invert_linearized + + with SystemDSContext() as sds: + img = sds.from_numpy( + np.array([[ 10., 20., 30., + 40., 50., 60., + 70., 80., 90. ]], dtype=np.float32) + ) + result_img = img_invert_linearized(img, 200.).compute() + print(result_img.reshape(3, 3)) + + expected="""[[190. 180. 170.] + [160. 150. 140.] + [130. 120. 110.]]""" + self.assertEqual(buf.getvalue().strip(), expected) + +if __name__ == '__main__': + unittest.main() diff --git a/src/main/python/tests/auto_tests/test_img_mirror.py b/src/main/python/tests/auto_tests/test_img_mirror.py new file mode 100644 index 00000000000..241635199c8 --- /dev/null +++ b/src/main/python/tests/auto_tests/test_img_mirror.py @@ -0,0 +1,48 @@ +# ------------------------------------------------------------- +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# ------------------------------------------------------------- + +# Autogenerated By : src/main/python/generator/generator.py +import unittest, contextlib, io +class TestIMG_MIRROR(unittest.TestCase): + def test_img_mirror(self): + # Example test case provided in python the code block + buf = io.StringIO() + with contextlib.redirect_stdout(buf): + import numpy as np + from systemds.context import SystemDSContext + from systemds.operator.algorithm import img_mirror + + with SystemDSContext() as sds: + img = sds.from_numpy( + np.array([[ 10., 20., 30.], + [ 40., 50., 60.], + [ 70., 80., 90.]], dtype=np.float32) + ) + result_img = img_mirror(img, False).compute() + print(result_img) + + expected="""[[30. 20. 10.] + [60. 50. 40.] + [90. 80. 70.]]""" + self.assertEqual(buf.getvalue().strip(), expected) + +if __name__ == '__main__': + unittest.main() diff --git a/src/main/python/tests/auto_tests/test_img_mirror_linearized_0.py b/src/main/python/tests/auto_tests/test_img_mirror_linearized_0.py new file mode 100644 index 00000000000..f5b8ba4733e --- /dev/null +++ b/src/main/python/tests/auto_tests/test_img_mirror_linearized_0.py @@ -0,0 +1,48 @@ +# ------------------------------------------------------------- +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# ------------------------------------------------------------- + +# Autogenerated By : src/main/python/generator/generator.py +import unittest, contextlib, io +class TestIMG_MIRROR_LINEARIZED_0(unittest.TestCase): + def test_img_mirror_linearized_0(self): + # Example test case provided in python the code block + buf = io.StringIO() + with contextlib.redirect_stdout(buf): + import numpy as np + from systemds.context import SystemDSContext + from systemds.operator.algorithm import img_mirror_linearized + + with SystemDSContext() as sds: + img = sds.from_numpy( + np.array([[ 10., 20., 30., + 40., 50., 60., + 70., 80., 90. ]], dtype=np.float32) + ) + result_img = img_mirror_linearized(img, True, 3, 3).compute() + print(result_img.reshape(3, 3)) + + expected="""[[70. 80. 90.] + [40. 50. 60.] + [10. 20. 30.]]""" + self.assertEqual(buf.getvalue().strip(), expected) + +if __name__ == '__main__': + unittest.main() diff --git a/src/main/python/tests/auto_tests/test_img_mirror_linearized_1.py b/src/main/python/tests/auto_tests/test_img_mirror_linearized_1.py new file mode 100644 index 00000000000..a9884ab19eb --- /dev/null +++ b/src/main/python/tests/auto_tests/test_img_mirror_linearized_1.py @@ -0,0 +1,55 @@ +# ------------------------------------------------------------- +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# ------------------------------------------------------------- + +# Autogenerated By : src/main/python/generator/generator.py +import unittest, contextlib, io +class TestIMG_MIRROR_LINEARIZED_1(unittest.TestCase): + def test_img_mirror_linearized_1(self): + # Example test case provided in python the code block + buf = io.StringIO() + with contextlib.redirect_stdout(buf): + import numpy as np + from systemds.context import SystemDSContext + from systemds.operator.algorithm import img_mirror_linearized + + with SystemDSContext() as sds: + imgs = sds.from_numpy( + np.array([[ 10., 20., 30., + 40., 50., 60., + 70., 80., 90. ], + [ 70., 80., 90., + 40., 50., 60., + 10., 20., 30. ]], dtype=np.float32) + ) + result_imgs = img_mirror_linearized(imgs, True, 3, 3).compute() + print(result_imgs[0].reshape(3, 3)) + print(result_imgs[1].reshape(3, 3)) + + expected="""[[70. 80. 90.] + [40. 50. 60.] + [10. 20. 30.]] +[[10. 20. 30.] + [40. 50. 60.] + [70. 80. 90.]]""" + self.assertEqual(buf.getvalue().strip(), expected) + +if __name__ == '__main__': + unittest.main() diff --git a/src/main/python/tests/auto_tests/test_img_posterize.py b/src/main/python/tests/auto_tests/test_img_posterize.py new file mode 100644 index 00000000000..d0f1cd7b6cc --- /dev/null +++ b/src/main/python/tests/auto_tests/test_img_posterize.py @@ -0,0 +1,48 @@ +# ------------------------------------------------------------- +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# ------------------------------------------------------------- + +# Autogenerated By : src/main/python/generator/generator.py +import unittest, contextlib, io +class TestIMG_POSTERIZE(unittest.TestCase): + def test_img_posterize(self): + # Example test case provided in python the code block + buf = io.StringIO() + with contextlib.redirect_stdout(buf): + import numpy as np + from systemds.context import SystemDSContext + from systemds.operator.algorithm import img_posterize + + with SystemDSContext() as sds: + img = sds.from_numpy( + np.array([[ 10., 20., 30.], + [ 40., 255., 60.], + [ 70., 80., 90.]], dtype=np.float32) + ) + result_img = img_posterize(img, 1).compute() + print(result_img) + + expected="""[[ 0. 0. 0.] + [ 0. 128. 0.] + [ 0. 0. 0.]]""" + self.assertEqual(buf.getvalue().strip(), expected) + +if __name__ == '__main__': + unittest.main() diff --git a/src/main/python/tests/auto_tests/test_img_posterize_linearized.py b/src/main/python/tests/auto_tests/test_img_posterize_linearized.py new file mode 100644 index 00000000000..fb2605998f8 --- /dev/null +++ b/src/main/python/tests/auto_tests/test_img_posterize_linearized.py @@ -0,0 +1,48 @@ +# ------------------------------------------------------------- +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# ------------------------------------------------------------- + +# Autogenerated By : src/main/python/generator/generator.py +import unittest, contextlib, io +class TestIMG_POSTERIZE_LINEARIZED(unittest.TestCase): + def test_img_posterize_linearized(self): + # Example test case provided in python the code block + buf = io.StringIO() + with contextlib.redirect_stdout(buf): + import numpy as np + from systemds.context import SystemDSContext + from systemds.operator.algorithm import img_posterize_linearized + + with SystemDSContext() as sds: + img = sds.from_numpy( + np.array([[ 10., 20., 30., + 40., 255., 60., + 70., 80., 90. ]], dtype=np.float32) + ) + result_img = img_posterize_linearized(img, 1).compute() + print(result_img.reshape(3, 3)) + + expected="""[[ 0. 0. 0.] + [ 0. 128. 0.] + [ 0. 0. 0.]]""" + self.assertEqual(buf.getvalue().strip(), expected) + +if __name__ == '__main__': + unittest.main() diff --git a/src/main/python/tests/auto_tests/test_img_rotate.py b/src/main/python/tests/auto_tests/test_img_rotate.py new file mode 100644 index 00000000000..ed7e8bcc435 --- /dev/null +++ b/src/main/python/tests/auto_tests/test_img_rotate.py @@ -0,0 +1,48 @@ +# ------------------------------------------------------------- +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# ------------------------------------------------------------- + +# Autogenerated By : src/main/python/generator/generator.py +import unittest, contextlib, io +class TestIMG_ROTATE(unittest.TestCase): + def test_img_rotate(self): + # Example test case provided in python the code block + buf = io.StringIO() + with contextlib.redirect_stdout(buf): + import numpy as np + from systemds.context import SystemDSContext + from systemds.operator.algorithm import img_rotate + + with SystemDSContext() as sds: + img = sds.from_numpy( + np.array([[ 10., 20., 30.], + [ 40., 50., 60.], + [ 70., 80., 90.]], dtype=np.float32) + ) + result_img = img_rotate(img, 3.14159, 255.).compute() + print(result_img) + + expected="""[[90. 80. 70.] + [60. 50. 40.] + [30. 20. 10.]]""" + self.assertEqual(buf.getvalue().strip(), expected) + +if __name__ == '__main__': + unittest.main() diff --git a/src/main/python/tests/auto_tests/test_img_rotate_linearized.py b/src/main/python/tests/auto_tests/test_img_rotate_linearized.py new file mode 100644 index 00000000000..1f2d7ba1f6d --- /dev/null +++ b/src/main/python/tests/auto_tests/test_img_rotate_linearized.py @@ -0,0 +1,48 @@ +# ------------------------------------------------------------- +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# ------------------------------------------------------------- + +# Autogenerated By : src/main/python/generator/generator.py +import unittest, contextlib, io +class TestIMG_ROTATE_LINEARIZED(unittest.TestCase): + def test_img_rotate_linearized(self): + # Example test case provided in python the code block + buf = io.StringIO() + with contextlib.redirect_stdout(buf): + import numpy as np + from systemds.context import SystemDSContext + from systemds.operator.algorithm import img_rotate_linearized + + with SystemDSContext() as sds: + img = sds.from_numpy( + np.array([[ 10., 20., 30., + 40., 50., 60., + 70., 80., 90. ]], dtype=np.float32) + ) + result_img = img_rotate_linearized(img, 3.14159, 255., 3, 3).compute() + print(result_img.reshape(3, 3)) + + expected="""[[90. 80. 70.] + [60. 50. 40.] + [30. 20. 10.]]""" + self.assertEqual(buf.getvalue().strip(), expected) + +if __name__ == '__main__': + unittest.main() diff --git a/src/main/python/tests/auto_tests/test_img_sample_pairing.py b/src/main/python/tests/auto_tests/test_img_sample_pairing.py new file mode 100644 index 00000000000..87c50493c41 --- /dev/null +++ b/src/main/python/tests/auto_tests/test_img_sample_pairing.py @@ -0,0 +1,53 @@ +# ------------------------------------------------------------- +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# ------------------------------------------------------------- + +# Autogenerated By : src/main/python/generator/generator.py +import unittest, contextlib, io +class TestIMG_SAMPLE_PAIRING(unittest.TestCase): + def test_img_sample_pairing(self): + # Example test case provided in python the code block + buf = io.StringIO() + with contextlib.redirect_stdout(buf): + import numpy as np + from systemds.context import SystemDSContext + from systemds.operator.algorithm import img_sample_pairing + + with SystemDSContext() as sds: + img_in1 = sds.from_numpy( + np.array([[ 10., 20., 30.], + [ 40., 50., 60.], + [ 70., 80., 90.]], dtype=np.float32) + ) + img_in2 = sds.from_numpy( + np.array([[ 30., 40., 50.], + [ 60., 70., 80.], + [ 90., 100., 110.]], dtype=np.float32) + ) + result_img = img_sample_pairing(img_in1, img_in2, 0.5).compute() + print(result_img) + + expected="""[[ 20. 30. 40.] + [ 50. 60. 70.] + [ 80. 90. 100.]]""" + self.assertEqual(buf.getvalue().strip(), expected) + +if __name__ == '__main__': + unittest.main() diff --git a/src/main/python/tests/auto_tests/test_img_sample_pairing_linearized.py b/src/main/python/tests/auto_tests/test_img_sample_pairing_linearized.py new file mode 100644 index 00000000000..5b550735e35 --- /dev/null +++ b/src/main/python/tests/auto_tests/test_img_sample_pairing_linearized.py @@ -0,0 +1,53 @@ +# ------------------------------------------------------------- +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# ------------------------------------------------------------- + +# Autogenerated By : src/main/python/generator/generator.py +import unittest, contextlib, io +class TestIMG_SAMPLE_PAIRING_LINEARIZED(unittest.TestCase): + def test_img_sample_pairing_linearized(self): + # Example test case provided in python the code block + buf = io.StringIO() + with contextlib.redirect_stdout(buf): + import numpy as np + from systemds.context import SystemDSContext + from systemds.operator.algorithm import img_sample_pairing_linearized + + with SystemDSContext() as sds: + img_in1 = sds.from_numpy( + np.array([[ 10., 20., 30., + 40., 50., 60., + 70., 80., 90. ]], dtype=np.float32) + ) + img_in2 = sds.from_numpy( + np.array([[ 30., 40., 50., + 60., 70., 80., + 90., 100., 110. ]], dtype=np.float32) + ) + result_img = img_sample_pairing_linearized(img_in1, img_in2, 0.5).compute() + print(result_img.reshape(3, 3)) + + expected="""[[ 20. 30. 40.] + [ 50. 60. 70.] + [ 80. 90. 100.]]""" + self.assertEqual(buf.getvalue().strip(), expected) + +if __name__ == '__main__': + unittest.main() diff --git a/src/main/python/tests/auto_tests/test_img_shear.py b/src/main/python/tests/auto_tests/test_img_shear.py new file mode 100644 index 00000000000..5571e9d3cb5 --- /dev/null +++ b/src/main/python/tests/auto_tests/test_img_shear.py @@ -0,0 +1,48 @@ +# ------------------------------------------------------------- +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# ------------------------------------------------------------- + +# Autogenerated By : src/main/python/generator/generator.py +import unittest, contextlib, io +class TestIMG_SHEAR(unittest.TestCase): + def test_img_shear(self): + # Example test case provided in python the code block + buf = io.StringIO() + with contextlib.redirect_stdout(buf): + import numpy as np + from systemds.context import SystemDSContext + from systemds.operator.algorithm import img_shear + + with SystemDSContext() as sds: + img = sds.from_numpy( + np.array([[ 10., 20., 30.], + [ 40., 50., 60.], + [ 70., 80., 90.]], dtype=np.float32) + ) + result_img = img_shear(img, 1., 0., 255).compute() + print(result_img) + + expected="""[[ 10. 20. 30.] + [255. 40. 50.] + [255. 255. 70.]]""" + self.assertEqual(buf.getvalue().strip(), expected) + +if __name__ == '__main__': + unittest.main() diff --git a/src/main/python/tests/auto_tests/test_img_shear_linearized.py b/src/main/python/tests/auto_tests/test_img_shear_linearized.py new file mode 100644 index 00000000000..d8963beaebd --- /dev/null +++ b/src/main/python/tests/auto_tests/test_img_shear_linearized.py @@ -0,0 +1,48 @@ +# ------------------------------------------------------------- +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# ------------------------------------------------------------- + +# Autogenerated By : src/main/python/generator/generator.py +import unittest, contextlib, io +class TestIMG_SHEAR_LINEARIZED(unittest.TestCase): + def test_img_shear_linearized(self): + # Example test case provided in python the code block + buf = io.StringIO() + with contextlib.redirect_stdout(buf): + import numpy as np + from systemds.context import SystemDSContext + from systemds.operator.algorithm import img_shear_linearized + + with SystemDSContext() as sds: + img = sds.from_numpy( + np.array([[ 10., 20., 30., + 40., 50., 60., + 70., 80., 90. ]], dtype=np.float32) + ) + result_img = img_shear_linearized(img, 1., 0., 0., 3, 3).compute() + print(result_img.reshape(3, 3)) + + expected="""[[10. 20. 30.] + [ 0. 40. 50.] + [ 0. 0. 70.]]""" + self.assertEqual(buf.getvalue().strip(), expected) + +if __name__ == '__main__': + unittest.main() diff --git a/src/main/python/tests/auto_tests/test_img_transform.py b/src/main/python/tests/auto_tests/test_img_transform.py new file mode 100644 index 00000000000..f1a91bc6d8e --- /dev/null +++ b/src/main/python/tests/auto_tests/test_img_transform.py @@ -0,0 +1,48 @@ +# ------------------------------------------------------------- +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# ------------------------------------------------------------- + +# Autogenerated By : src/main/python/generator/generator.py +import unittest, contextlib, io +class TestIMG_TRANSFORM(unittest.TestCase): + def test_img_transform(self): + # Example test case provided in python the code block + buf = io.StringIO() + with contextlib.redirect_stdout(buf): + import numpy as np + from systemds.context import SystemDSContext + from systemds.operator.algorithm import img_transform + + with SystemDSContext() as sds: + img = sds.from_numpy( + np.array([[ 10., 20., 30.], + [ 40., 50., 60.], + [ 70., 80., 90.]], dtype=np.float32) + ) + result_img = img_transform(img, 3, 3, -1., 0., 2., 0., 1., 0., 255.).compute() + print(result_img) + + expected="""[[ 20. 10. 255.] + [ 50. 40. 255.] + [ 80. 70. 255.]]""" + self.assertEqual(buf.getvalue().strip(), expected) + +if __name__ == '__main__': + unittest.main() diff --git a/src/main/python/tests/auto_tests/test_img_transform_linearized.py b/src/main/python/tests/auto_tests/test_img_transform_linearized.py new file mode 100644 index 00000000000..6992968486b --- /dev/null +++ b/src/main/python/tests/auto_tests/test_img_transform_linearized.py @@ -0,0 +1,48 @@ +# ------------------------------------------------------------- +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# ------------------------------------------------------------- + +# Autogenerated By : src/main/python/generator/generator.py +import unittest, contextlib, io +class TestIMG_TRANSFORM_LINEARIZED(unittest.TestCase): + def test_img_transform_linearized(self): + # Example test case provided in python the code block + buf = io.StringIO() + with contextlib.redirect_stdout(buf): + import numpy as np + from systemds.context import SystemDSContext + from systemds.operator.algorithm import img_transform_linearized + + with SystemDSContext() as sds: + img = sds.from_numpy( + np.array([[ 10., 20., 30., + 40., 50., 60., + 70., 80., 90. ]], dtype=np.float32) + ) + result_img = img_transform_linearized(img, 3, 3, -1., 0., 2., 0., 1., 0., 255., 3, 3).compute() + print(result_img.reshape(3, 3)) + + expected="""[[ 20. 10. 255.] + [ 50. 40. 255.] + [ 80. 70. 255.]]""" + self.assertEqual(buf.getvalue().strip(), expected) + +if __name__ == '__main__': + unittest.main() diff --git a/src/main/python/tests/auto_tests/test_img_translate.py b/src/main/python/tests/auto_tests/test_img_translate.py new file mode 100644 index 00000000000..22f63e25f43 --- /dev/null +++ b/src/main/python/tests/auto_tests/test_img_translate.py @@ -0,0 +1,48 @@ +# ------------------------------------------------------------- +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# ------------------------------------------------------------- + +# Autogenerated By : src/main/python/generator/generator.py +import unittest, contextlib, io +class TestIMG_TRANSLATE(unittest.TestCase): + def test_img_translate(self): + # Example test case provided in python the code block + buf = io.StringIO() + with contextlib.redirect_stdout(buf): + import numpy as np + from systemds.context import SystemDSContext + from systemds.operator.algorithm import img_translate + + with SystemDSContext() as sds: + img = sds.from_numpy( + np.array([[ 10., 20., 30.], + [ 40., 50., 60.], + [ 70., 80., 90.]], dtype=np.float32) + ) + result_img = img_translate(img, 1., 1., 3, 3, 255.).compute() + print(result_img) + + expected="""[[255. 255. 255.] + [255. 10. 20.] + [255. 40. 50.]]""" + self.assertEqual(buf.getvalue().strip(), expected) + +if __name__ == '__main__': + unittest.main() diff --git a/src/main/python/tests/auto_tests/test_img_translate_linearized.py b/src/main/python/tests/auto_tests/test_img_translate_linearized.py new file mode 100644 index 00000000000..86c894b1c55 --- /dev/null +++ b/src/main/python/tests/auto_tests/test_img_translate_linearized.py @@ -0,0 +1,48 @@ +# ------------------------------------------------------------- +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# ------------------------------------------------------------- + +# Autogenerated By : src/main/python/generator/generator.py +import unittest, contextlib, io +class TestIMG_TRANSLATE_LINEARIZED(unittest.TestCase): + def test_img_translate_linearized(self): + # Example test case provided in python the code block + buf = io.StringIO() + with contextlib.redirect_stdout(buf): + import numpy as np + from systemds.context import SystemDSContext + from systemds.operator.algorithm import img_translate_linearized + + with SystemDSContext() as sds: + img = sds.from_numpy( + np.array([[ 10., 20., 30., + 40., 50., 60., + 70., 80., 90. ]], dtype=np.float32) + ) + result_img = img_translate_linearized(img, 1., 1., 3, 3, 255.0, 3, 3).compute() + print(result_img.reshape(3, 3)) + + expected="""[[255. 255. 255.] + [255. 10. 20.] + [255. 40. 50.]]""" + self.assertEqual(buf.getvalue().strip(), expected) + +if __name__ == '__main__': + unittest.main() diff --git a/src/main/python/tests/auto_tests/test_lm.py b/src/main/python/tests/auto_tests/test_lm.py new file mode 100644 index 00000000000..5c4e83bc8b7 --- /dev/null +++ b/src/main/python/tests/auto_tests/test_lm.py @@ -0,0 +1,59 @@ +# ------------------------------------------------------------- +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# ------------------------------------------------------------- + +# Autogenerated By : src/main/python/generator/generator.py +import unittest, contextlib, io +class TestLM(unittest.TestCase): + def test_lm(self): + # Example test case provided in python the code block + buf = io.StringIO() + with contextlib.redirect_stdout(buf): + import numpy as np + from systemds.context import SystemDSContext + from systemds.operator.algorithm import lm + + np.random.seed(0) + features = np.random.rand(10, 15) + y = np.random.rand(10, 1) + + with SystemDSContext() as sds: + weights = lm(sds.from_numpy(features), sds.from_numpy(y)).compute() + print(weights) + + expected="""[[-0.11538199] + [-0.20386541] + [-0.39956034] + [ 1.04078623] + [ 0.43270839] + [ 0.18954599] + [ 0.49858969] + [-0.26812763] + [ 0.09961844] + [-0.57000751] + [-0.43386048] + [ 0.55358873] + [-0.54638565] + [ 0.2205885 ] + [ 0.37957689]]""" + self.assertEqual(buf.getvalue().strip(), expected) + +if __name__ == '__main__': + unittest.main() diff --git a/src/main/python/tests/auto_tests/test_normalize.py b/src/main/python/tests/auto_tests/test_normalize.py new file mode 100644 index 00000000000..8d6e910a429 --- /dev/null +++ b/src/main/python/tests/auto_tests/test_normalize.py @@ -0,0 +1,43 @@ +# ------------------------------------------------------------- +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# ------------------------------------------------------------- + +# Autogenerated By : src/main/python/generator/generator.py +import unittest, contextlib, io +class TestNORMALIZE(unittest.TestCase): + def test_normalize(self): + # Example test case provided in python the code block + buf = io.StringIO() + with contextlib.redirect_stdout(buf): + import numpy as np + from systemds.context import SystemDSContext + from systemds.operator.algorithm import normalize + + with SystemDSContext() as sds: + X = sds.from_numpy(np.array([[1, 2], [3, 4]])) + Y, cmin, cmax = normalize(X).compute() + print(Y) + + expected="""[[0. 0.] + [1. 1.]]""" + self.assertEqual(buf.getvalue().strip(), expected) + +if __name__ == '__main__': + unittest.main() diff --git a/src/main/python/tests/auto_tests/test_randomForest.py b/src/main/python/tests/auto_tests/test_randomForest.py new file mode 100644 index 00000000000..917e6524d3f --- /dev/null +++ b/src/main/python/tests/auto_tests/test_randomForest.py @@ -0,0 +1,71 @@ +# ------------------------------------------------------------- +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# ------------------------------------------------------------- + +# Autogenerated By : src/main/python/generator/generator.py +import unittest, contextlib, io +class TestRANDOMFOREST(unittest.TestCase): + def test_randomForest(self): + # Example test case provided in python the code block + buf = io.StringIO() + with contextlib.redirect_stdout(buf): + import numpy as np + from systemds.context import SystemDSContext + from systemds.operator.algorithm import randomForest, randomForestPredict + + # tiny toy dataset + X = np.array([[1], + [2], + [10], + [11]], dtype=np.int64) + y = np.array([[1], + [1], + [2], + [2]], dtype=np.int64) + + with SystemDSContext() as sds: + X_sds = sds.from_numpy(X) + y_sds = sds.from_numpy(y) + + ctypes = sds.from_numpy(np.array([[1, 2]], dtype=np.int64)) + + # train a 4-tree forest (no sampling) + M = randomForest( + X_sds, y_sds, ctypes, + num_trees = 4, + sample_frac = 1.0, + feature_frac = 1.0, + max_depth = 3, + min_leaf = 1, + min_split = 2, + seed = 42 + ) + + preds = randomForestPredict(X_sds, ctypes, M).compute() + print(preds) + + expected="""[[1.] + [1.] + [2.] + [2.]]""" + self.assertEqual(buf.getvalue().strip(), expected) + +if __name__ == '__main__': + unittest.main() diff --git a/src/main/python/tests/auto_tests/test_randomForestPredict.py b/src/main/python/tests/auto_tests/test_randomForestPredict.py new file mode 100644 index 00000000000..48b8e06bdf9 --- /dev/null +++ b/src/main/python/tests/auto_tests/test_randomForestPredict.py @@ -0,0 +1,71 @@ +# ------------------------------------------------------------- +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# ------------------------------------------------------------- + +# Autogenerated By : src/main/python/generator/generator.py +import unittest, contextlib, io +class TestRANDOMFORESTPREDICT(unittest.TestCase): + def test_randomForestPredict(self): + # Example test case provided in python the code block + buf = io.StringIO() + with contextlib.redirect_stdout(buf): + import numpy as np + from systemds.context import SystemDSContext + from systemds.operator.algorithm import randomForest, randomForestPredict + + # tiny toy dataset + X = np.array([[1], + [2], + [10], + [11]], dtype=np.int64) + y = np.array([[1], + [1], + [2], + [2]], dtype=np.int64) + + with SystemDSContext() as sds: + X_sds = sds.from_numpy(X) + y_sds = sds.from_numpy(y) + + ctypes = sds.from_numpy(np.array([[1, 2]], dtype=np.int64)) + + # train a 4-tree forest (no sampling) + M = randomForest( + X_sds, y_sds, ctypes, + num_trees = 4, + sample_frac = 1.0, + feature_frac = 1.0, + max_depth = 3, + min_leaf = 1, + min_split = 2, + seed = 42 + ) + + preds = randomForestPredict(X_sds, ctypes, M).compute() + print(preds) + + expected="""[[1.] + [1.] + [2.] + [2.]]""" + self.assertEqual(buf.getvalue().strip(), expected) + +if __name__ == '__main__': + unittest.main() diff --git a/src/main/python/tests/auto_tests/test_toOneHot.py b/src/main/python/tests/auto_tests/test_toOneHot.py new file mode 100644 index 00000000000..4d6b15e79fa --- /dev/null +++ b/src/main/python/tests/auto_tests/test_toOneHot.py @@ -0,0 +1,45 @@ +# ------------------------------------------------------------- +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# ------------------------------------------------------------- + +# Autogenerated By : src/main/python/generator/generator.py +import unittest, contextlib, io +class TestTOONEHOT(unittest.TestCase): + def test_toOneHot(self): + # Example test case provided in python the code block + buf = io.StringIO() + with contextlib.redirect_stdout(buf): + import numpy as np + from systemds.context import SystemDSContext + from systemds.operator.algorithm import toOneHot + + with SystemDSContext() as sds: + X = sds.from_numpy(np.array([[1], [3], [2], [3]])) + Y = toOneHot(X, numClasses=3).compute() + print(Y) + + expected="""[[1. 0. 0.] + [0. 0. 1.] + [0. 1. 0.] + [0. 0. 1.]]""" + self.assertEqual(buf.getvalue().strip(), expected) + +if __name__ == '__main__': + unittest.main() From c12e145072db736cbac78419a1b9a2bf154fb773 Mon Sep 17 00:00:00 2001 From: Sebastian Baunsgaard Date: Wed, 24 Sep 2025 15:38:40 +0200 Subject: [PATCH 2/2] [MINOR] Python Testing Cleanup This commit cleanup the cloud based testing for the Python api. Specifically we clean up the logging and verbose printing of many tests to reduce the logging sizes of tests in every commit. Furthermore, we separate the testing of Scuro to a separte action, to make the Python tests more consistant. Follow up tasks include separation of installed packages for Scuro, and the SystemDS basic packages. --- .github/workflows/python.yml | 8 +++- .github/workflows/pythonFormatting.yml | 2 +- .../source/api/operator/algorithms/WoE.rst | 21 ++++++++++ .../api/operator/algorithms/WoEApply.rst | 21 ++++++++++ .../api/operator/algorithms/abstain.rst | 21 ++++++++++ .../source/api/operator/algorithms/adasyn.rst | 21 ++++++++++ .../source/api/operator/algorithms/als.rst | 21 ++++++++++ .../source/api/operator/algorithms/alsCG.rst | 21 ++++++++++ .../source/api/operator/algorithms/alsDS.rst | 21 ++++++++++ .../api/operator/algorithms/alsPredict.rst | 21 ++++++++++ .../operator/algorithms/alsTopkPredict.rst | 21 ++++++++++ .../source/api/operator/algorithms/ampute.rst | 21 ++++++++++ .../operator/algorithms/apply_pipeline.rst | 21 ++++++++++ .../source/api/operator/algorithms/arima.rst | 21 ++++++++++ .../source/api/operator/algorithms/auc.rst | 21 ++++++++++ .../algorithms/autoencoder_2layer.rst | 21 ++++++++++ .../source/api/operator/algorithms/bandit.rst | 21 ++++++++++ .../source/api/operator/algorithms/bivar.rst | 21 ++++++++++ .../api/operator/algorithms/components.rst | 21 ++++++++++ .../operator/algorithms/confusionMatrix.rst | 21 ++++++++++ .../algorithms/cooccurrenceMatrix.rst | 21 ++++++++++ .../source/api/operator/algorithms/cor.rst | 21 ++++++++++ .../api/operator/algorithms/correctTypos.rst | 21 ++++++++++ .../operator/algorithms/correctTyposApply.rst | 21 ++++++++++ .../source/api/operator/algorithms/cox.rst | 21 ++++++++++ .../api/operator/algorithms/cspline.rst | 21 ++++++++++ .../api/operator/algorithms/csplineCG.rst | 21 ++++++++++ .../api/operator/algorithms/csplineDS.rst | 21 ++++++++++ .../source/api/operator/algorithms/cvlm.rst | 21 ++++++++++ .../source/api/operator/algorithms/dbscan.rst | 21 ++++++++++ .../api/operator/algorithms/dbscanApply.rst | 21 ++++++++++ .../api/operator/algorithms/decisionTree.rst | 21 ++++++++++ .../algorithms/decisionTreePredict.rst | 21 ++++++++++ .../source/api/operator/algorithms/dedup.rst | 25 ++++++++++++ .../api/operator/algorithms/deepWalk.rst | 21 ++++++++++ .../operator/algorithms/denialConstraints.rst | 21 ++++++++++ .../algorithms/differenceStatistics.rst | 21 ++++++++++ .../api/operator/algorithms/discoverFD.rst | 21 ++++++++++ .../source/api/operator/algorithms/dist.rst | 21 ++++++++++ .../source/api/operator/algorithms/dmv.rst | 21 ++++++++++ .../source/api/operator/algorithms/ema.rst | 21 ++++++++++ .../operator/algorithms/executePipeline.rst | 21 ++++++++++ .../api/operator/algorithms/f1Score.rst | 21 ++++++++++ .../source/api/operator/algorithms/fdr.rst | 21 ++++++++++ .../api/operator/algorithms/ffPredict.rst | 21 ++++++++++ .../api/operator/algorithms/ffTrain.rst | 21 ++++++++++ .../api/operator/algorithms/fit_pipeline.rst | 21 ++++++++++ .../operator/algorithms/fixInvalidLengths.rst | 21 ++++++++++ .../algorithms/fixInvalidLengthsApply.rst | 21 ++++++++++ .../operator/algorithms/flattenQuantile.rst | 21 ++++++++++ .../api/operator/algorithms/frameSort.rst | 21 ++++++++++ .../operator/algorithms/frequencyEncode.rst | 21 ++++++++++ .../algorithms/frequencyEncodeApply.rst | 21 ++++++++++ .../source/api/operator/algorithms/garch.rst | 21 ++++++++++ .../algorithms/gaussianClassifier.rst | 21 ++++++++++ .../api/operator/algorithms/getAccuracy.rst | 21 ++++++++++ .../source/api/operator/algorithms/glm.rst | 21 ++++++++++ .../api/operator/algorithms/glmPredict.rst | 21 ++++++++++ .../source/api/operator/algorithms/glove.rst | 21 ++++++++++ .../source/api/operator/algorithms/gmm.rst | 21 ++++++++++ .../api/operator/algorithms/gmmPredict.rst | 21 ++++++++++ .../source/api/operator/algorithms/gnmf.rst | 21 ++++++++++ .../api/operator/algorithms/gridSearch.rst | 21 ++++++++++ .../algorithms/hospitalResidencyMatch.rst | 21 ++++++++++ .../api/operator/algorithms/hyperband.rst | 21 ++++++++++ .../operator/algorithms/img_brightness.rst | 21 ++++++++++ .../algorithms/img_brightness_linearized.rst | 21 ++++++++++ .../api/operator/algorithms/img_crop.rst | 21 ++++++++++ .../algorithms/img_crop_linearized.rst | 21 ++++++++++ .../api/operator/algorithms/img_cutout.rst | 21 ++++++++++ .../algorithms/img_cutout_linearized.rst | 21 ++++++++++ .../api/operator/algorithms/img_invert.rst | 21 ++++++++++ .../algorithms/img_invert_linearized.rst | 21 ++++++++++ .../api/operator/algorithms/img_mirror.rst | 21 ++++++++++ .../algorithms/img_mirror_linearized.rst | 21 ++++++++++ .../api/operator/algorithms/img_posterize.rst | 21 ++++++++++ .../algorithms/img_posterize_linearized.rst | 21 ++++++++++ .../api/operator/algorithms/img_rotate.rst | 21 ++++++++++ .../algorithms/img_rotate_linearized.rst | 21 ++++++++++ .../algorithms/img_sample_pairing.rst | 21 ++++++++++ .../img_sample_pairing_linearized.rst | 21 ++++++++++ .../api/operator/algorithms/img_shear.rst | 21 ++++++++++ .../algorithms/img_shear_linearized.rst | 21 ++++++++++ .../api/operator/algorithms/img_transform.rst | 21 ++++++++++ .../algorithms/img_transform_linearized.rst | 21 ++++++++++ .../api/operator/algorithms/img_translate.rst | 21 ++++++++++ .../algorithms/img_translate_linearized.rst | 21 ++++++++++ .../operator/algorithms/impurityMeasures.rst | 21 ++++++++++ .../api/operator/algorithms/imputeByFD.rst | 21 ++++++++++ .../operator/algorithms/imputeByFDApply.rst | 21 ++++++++++ .../api/operator/algorithms/imputeByKNN.rst | 21 ++++++++++ .../api/operator/algorithms/imputeByMean.rst | 21 ++++++++++ .../operator/algorithms/imputeByMeanApply.rst | 21 ++++++++++ .../operator/algorithms/imputeByMedian.rst | 21 ++++++++++ .../algorithms/imputeByMedianApply.rst | 21 ++++++++++ .../api/operator/algorithms/imputeByMode.rst | 21 ++++++++++ .../operator/algorithms/imputeByModeApply.rst | 21 ++++++++++ .../api/operator/algorithms/incSliceLine.rst | 21 ++++++++++ .../api/operator/algorithms/intersect.rst | 21 ++++++++++ .../source/api/operator/algorithms/km.rst | 21 ++++++++++ .../source/api/operator/algorithms/kmeans.rst | 21 ++++++++++ .../api/operator/algorithms/kmeansPredict.rst | 21 ++++++++++ .../source/api/operator/algorithms/knn.rst | 21 ++++++++++ .../api/operator/algorithms/knnGraph.rst | 21 ++++++++++ .../source/api/operator/algorithms/knnbf.rst | 21 ++++++++++ .../source/api/operator/algorithms/l2svm.rst | 21 ++++++++++ .../api/operator/algorithms/l2svmPredict.rst | 21 ++++++++++ .../source/api/operator/algorithms/lasso.rst | 21 ++++++++++ .../api/operator/algorithms/lenetPredict.rst | 21 ++++++++++ .../api/operator/algorithms/lenetTrain.rst | 21 ++++++++++ .../source/api/operator/algorithms/lm.rst | 21 ++++++++++ .../source/api/operator/algorithms/lmCG.rst | 21 ++++++++++ .../source/api/operator/algorithms/lmDS.rst | 21 ++++++++++ .../api/operator/algorithms/lmPredict.rst | 21 ++++++++++ .../operator/algorithms/lmPredictStats.rst | 21 ++++++++++ .../api/operator/algorithms/logSumExp.rst | 21 ++++++++++ .../source/api/operator/algorithms/mae.rst | 21 ++++++++++ .../source/api/operator/algorithms/mape.rst | 21 ++++++++++ .../api/operator/algorithms/matrixProfile.rst | 21 ++++++++++ .../source/api/operator/algorithms/mcc.rst | 21 ++++++++++ .../source/api/operator/algorithms/mdedup.rst | 21 ++++++++++ .../source/api/operator/algorithms/mice.rst | 21 ++++++++++ .../api/operator/algorithms/miceApply.rst | 21 ++++++++++ .../source/api/operator/algorithms/mse.rst | 21 ++++++++++ .../source/api/operator/algorithms/msmape.rst | 21 ++++++++++ .../source/api/operator/algorithms/msvm.rst | 21 ++++++++++ .../api/operator/algorithms/msvmPredict.rst | 21 ++++++++++ .../api/operator/algorithms/multiLogReg.rst | 21 ++++++++++ .../algorithms/multiLogRegPredict.rst | 21 ++++++++++ .../api/operator/algorithms/na_locf.rst | 21 ++++++++++ .../api/operator/algorithms/naiveBayes.rst | 21 ++++++++++ .../operator/algorithms/naiveBayesPredict.rst | 21 ++++++++++ .../api/operator/algorithms/normalize.rst | 21 ++++++++++ .../operator/algorithms/normalizeApply.rst | 21 ++++++++++ .../source/api/operator/algorithms/nrmse.rst | 21 ++++++++++ .../api/operator/algorithms/outlier.rst | 21 ++++++++++ .../operator/algorithms/outlierByArima.rst | 21 ++++++++++ .../api/operator/algorithms/outlierByIQR.rst | 21 ++++++++++ .../operator/algorithms/outlierByIQRApply.rst | 21 ++++++++++ .../api/operator/algorithms/outlierBySd.rst | 21 ++++++++++ .../operator/algorithms/outlierBySdApply.rst | 21 ++++++++++ .../api/operator/algorithms/pageRank.rst | 21 ++++++++++ .../source/api/operator/algorithms/pca.rst | 21 ++++++++++ .../api/operator/algorithms/pcaInverse.rst | 21 ++++++++++ .../api/operator/algorithms/pcaTransform.rst | 21 ++++++++++ .../source/api/operator/algorithms/pnmf.rst | 21 ++++++++++ .../source/api/operator/algorithms/ppca.rst | 21 ++++++++++ .../source/api/operator/algorithms/psnr.rst | 21 ++++++++++ .../operator/algorithms/quantizeByCluster.rst | 21 ++++++++++ .../api/operator/algorithms/raGroupby.rst | 21 ++++++++++ .../source/api/operator/algorithms/raJoin.rst | 21 ++++++++++ .../api/operator/algorithms/raSelection.rst | 21 ++++++++++ .../api/operator/algorithms/randomForest.rst | 21 ++++++++++ .../algorithms/randomForestPredict.rst | 21 ++++++++++ .../source/api/operator/algorithms/rmse.rst | 21 ++++++++++ .../source/api/operator/algorithms/scale.rst | 21 ++++++++++ .../api/operator/algorithms/scaleApply.rst | 21 ++++++++++ .../api/operator/algorithms/scaleMinMax.rst | 21 ++++++++++ .../operator/algorithms/selectByVarThresh.rst | 21 ++++++++++ .../source/api/operator/algorithms/ses.rst | 21 ++++++++++ .../api/operator/algorithms/setdiff.rst | 21 ++++++++++ .../api/operator/algorithms/shapExplainer.rst | 21 ++++++++++ .../api/operator/algorithms/sherlock.rst | 21 ++++++++++ .../operator/algorithms/sherlockPredict.rst | 21 ++++++++++ .../api/operator/algorithms/shortestPath.rst | 21 ++++++++++ .../api/operator/algorithms/sigmoid.rst | 21 ++++++++++ .../api/operator/algorithms/skewness.rst | 21 ++++++++++ .../api/operator/algorithms/sliceLine.rst | 21 ++++++++++ .../operator/algorithms/sliceLineDebug.rst | 21 ++++++++++ .../operator/algorithms/sliceLineExtract.rst | 21 ++++++++++ .../api/operator/algorithms/slicefinder.rst | 21 ++++++++++ .../source/api/operator/algorithms/smape.rst | 21 ++++++++++ .../source/api/operator/algorithms/smote.rst | 21 ++++++++++ .../api/operator/algorithms/softmax.rst | 21 ++++++++++ .../source/api/operator/algorithms/split.rst | 21 ++++++++++ .../api/operator/algorithms/splitBalanced.rst | 21 ++++++++++ .../api/operator/algorithms/sqrtMatrix.rst | 21 ++++++++++ .../operator/algorithms/stableMarriage.rst | 21 ++++++++++ .../api/operator/algorithms/statsNA.rst | 21 ++++++++++ .../source/api/operator/algorithms/steplm.rst | 21 ++++++++++ .../api/operator/algorithms/stratstats.rst | 21 ++++++++++ .../algorithms/symmetricDifference.rst | 21 ++++++++++ .../source/api/operator/algorithms/tSNE.rst | 21 ++++++++++ .../api/operator/algorithms/toOneHot.rst | 21 ++++++++++ .../api/operator/algorithms/tomeklink.rst | 21 ++++++++++ .../api/operator/algorithms/topk_cleaning.rst | 21 ++++++++++ .../api/operator/algorithms/underSampling.rst | 21 ++++++++++ .../source/api/operator/algorithms/union.rst | 21 ++++++++++ .../source/api/operator/algorithms/univar.rst | 21 ++++++++++ .../api/operator/algorithms/vectorToCsv.rst | 21 ++++++++++ .../source/api/operator/algorithms/wer.rst | 21 ++++++++++ .../api/operator/algorithms/winsorize.rst | 21 ++++++++++ .../operator/algorithms/winsorizeApply.rst | 21 ++++++++++ .../api/operator/algorithms/xdummy1.rst | 21 ++++++++++ .../api/operator/algorithms/xdummy2.rst | 21 ++++++++++ .../api/operator/algorithms/xgboost.rst | 21 ++++++++++ .../xgboostPredictClassification.rst | 21 ++++++++++ .../algorithms/xgboostPredictRegression.rst | 21 ++++++++++ src/main/python/generator/generator.py | 27 +++++++------ .../template_python_script_rst_license | 20 ++++++++++ .../systemds/context/systemds_context.py | 4 +- src/main/python/tests/algorithms/test_cov.py | 2 +- src/main/python/tests/algorithms/test_gmm.py | 2 +- .../python/tests/algorithms/test_kmeans.py | 2 +- .../python/tests/algorithms/test_l2svm.py | 2 +- .../tests/algorithms/test_multiLogReg.py | 2 +- src/main/python/tests/algorithms/test_pca.py | 2 +- .../python/tests/algorithms/test_signal.py | 2 +- .../python/tests/algorithms/test_solve.py | 2 +- src/main/python/tests/auto_tests/test_dist.py | 5 ++- .../tests/auto_tests/test_img_brightness.py | 5 ++- .../test_img_brightness_linearized.py | 5 ++- .../python/tests/auto_tests/test_img_crop.py | 5 ++- .../auto_tests/test_img_crop_linearized.py | 5 ++- .../tests/auto_tests/test_img_cutout.py | 5 ++- .../auto_tests/test_img_cutout_linearized.py | 5 ++- .../tests/auto_tests/test_img_invert.py | 5 ++- .../auto_tests/test_img_invert_linearized.py | 5 ++- .../tests/auto_tests/test_img_mirror.py | 5 ++- .../test_img_mirror_linearized_0.py | 5 ++- .../test_img_mirror_linearized_1.py | 5 ++- .../tests/auto_tests/test_img_posterize.py | 5 ++- .../test_img_posterize_linearized.py | 5 ++- .../tests/auto_tests/test_img_rotate.py | 5 ++- .../auto_tests/test_img_rotate_linearized.py | 5 ++- .../auto_tests/test_img_sample_pairing.py | 5 ++- .../test_img_sample_pairing_linearized.py | 5 ++- .../python/tests/auto_tests/test_img_shear.py | 5 ++- .../auto_tests/test_img_shear_linearized.py | 5 ++- .../tests/auto_tests/test_img_transform.py | 5 ++- .../test_img_transform_linearized.py | 5 ++- .../tests/auto_tests/test_img_translate.py | 5 ++- .../test_img_translate_linearized.py | 5 ++- src/main/python/tests/auto_tests/test_lm.py | 5 ++- .../python/tests/auto_tests/test_normalize.py | 5 ++- .../tests/auto_tests/test_randomForest.py | 5 ++- .../auto_tests/test_randomForestPredict.py | 5 ++- .../python/tests/auto_tests/test_toOneHot.py | 5 ++- src/main/python/tests/basics/test___str__.py | 2 +- .../tests/basics/test_context_creation.py | 38 ++++++++----------- .../python/tests/basics/test_context_stats.py | 2 +- .../tests/examples/tutorials/test_adult.py | 2 +- .../examples/tutorials/test_adult_neural.py | 2 +- .../tests/examples/tutorials/test_mnist.py | 2 +- .../federated/test_federated_adult_neural.py | 2 +- .../federated/test_federated_aggregations.py | 2 +- .../test_federated_aggregations_noHeader.py | 2 +- .../tests/federated/test_federated_basic.py | 2 +- .../federated/test_federated_matrix_mult.py | 2 +- .../tests/federated/test_federated_mnist.py | 2 +- .../tests/federated/test_federated_read.py | 2 +- src/main/python/tests/frame/test_hyperband.py | 2 +- src/main/python/tests/frame/test_rIndexing.py | 2 +- src/main/python/tests/frame/test_r_c_bind.py | 2 +- src/main/python/tests/frame/test_replace.py | 2 +- src/main/python/tests/frame/test_slice.py | 2 +- .../tests/frame/test_transform_apply.py | 2 +- .../tests/frame/test_transform_encode.py | 2 +- .../python/tests/frame/test_write_read.py | 2 +- .../tests/iotests/test_io_pandas_systemds.py | 2 +- src/main/python/tests/list/test_list.py | 2 +- .../python/tests/list/test_list_readwrite.py | 2 +- .../python/tests/list/test_list_unknown.py | 2 +- .../python/tests/matrix/test_aggregations.py | 2 +- .../python/tests/matrix/test_arg_min_max.py | 4 +- .../python/tests/matrix/test_binary_op.py | 2 +- .../tests/matrix/test_block_converter.py | 2 +- .../matrix/test_block_converter_unix_pipe.py | 4 +- src/main/python/tests/matrix/test_casting.py | 2 +- src/main/python/tests/matrix/test_ceil.py | 2 +- src/main/python/tests/matrix/test_cholesky.py | 2 +- .../python/tests/matrix/test_cumulative.py | 2 +- src/main/python/tests/matrix/test_diag.py | 2 +- src/main/python/tests/matrix/test_eigen.py | 2 +- src/main/python/tests/matrix/test_exp.py | 2 +- src/main/python/tests/matrix/test_fft.py | 2 +- src/main/python/tests/matrix/test_floor.py | 2 +- src/main/python/tests/matrix/test_inv.py | 2 +- .../python/tests/matrix/test_is_special.py | 2 +- src/main/python/tests/matrix/test_log.py | 2 +- src/main/python/tests/matrix/test_lu.py | 2 +- src/main/python/tests/matrix/test_order.py | 2 +- src/main/python/tests/matrix/test_qr.py | 2 +- src/main/python/tests/matrix/test_quantile.py | 2 +- .../python/tests/matrix/test_rIndexing.py | 2 +- src/main/python/tests/matrix/test_r_c_bind.py | 2 +- src/main/python/tests/matrix/test_rand.py | 2 +- src/main/python/tests/matrix/test_replace.py | 2 +- src/main/python/tests/matrix/test_reverse.py | 2 +- src/main/python/tests/matrix/test_roll.py | 2 +- src/main/python/tests/matrix/test_sign.py | 2 +- src/main/python/tests/matrix/test_slice.py | 2 +- src/main/python/tests/matrix/test_split.py | 2 +- src/main/python/tests/matrix/test_sqrt.py | 2 +- src/main/python/tests/matrix/test_svd.py | 2 +- .../python/tests/matrix/test_to_one_hot.py | 2 +- .../python/tests/matrix/test_transpose.py | 2 +- .../python/tests/matrix/test_triangular.py | 2 +- .../python/tests/matrix/test_trigonometric.py | 2 +- src/main/python/tests/matrix/test_unique.py | 2 +- src/main/python/tests/matrix/test_write.py | 2 +- src/main/python/tests/nn/test_affine.py | 2 +- src/main/python/tests/nn/test_layer.py | 2 +- .../python/tests/nn/test_neural_network.py | 2 +- src/main/python/tests/nn/test_relu.py | 2 +- src/main/python/tests/nn/test_sequential.py | 2 +- src/main/python/tests/scuro/__init__.py | 20 ---------- .../python/tests/source/test_source_01.py | 2 +- .../python/tests/source/test_source_02.py | 2 +- .../python/tests/source/test_source_list.py | 2 +- .../source/test_source_multi_arguments.py | 2 +- .../tests/source/test_source_neural_net.py | 2 +- .../python/tests/source/test_source_reuse.py | 2 +- .../source/test_source_with_default_values.py | 3 +- 314 files changed, 4382 insertions(+), 171 deletions(-) create mode 100644 src/main/python/docs/source/api/operator/algorithms/dedup.rst create mode 100644 src/main/python/generator/resources/template_python_script_rst_license delete mode 100644 src/main/python/tests/scuro/__init__.py diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index d1865d8a08e..0e05dca3086 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -53,7 +53,7 @@ jobs: os: [ubuntu-24.04] java: ['17'] javadist: ['adopt'] - test_mode: [env, noenv, federated] + test_mode: [env, noenv, federated, scuro] name: ${{ matrix.os }} Java ${{ matrix.java }} ${{ matrix.javadist }} Python ${{ matrix.python-version }}/ ${{ matrix.test_mode}} steps: @@ -150,4 +150,10 @@ jobs: cd src/main/python ./tests/federated/runFedTest.sh + - name: Run Scuro Python Tests + if: ${{ matrix.test_mode == 'scuro' }} + run: | + cd src/main/python + python -m unittest discover -s tests/scuro -p 'test_*.py' + diff --git a/.github/workflows/pythonFormatting.yml b/.github/workflows/pythonFormatting.yml index c434e31523a..532878da1e6 100644 --- a/.github/workflows/pythonFormatting.yml +++ b/.github/workflows/pythonFormatting.yml @@ -52,5 +52,5 @@ jobs: - name: Run Black Check run: | - black --check --exclude operator/algorithm \ + black --check --exclude '(operator/algorithm/|auto_tests/)' \ src/main/python/systemds src/main/python/tests \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/WoE.rst b/src/main/python/docs/source/api/operator/algorithms/WoE.rst index 9712759986c..03d4aa0ad0f 100644 --- a/src/main/python/docs/source/api/operator/algorithms/WoE.rst +++ b/src/main/python/docs/source/api/operator/algorithms/WoE.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + WoE === diff --git a/src/main/python/docs/source/api/operator/algorithms/WoEApply.rst b/src/main/python/docs/source/api/operator/algorithms/WoEApply.rst index 1b612b82bbc..0184da72972 100644 --- a/src/main/python/docs/source/api/operator/algorithms/WoEApply.rst +++ b/src/main/python/docs/source/api/operator/algorithms/WoEApply.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + WoEApply ======== diff --git a/src/main/python/docs/source/api/operator/algorithms/abstain.rst b/src/main/python/docs/source/api/operator/algorithms/abstain.rst index dcef8791593..7cdd607c995 100644 --- a/src/main/python/docs/source/api/operator/algorithms/abstain.rst +++ b/src/main/python/docs/source/api/operator/algorithms/abstain.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + abstain ======= diff --git a/src/main/python/docs/source/api/operator/algorithms/adasyn.rst b/src/main/python/docs/source/api/operator/algorithms/adasyn.rst index 28762393754..9ba4dad7c8d 100644 --- a/src/main/python/docs/source/api/operator/algorithms/adasyn.rst +++ b/src/main/python/docs/source/api/operator/algorithms/adasyn.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + adasyn ====== diff --git a/src/main/python/docs/source/api/operator/algorithms/als.rst b/src/main/python/docs/source/api/operator/algorithms/als.rst index 67ff3426dcd..5e1322876ca 100644 --- a/src/main/python/docs/source/api/operator/algorithms/als.rst +++ b/src/main/python/docs/source/api/operator/algorithms/als.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + als === diff --git a/src/main/python/docs/source/api/operator/algorithms/alsCG.rst b/src/main/python/docs/source/api/operator/algorithms/alsCG.rst index 11407a8cd5c..d9372b79836 100644 --- a/src/main/python/docs/source/api/operator/algorithms/alsCG.rst +++ b/src/main/python/docs/source/api/operator/algorithms/alsCG.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + alsCG ===== diff --git a/src/main/python/docs/source/api/operator/algorithms/alsDS.rst b/src/main/python/docs/source/api/operator/algorithms/alsDS.rst index cffde102cef..0f4a6218b17 100644 --- a/src/main/python/docs/source/api/operator/algorithms/alsDS.rst +++ b/src/main/python/docs/source/api/operator/algorithms/alsDS.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + alsDS ===== diff --git a/src/main/python/docs/source/api/operator/algorithms/alsPredict.rst b/src/main/python/docs/source/api/operator/algorithms/alsPredict.rst index 872eeff8d4f..86172e95e8f 100644 --- a/src/main/python/docs/source/api/operator/algorithms/alsPredict.rst +++ b/src/main/python/docs/source/api/operator/algorithms/alsPredict.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + alsPredict ========== diff --git a/src/main/python/docs/source/api/operator/algorithms/alsTopkPredict.rst b/src/main/python/docs/source/api/operator/algorithms/alsTopkPredict.rst index f68c5c4e3fc..24d9a71d06f 100644 --- a/src/main/python/docs/source/api/operator/algorithms/alsTopkPredict.rst +++ b/src/main/python/docs/source/api/operator/algorithms/alsTopkPredict.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + alsTopkPredict ============== diff --git a/src/main/python/docs/source/api/operator/algorithms/ampute.rst b/src/main/python/docs/source/api/operator/algorithms/ampute.rst index f8b7783ef67..d7975094d88 100644 --- a/src/main/python/docs/source/api/operator/algorithms/ampute.rst +++ b/src/main/python/docs/source/api/operator/algorithms/ampute.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + ampute ====== diff --git a/src/main/python/docs/source/api/operator/algorithms/apply_pipeline.rst b/src/main/python/docs/source/api/operator/algorithms/apply_pipeline.rst index 1af55455dad..d70123740af 100644 --- a/src/main/python/docs/source/api/operator/algorithms/apply_pipeline.rst +++ b/src/main/python/docs/source/api/operator/algorithms/apply_pipeline.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + apply_pipeline ============== diff --git a/src/main/python/docs/source/api/operator/algorithms/arima.rst b/src/main/python/docs/source/api/operator/algorithms/arima.rst index af74a3f85fd..21e6c6e97cc 100644 --- a/src/main/python/docs/source/api/operator/algorithms/arima.rst +++ b/src/main/python/docs/source/api/operator/algorithms/arima.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + arima ===== diff --git a/src/main/python/docs/source/api/operator/algorithms/auc.rst b/src/main/python/docs/source/api/operator/algorithms/auc.rst index 06457bdb4a5..3b58485f6e6 100644 --- a/src/main/python/docs/source/api/operator/algorithms/auc.rst +++ b/src/main/python/docs/source/api/operator/algorithms/auc.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + auc === diff --git a/src/main/python/docs/source/api/operator/algorithms/autoencoder_2layer.rst b/src/main/python/docs/source/api/operator/algorithms/autoencoder_2layer.rst index fee877e3ab7..503a30902b7 100644 --- a/src/main/python/docs/source/api/operator/algorithms/autoencoder_2layer.rst +++ b/src/main/python/docs/source/api/operator/algorithms/autoencoder_2layer.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + autoencoder_2layer ================== diff --git a/src/main/python/docs/source/api/operator/algorithms/bandit.rst b/src/main/python/docs/source/api/operator/algorithms/bandit.rst index 6884f821ce3..3e58f19269d 100644 --- a/src/main/python/docs/source/api/operator/algorithms/bandit.rst +++ b/src/main/python/docs/source/api/operator/algorithms/bandit.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + bandit ====== diff --git a/src/main/python/docs/source/api/operator/algorithms/bivar.rst b/src/main/python/docs/source/api/operator/algorithms/bivar.rst index 4def7aeac4f..87dd37e3663 100644 --- a/src/main/python/docs/source/api/operator/algorithms/bivar.rst +++ b/src/main/python/docs/source/api/operator/algorithms/bivar.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + bivar ===== diff --git a/src/main/python/docs/source/api/operator/algorithms/components.rst b/src/main/python/docs/source/api/operator/algorithms/components.rst index e42ca98cf68..372027bf02b 100644 --- a/src/main/python/docs/source/api/operator/algorithms/components.rst +++ b/src/main/python/docs/source/api/operator/algorithms/components.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + components ========== diff --git a/src/main/python/docs/source/api/operator/algorithms/confusionMatrix.rst b/src/main/python/docs/source/api/operator/algorithms/confusionMatrix.rst index 90189523894..4826358aa2a 100644 --- a/src/main/python/docs/source/api/operator/algorithms/confusionMatrix.rst +++ b/src/main/python/docs/source/api/operator/algorithms/confusionMatrix.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + confusionMatrix =============== diff --git a/src/main/python/docs/source/api/operator/algorithms/cooccurrenceMatrix.rst b/src/main/python/docs/source/api/operator/algorithms/cooccurrenceMatrix.rst index d768c2f775b..c4121fc6fca 100644 --- a/src/main/python/docs/source/api/operator/algorithms/cooccurrenceMatrix.rst +++ b/src/main/python/docs/source/api/operator/algorithms/cooccurrenceMatrix.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + cooccurrenceMatrix ================== diff --git a/src/main/python/docs/source/api/operator/algorithms/cor.rst b/src/main/python/docs/source/api/operator/algorithms/cor.rst index 34484d65ce3..629392b1ba7 100644 --- a/src/main/python/docs/source/api/operator/algorithms/cor.rst +++ b/src/main/python/docs/source/api/operator/algorithms/cor.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + cor === diff --git a/src/main/python/docs/source/api/operator/algorithms/correctTypos.rst b/src/main/python/docs/source/api/operator/algorithms/correctTypos.rst index 38a5b7695cb..d9d08716724 100644 --- a/src/main/python/docs/source/api/operator/algorithms/correctTypos.rst +++ b/src/main/python/docs/source/api/operator/algorithms/correctTypos.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + correctTypos ============ diff --git a/src/main/python/docs/source/api/operator/algorithms/correctTyposApply.rst b/src/main/python/docs/source/api/operator/algorithms/correctTyposApply.rst index a7f3a77a312..eae28b65a9d 100644 --- a/src/main/python/docs/source/api/operator/algorithms/correctTyposApply.rst +++ b/src/main/python/docs/source/api/operator/algorithms/correctTyposApply.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + correctTyposApply ================= diff --git a/src/main/python/docs/source/api/operator/algorithms/cox.rst b/src/main/python/docs/source/api/operator/algorithms/cox.rst index a8cbdf4248e..08bf5a4881d 100644 --- a/src/main/python/docs/source/api/operator/algorithms/cox.rst +++ b/src/main/python/docs/source/api/operator/algorithms/cox.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + cox === diff --git a/src/main/python/docs/source/api/operator/algorithms/cspline.rst b/src/main/python/docs/source/api/operator/algorithms/cspline.rst index 00861c0b63b..1643166e9cb 100644 --- a/src/main/python/docs/source/api/operator/algorithms/cspline.rst +++ b/src/main/python/docs/source/api/operator/algorithms/cspline.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + cspline ======= diff --git a/src/main/python/docs/source/api/operator/algorithms/csplineCG.rst b/src/main/python/docs/source/api/operator/algorithms/csplineCG.rst index 27785cfd48d..ac850209ec3 100644 --- a/src/main/python/docs/source/api/operator/algorithms/csplineCG.rst +++ b/src/main/python/docs/source/api/operator/algorithms/csplineCG.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + csplineCG ========= diff --git a/src/main/python/docs/source/api/operator/algorithms/csplineDS.rst b/src/main/python/docs/source/api/operator/algorithms/csplineDS.rst index 01e5a9719f0..09823928c02 100644 --- a/src/main/python/docs/source/api/operator/algorithms/csplineDS.rst +++ b/src/main/python/docs/source/api/operator/algorithms/csplineDS.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + csplineDS ========= diff --git a/src/main/python/docs/source/api/operator/algorithms/cvlm.rst b/src/main/python/docs/source/api/operator/algorithms/cvlm.rst index e11cf61abac..e3c98f9f2f5 100644 --- a/src/main/python/docs/source/api/operator/algorithms/cvlm.rst +++ b/src/main/python/docs/source/api/operator/algorithms/cvlm.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + cvlm ==== diff --git a/src/main/python/docs/source/api/operator/algorithms/dbscan.rst b/src/main/python/docs/source/api/operator/algorithms/dbscan.rst index 5a72b28bfbf..c3facac6357 100644 --- a/src/main/python/docs/source/api/operator/algorithms/dbscan.rst +++ b/src/main/python/docs/source/api/operator/algorithms/dbscan.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + dbscan ====== diff --git a/src/main/python/docs/source/api/operator/algorithms/dbscanApply.rst b/src/main/python/docs/source/api/operator/algorithms/dbscanApply.rst index 57b52e92ae1..09b3ad3ca67 100644 --- a/src/main/python/docs/source/api/operator/algorithms/dbscanApply.rst +++ b/src/main/python/docs/source/api/operator/algorithms/dbscanApply.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + dbscanApply =========== diff --git a/src/main/python/docs/source/api/operator/algorithms/decisionTree.rst b/src/main/python/docs/source/api/operator/algorithms/decisionTree.rst index 39b871ddb9f..7b31de0ca73 100644 --- a/src/main/python/docs/source/api/operator/algorithms/decisionTree.rst +++ b/src/main/python/docs/source/api/operator/algorithms/decisionTree.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + decisionTree ============ diff --git a/src/main/python/docs/source/api/operator/algorithms/decisionTreePredict.rst b/src/main/python/docs/source/api/operator/algorithms/decisionTreePredict.rst index c2cadd0df33..3af61055685 100644 --- a/src/main/python/docs/source/api/operator/algorithms/decisionTreePredict.rst +++ b/src/main/python/docs/source/api/operator/algorithms/decisionTreePredict.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + decisionTreePredict =================== diff --git a/src/main/python/docs/source/api/operator/algorithms/dedup.rst b/src/main/python/docs/source/api/operator/algorithms/dedup.rst new file mode 100644 index 00000000000..0607d080018 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/dedup.rst @@ -0,0 +1,25 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + +dedup +===== + +.. autofunction:: systemds.operator.algorithm.dedup \ No newline at end of file diff --git a/src/main/python/docs/source/api/operator/algorithms/deepWalk.rst b/src/main/python/docs/source/api/operator/algorithms/deepWalk.rst index 48a60442bdf..a86c6b7fef1 100644 --- a/src/main/python/docs/source/api/operator/algorithms/deepWalk.rst +++ b/src/main/python/docs/source/api/operator/algorithms/deepWalk.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + deepWalk ======== diff --git a/src/main/python/docs/source/api/operator/algorithms/denialConstraints.rst b/src/main/python/docs/source/api/operator/algorithms/denialConstraints.rst index 6f9580b5ed7..0de31cd7460 100644 --- a/src/main/python/docs/source/api/operator/algorithms/denialConstraints.rst +++ b/src/main/python/docs/source/api/operator/algorithms/denialConstraints.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + denialConstraints ================= diff --git a/src/main/python/docs/source/api/operator/algorithms/differenceStatistics.rst b/src/main/python/docs/source/api/operator/algorithms/differenceStatistics.rst index bd5eff6c47d..ee528f20634 100644 --- a/src/main/python/docs/source/api/operator/algorithms/differenceStatistics.rst +++ b/src/main/python/docs/source/api/operator/algorithms/differenceStatistics.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + differenceStatistics ==================== diff --git a/src/main/python/docs/source/api/operator/algorithms/discoverFD.rst b/src/main/python/docs/source/api/operator/algorithms/discoverFD.rst index acb39f63b0c..ba43397f8e9 100644 --- a/src/main/python/docs/source/api/operator/algorithms/discoverFD.rst +++ b/src/main/python/docs/source/api/operator/algorithms/discoverFD.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + discoverFD ========== diff --git a/src/main/python/docs/source/api/operator/algorithms/dist.rst b/src/main/python/docs/source/api/operator/algorithms/dist.rst index 048d11444ef..bd81e7ba875 100644 --- a/src/main/python/docs/source/api/operator/algorithms/dist.rst +++ b/src/main/python/docs/source/api/operator/algorithms/dist.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + dist ==== diff --git a/src/main/python/docs/source/api/operator/algorithms/dmv.rst b/src/main/python/docs/source/api/operator/algorithms/dmv.rst index c01e47ea639..e1da1bbc69b 100644 --- a/src/main/python/docs/source/api/operator/algorithms/dmv.rst +++ b/src/main/python/docs/source/api/operator/algorithms/dmv.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + dmv === diff --git a/src/main/python/docs/source/api/operator/algorithms/ema.rst b/src/main/python/docs/source/api/operator/algorithms/ema.rst index 1fab50bc65a..030ccc3176d 100644 --- a/src/main/python/docs/source/api/operator/algorithms/ema.rst +++ b/src/main/python/docs/source/api/operator/algorithms/ema.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + ema === diff --git a/src/main/python/docs/source/api/operator/algorithms/executePipeline.rst b/src/main/python/docs/source/api/operator/algorithms/executePipeline.rst index e06fc6e96b0..6f6dd9ec5b9 100644 --- a/src/main/python/docs/source/api/operator/algorithms/executePipeline.rst +++ b/src/main/python/docs/source/api/operator/algorithms/executePipeline.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + executePipeline =============== diff --git a/src/main/python/docs/source/api/operator/algorithms/f1Score.rst b/src/main/python/docs/source/api/operator/algorithms/f1Score.rst index fe436fc41bb..a4dcdd1ce3d 100644 --- a/src/main/python/docs/source/api/operator/algorithms/f1Score.rst +++ b/src/main/python/docs/source/api/operator/algorithms/f1Score.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + f1Score ======= diff --git a/src/main/python/docs/source/api/operator/algorithms/fdr.rst b/src/main/python/docs/source/api/operator/algorithms/fdr.rst index a776cfa3050..8a8e0f5487e 100644 --- a/src/main/python/docs/source/api/operator/algorithms/fdr.rst +++ b/src/main/python/docs/source/api/operator/algorithms/fdr.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + fdr === diff --git a/src/main/python/docs/source/api/operator/algorithms/ffPredict.rst b/src/main/python/docs/source/api/operator/algorithms/ffPredict.rst index 9772e15959d..3ce1573be7b 100644 --- a/src/main/python/docs/source/api/operator/algorithms/ffPredict.rst +++ b/src/main/python/docs/source/api/operator/algorithms/ffPredict.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + ffPredict ========= diff --git a/src/main/python/docs/source/api/operator/algorithms/ffTrain.rst b/src/main/python/docs/source/api/operator/algorithms/ffTrain.rst index 8e2b14ddfed..0f2198587dc 100644 --- a/src/main/python/docs/source/api/operator/algorithms/ffTrain.rst +++ b/src/main/python/docs/source/api/operator/algorithms/ffTrain.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + ffTrain ======= diff --git a/src/main/python/docs/source/api/operator/algorithms/fit_pipeline.rst b/src/main/python/docs/source/api/operator/algorithms/fit_pipeline.rst index d3d32e880cd..c86cab83001 100644 --- a/src/main/python/docs/source/api/operator/algorithms/fit_pipeline.rst +++ b/src/main/python/docs/source/api/operator/algorithms/fit_pipeline.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + fit_pipeline ============ diff --git a/src/main/python/docs/source/api/operator/algorithms/fixInvalidLengths.rst b/src/main/python/docs/source/api/operator/algorithms/fixInvalidLengths.rst index 31b0cd12335..b8dcf1e1264 100644 --- a/src/main/python/docs/source/api/operator/algorithms/fixInvalidLengths.rst +++ b/src/main/python/docs/source/api/operator/algorithms/fixInvalidLengths.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + fixInvalidLengths ================= diff --git a/src/main/python/docs/source/api/operator/algorithms/fixInvalidLengthsApply.rst b/src/main/python/docs/source/api/operator/algorithms/fixInvalidLengthsApply.rst index 95e5802fb38..c5123cea8ec 100644 --- a/src/main/python/docs/source/api/operator/algorithms/fixInvalidLengthsApply.rst +++ b/src/main/python/docs/source/api/operator/algorithms/fixInvalidLengthsApply.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + fixInvalidLengthsApply ====================== diff --git a/src/main/python/docs/source/api/operator/algorithms/flattenQuantile.rst b/src/main/python/docs/source/api/operator/algorithms/flattenQuantile.rst index e6fffa71402..19e5d50b68e 100644 --- a/src/main/python/docs/source/api/operator/algorithms/flattenQuantile.rst +++ b/src/main/python/docs/source/api/operator/algorithms/flattenQuantile.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + flattenQuantile =============== diff --git a/src/main/python/docs/source/api/operator/algorithms/frameSort.rst b/src/main/python/docs/source/api/operator/algorithms/frameSort.rst index 87ee40c0351..8ccf233f7f1 100644 --- a/src/main/python/docs/source/api/operator/algorithms/frameSort.rst +++ b/src/main/python/docs/source/api/operator/algorithms/frameSort.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + frameSort ========= diff --git a/src/main/python/docs/source/api/operator/algorithms/frequencyEncode.rst b/src/main/python/docs/source/api/operator/algorithms/frequencyEncode.rst index e54e934d0cb..3f3c858fd96 100644 --- a/src/main/python/docs/source/api/operator/algorithms/frequencyEncode.rst +++ b/src/main/python/docs/source/api/operator/algorithms/frequencyEncode.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + frequencyEncode =============== diff --git a/src/main/python/docs/source/api/operator/algorithms/frequencyEncodeApply.rst b/src/main/python/docs/source/api/operator/algorithms/frequencyEncodeApply.rst index db4d94e92b4..d9007d14bf5 100644 --- a/src/main/python/docs/source/api/operator/algorithms/frequencyEncodeApply.rst +++ b/src/main/python/docs/source/api/operator/algorithms/frequencyEncodeApply.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + frequencyEncodeApply ==================== diff --git a/src/main/python/docs/source/api/operator/algorithms/garch.rst b/src/main/python/docs/source/api/operator/algorithms/garch.rst index 0c605ab8a35..0f6ab5086fa 100644 --- a/src/main/python/docs/source/api/operator/algorithms/garch.rst +++ b/src/main/python/docs/source/api/operator/algorithms/garch.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + garch ===== diff --git a/src/main/python/docs/source/api/operator/algorithms/gaussianClassifier.rst b/src/main/python/docs/source/api/operator/algorithms/gaussianClassifier.rst index e202cefae8c..326ce63fefd 100644 --- a/src/main/python/docs/source/api/operator/algorithms/gaussianClassifier.rst +++ b/src/main/python/docs/source/api/operator/algorithms/gaussianClassifier.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + gaussianClassifier ================== diff --git a/src/main/python/docs/source/api/operator/algorithms/getAccuracy.rst b/src/main/python/docs/source/api/operator/algorithms/getAccuracy.rst index da9b573d3db..59264345082 100644 --- a/src/main/python/docs/source/api/operator/algorithms/getAccuracy.rst +++ b/src/main/python/docs/source/api/operator/algorithms/getAccuracy.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + getAccuracy =========== diff --git a/src/main/python/docs/source/api/operator/algorithms/glm.rst b/src/main/python/docs/source/api/operator/algorithms/glm.rst index 44a40c2a06e..f728f256d21 100644 --- a/src/main/python/docs/source/api/operator/algorithms/glm.rst +++ b/src/main/python/docs/source/api/operator/algorithms/glm.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + glm === diff --git a/src/main/python/docs/source/api/operator/algorithms/glmPredict.rst b/src/main/python/docs/source/api/operator/algorithms/glmPredict.rst index 556ac2bbc4a..75ed2674629 100644 --- a/src/main/python/docs/source/api/operator/algorithms/glmPredict.rst +++ b/src/main/python/docs/source/api/operator/algorithms/glmPredict.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + glmPredict ========== diff --git a/src/main/python/docs/source/api/operator/algorithms/glove.rst b/src/main/python/docs/source/api/operator/algorithms/glove.rst index e5788753789..0757b8ad7c1 100644 --- a/src/main/python/docs/source/api/operator/algorithms/glove.rst +++ b/src/main/python/docs/source/api/operator/algorithms/glove.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + glove ===== diff --git a/src/main/python/docs/source/api/operator/algorithms/gmm.rst b/src/main/python/docs/source/api/operator/algorithms/gmm.rst index 081f197ffa1..784f8c51707 100644 --- a/src/main/python/docs/source/api/operator/algorithms/gmm.rst +++ b/src/main/python/docs/source/api/operator/algorithms/gmm.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + gmm === diff --git a/src/main/python/docs/source/api/operator/algorithms/gmmPredict.rst b/src/main/python/docs/source/api/operator/algorithms/gmmPredict.rst index 9dd34ee83b5..fcaf4bb8096 100644 --- a/src/main/python/docs/source/api/operator/algorithms/gmmPredict.rst +++ b/src/main/python/docs/source/api/operator/algorithms/gmmPredict.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + gmmPredict ========== diff --git a/src/main/python/docs/source/api/operator/algorithms/gnmf.rst b/src/main/python/docs/source/api/operator/algorithms/gnmf.rst index 2a7295d9da5..3e95fdc00c9 100644 --- a/src/main/python/docs/source/api/operator/algorithms/gnmf.rst +++ b/src/main/python/docs/source/api/operator/algorithms/gnmf.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + gnmf ==== diff --git a/src/main/python/docs/source/api/operator/algorithms/gridSearch.rst b/src/main/python/docs/source/api/operator/algorithms/gridSearch.rst index b59e4370045..f454bbb4953 100644 --- a/src/main/python/docs/source/api/operator/algorithms/gridSearch.rst +++ b/src/main/python/docs/source/api/operator/algorithms/gridSearch.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + gridSearch ========== diff --git a/src/main/python/docs/source/api/operator/algorithms/hospitalResidencyMatch.rst b/src/main/python/docs/source/api/operator/algorithms/hospitalResidencyMatch.rst index 92d798e6442..4720a98de54 100644 --- a/src/main/python/docs/source/api/operator/algorithms/hospitalResidencyMatch.rst +++ b/src/main/python/docs/source/api/operator/algorithms/hospitalResidencyMatch.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + hospitalResidencyMatch ====================== diff --git a/src/main/python/docs/source/api/operator/algorithms/hyperband.rst b/src/main/python/docs/source/api/operator/algorithms/hyperband.rst index 270fd16601c..bb6f9a90342 100644 --- a/src/main/python/docs/source/api/operator/algorithms/hyperband.rst +++ b/src/main/python/docs/source/api/operator/algorithms/hyperband.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + hyperband ========= diff --git a/src/main/python/docs/source/api/operator/algorithms/img_brightness.rst b/src/main/python/docs/source/api/operator/algorithms/img_brightness.rst index b43686296b3..7bcd421edec 100644 --- a/src/main/python/docs/source/api/operator/algorithms/img_brightness.rst +++ b/src/main/python/docs/source/api/operator/algorithms/img_brightness.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + img_brightness ============== diff --git a/src/main/python/docs/source/api/operator/algorithms/img_brightness_linearized.rst b/src/main/python/docs/source/api/operator/algorithms/img_brightness_linearized.rst index a0ac5c1ea7e..fe7005d5e26 100644 --- a/src/main/python/docs/source/api/operator/algorithms/img_brightness_linearized.rst +++ b/src/main/python/docs/source/api/operator/algorithms/img_brightness_linearized.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + img_brightness_linearized ========================= diff --git a/src/main/python/docs/source/api/operator/algorithms/img_crop.rst b/src/main/python/docs/source/api/operator/algorithms/img_crop.rst index eab6bb2a07d..a72b4917087 100644 --- a/src/main/python/docs/source/api/operator/algorithms/img_crop.rst +++ b/src/main/python/docs/source/api/operator/algorithms/img_crop.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + img_crop ======== diff --git a/src/main/python/docs/source/api/operator/algorithms/img_crop_linearized.rst b/src/main/python/docs/source/api/operator/algorithms/img_crop_linearized.rst index e19d3a70a83..b69e7bac8cf 100644 --- a/src/main/python/docs/source/api/operator/algorithms/img_crop_linearized.rst +++ b/src/main/python/docs/source/api/operator/algorithms/img_crop_linearized.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + img_crop_linearized =================== diff --git a/src/main/python/docs/source/api/operator/algorithms/img_cutout.rst b/src/main/python/docs/source/api/operator/algorithms/img_cutout.rst index b9b5e8467c9..5497282eaf8 100644 --- a/src/main/python/docs/source/api/operator/algorithms/img_cutout.rst +++ b/src/main/python/docs/source/api/operator/algorithms/img_cutout.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + img_cutout ========== diff --git a/src/main/python/docs/source/api/operator/algorithms/img_cutout_linearized.rst b/src/main/python/docs/source/api/operator/algorithms/img_cutout_linearized.rst index 7ce7c76b1de..0296819f302 100644 --- a/src/main/python/docs/source/api/operator/algorithms/img_cutout_linearized.rst +++ b/src/main/python/docs/source/api/operator/algorithms/img_cutout_linearized.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + img_cutout_linearized ===================== diff --git a/src/main/python/docs/source/api/operator/algorithms/img_invert.rst b/src/main/python/docs/source/api/operator/algorithms/img_invert.rst index be0af11a5af..1fe136b8f93 100644 --- a/src/main/python/docs/source/api/operator/algorithms/img_invert.rst +++ b/src/main/python/docs/source/api/operator/algorithms/img_invert.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + img_invert ========== diff --git a/src/main/python/docs/source/api/operator/algorithms/img_invert_linearized.rst b/src/main/python/docs/source/api/operator/algorithms/img_invert_linearized.rst index 8d0a6cf5206..ec225cf20b7 100644 --- a/src/main/python/docs/source/api/operator/algorithms/img_invert_linearized.rst +++ b/src/main/python/docs/source/api/operator/algorithms/img_invert_linearized.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + img_invert_linearized ===================== diff --git a/src/main/python/docs/source/api/operator/algorithms/img_mirror.rst b/src/main/python/docs/source/api/operator/algorithms/img_mirror.rst index d1d31fba230..08273fa9f0c 100644 --- a/src/main/python/docs/source/api/operator/algorithms/img_mirror.rst +++ b/src/main/python/docs/source/api/operator/algorithms/img_mirror.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + img_mirror ========== diff --git a/src/main/python/docs/source/api/operator/algorithms/img_mirror_linearized.rst b/src/main/python/docs/source/api/operator/algorithms/img_mirror_linearized.rst index 56076e239fa..1b6135d4e48 100644 --- a/src/main/python/docs/source/api/operator/algorithms/img_mirror_linearized.rst +++ b/src/main/python/docs/source/api/operator/algorithms/img_mirror_linearized.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + img_mirror_linearized ===================== diff --git a/src/main/python/docs/source/api/operator/algorithms/img_posterize.rst b/src/main/python/docs/source/api/operator/algorithms/img_posterize.rst index d2db21b114e..916a1779643 100644 --- a/src/main/python/docs/source/api/operator/algorithms/img_posterize.rst +++ b/src/main/python/docs/source/api/operator/algorithms/img_posterize.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + img_posterize ============= diff --git a/src/main/python/docs/source/api/operator/algorithms/img_posterize_linearized.rst b/src/main/python/docs/source/api/operator/algorithms/img_posterize_linearized.rst index debac6d54df..77c1dd3ac92 100644 --- a/src/main/python/docs/source/api/operator/algorithms/img_posterize_linearized.rst +++ b/src/main/python/docs/source/api/operator/algorithms/img_posterize_linearized.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + img_posterize_linearized ======================== diff --git a/src/main/python/docs/source/api/operator/algorithms/img_rotate.rst b/src/main/python/docs/source/api/operator/algorithms/img_rotate.rst index fca9801b32c..aa005e3bc4d 100644 --- a/src/main/python/docs/source/api/operator/algorithms/img_rotate.rst +++ b/src/main/python/docs/source/api/operator/algorithms/img_rotate.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + img_rotate ========== diff --git a/src/main/python/docs/source/api/operator/algorithms/img_rotate_linearized.rst b/src/main/python/docs/source/api/operator/algorithms/img_rotate_linearized.rst index f40f086f84c..2a758e01f86 100644 --- a/src/main/python/docs/source/api/operator/algorithms/img_rotate_linearized.rst +++ b/src/main/python/docs/source/api/operator/algorithms/img_rotate_linearized.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + img_rotate_linearized ===================== diff --git a/src/main/python/docs/source/api/operator/algorithms/img_sample_pairing.rst b/src/main/python/docs/source/api/operator/algorithms/img_sample_pairing.rst index 7de25f74b52..8d986115f1e 100644 --- a/src/main/python/docs/source/api/operator/algorithms/img_sample_pairing.rst +++ b/src/main/python/docs/source/api/operator/algorithms/img_sample_pairing.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + img_sample_pairing ================== diff --git a/src/main/python/docs/source/api/operator/algorithms/img_sample_pairing_linearized.rst b/src/main/python/docs/source/api/operator/algorithms/img_sample_pairing_linearized.rst index 8cfd5a1873f..872be83c35f 100644 --- a/src/main/python/docs/source/api/operator/algorithms/img_sample_pairing_linearized.rst +++ b/src/main/python/docs/source/api/operator/algorithms/img_sample_pairing_linearized.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + img_sample_pairing_linearized ============================= diff --git a/src/main/python/docs/source/api/operator/algorithms/img_shear.rst b/src/main/python/docs/source/api/operator/algorithms/img_shear.rst index 8c8144d461c..267e655e351 100644 --- a/src/main/python/docs/source/api/operator/algorithms/img_shear.rst +++ b/src/main/python/docs/source/api/operator/algorithms/img_shear.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + img_shear ========= diff --git a/src/main/python/docs/source/api/operator/algorithms/img_shear_linearized.rst b/src/main/python/docs/source/api/operator/algorithms/img_shear_linearized.rst index 8907f6a90bb..451b47c9cdd 100644 --- a/src/main/python/docs/source/api/operator/algorithms/img_shear_linearized.rst +++ b/src/main/python/docs/source/api/operator/algorithms/img_shear_linearized.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + img_shear_linearized ==================== diff --git a/src/main/python/docs/source/api/operator/algorithms/img_transform.rst b/src/main/python/docs/source/api/operator/algorithms/img_transform.rst index 6bb4676270a..d31c187e972 100644 --- a/src/main/python/docs/source/api/operator/algorithms/img_transform.rst +++ b/src/main/python/docs/source/api/operator/algorithms/img_transform.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + img_transform ============= diff --git a/src/main/python/docs/source/api/operator/algorithms/img_transform_linearized.rst b/src/main/python/docs/source/api/operator/algorithms/img_transform_linearized.rst index 16d043af9b8..0bd10770c9d 100644 --- a/src/main/python/docs/source/api/operator/algorithms/img_transform_linearized.rst +++ b/src/main/python/docs/source/api/operator/algorithms/img_transform_linearized.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + img_transform_linearized ======================== diff --git a/src/main/python/docs/source/api/operator/algorithms/img_translate.rst b/src/main/python/docs/source/api/operator/algorithms/img_translate.rst index 8b5952f8d03..291eba3535c 100644 --- a/src/main/python/docs/source/api/operator/algorithms/img_translate.rst +++ b/src/main/python/docs/source/api/operator/algorithms/img_translate.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + img_translate ============= diff --git a/src/main/python/docs/source/api/operator/algorithms/img_translate_linearized.rst b/src/main/python/docs/source/api/operator/algorithms/img_translate_linearized.rst index 02f0ac813d9..8ed3d67486a 100644 --- a/src/main/python/docs/source/api/operator/algorithms/img_translate_linearized.rst +++ b/src/main/python/docs/source/api/operator/algorithms/img_translate_linearized.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + img_translate_linearized ======================== diff --git a/src/main/python/docs/source/api/operator/algorithms/impurityMeasures.rst b/src/main/python/docs/source/api/operator/algorithms/impurityMeasures.rst index bbb6460a20e..a677a252679 100644 --- a/src/main/python/docs/source/api/operator/algorithms/impurityMeasures.rst +++ b/src/main/python/docs/source/api/operator/algorithms/impurityMeasures.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + impurityMeasures ================ diff --git a/src/main/python/docs/source/api/operator/algorithms/imputeByFD.rst b/src/main/python/docs/source/api/operator/algorithms/imputeByFD.rst index f2378547e23..e21a6c03fa4 100644 --- a/src/main/python/docs/source/api/operator/algorithms/imputeByFD.rst +++ b/src/main/python/docs/source/api/operator/algorithms/imputeByFD.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + imputeByFD ========== diff --git a/src/main/python/docs/source/api/operator/algorithms/imputeByFDApply.rst b/src/main/python/docs/source/api/operator/algorithms/imputeByFDApply.rst index 90d7b526013..1694f00a73a 100644 --- a/src/main/python/docs/source/api/operator/algorithms/imputeByFDApply.rst +++ b/src/main/python/docs/source/api/operator/algorithms/imputeByFDApply.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + imputeByFDApply =============== diff --git a/src/main/python/docs/source/api/operator/algorithms/imputeByKNN.rst b/src/main/python/docs/source/api/operator/algorithms/imputeByKNN.rst index 3f2e21eb59c..abdab8c5499 100644 --- a/src/main/python/docs/source/api/operator/algorithms/imputeByKNN.rst +++ b/src/main/python/docs/source/api/operator/algorithms/imputeByKNN.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + imputeByKNN =========== diff --git a/src/main/python/docs/source/api/operator/algorithms/imputeByMean.rst b/src/main/python/docs/source/api/operator/algorithms/imputeByMean.rst index cf7f4dc1283..97b167c1d78 100644 --- a/src/main/python/docs/source/api/operator/algorithms/imputeByMean.rst +++ b/src/main/python/docs/source/api/operator/algorithms/imputeByMean.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + imputeByMean ============ diff --git a/src/main/python/docs/source/api/operator/algorithms/imputeByMeanApply.rst b/src/main/python/docs/source/api/operator/algorithms/imputeByMeanApply.rst index 688b48db94e..3627e29ba91 100644 --- a/src/main/python/docs/source/api/operator/algorithms/imputeByMeanApply.rst +++ b/src/main/python/docs/source/api/operator/algorithms/imputeByMeanApply.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + imputeByMeanApply ================= diff --git a/src/main/python/docs/source/api/operator/algorithms/imputeByMedian.rst b/src/main/python/docs/source/api/operator/algorithms/imputeByMedian.rst index a6762253de2..6c02c2afcc3 100644 --- a/src/main/python/docs/source/api/operator/algorithms/imputeByMedian.rst +++ b/src/main/python/docs/source/api/operator/algorithms/imputeByMedian.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + imputeByMedian ============== diff --git a/src/main/python/docs/source/api/operator/algorithms/imputeByMedianApply.rst b/src/main/python/docs/source/api/operator/algorithms/imputeByMedianApply.rst index a6513410a3d..1218387ae68 100644 --- a/src/main/python/docs/source/api/operator/algorithms/imputeByMedianApply.rst +++ b/src/main/python/docs/source/api/operator/algorithms/imputeByMedianApply.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + imputeByMedianApply =================== diff --git a/src/main/python/docs/source/api/operator/algorithms/imputeByMode.rst b/src/main/python/docs/source/api/operator/algorithms/imputeByMode.rst index 817ec471d26..a8b4f855025 100644 --- a/src/main/python/docs/source/api/operator/algorithms/imputeByMode.rst +++ b/src/main/python/docs/source/api/operator/algorithms/imputeByMode.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + imputeByMode ============ diff --git a/src/main/python/docs/source/api/operator/algorithms/imputeByModeApply.rst b/src/main/python/docs/source/api/operator/algorithms/imputeByModeApply.rst index b7c78a95893..a73b27fd9e1 100644 --- a/src/main/python/docs/source/api/operator/algorithms/imputeByModeApply.rst +++ b/src/main/python/docs/source/api/operator/algorithms/imputeByModeApply.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + imputeByModeApply ================= diff --git a/src/main/python/docs/source/api/operator/algorithms/incSliceLine.rst b/src/main/python/docs/source/api/operator/algorithms/incSliceLine.rst index da2c1f58dee..8749fdb6869 100644 --- a/src/main/python/docs/source/api/operator/algorithms/incSliceLine.rst +++ b/src/main/python/docs/source/api/operator/algorithms/incSliceLine.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + incSliceLine ============ diff --git a/src/main/python/docs/source/api/operator/algorithms/intersect.rst b/src/main/python/docs/source/api/operator/algorithms/intersect.rst index 762d68708b5..13a5029db29 100644 --- a/src/main/python/docs/source/api/operator/algorithms/intersect.rst +++ b/src/main/python/docs/source/api/operator/algorithms/intersect.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + intersect ========= diff --git a/src/main/python/docs/source/api/operator/algorithms/km.rst b/src/main/python/docs/source/api/operator/algorithms/km.rst index 8392789508c..37cfecc96a2 100644 --- a/src/main/python/docs/source/api/operator/algorithms/km.rst +++ b/src/main/python/docs/source/api/operator/algorithms/km.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + km == diff --git a/src/main/python/docs/source/api/operator/algorithms/kmeans.rst b/src/main/python/docs/source/api/operator/algorithms/kmeans.rst index 7f4d1a92596..47980528d53 100644 --- a/src/main/python/docs/source/api/operator/algorithms/kmeans.rst +++ b/src/main/python/docs/source/api/operator/algorithms/kmeans.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + kmeans ====== diff --git a/src/main/python/docs/source/api/operator/algorithms/kmeansPredict.rst b/src/main/python/docs/source/api/operator/algorithms/kmeansPredict.rst index b0832ee4854..c99ebb119c6 100644 --- a/src/main/python/docs/source/api/operator/algorithms/kmeansPredict.rst +++ b/src/main/python/docs/source/api/operator/algorithms/kmeansPredict.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + kmeansPredict ============= diff --git a/src/main/python/docs/source/api/operator/algorithms/knn.rst b/src/main/python/docs/source/api/operator/algorithms/knn.rst index c9bc1ed67d4..ab17b2f98d7 100644 --- a/src/main/python/docs/source/api/operator/algorithms/knn.rst +++ b/src/main/python/docs/source/api/operator/algorithms/knn.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + knn === diff --git a/src/main/python/docs/source/api/operator/algorithms/knnGraph.rst b/src/main/python/docs/source/api/operator/algorithms/knnGraph.rst index 19c9c7adc25..5e0f3a98bf9 100644 --- a/src/main/python/docs/source/api/operator/algorithms/knnGraph.rst +++ b/src/main/python/docs/source/api/operator/algorithms/knnGraph.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + knnGraph ======== diff --git a/src/main/python/docs/source/api/operator/algorithms/knnbf.rst b/src/main/python/docs/source/api/operator/algorithms/knnbf.rst index 098af73b361..cec6d981af5 100644 --- a/src/main/python/docs/source/api/operator/algorithms/knnbf.rst +++ b/src/main/python/docs/source/api/operator/algorithms/knnbf.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + knnbf ===== diff --git a/src/main/python/docs/source/api/operator/algorithms/l2svm.rst b/src/main/python/docs/source/api/operator/algorithms/l2svm.rst index ab8155faaad..3b3dec6ec49 100644 --- a/src/main/python/docs/source/api/operator/algorithms/l2svm.rst +++ b/src/main/python/docs/source/api/operator/algorithms/l2svm.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + l2svm ===== diff --git a/src/main/python/docs/source/api/operator/algorithms/l2svmPredict.rst b/src/main/python/docs/source/api/operator/algorithms/l2svmPredict.rst index 0aede20fcb8..b8a0c38aef3 100644 --- a/src/main/python/docs/source/api/operator/algorithms/l2svmPredict.rst +++ b/src/main/python/docs/source/api/operator/algorithms/l2svmPredict.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + l2svmPredict ============ diff --git a/src/main/python/docs/source/api/operator/algorithms/lasso.rst b/src/main/python/docs/source/api/operator/algorithms/lasso.rst index c4d8f490939..af9f28cce86 100644 --- a/src/main/python/docs/source/api/operator/algorithms/lasso.rst +++ b/src/main/python/docs/source/api/operator/algorithms/lasso.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + lasso ===== diff --git a/src/main/python/docs/source/api/operator/algorithms/lenetPredict.rst b/src/main/python/docs/source/api/operator/algorithms/lenetPredict.rst index f7ca6d4cfad..662ef797c2b 100644 --- a/src/main/python/docs/source/api/operator/algorithms/lenetPredict.rst +++ b/src/main/python/docs/source/api/operator/algorithms/lenetPredict.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + lenetPredict ============ diff --git a/src/main/python/docs/source/api/operator/algorithms/lenetTrain.rst b/src/main/python/docs/source/api/operator/algorithms/lenetTrain.rst index 59a1463290c..8255a2169b3 100644 --- a/src/main/python/docs/source/api/operator/algorithms/lenetTrain.rst +++ b/src/main/python/docs/source/api/operator/algorithms/lenetTrain.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + lenetTrain ========== diff --git a/src/main/python/docs/source/api/operator/algorithms/lm.rst b/src/main/python/docs/source/api/operator/algorithms/lm.rst index 50eded5883c..5dd8ac15942 100644 --- a/src/main/python/docs/source/api/operator/algorithms/lm.rst +++ b/src/main/python/docs/source/api/operator/algorithms/lm.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + lm == diff --git a/src/main/python/docs/source/api/operator/algorithms/lmCG.rst b/src/main/python/docs/source/api/operator/algorithms/lmCG.rst index e0242f13770..d5c854f82f0 100644 --- a/src/main/python/docs/source/api/operator/algorithms/lmCG.rst +++ b/src/main/python/docs/source/api/operator/algorithms/lmCG.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + lmCG ==== diff --git a/src/main/python/docs/source/api/operator/algorithms/lmDS.rst b/src/main/python/docs/source/api/operator/algorithms/lmDS.rst index 52255a93104..35bb9fa14c2 100644 --- a/src/main/python/docs/source/api/operator/algorithms/lmDS.rst +++ b/src/main/python/docs/source/api/operator/algorithms/lmDS.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + lmDS ==== diff --git a/src/main/python/docs/source/api/operator/algorithms/lmPredict.rst b/src/main/python/docs/source/api/operator/algorithms/lmPredict.rst index a7179cb84e5..306d89fe064 100644 --- a/src/main/python/docs/source/api/operator/algorithms/lmPredict.rst +++ b/src/main/python/docs/source/api/operator/algorithms/lmPredict.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + lmPredict ========= diff --git a/src/main/python/docs/source/api/operator/algorithms/lmPredictStats.rst b/src/main/python/docs/source/api/operator/algorithms/lmPredictStats.rst index 984fd907304..37e9e3f4aaf 100644 --- a/src/main/python/docs/source/api/operator/algorithms/lmPredictStats.rst +++ b/src/main/python/docs/source/api/operator/algorithms/lmPredictStats.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + lmPredictStats ============== diff --git a/src/main/python/docs/source/api/operator/algorithms/logSumExp.rst b/src/main/python/docs/source/api/operator/algorithms/logSumExp.rst index aea539ced3b..e5a182f0a72 100644 --- a/src/main/python/docs/source/api/operator/algorithms/logSumExp.rst +++ b/src/main/python/docs/source/api/operator/algorithms/logSumExp.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + logSumExp ========= diff --git a/src/main/python/docs/source/api/operator/algorithms/mae.rst b/src/main/python/docs/source/api/operator/algorithms/mae.rst index 36094918d88..2d5e5470967 100644 --- a/src/main/python/docs/source/api/operator/algorithms/mae.rst +++ b/src/main/python/docs/source/api/operator/algorithms/mae.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + mae === diff --git a/src/main/python/docs/source/api/operator/algorithms/mape.rst b/src/main/python/docs/source/api/operator/algorithms/mape.rst index a2284debb88..7205b96e2ad 100644 --- a/src/main/python/docs/source/api/operator/algorithms/mape.rst +++ b/src/main/python/docs/source/api/operator/algorithms/mape.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + mape ==== diff --git a/src/main/python/docs/source/api/operator/algorithms/matrixProfile.rst b/src/main/python/docs/source/api/operator/algorithms/matrixProfile.rst index 6dd5b4a7ddc..2aa519f7b75 100644 --- a/src/main/python/docs/source/api/operator/algorithms/matrixProfile.rst +++ b/src/main/python/docs/source/api/operator/algorithms/matrixProfile.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + matrixProfile ============= diff --git a/src/main/python/docs/source/api/operator/algorithms/mcc.rst b/src/main/python/docs/source/api/operator/algorithms/mcc.rst index 918f849be8a..4cc9184277f 100644 --- a/src/main/python/docs/source/api/operator/algorithms/mcc.rst +++ b/src/main/python/docs/source/api/operator/algorithms/mcc.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + mcc === diff --git a/src/main/python/docs/source/api/operator/algorithms/mdedup.rst b/src/main/python/docs/source/api/operator/algorithms/mdedup.rst index 88fd7ed5be7..e03b4e5717a 100644 --- a/src/main/python/docs/source/api/operator/algorithms/mdedup.rst +++ b/src/main/python/docs/source/api/operator/algorithms/mdedup.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + mdedup ====== diff --git a/src/main/python/docs/source/api/operator/algorithms/mice.rst b/src/main/python/docs/source/api/operator/algorithms/mice.rst index 429337e782b..da6da26acb6 100644 --- a/src/main/python/docs/source/api/operator/algorithms/mice.rst +++ b/src/main/python/docs/source/api/operator/algorithms/mice.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + mice ==== diff --git a/src/main/python/docs/source/api/operator/algorithms/miceApply.rst b/src/main/python/docs/source/api/operator/algorithms/miceApply.rst index 2ecc09a5c25..9fce2990b57 100644 --- a/src/main/python/docs/source/api/operator/algorithms/miceApply.rst +++ b/src/main/python/docs/source/api/operator/algorithms/miceApply.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + miceApply ========= diff --git a/src/main/python/docs/source/api/operator/algorithms/mse.rst b/src/main/python/docs/source/api/operator/algorithms/mse.rst index b739bbda38f..60e4e70bcfc 100644 --- a/src/main/python/docs/source/api/operator/algorithms/mse.rst +++ b/src/main/python/docs/source/api/operator/algorithms/mse.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + mse === diff --git a/src/main/python/docs/source/api/operator/algorithms/msmape.rst b/src/main/python/docs/source/api/operator/algorithms/msmape.rst index b71f226d93b..ffe45ad8729 100644 --- a/src/main/python/docs/source/api/operator/algorithms/msmape.rst +++ b/src/main/python/docs/source/api/operator/algorithms/msmape.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + msmape ====== diff --git a/src/main/python/docs/source/api/operator/algorithms/msvm.rst b/src/main/python/docs/source/api/operator/algorithms/msvm.rst index 744f0b3dd7d..a9d83d797cd 100644 --- a/src/main/python/docs/source/api/operator/algorithms/msvm.rst +++ b/src/main/python/docs/source/api/operator/algorithms/msvm.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + msvm ==== diff --git a/src/main/python/docs/source/api/operator/algorithms/msvmPredict.rst b/src/main/python/docs/source/api/operator/algorithms/msvmPredict.rst index 7900af7168a..daf745369d0 100644 --- a/src/main/python/docs/source/api/operator/algorithms/msvmPredict.rst +++ b/src/main/python/docs/source/api/operator/algorithms/msvmPredict.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + msvmPredict =========== diff --git a/src/main/python/docs/source/api/operator/algorithms/multiLogReg.rst b/src/main/python/docs/source/api/operator/algorithms/multiLogReg.rst index 603271a7026..d4994f8cff7 100644 --- a/src/main/python/docs/source/api/operator/algorithms/multiLogReg.rst +++ b/src/main/python/docs/source/api/operator/algorithms/multiLogReg.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + multiLogReg =========== diff --git a/src/main/python/docs/source/api/operator/algorithms/multiLogRegPredict.rst b/src/main/python/docs/source/api/operator/algorithms/multiLogRegPredict.rst index edaf7f83057..2276e805af9 100644 --- a/src/main/python/docs/source/api/operator/algorithms/multiLogRegPredict.rst +++ b/src/main/python/docs/source/api/operator/algorithms/multiLogRegPredict.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + multiLogRegPredict ================== diff --git a/src/main/python/docs/source/api/operator/algorithms/na_locf.rst b/src/main/python/docs/source/api/operator/algorithms/na_locf.rst index bc1c11bbc1d..12c05495378 100644 --- a/src/main/python/docs/source/api/operator/algorithms/na_locf.rst +++ b/src/main/python/docs/source/api/operator/algorithms/na_locf.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + na_locf ======= diff --git a/src/main/python/docs/source/api/operator/algorithms/naiveBayes.rst b/src/main/python/docs/source/api/operator/algorithms/naiveBayes.rst index 0dcd81e0e2d..e638554805f 100644 --- a/src/main/python/docs/source/api/operator/algorithms/naiveBayes.rst +++ b/src/main/python/docs/source/api/operator/algorithms/naiveBayes.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + naiveBayes ========== diff --git a/src/main/python/docs/source/api/operator/algorithms/naiveBayesPredict.rst b/src/main/python/docs/source/api/operator/algorithms/naiveBayesPredict.rst index 96882aea3d9..d20c87e4bfb 100644 --- a/src/main/python/docs/source/api/operator/algorithms/naiveBayesPredict.rst +++ b/src/main/python/docs/source/api/operator/algorithms/naiveBayesPredict.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + naiveBayesPredict ================= diff --git a/src/main/python/docs/source/api/operator/algorithms/normalize.rst b/src/main/python/docs/source/api/operator/algorithms/normalize.rst index 10ebc62538b..959fa7368b0 100644 --- a/src/main/python/docs/source/api/operator/algorithms/normalize.rst +++ b/src/main/python/docs/source/api/operator/algorithms/normalize.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + normalize ========= diff --git a/src/main/python/docs/source/api/operator/algorithms/normalizeApply.rst b/src/main/python/docs/source/api/operator/algorithms/normalizeApply.rst index cc42b36e95f..3559eb622b9 100644 --- a/src/main/python/docs/source/api/operator/algorithms/normalizeApply.rst +++ b/src/main/python/docs/source/api/operator/algorithms/normalizeApply.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + normalizeApply ============== diff --git a/src/main/python/docs/source/api/operator/algorithms/nrmse.rst b/src/main/python/docs/source/api/operator/algorithms/nrmse.rst index ad189fa0802..5049a0cc483 100644 --- a/src/main/python/docs/source/api/operator/algorithms/nrmse.rst +++ b/src/main/python/docs/source/api/operator/algorithms/nrmse.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + nrmse ===== diff --git a/src/main/python/docs/source/api/operator/algorithms/outlier.rst b/src/main/python/docs/source/api/operator/algorithms/outlier.rst index e79c68e3a32..6b076100e33 100644 --- a/src/main/python/docs/source/api/operator/algorithms/outlier.rst +++ b/src/main/python/docs/source/api/operator/algorithms/outlier.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + outlier ======= diff --git a/src/main/python/docs/source/api/operator/algorithms/outlierByArima.rst b/src/main/python/docs/source/api/operator/algorithms/outlierByArima.rst index 7ea56086d34..d9d71341ce5 100644 --- a/src/main/python/docs/source/api/operator/algorithms/outlierByArima.rst +++ b/src/main/python/docs/source/api/operator/algorithms/outlierByArima.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + outlierByArima ============== diff --git a/src/main/python/docs/source/api/operator/algorithms/outlierByIQR.rst b/src/main/python/docs/source/api/operator/algorithms/outlierByIQR.rst index fe62f01994d..e92c6153318 100644 --- a/src/main/python/docs/source/api/operator/algorithms/outlierByIQR.rst +++ b/src/main/python/docs/source/api/operator/algorithms/outlierByIQR.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + outlierByIQR ============ diff --git a/src/main/python/docs/source/api/operator/algorithms/outlierByIQRApply.rst b/src/main/python/docs/source/api/operator/algorithms/outlierByIQRApply.rst index 2681463d05c..6cd11e3a5ba 100644 --- a/src/main/python/docs/source/api/operator/algorithms/outlierByIQRApply.rst +++ b/src/main/python/docs/source/api/operator/algorithms/outlierByIQRApply.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + outlierByIQRApply ================= diff --git a/src/main/python/docs/source/api/operator/algorithms/outlierBySd.rst b/src/main/python/docs/source/api/operator/algorithms/outlierBySd.rst index bf7a66cf0d4..8b919e658b2 100644 --- a/src/main/python/docs/source/api/operator/algorithms/outlierBySd.rst +++ b/src/main/python/docs/source/api/operator/algorithms/outlierBySd.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + outlierBySd =========== diff --git a/src/main/python/docs/source/api/operator/algorithms/outlierBySdApply.rst b/src/main/python/docs/source/api/operator/algorithms/outlierBySdApply.rst index ed34b6b6d2c..e26e031636a 100644 --- a/src/main/python/docs/source/api/operator/algorithms/outlierBySdApply.rst +++ b/src/main/python/docs/source/api/operator/algorithms/outlierBySdApply.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + outlierBySdApply ================ diff --git a/src/main/python/docs/source/api/operator/algorithms/pageRank.rst b/src/main/python/docs/source/api/operator/algorithms/pageRank.rst index f1bedc84190..418782e9017 100644 --- a/src/main/python/docs/source/api/operator/algorithms/pageRank.rst +++ b/src/main/python/docs/source/api/operator/algorithms/pageRank.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + pageRank ======== diff --git a/src/main/python/docs/source/api/operator/algorithms/pca.rst b/src/main/python/docs/source/api/operator/algorithms/pca.rst index 1eda6ee503f..a3e0a86f45c 100644 --- a/src/main/python/docs/source/api/operator/algorithms/pca.rst +++ b/src/main/python/docs/source/api/operator/algorithms/pca.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + pca === diff --git a/src/main/python/docs/source/api/operator/algorithms/pcaInverse.rst b/src/main/python/docs/source/api/operator/algorithms/pcaInverse.rst index 6cc0cf1bff5..bc077dec69c 100644 --- a/src/main/python/docs/source/api/operator/algorithms/pcaInverse.rst +++ b/src/main/python/docs/source/api/operator/algorithms/pcaInverse.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + pcaInverse ========== diff --git a/src/main/python/docs/source/api/operator/algorithms/pcaTransform.rst b/src/main/python/docs/source/api/operator/algorithms/pcaTransform.rst index f78df2e4657..f4e99ea1bfc 100644 --- a/src/main/python/docs/source/api/operator/algorithms/pcaTransform.rst +++ b/src/main/python/docs/source/api/operator/algorithms/pcaTransform.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + pcaTransform ============ diff --git a/src/main/python/docs/source/api/operator/algorithms/pnmf.rst b/src/main/python/docs/source/api/operator/algorithms/pnmf.rst index 1dd0dcb367a..20d4379c61e 100644 --- a/src/main/python/docs/source/api/operator/algorithms/pnmf.rst +++ b/src/main/python/docs/source/api/operator/algorithms/pnmf.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + pnmf ==== diff --git a/src/main/python/docs/source/api/operator/algorithms/ppca.rst b/src/main/python/docs/source/api/operator/algorithms/ppca.rst index 38e6f4468b2..080d1605679 100644 --- a/src/main/python/docs/source/api/operator/algorithms/ppca.rst +++ b/src/main/python/docs/source/api/operator/algorithms/ppca.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + ppca ==== diff --git a/src/main/python/docs/source/api/operator/algorithms/psnr.rst b/src/main/python/docs/source/api/operator/algorithms/psnr.rst index c16bb02613d..9c4d6e956d8 100644 --- a/src/main/python/docs/source/api/operator/algorithms/psnr.rst +++ b/src/main/python/docs/source/api/operator/algorithms/psnr.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + psnr ==== diff --git a/src/main/python/docs/source/api/operator/algorithms/quantizeByCluster.rst b/src/main/python/docs/source/api/operator/algorithms/quantizeByCluster.rst index 1d4edf6d0d7..edc1b0622b4 100644 --- a/src/main/python/docs/source/api/operator/algorithms/quantizeByCluster.rst +++ b/src/main/python/docs/source/api/operator/algorithms/quantizeByCluster.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + quantizeByCluster ================= diff --git a/src/main/python/docs/source/api/operator/algorithms/raGroupby.rst b/src/main/python/docs/source/api/operator/algorithms/raGroupby.rst index bdf7bc92942..eca208c2737 100644 --- a/src/main/python/docs/source/api/operator/algorithms/raGroupby.rst +++ b/src/main/python/docs/source/api/operator/algorithms/raGroupby.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + raGroupby ========= diff --git a/src/main/python/docs/source/api/operator/algorithms/raJoin.rst b/src/main/python/docs/source/api/operator/algorithms/raJoin.rst index f26d443fdb3..69191241853 100644 --- a/src/main/python/docs/source/api/operator/algorithms/raJoin.rst +++ b/src/main/python/docs/source/api/operator/algorithms/raJoin.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + raJoin ====== diff --git a/src/main/python/docs/source/api/operator/algorithms/raSelection.rst b/src/main/python/docs/source/api/operator/algorithms/raSelection.rst index 7ce2f3805ee..3d02704d99d 100644 --- a/src/main/python/docs/source/api/operator/algorithms/raSelection.rst +++ b/src/main/python/docs/source/api/operator/algorithms/raSelection.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + raSelection =========== diff --git a/src/main/python/docs/source/api/operator/algorithms/randomForest.rst b/src/main/python/docs/source/api/operator/algorithms/randomForest.rst index e38646fabc6..cea42410fda 100644 --- a/src/main/python/docs/source/api/operator/algorithms/randomForest.rst +++ b/src/main/python/docs/source/api/operator/algorithms/randomForest.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + randomForest ============ diff --git a/src/main/python/docs/source/api/operator/algorithms/randomForestPredict.rst b/src/main/python/docs/source/api/operator/algorithms/randomForestPredict.rst index e49e104980c..5b05e584f60 100644 --- a/src/main/python/docs/source/api/operator/algorithms/randomForestPredict.rst +++ b/src/main/python/docs/source/api/operator/algorithms/randomForestPredict.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + randomForestPredict =================== diff --git a/src/main/python/docs/source/api/operator/algorithms/rmse.rst b/src/main/python/docs/source/api/operator/algorithms/rmse.rst index 9a4772dcbd1..594279ad2a1 100644 --- a/src/main/python/docs/source/api/operator/algorithms/rmse.rst +++ b/src/main/python/docs/source/api/operator/algorithms/rmse.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + rmse ==== diff --git a/src/main/python/docs/source/api/operator/algorithms/scale.rst b/src/main/python/docs/source/api/operator/algorithms/scale.rst index 48a3d09415d..cc2510dc9dc 100644 --- a/src/main/python/docs/source/api/operator/algorithms/scale.rst +++ b/src/main/python/docs/source/api/operator/algorithms/scale.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + scale ===== diff --git a/src/main/python/docs/source/api/operator/algorithms/scaleApply.rst b/src/main/python/docs/source/api/operator/algorithms/scaleApply.rst index 4150e19e62f..888b81e1e9b 100644 --- a/src/main/python/docs/source/api/operator/algorithms/scaleApply.rst +++ b/src/main/python/docs/source/api/operator/algorithms/scaleApply.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + scaleApply ========== diff --git a/src/main/python/docs/source/api/operator/algorithms/scaleMinMax.rst b/src/main/python/docs/source/api/operator/algorithms/scaleMinMax.rst index a8a18237ca1..eb5631ca731 100644 --- a/src/main/python/docs/source/api/operator/algorithms/scaleMinMax.rst +++ b/src/main/python/docs/source/api/operator/algorithms/scaleMinMax.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + scaleMinMax =========== diff --git a/src/main/python/docs/source/api/operator/algorithms/selectByVarThresh.rst b/src/main/python/docs/source/api/operator/algorithms/selectByVarThresh.rst index f84ccd06786..f1d57a715c9 100644 --- a/src/main/python/docs/source/api/operator/algorithms/selectByVarThresh.rst +++ b/src/main/python/docs/source/api/operator/algorithms/selectByVarThresh.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + selectByVarThresh ================= diff --git a/src/main/python/docs/source/api/operator/algorithms/ses.rst b/src/main/python/docs/source/api/operator/algorithms/ses.rst index 6e797bbfe7c..a179d87adb8 100644 --- a/src/main/python/docs/source/api/operator/algorithms/ses.rst +++ b/src/main/python/docs/source/api/operator/algorithms/ses.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + ses === diff --git a/src/main/python/docs/source/api/operator/algorithms/setdiff.rst b/src/main/python/docs/source/api/operator/algorithms/setdiff.rst index abb64d899a2..196c665a6df 100644 --- a/src/main/python/docs/source/api/operator/algorithms/setdiff.rst +++ b/src/main/python/docs/source/api/operator/algorithms/setdiff.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + setdiff ======= diff --git a/src/main/python/docs/source/api/operator/algorithms/shapExplainer.rst b/src/main/python/docs/source/api/operator/algorithms/shapExplainer.rst index b376f4a5f8d..a2f5860e333 100644 --- a/src/main/python/docs/source/api/operator/algorithms/shapExplainer.rst +++ b/src/main/python/docs/source/api/operator/algorithms/shapExplainer.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + shapExplainer ============= diff --git a/src/main/python/docs/source/api/operator/algorithms/sherlock.rst b/src/main/python/docs/source/api/operator/algorithms/sherlock.rst index bec99c1dcc3..61e887b2bb0 100644 --- a/src/main/python/docs/source/api/operator/algorithms/sherlock.rst +++ b/src/main/python/docs/source/api/operator/algorithms/sherlock.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + sherlock ======== diff --git a/src/main/python/docs/source/api/operator/algorithms/sherlockPredict.rst b/src/main/python/docs/source/api/operator/algorithms/sherlockPredict.rst index bb3c82835da..c8cb350af8c 100644 --- a/src/main/python/docs/source/api/operator/algorithms/sherlockPredict.rst +++ b/src/main/python/docs/source/api/operator/algorithms/sherlockPredict.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + sherlockPredict =============== diff --git a/src/main/python/docs/source/api/operator/algorithms/shortestPath.rst b/src/main/python/docs/source/api/operator/algorithms/shortestPath.rst index 8bba99bf797..c187fffc192 100644 --- a/src/main/python/docs/source/api/operator/algorithms/shortestPath.rst +++ b/src/main/python/docs/source/api/operator/algorithms/shortestPath.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + shortestPath ============ diff --git a/src/main/python/docs/source/api/operator/algorithms/sigmoid.rst b/src/main/python/docs/source/api/operator/algorithms/sigmoid.rst index b2e613532f1..663cee4b9b6 100644 --- a/src/main/python/docs/source/api/operator/algorithms/sigmoid.rst +++ b/src/main/python/docs/source/api/operator/algorithms/sigmoid.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + sigmoid ======= diff --git a/src/main/python/docs/source/api/operator/algorithms/skewness.rst b/src/main/python/docs/source/api/operator/algorithms/skewness.rst index 7d4d80df498..6cf24c0fca5 100644 --- a/src/main/python/docs/source/api/operator/algorithms/skewness.rst +++ b/src/main/python/docs/source/api/operator/algorithms/skewness.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + skewness ======== diff --git a/src/main/python/docs/source/api/operator/algorithms/sliceLine.rst b/src/main/python/docs/source/api/operator/algorithms/sliceLine.rst index df6362d9f71..4a78a5150bf 100644 --- a/src/main/python/docs/source/api/operator/algorithms/sliceLine.rst +++ b/src/main/python/docs/source/api/operator/algorithms/sliceLine.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + sliceLine ========= diff --git a/src/main/python/docs/source/api/operator/algorithms/sliceLineDebug.rst b/src/main/python/docs/source/api/operator/algorithms/sliceLineDebug.rst index 0f5a3f19cfb..52f98cf71ce 100644 --- a/src/main/python/docs/source/api/operator/algorithms/sliceLineDebug.rst +++ b/src/main/python/docs/source/api/operator/algorithms/sliceLineDebug.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + sliceLineDebug ============== diff --git a/src/main/python/docs/source/api/operator/algorithms/sliceLineExtract.rst b/src/main/python/docs/source/api/operator/algorithms/sliceLineExtract.rst index 94b0bbc0113..931e856e728 100644 --- a/src/main/python/docs/source/api/operator/algorithms/sliceLineExtract.rst +++ b/src/main/python/docs/source/api/operator/algorithms/sliceLineExtract.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + sliceLineExtract ================ diff --git a/src/main/python/docs/source/api/operator/algorithms/slicefinder.rst b/src/main/python/docs/source/api/operator/algorithms/slicefinder.rst index 85c7fced018..93397c938cc 100644 --- a/src/main/python/docs/source/api/operator/algorithms/slicefinder.rst +++ b/src/main/python/docs/source/api/operator/algorithms/slicefinder.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + slicefinder =========== diff --git a/src/main/python/docs/source/api/operator/algorithms/smape.rst b/src/main/python/docs/source/api/operator/algorithms/smape.rst index 6aadbd94205..152c5e38ba6 100644 --- a/src/main/python/docs/source/api/operator/algorithms/smape.rst +++ b/src/main/python/docs/source/api/operator/algorithms/smape.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + smape ===== diff --git a/src/main/python/docs/source/api/operator/algorithms/smote.rst b/src/main/python/docs/source/api/operator/algorithms/smote.rst index 729d9529d39..204c5b422f6 100644 --- a/src/main/python/docs/source/api/operator/algorithms/smote.rst +++ b/src/main/python/docs/source/api/operator/algorithms/smote.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + smote ===== diff --git a/src/main/python/docs/source/api/operator/algorithms/softmax.rst b/src/main/python/docs/source/api/operator/algorithms/softmax.rst index 3d142077f96..f1150c62be3 100644 --- a/src/main/python/docs/source/api/operator/algorithms/softmax.rst +++ b/src/main/python/docs/source/api/operator/algorithms/softmax.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + softmax ======= diff --git a/src/main/python/docs/source/api/operator/algorithms/split.rst b/src/main/python/docs/source/api/operator/algorithms/split.rst index 0c46d928195..a2179198efd 100644 --- a/src/main/python/docs/source/api/operator/algorithms/split.rst +++ b/src/main/python/docs/source/api/operator/algorithms/split.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + split ===== diff --git a/src/main/python/docs/source/api/operator/algorithms/splitBalanced.rst b/src/main/python/docs/source/api/operator/algorithms/splitBalanced.rst index f9c6640a02f..54b68593505 100644 --- a/src/main/python/docs/source/api/operator/algorithms/splitBalanced.rst +++ b/src/main/python/docs/source/api/operator/algorithms/splitBalanced.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + splitBalanced ============= diff --git a/src/main/python/docs/source/api/operator/algorithms/sqrtMatrix.rst b/src/main/python/docs/source/api/operator/algorithms/sqrtMatrix.rst index f59bbb3b4a5..7a6ddad91a6 100644 --- a/src/main/python/docs/source/api/operator/algorithms/sqrtMatrix.rst +++ b/src/main/python/docs/source/api/operator/algorithms/sqrtMatrix.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + sqrtMatrix ========== diff --git a/src/main/python/docs/source/api/operator/algorithms/stableMarriage.rst b/src/main/python/docs/source/api/operator/algorithms/stableMarriage.rst index ddddbae2b26..f97b7ed434d 100644 --- a/src/main/python/docs/source/api/operator/algorithms/stableMarriage.rst +++ b/src/main/python/docs/source/api/operator/algorithms/stableMarriage.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + stableMarriage ============== diff --git a/src/main/python/docs/source/api/operator/algorithms/statsNA.rst b/src/main/python/docs/source/api/operator/algorithms/statsNA.rst index 22724284872..5360f5a3b9e 100644 --- a/src/main/python/docs/source/api/operator/algorithms/statsNA.rst +++ b/src/main/python/docs/source/api/operator/algorithms/statsNA.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + statsNA ======= diff --git a/src/main/python/docs/source/api/operator/algorithms/steplm.rst b/src/main/python/docs/source/api/operator/algorithms/steplm.rst index 35cb47cff1b..0b70490e67c 100644 --- a/src/main/python/docs/source/api/operator/algorithms/steplm.rst +++ b/src/main/python/docs/source/api/operator/algorithms/steplm.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + steplm ====== diff --git a/src/main/python/docs/source/api/operator/algorithms/stratstats.rst b/src/main/python/docs/source/api/operator/algorithms/stratstats.rst index 65ec9dd1b42..2223957ccb1 100644 --- a/src/main/python/docs/source/api/operator/algorithms/stratstats.rst +++ b/src/main/python/docs/source/api/operator/algorithms/stratstats.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + stratstats ========== diff --git a/src/main/python/docs/source/api/operator/algorithms/symmetricDifference.rst b/src/main/python/docs/source/api/operator/algorithms/symmetricDifference.rst index 494e632383f..646d44ee923 100644 --- a/src/main/python/docs/source/api/operator/algorithms/symmetricDifference.rst +++ b/src/main/python/docs/source/api/operator/algorithms/symmetricDifference.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + symmetricDifference =================== diff --git a/src/main/python/docs/source/api/operator/algorithms/tSNE.rst b/src/main/python/docs/source/api/operator/algorithms/tSNE.rst index 1021a052198..394a79d5260 100644 --- a/src/main/python/docs/source/api/operator/algorithms/tSNE.rst +++ b/src/main/python/docs/source/api/operator/algorithms/tSNE.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + tSNE ==== diff --git a/src/main/python/docs/source/api/operator/algorithms/toOneHot.rst b/src/main/python/docs/source/api/operator/algorithms/toOneHot.rst index 8c220b3d866..c39a9079aa8 100644 --- a/src/main/python/docs/source/api/operator/algorithms/toOneHot.rst +++ b/src/main/python/docs/source/api/operator/algorithms/toOneHot.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + toOneHot ======== diff --git a/src/main/python/docs/source/api/operator/algorithms/tomeklink.rst b/src/main/python/docs/source/api/operator/algorithms/tomeklink.rst index 4fd0bd17f78..c58f208ecd5 100644 --- a/src/main/python/docs/source/api/operator/algorithms/tomeklink.rst +++ b/src/main/python/docs/source/api/operator/algorithms/tomeklink.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + tomeklink ========= diff --git a/src/main/python/docs/source/api/operator/algorithms/topk_cleaning.rst b/src/main/python/docs/source/api/operator/algorithms/topk_cleaning.rst index b57c24f3a47..59fcb5e16d9 100644 --- a/src/main/python/docs/source/api/operator/algorithms/topk_cleaning.rst +++ b/src/main/python/docs/source/api/operator/algorithms/topk_cleaning.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + topk_cleaning ============= diff --git a/src/main/python/docs/source/api/operator/algorithms/underSampling.rst b/src/main/python/docs/source/api/operator/algorithms/underSampling.rst index 0b7b146b0af..76c86189621 100644 --- a/src/main/python/docs/source/api/operator/algorithms/underSampling.rst +++ b/src/main/python/docs/source/api/operator/algorithms/underSampling.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + underSampling ============= diff --git a/src/main/python/docs/source/api/operator/algorithms/union.rst b/src/main/python/docs/source/api/operator/algorithms/union.rst index 24da31088ff..63070d24fd7 100644 --- a/src/main/python/docs/source/api/operator/algorithms/union.rst +++ b/src/main/python/docs/source/api/operator/algorithms/union.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + union ===== diff --git a/src/main/python/docs/source/api/operator/algorithms/univar.rst b/src/main/python/docs/source/api/operator/algorithms/univar.rst index c4df0e4e758..8946978c266 100644 --- a/src/main/python/docs/source/api/operator/algorithms/univar.rst +++ b/src/main/python/docs/source/api/operator/algorithms/univar.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + univar ====== diff --git a/src/main/python/docs/source/api/operator/algorithms/vectorToCsv.rst b/src/main/python/docs/source/api/operator/algorithms/vectorToCsv.rst index c1c9e2cbc09..651fea807be 100644 --- a/src/main/python/docs/source/api/operator/algorithms/vectorToCsv.rst +++ b/src/main/python/docs/source/api/operator/algorithms/vectorToCsv.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + vectorToCsv =========== diff --git a/src/main/python/docs/source/api/operator/algorithms/wer.rst b/src/main/python/docs/source/api/operator/algorithms/wer.rst index 9ea55cbd1fe..d9800dacd67 100644 --- a/src/main/python/docs/source/api/operator/algorithms/wer.rst +++ b/src/main/python/docs/source/api/operator/algorithms/wer.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + wer === diff --git a/src/main/python/docs/source/api/operator/algorithms/winsorize.rst b/src/main/python/docs/source/api/operator/algorithms/winsorize.rst index 43c20fbc652..cf1f5b46209 100644 --- a/src/main/python/docs/source/api/operator/algorithms/winsorize.rst +++ b/src/main/python/docs/source/api/operator/algorithms/winsorize.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + winsorize ========= diff --git a/src/main/python/docs/source/api/operator/algorithms/winsorizeApply.rst b/src/main/python/docs/source/api/operator/algorithms/winsorizeApply.rst index f4b3c9e983c..b70f018ef47 100644 --- a/src/main/python/docs/source/api/operator/algorithms/winsorizeApply.rst +++ b/src/main/python/docs/source/api/operator/algorithms/winsorizeApply.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + winsorizeApply ============== diff --git a/src/main/python/docs/source/api/operator/algorithms/xdummy1.rst b/src/main/python/docs/source/api/operator/algorithms/xdummy1.rst index 20e4eed2b36..4ed05eb7cc7 100644 --- a/src/main/python/docs/source/api/operator/algorithms/xdummy1.rst +++ b/src/main/python/docs/source/api/operator/algorithms/xdummy1.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + xdummy1 ======= diff --git a/src/main/python/docs/source/api/operator/algorithms/xdummy2.rst b/src/main/python/docs/source/api/operator/algorithms/xdummy2.rst index 9254147e691..0aaaf4db4ba 100644 --- a/src/main/python/docs/source/api/operator/algorithms/xdummy2.rst +++ b/src/main/python/docs/source/api/operator/algorithms/xdummy2.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + xdummy2 ======= diff --git a/src/main/python/docs/source/api/operator/algorithms/xgboost.rst b/src/main/python/docs/source/api/operator/algorithms/xgboost.rst index 506771aa6d8..3c3b47c97e6 100644 --- a/src/main/python/docs/source/api/operator/algorithms/xgboost.rst +++ b/src/main/python/docs/source/api/operator/algorithms/xgboost.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + xgboost ======= diff --git a/src/main/python/docs/source/api/operator/algorithms/xgboostPredictClassification.rst b/src/main/python/docs/source/api/operator/algorithms/xgboostPredictClassification.rst index b65b35c8ebd..a6114be8b2e 100644 --- a/src/main/python/docs/source/api/operator/algorithms/xgboostPredictClassification.rst +++ b/src/main/python/docs/source/api/operator/algorithms/xgboostPredictClassification.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + xgboostPredictClassification ============================ diff --git a/src/main/python/docs/source/api/operator/algorithms/xgboostPredictRegression.rst b/src/main/python/docs/source/api/operator/algorithms/xgboostPredictRegression.rst index 1e331011902..5f2f99c723e 100644 --- a/src/main/python/docs/source/api/operator/algorithms/xgboostPredictRegression.rst +++ b/src/main/python/docs/source/api/operator/algorithms/xgboostPredictRegression.rst @@ -1,3 +1,24 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ + xgboostPredictRegression ======================== diff --git a/src/main/python/generator/generator.py b/src/main/python/generator/generator.py index e321d8336c4..b21a4f6c6b5 100644 --- a/src/main/python/generator/generator.py +++ b/src/main/python/generator/generator.py @@ -39,11 +39,13 @@ class PythonAPIFileGenerator(object): __file__)), 'tests', 'auto_tests') rst_path = os.path.join(os.path.dirname(os.path.dirname( __file__)), 'docs', 'source', 'api', 'operator', 'algorithms') - licence_path = os.path.join('resources', 'template_python_script_license') + license_path = os.path.join('resources', 'template_python_script_license') + rst_license_path = os.path.join('resources', 'template_python_script_rst_license') template_path = os.path.join('resources', 'template_python_script_imports') source_path: str - licence: str + license: str + rst_license: str imports: str generated_by: str generated_from: str @@ -71,8 +73,10 @@ def __init__(self, source_path: str, extension: str = 'py'): with open(os.path.join(path, self.__class__.template_path), 'r') as f: self.imports = f.read() - with open(os.path.join(path, self.__class__.licence_path), 'r') as f: - self.licence = f.read() + with open(os.path.join(path, self.__class__.license_path), 'r') as f: + self.license = f.read() + with open(os.path.join(path, self.__class__.rst_license_path), 'r') as f: + self.rst_license = f.read() self.generated_by = "# Autogenerated By : src/main/python/generator/generator.py\n" self.generated_from = "# Autogenerated From : " @@ -93,7 +97,7 @@ def generate_file(self, filename: str, file_content: str, dml_file: str): target_file = os.path.join(self.target_path, filename) + self.extension with open(target_file, "w") as new_script: - new_script.write(self.licence) + new_script.write(self.license) new_script.write(self.generated_by) relative_path = os.path.relpath(dml_file, start=self.source_path) new_script.write(f"{self.generated_from}scripts/builtin/{relative_path}\n") @@ -108,9 +112,9 @@ def generate_test_file(self, function_name: str, code_block: str = None): """ target_file = os.path.join(self.test_path, f"test_{function_name}") + self.extension with open(target_file, "w") as test_script: - test_script.write(self.licence) + test_script.write(self.license) test_script.write(self.generated_by) - test_script.write("import unittest, contextlib, io\n") + test_script.write("import unittest, contextlib, io\n\n\n") test_script.write(f"class Test{function_name.upper()}(unittest.TestCase):\n") test_script.write(f" def test_{function_name}(self):\n") @@ -131,8 +135,8 @@ def generate_test_file(self, function_name: str, code_block: str = None): else: expected += raw_line expected = expected.lstrip("\n") - test_script.write(f'\n expected="""{expected}"""\n') - test_script.write(f" self.assertEqual(buf.getvalue().strip(), expected)\n") + test_script.write(f'\n expected = """{expected}"""\n') + test_script.write(f" self.assertEqual(buf.getvalue().strip(), expected)\n\n") test_script.write("\nif __name__ == '__main__':\n") test_script.write(" unittest.main()\n") @@ -143,14 +147,15 @@ def generate_rst_file(self, function_name: str): """ target_file = os.path.join(self.rst_path, f"{function_name}") + ".rst" with open(target_file, "w") as rst_script: - # rst_script.write(self.licence) + rst_script.write(self.rst_license) + rst_script.write("\n\n") rst_script.write(function_name + "\n") rst_script.write("=" * len(function_name) + "\n\n") rst_script.write(f".. autofunction:: systemds.operator.algorithm.{function_name}") def generate_init_file(self): with open(self.init_path, "w") as init_file: - init_file.write(self.licence) + init_file.write(self.license) init_file.write(self.generated_by) init_file.write("\n") for f in self.function_names: diff --git a/src/main/python/generator/resources/template_python_script_rst_license b/src/main/python/generator/resources/template_python_script_rst_license new file mode 100644 index 00000000000..709131866e9 --- /dev/null +++ b/src/main/python/generator/resources/template_python_script_rst_license @@ -0,0 +1,20 @@ +.. ------------------------------------------------------------- +.. +.. Licensed to the Apache Software Foundation (ASF) under one +.. or more contributor license agreements. See the NOTICE file +.. distributed with this work for additional information +.. regarding copyright ownership. The ASF licenses this file +.. to you under the Apache License, Version 2.0 (the +.. "License"); you may not use this file except in compliance +.. with the License. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, +.. software distributed under the License is distributed on an +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +.. KIND, either express or implied. See the License for the +.. specific language governing permissions and limitations +.. under the License. +.. +.. ------------------------------------------------------------ \ No newline at end of file diff --git a/src/main/python/systemds/context/systemds_context.py b/src/main/python/systemds/context/systemds_context.py index 9843b367edd..41cfdfc698f 100644 --- a/src/main/python/systemds/context/systemds_context.py +++ b/src/main/python/systemds/context/systemds_context.py @@ -261,7 +261,9 @@ def exception_and_close(self, exception, trace_back_limit: int = None): ) ) ) - print("Encountered exception & shutting down: \n\n{}".format(tb_str.strip())) + self._log.error( + "Encountered exception & shutting down: \n\n{}".format(tb_str.strip()) + ) self.close() raise RuntimeError(message) diff --git a/src/main/python/tests/algorithms/test_cov.py b/src/main/python/tests/algorithms/test_cov.py index 7a3e10be133..a20c0741f11 100644 --- a/src/main/python/tests/algorithms/test_cov.py +++ b/src/main/python/tests/algorithms/test_cov.py @@ -42,7 +42,7 @@ class TestCOV(unittest.TestCase): @classmethod def setUpClass(cls): - cls.sds = SystemDSContext() + cls.sds = SystemDSContext(capture_stdout=True, logging_level=50) @classmethod def tearDownClass(cls): diff --git a/src/main/python/tests/algorithms/test_gmm.py b/src/main/python/tests/algorithms/test_gmm.py index cbcccc260d1..f104d69885b 100644 --- a/src/main/python/tests/algorithms/test_gmm.py +++ b/src/main/python/tests/algorithms/test_gmm.py @@ -31,7 +31,7 @@ class TestGMM(unittest.TestCase): @classmethod def setUpClass(cls): - cls.sds = SystemDSContext() + cls.sds = SystemDSContext(capture_stdout=True, logging_level=50) @classmethod def tearDownClass(cls): diff --git a/src/main/python/tests/algorithms/test_kmeans.py b/src/main/python/tests/algorithms/test_kmeans.py index 9b8ab1ececf..31a15da5ff1 100644 --- a/src/main/python/tests/algorithms/test_kmeans.py +++ b/src/main/python/tests/algorithms/test_kmeans.py @@ -32,7 +32,7 @@ class TestKMeans(unittest.TestCase): @classmethod def setUpClass(cls): - cls.sds = SystemDSContext() + cls.sds = SystemDSContext(capture_stdout=True, logging_level=50) @classmethod def tearDownClass(cls): diff --git a/src/main/python/tests/algorithms/test_l2svm.py b/src/main/python/tests/algorithms/test_l2svm.py index d7ea0d862bc..dd7f4685c82 100644 --- a/src/main/python/tests/algorithms/test_l2svm.py +++ b/src/main/python/tests/algorithms/test_l2svm.py @@ -32,7 +32,7 @@ class TestL2svm(unittest.TestCase): @classmethod def setUpClass(cls): - cls.sds = SystemDSContext() + cls.sds = SystemDSContext(capture_stdout=True, logging_level=50) @classmethod def tearDownClass(cls): diff --git a/src/main/python/tests/algorithms/test_multiLogReg.py b/src/main/python/tests/algorithms/test_multiLogReg.py index 597e9d0584b..8b8b11fc740 100644 --- a/src/main/python/tests/algorithms/test_multiLogReg.py +++ b/src/main/python/tests/algorithms/test_multiLogReg.py @@ -32,7 +32,7 @@ class TestMultiLogReg(unittest.TestCase): @classmethod def setUpClass(cls): - cls.sds = SystemDSContext() + cls.sds = SystemDSContext(capture_stdout=True, logging_level=50) @classmethod def tearDownClass(cls): diff --git a/src/main/python/tests/algorithms/test_pca.py b/src/main/python/tests/algorithms/test_pca.py index cdfbe729028..d720493c26d 100644 --- a/src/main/python/tests/algorithms/test_pca.py +++ b/src/main/python/tests/algorithms/test_pca.py @@ -32,7 +32,7 @@ class TestPCA(unittest.TestCase): @classmethod def setUpClass(cls): - cls.sds = SystemDSContext() + cls.sds = SystemDSContext(capture_stdout=True, logging_level=50) @classmethod def tearDownClass(cls): diff --git a/src/main/python/tests/algorithms/test_signal.py b/src/main/python/tests/algorithms/test_signal.py index 769228fc154..e6560741880 100644 --- a/src/main/python/tests/algorithms/test_signal.py +++ b/src/main/python/tests/algorithms/test_signal.py @@ -31,7 +31,7 @@ class TestSignal(unittest.TestCase): @classmethod def setUpClass(cls): - cls.sds = SystemDSContext() + cls.sds = SystemDSContext(capture_stdout=True, logging_level=50) @classmethod def tearDownClass(cls): diff --git a/src/main/python/tests/algorithms/test_solve.py b/src/main/python/tests/algorithms/test_solve.py index ef7c331b30b..44914917183 100644 --- a/src/main/python/tests/algorithms/test_solve.py +++ b/src/main/python/tests/algorithms/test_solve.py @@ -38,7 +38,7 @@ class TestSOLVE(unittest.TestCase): @classmethod def setUpClass(cls): - cls.sds = SystemDSContext() + cls.sds = SystemDSContext(capture_stdout=True, logging_level=50) @classmethod def tearDownClass(cls): diff --git a/src/main/python/tests/auto_tests/test_dist.py b/src/main/python/tests/auto_tests/test_dist.py index 6a3e39f05da..12041a33ffb 100644 --- a/src/main/python/tests/auto_tests/test_dist.py +++ b/src/main/python/tests/auto_tests/test_dist.py @@ -21,6 +21,8 @@ # Autogenerated By : src/main/python/generator/generator.py import unittest, contextlib, io + + class TestDIST(unittest.TestCase): def test_dist(self): # Example test case provided in python the code block @@ -35,10 +37,11 @@ def test_dist(self): out = dist(X).compute() print(out) - expected="""[[0. 3. 4.] + expected = """[[0. 3. 4.] [3. 0. 1.] [4. 1. 0.]]""" self.assertEqual(buf.getvalue().strip(), expected) + if __name__ == '__main__': unittest.main() diff --git a/src/main/python/tests/auto_tests/test_img_brightness.py b/src/main/python/tests/auto_tests/test_img_brightness.py index f30545cd769..df43d0e6018 100644 --- a/src/main/python/tests/auto_tests/test_img_brightness.py +++ b/src/main/python/tests/auto_tests/test_img_brightness.py @@ -21,6 +21,8 @@ # Autogenerated By : src/main/python/generator/generator.py import unittest, contextlib, io + + class TestIMG_BRIGHTNESS(unittest.TestCase): def test_img_brightness(self): # Example test case provided in python the code block @@ -38,9 +40,10 @@ def test_img_brightness(self): result_img = img_brightness(img, 30.0, 150).compute() print(result_img.reshape(2, 2)) - expected="""[[ 80. 130.] + expected = """[[ 80. 130.] [150. 150.]]""" self.assertEqual(buf.getvalue().strip(), expected) + if __name__ == '__main__': unittest.main() diff --git a/src/main/python/tests/auto_tests/test_img_brightness_linearized.py b/src/main/python/tests/auto_tests/test_img_brightness_linearized.py index a82bab31536..8bbedc4e7df 100644 --- a/src/main/python/tests/auto_tests/test_img_brightness_linearized.py +++ b/src/main/python/tests/auto_tests/test_img_brightness_linearized.py @@ -21,6 +21,8 @@ # Autogenerated By : src/main/python/generator/generator.py import unittest, contextlib, io + + class TestIMG_BRIGHTNESS_LINEARIZED(unittest.TestCase): def test_img_brightness_linearized(self): # Example test case provided in python the code block @@ -38,9 +40,10 @@ def test_img_brightness_linearized(self): result_img = img_brightness_linearized(img, 30.0, 255).compute() print(result_img.reshape(2, 2)) - expected="""[[ 80. 130.] + expected = """[[ 80. 130.] [180. 230.]]""" self.assertEqual(buf.getvalue().strip(), expected) + if __name__ == '__main__': unittest.main() diff --git a/src/main/python/tests/auto_tests/test_img_crop.py b/src/main/python/tests/auto_tests/test_img_crop.py index ac94a9f8338..a3393259bbd 100644 --- a/src/main/python/tests/auto_tests/test_img_crop.py +++ b/src/main/python/tests/auto_tests/test_img_crop.py @@ -21,6 +21,8 @@ # Autogenerated By : src/main/python/generator/generator.py import unittest, contextlib, io + + class TestIMG_CROP(unittest.TestCase): def test_img_crop(self): # Example test case provided in python the code block @@ -39,8 +41,9 @@ def test_img_crop(self): result_img = img_crop(img, 1, 1, 1, 1).compute() print(result_img) - expected="""[[200.]]""" + expected = """[[200.]]""" self.assertEqual(buf.getvalue().strip(), expected) + if __name__ == '__main__': unittest.main() diff --git a/src/main/python/tests/auto_tests/test_img_crop_linearized.py b/src/main/python/tests/auto_tests/test_img_crop_linearized.py index ae223721886..8f9bbe211b7 100644 --- a/src/main/python/tests/auto_tests/test_img_crop_linearized.py +++ b/src/main/python/tests/auto_tests/test_img_crop_linearized.py @@ -21,6 +21,8 @@ # Autogenerated By : src/main/python/generator/generator.py import unittest, contextlib, io + + class TestIMG_CROP_LINEARIZED(unittest.TestCase): def test_img_crop_linearized(self): # Example test case provided in python the code block @@ -39,8 +41,9 @@ def test_img_crop_linearized(self): result_img = img_crop_linearized(img, 1, 1, 1, 1, 3, 3).compute() print(result_img) - expected="""[[200.]]""" + expected = """[[200.]]""" self.assertEqual(buf.getvalue().strip(), expected) + if __name__ == '__main__': unittest.main() diff --git a/src/main/python/tests/auto_tests/test_img_cutout.py b/src/main/python/tests/auto_tests/test_img_cutout.py index e66f0aed6f2..c80c9438334 100644 --- a/src/main/python/tests/auto_tests/test_img_cutout.py +++ b/src/main/python/tests/auto_tests/test_img_cutout.py @@ -21,6 +21,8 @@ # Autogenerated By : src/main/python/generator/generator.py import unittest, contextlib, io + + class TestIMG_CUTOUT(unittest.TestCase): def test_img_cutout(self): # Example test case provided in python the code block @@ -39,10 +41,11 @@ def test_img_cutout(self): result_img = img_cutout(img, 2, 2, 1, 1, 49.).compute() print(result_img) - expected="""[[ 50. 100. 150.] + expected = """[[ 50. 100. 150.] [150. 49. 250.] [250. 200. 200.]]""" self.assertEqual(buf.getvalue().strip(), expected) + if __name__ == '__main__': unittest.main() diff --git a/src/main/python/tests/auto_tests/test_img_cutout_linearized.py b/src/main/python/tests/auto_tests/test_img_cutout_linearized.py index f553b140393..35675c0ba52 100644 --- a/src/main/python/tests/auto_tests/test_img_cutout_linearized.py +++ b/src/main/python/tests/auto_tests/test_img_cutout_linearized.py @@ -21,6 +21,8 @@ # Autogenerated By : src/main/python/generator/generator.py import unittest, contextlib, io + + class TestIMG_CUTOUT_LINEARIZED(unittest.TestCase): def test_img_cutout_linearized(self): # Example test case provided in python the code block @@ -39,10 +41,11 @@ def test_img_cutout_linearized(self): result_img = img_cutout_linearized(img, 2, 2, 1, 1, 25.0, 3, 3).compute() print(result_img.reshape(3, 3)) - expected="""[[ 50. 100. 150.] + expected = """[[ 50. 100. 150.] [150. 25. 250.] [250. 200. 200.]]""" self.assertEqual(buf.getvalue().strip(), expected) + if __name__ == '__main__': unittest.main() diff --git a/src/main/python/tests/auto_tests/test_img_invert.py b/src/main/python/tests/auto_tests/test_img_invert.py index a11ff19e99a..de10adc55d4 100644 --- a/src/main/python/tests/auto_tests/test_img_invert.py +++ b/src/main/python/tests/auto_tests/test_img_invert.py @@ -21,6 +21,8 @@ # Autogenerated By : src/main/python/generator/generator.py import unittest, contextlib, io + + class TestIMG_INVERT(unittest.TestCase): def test_img_invert(self): # Example test case provided in python the code block @@ -39,10 +41,11 @@ def test_img_invert(self): result_img = img_invert(img, 210.).compute() print(result_img) - expected="""[[200. 190. 180.] + expected = """[[200. 190. 180.] [170. 160. 150.] [140. 130. 120.]]""" self.assertEqual(buf.getvalue().strip(), expected) + if __name__ == '__main__': unittest.main() diff --git a/src/main/python/tests/auto_tests/test_img_invert_linearized.py b/src/main/python/tests/auto_tests/test_img_invert_linearized.py index 65db0866c9c..0b21ef99cdb 100644 --- a/src/main/python/tests/auto_tests/test_img_invert_linearized.py +++ b/src/main/python/tests/auto_tests/test_img_invert_linearized.py @@ -21,6 +21,8 @@ # Autogenerated By : src/main/python/generator/generator.py import unittest, contextlib, io + + class TestIMG_INVERT_LINEARIZED(unittest.TestCase): def test_img_invert_linearized(self): # Example test case provided in python the code block @@ -39,10 +41,11 @@ def test_img_invert_linearized(self): result_img = img_invert_linearized(img, 200.).compute() print(result_img.reshape(3, 3)) - expected="""[[190. 180. 170.] + expected = """[[190. 180. 170.] [160. 150. 140.] [130. 120. 110.]]""" self.assertEqual(buf.getvalue().strip(), expected) + if __name__ == '__main__': unittest.main() diff --git a/src/main/python/tests/auto_tests/test_img_mirror.py b/src/main/python/tests/auto_tests/test_img_mirror.py index 241635199c8..0210a9c39a3 100644 --- a/src/main/python/tests/auto_tests/test_img_mirror.py +++ b/src/main/python/tests/auto_tests/test_img_mirror.py @@ -21,6 +21,8 @@ # Autogenerated By : src/main/python/generator/generator.py import unittest, contextlib, io + + class TestIMG_MIRROR(unittest.TestCase): def test_img_mirror(self): # Example test case provided in python the code block @@ -39,10 +41,11 @@ def test_img_mirror(self): result_img = img_mirror(img, False).compute() print(result_img) - expected="""[[30. 20. 10.] + expected = """[[30. 20. 10.] [60. 50. 40.] [90. 80. 70.]]""" self.assertEqual(buf.getvalue().strip(), expected) + if __name__ == '__main__': unittest.main() diff --git a/src/main/python/tests/auto_tests/test_img_mirror_linearized_0.py b/src/main/python/tests/auto_tests/test_img_mirror_linearized_0.py index f5b8ba4733e..734c7cb8c41 100644 --- a/src/main/python/tests/auto_tests/test_img_mirror_linearized_0.py +++ b/src/main/python/tests/auto_tests/test_img_mirror_linearized_0.py @@ -21,6 +21,8 @@ # Autogenerated By : src/main/python/generator/generator.py import unittest, contextlib, io + + class TestIMG_MIRROR_LINEARIZED_0(unittest.TestCase): def test_img_mirror_linearized_0(self): # Example test case provided in python the code block @@ -39,10 +41,11 @@ def test_img_mirror_linearized_0(self): result_img = img_mirror_linearized(img, True, 3, 3).compute() print(result_img.reshape(3, 3)) - expected="""[[70. 80. 90.] + expected = """[[70. 80. 90.] [40. 50. 60.] [10. 20. 30.]]""" self.assertEqual(buf.getvalue().strip(), expected) + if __name__ == '__main__': unittest.main() diff --git a/src/main/python/tests/auto_tests/test_img_mirror_linearized_1.py b/src/main/python/tests/auto_tests/test_img_mirror_linearized_1.py index a9884ab19eb..bb94c9d8a61 100644 --- a/src/main/python/tests/auto_tests/test_img_mirror_linearized_1.py +++ b/src/main/python/tests/auto_tests/test_img_mirror_linearized_1.py @@ -21,6 +21,8 @@ # Autogenerated By : src/main/python/generator/generator.py import unittest, contextlib, io + + class TestIMG_MIRROR_LINEARIZED_1(unittest.TestCase): def test_img_mirror_linearized_1(self): # Example test case provided in python the code block @@ -43,7 +45,7 @@ def test_img_mirror_linearized_1(self): print(result_imgs[0].reshape(3, 3)) print(result_imgs[1].reshape(3, 3)) - expected="""[[70. 80. 90.] + expected = """[[70. 80. 90.] [40. 50. 60.] [10. 20. 30.]] [[10. 20. 30.] @@ -51,5 +53,6 @@ def test_img_mirror_linearized_1(self): [70. 80. 90.]]""" self.assertEqual(buf.getvalue().strip(), expected) + if __name__ == '__main__': unittest.main() diff --git a/src/main/python/tests/auto_tests/test_img_posterize.py b/src/main/python/tests/auto_tests/test_img_posterize.py index d0f1cd7b6cc..6d3da9440c9 100644 --- a/src/main/python/tests/auto_tests/test_img_posterize.py +++ b/src/main/python/tests/auto_tests/test_img_posterize.py @@ -21,6 +21,8 @@ # Autogenerated By : src/main/python/generator/generator.py import unittest, contextlib, io + + class TestIMG_POSTERIZE(unittest.TestCase): def test_img_posterize(self): # Example test case provided in python the code block @@ -39,10 +41,11 @@ def test_img_posterize(self): result_img = img_posterize(img, 1).compute() print(result_img) - expected="""[[ 0. 0. 0.] + expected = """[[ 0. 0. 0.] [ 0. 128. 0.] [ 0. 0. 0.]]""" self.assertEqual(buf.getvalue().strip(), expected) + if __name__ == '__main__': unittest.main() diff --git a/src/main/python/tests/auto_tests/test_img_posterize_linearized.py b/src/main/python/tests/auto_tests/test_img_posterize_linearized.py index fb2605998f8..3361cd4dc8e 100644 --- a/src/main/python/tests/auto_tests/test_img_posterize_linearized.py +++ b/src/main/python/tests/auto_tests/test_img_posterize_linearized.py @@ -21,6 +21,8 @@ # Autogenerated By : src/main/python/generator/generator.py import unittest, contextlib, io + + class TestIMG_POSTERIZE_LINEARIZED(unittest.TestCase): def test_img_posterize_linearized(self): # Example test case provided in python the code block @@ -39,10 +41,11 @@ def test_img_posterize_linearized(self): result_img = img_posterize_linearized(img, 1).compute() print(result_img.reshape(3, 3)) - expected="""[[ 0. 0. 0.] + expected = """[[ 0. 0. 0.] [ 0. 128. 0.] [ 0. 0. 0.]]""" self.assertEqual(buf.getvalue().strip(), expected) + if __name__ == '__main__': unittest.main() diff --git a/src/main/python/tests/auto_tests/test_img_rotate.py b/src/main/python/tests/auto_tests/test_img_rotate.py index ed7e8bcc435..dc316fcb0da 100644 --- a/src/main/python/tests/auto_tests/test_img_rotate.py +++ b/src/main/python/tests/auto_tests/test_img_rotate.py @@ -21,6 +21,8 @@ # Autogenerated By : src/main/python/generator/generator.py import unittest, contextlib, io + + class TestIMG_ROTATE(unittest.TestCase): def test_img_rotate(self): # Example test case provided in python the code block @@ -39,10 +41,11 @@ def test_img_rotate(self): result_img = img_rotate(img, 3.14159, 255.).compute() print(result_img) - expected="""[[90. 80. 70.] + expected = """[[90. 80. 70.] [60. 50. 40.] [30. 20. 10.]]""" self.assertEqual(buf.getvalue().strip(), expected) + if __name__ == '__main__': unittest.main() diff --git a/src/main/python/tests/auto_tests/test_img_rotate_linearized.py b/src/main/python/tests/auto_tests/test_img_rotate_linearized.py index 1f2d7ba1f6d..60f3b4c6f10 100644 --- a/src/main/python/tests/auto_tests/test_img_rotate_linearized.py +++ b/src/main/python/tests/auto_tests/test_img_rotate_linearized.py @@ -21,6 +21,8 @@ # Autogenerated By : src/main/python/generator/generator.py import unittest, contextlib, io + + class TestIMG_ROTATE_LINEARIZED(unittest.TestCase): def test_img_rotate_linearized(self): # Example test case provided in python the code block @@ -39,10 +41,11 @@ def test_img_rotate_linearized(self): result_img = img_rotate_linearized(img, 3.14159, 255., 3, 3).compute() print(result_img.reshape(3, 3)) - expected="""[[90. 80. 70.] + expected = """[[90. 80. 70.] [60. 50. 40.] [30. 20. 10.]]""" self.assertEqual(buf.getvalue().strip(), expected) + if __name__ == '__main__': unittest.main() diff --git a/src/main/python/tests/auto_tests/test_img_sample_pairing.py b/src/main/python/tests/auto_tests/test_img_sample_pairing.py index 87c50493c41..3feac94aa2f 100644 --- a/src/main/python/tests/auto_tests/test_img_sample_pairing.py +++ b/src/main/python/tests/auto_tests/test_img_sample_pairing.py @@ -21,6 +21,8 @@ # Autogenerated By : src/main/python/generator/generator.py import unittest, contextlib, io + + class TestIMG_SAMPLE_PAIRING(unittest.TestCase): def test_img_sample_pairing(self): # Example test case provided in python the code block @@ -44,10 +46,11 @@ def test_img_sample_pairing(self): result_img = img_sample_pairing(img_in1, img_in2, 0.5).compute() print(result_img) - expected="""[[ 20. 30. 40.] + expected = """[[ 20. 30. 40.] [ 50. 60. 70.] [ 80. 90. 100.]]""" self.assertEqual(buf.getvalue().strip(), expected) + if __name__ == '__main__': unittest.main() diff --git a/src/main/python/tests/auto_tests/test_img_sample_pairing_linearized.py b/src/main/python/tests/auto_tests/test_img_sample_pairing_linearized.py index 5b550735e35..39d66c56a44 100644 --- a/src/main/python/tests/auto_tests/test_img_sample_pairing_linearized.py +++ b/src/main/python/tests/auto_tests/test_img_sample_pairing_linearized.py @@ -21,6 +21,8 @@ # Autogenerated By : src/main/python/generator/generator.py import unittest, contextlib, io + + class TestIMG_SAMPLE_PAIRING_LINEARIZED(unittest.TestCase): def test_img_sample_pairing_linearized(self): # Example test case provided in python the code block @@ -44,10 +46,11 @@ def test_img_sample_pairing_linearized(self): result_img = img_sample_pairing_linearized(img_in1, img_in2, 0.5).compute() print(result_img.reshape(3, 3)) - expected="""[[ 20. 30. 40.] + expected = """[[ 20. 30. 40.] [ 50. 60. 70.] [ 80. 90. 100.]]""" self.assertEqual(buf.getvalue().strip(), expected) + if __name__ == '__main__': unittest.main() diff --git a/src/main/python/tests/auto_tests/test_img_shear.py b/src/main/python/tests/auto_tests/test_img_shear.py index 5571e9d3cb5..faad011b864 100644 --- a/src/main/python/tests/auto_tests/test_img_shear.py +++ b/src/main/python/tests/auto_tests/test_img_shear.py @@ -21,6 +21,8 @@ # Autogenerated By : src/main/python/generator/generator.py import unittest, contextlib, io + + class TestIMG_SHEAR(unittest.TestCase): def test_img_shear(self): # Example test case provided in python the code block @@ -39,10 +41,11 @@ def test_img_shear(self): result_img = img_shear(img, 1., 0., 255).compute() print(result_img) - expected="""[[ 10. 20. 30.] + expected = """[[ 10. 20. 30.] [255. 40. 50.] [255. 255. 70.]]""" self.assertEqual(buf.getvalue().strip(), expected) + if __name__ == '__main__': unittest.main() diff --git a/src/main/python/tests/auto_tests/test_img_shear_linearized.py b/src/main/python/tests/auto_tests/test_img_shear_linearized.py index d8963beaebd..b57223f14b1 100644 --- a/src/main/python/tests/auto_tests/test_img_shear_linearized.py +++ b/src/main/python/tests/auto_tests/test_img_shear_linearized.py @@ -21,6 +21,8 @@ # Autogenerated By : src/main/python/generator/generator.py import unittest, contextlib, io + + class TestIMG_SHEAR_LINEARIZED(unittest.TestCase): def test_img_shear_linearized(self): # Example test case provided in python the code block @@ -39,10 +41,11 @@ def test_img_shear_linearized(self): result_img = img_shear_linearized(img, 1., 0., 0., 3, 3).compute() print(result_img.reshape(3, 3)) - expected="""[[10. 20. 30.] + expected = """[[10. 20. 30.] [ 0. 40. 50.] [ 0. 0. 70.]]""" self.assertEqual(buf.getvalue().strip(), expected) + if __name__ == '__main__': unittest.main() diff --git a/src/main/python/tests/auto_tests/test_img_transform.py b/src/main/python/tests/auto_tests/test_img_transform.py index f1a91bc6d8e..c43575853e8 100644 --- a/src/main/python/tests/auto_tests/test_img_transform.py +++ b/src/main/python/tests/auto_tests/test_img_transform.py @@ -21,6 +21,8 @@ # Autogenerated By : src/main/python/generator/generator.py import unittest, contextlib, io + + class TestIMG_TRANSFORM(unittest.TestCase): def test_img_transform(self): # Example test case provided in python the code block @@ -39,10 +41,11 @@ def test_img_transform(self): result_img = img_transform(img, 3, 3, -1., 0., 2., 0., 1., 0., 255.).compute() print(result_img) - expected="""[[ 20. 10. 255.] + expected = """[[ 20. 10. 255.] [ 50. 40. 255.] [ 80. 70. 255.]]""" self.assertEqual(buf.getvalue().strip(), expected) + if __name__ == '__main__': unittest.main() diff --git a/src/main/python/tests/auto_tests/test_img_transform_linearized.py b/src/main/python/tests/auto_tests/test_img_transform_linearized.py index 6992968486b..c1279fe4f5e 100644 --- a/src/main/python/tests/auto_tests/test_img_transform_linearized.py +++ b/src/main/python/tests/auto_tests/test_img_transform_linearized.py @@ -21,6 +21,8 @@ # Autogenerated By : src/main/python/generator/generator.py import unittest, contextlib, io + + class TestIMG_TRANSFORM_LINEARIZED(unittest.TestCase): def test_img_transform_linearized(self): # Example test case provided in python the code block @@ -39,10 +41,11 @@ def test_img_transform_linearized(self): result_img = img_transform_linearized(img, 3, 3, -1., 0., 2., 0., 1., 0., 255., 3, 3).compute() print(result_img.reshape(3, 3)) - expected="""[[ 20. 10. 255.] + expected = """[[ 20. 10. 255.] [ 50. 40. 255.] [ 80. 70. 255.]]""" self.assertEqual(buf.getvalue().strip(), expected) + if __name__ == '__main__': unittest.main() diff --git a/src/main/python/tests/auto_tests/test_img_translate.py b/src/main/python/tests/auto_tests/test_img_translate.py index 22f63e25f43..8e6088168e4 100644 --- a/src/main/python/tests/auto_tests/test_img_translate.py +++ b/src/main/python/tests/auto_tests/test_img_translate.py @@ -21,6 +21,8 @@ # Autogenerated By : src/main/python/generator/generator.py import unittest, contextlib, io + + class TestIMG_TRANSLATE(unittest.TestCase): def test_img_translate(self): # Example test case provided in python the code block @@ -39,10 +41,11 @@ def test_img_translate(self): result_img = img_translate(img, 1., 1., 3, 3, 255.).compute() print(result_img) - expected="""[[255. 255. 255.] + expected = """[[255. 255. 255.] [255. 10. 20.] [255. 40. 50.]]""" self.assertEqual(buf.getvalue().strip(), expected) + if __name__ == '__main__': unittest.main() diff --git a/src/main/python/tests/auto_tests/test_img_translate_linearized.py b/src/main/python/tests/auto_tests/test_img_translate_linearized.py index 86c894b1c55..936adf856c3 100644 --- a/src/main/python/tests/auto_tests/test_img_translate_linearized.py +++ b/src/main/python/tests/auto_tests/test_img_translate_linearized.py @@ -21,6 +21,8 @@ # Autogenerated By : src/main/python/generator/generator.py import unittest, contextlib, io + + class TestIMG_TRANSLATE_LINEARIZED(unittest.TestCase): def test_img_translate_linearized(self): # Example test case provided in python the code block @@ -39,10 +41,11 @@ def test_img_translate_linearized(self): result_img = img_translate_linearized(img, 1., 1., 3, 3, 255.0, 3, 3).compute() print(result_img.reshape(3, 3)) - expected="""[[255. 255. 255.] + expected = """[[255. 255. 255.] [255. 10. 20.] [255. 40. 50.]]""" self.assertEqual(buf.getvalue().strip(), expected) + if __name__ == '__main__': unittest.main() diff --git a/src/main/python/tests/auto_tests/test_lm.py b/src/main/python/tests/auto_tests/test_lm.py index 5c4e83bc8b7..45ee569cf13 100644 --- a/src/main/python/tests/auto_tests/test_lm.py +++ b/src/main/python/tests/auto_tests/test_lm.py @@ -21,6 +21,8 @@ # Autogenerated By : src/main/python/generator/generator.py import unittest, contextlib, io + + class TestLM(unittest.TestCase): def test_lm(self): # Example test case provided in python the code block @@ -38,7 +40,7 @@ def test_lm(self): weights = lm(sds.from_numpy(features), sds.from_numpy(y)).compute() print(weights) - expected="""[[-0.11538199] + expected = """[[-0.11538199] [-0.20386541] [-0.39956034] [ 1.04078623] @@ -55,5 +57,6 @@ def test_lm(self): [ 0.37957689]]""" self.assertEqual(buf.getvalue().strip(), expected) + if __name__ == '__main__': unittest.main() diff --git a/src/main/python/tests/auto_tests/test_normalize.py b/src/main/python/tests/auto_tests/test_normalize.py index 8d6e910a429..b5ba8373494 100644 --- a/src/main/python/tests/auto_tests/test_normalize.py +++ b/src/main/python/tests/auto_tests/test_normalize.py @@ -21,6 +21,8 @@ # Autogenerated By : src/main/python/generator/generator.py import unittest, contextlib, io + + class TestNORMALIZE(unittest.TestCase): def test_normalize(self): # Example test case provided in python the code block @@ -35,9 +37,10 @@ def test_normalize(self): Y, cmin, cmax = normalize(X).compute() print(Y) - expected="""[[0. 0.] + expected = """[[0. 0.] [1. 1.]]""" self.assertEqual(buf.getvalue().strip(), expected) + if __name__ == '__main__': unittest.main() diff --git a/src/main/python/tests/auto_tests/test_randomForest.py b/src/main/python/tests/auto_tests/test_randomForest.py index 917e6524d3f..42115c0b152 100644 --- a/src/main/python/tests/auto_tests/test_randomForest.py +++ b/src/main/python/tests/auto_tests/test_randomForest.py @@ -21,6 +21,8 @@ # Autogenerated By : src/main/python/generator/generator.py import unittest, contextlib, io + + class TestRANDOMFOREST(unittest.TestCase): def test_randomForest(self): # Example test case provided in python the code block @@ -61,11 +63,12 @@ def test_randomForest(self): preds = randomForestPredict(X_sds, ctypes, M).compute() print(preds) - expected="""[[1.] + expected = """[[1.] [1.] [2.] [2.]]""" self.assertEqual(buf.getvalue().strip(), expected) + if __name__ == '__main__': unittest.main() diff --git a/src/main/python/tests/auto_tests/test_randomForestPredict.py b/src/main/python/tests/auto_tests/test_randomForestPredict.py index 48b8e06bdf9..41fba0a4d86 100644 --- a/src/main/python/tests/auto_tests/test_randomForestPredict.py +++ b/src/main/python/tests/auto_tests/test_randomForestPredict.py @@ -21,6 +21,8 @@ # Autogenerated By : src/main/python/generator/generator.py import unittest, contextlib, io + + class TestRANDOMFORESTPREDICT(unittest.TestCase): def test_randomForestPredict(self): # Example test case provided in python the code block @@ -61,11 +63,12 @@ def test_randomForestPredict(self): preds = randomForestPredict(X_sds, ctypes, M).compute() print(preds) - expected="""[[1.] + expected = """[[1.] [1.] [2.] [2.]]""" self.assertEqual(buf.getvalue().strip(), expected) + if __name__ == '__main__': unittest.main() diff --git a/src/main/python/tests/auto_tests/test_toOneHot.py b/src/main/python/tests/auto_tests/test_toOneHot.py index 4d6b15e79fa..7bc5cbde1f4 100644 --- a/src/main/python/tests/auto_tests/test_toOneHot.py +++ b/src/main/python/tests/auto_tests/test_toOneHot.py @@ -21,6 +21,8 @@ # Autogenerated By : src/main/python/generator/generator.py import unittest, contextlib, io + + class TestTOONEHOT(unittest.TestCase): def test_toOneHot(self): # Example test case provided in python the code block @@ -35,11 +37,12 @@ def test_toOneHot(self): Y = toOneHot(X, numClasses=3).compute() print(Y) - expected="""[[1. 0. 0.] + expected = """[[1. 0. 0.] [0. 0. 1.] [0. 1. 0.] [0. 0. 1.]]""" self.assertEqual(buf.getvalue().strip(), expected) + if __name__ == '__main__': unittest.main() diff --git a/src/main/python/tests/basics/test___str__.py b/src/main/python/tests/basics/test___str__.py index adaa4d23830..559f0cb1f34 100644 --- a/src/main/python/tests/basics/test___str__.py +++ b/src/main/python/tests/basics/test___str__.py @@ -30,7 +30,7 @@ class Test__str__(unittest.TestCase): @classmethod def setUpClass(cls): - cls.sds = SystemDSContext() + cls.sds = SystemDSContext(capture_stdout=True, logging_level=50) @classmethod def tearDownClass(cls): diff --git a/src/main/python/tests/basics/test_context_creation.py b/src/main/python/tests/basics/test_context_creation.py index 3d80420d4ec..0b03d438b4f 100644 --- a/src/main/python/tests/basics/test_context_creation.py +++ b/src/main/python/tests/basics/test_context_creation.py @@ -36,12 +36,10 @@ def test_random_port_debug(self): stderr_buffer = io.StringIO() with redirect_stderr(stderr_buffer): - sds1 = SystemDSContext(logging_level=10) + sds1 = SystemDSContext(logging_level=10, capture_stdout=True) sds1.close() err = stderr_buffer.getvalue() - print("Captured STDERR:\n", err) - print("END OF STDERR\n") self.assertIn("DEBUG SystemDSContext: Logging setup done", err) @@ -51,71 +49,65 @@ def test_random_port_debug2(self): stderr_buffer = io.StringIO() with redirect_stderr(stderr_buffer): - sds1 = SystemDSContext() + sds1 = SystemDSContext(capture_stdout=True) sds1.close() err = stderr_buffer.getvalue() - print("\nCaptured STDERR (ctx1):\n", err) - print("END OF STDERR\n") # clear the buffer stderr_buffer.seek(0) stderr_buffer.truncate(0) - sds2 = SystemDSContext(logging_level=10) + sds2 = SystemDSContext(logging_level=10, capture_stdout=True) sds2.close() err = stderr_buffer.getvalue() - print("\nCaptured STDERR (ctx2):\n", err) - print("END OF STDERR\n") self.assertIn("DEBUG SystemDSContext: Logging setup done", err) def test_random_port_debug3(self): SystemDSContext._logging_initialized = False - sds1 = SystemDSContext() + sds1 = SystemDSContext(capture_stdout=True) sds1.close() stderr_buffer = io.StringIO() with redirect_stderr(stderr_buffer): - sds2 = SystemDSContext(logging_level=10) + sds2 = SystemDSContext(logging_level=10, capture_stdout=True) sds2.close() err = stderr_buffer.getvalue() - print("\nCaptured STDERR (ctx2):\n", err) - print("END OF STDERR\n") self.assertIn("DEBUG SystemDSContext: Logging setup done", err) def test_random_port(self): - sds1 = SystemDSContext() + sds1 = SystemDSContext(capture_stdout=True) sds1.close() def test_two_random_port(self): - sds1 = SystemDSContext(logging_level=20) - sds2 = SystemDSContext(logging_level=20) + sds1 = SystemDSContext(capture_stdout=True) + sds2 = SystemDSContext(capture_stdout=True) sds1.close() sds2.close() def test_same_port(self): # Same port should graciously change port - sds1 = SystemDSContext(port=9415) - sds2 = SystemDSContext(port=9415) + sds1 = SystemDSContext(port=9415, capture_stdout=True) + sds2 = SystemDSContext(port=9415, capture_stdout=True) sds1.close() sds2.close() def test_create_10_contexts(self): # Creating multiple contexts and closing them should be no problem. for _ in range(0, 10): - SystemDSContext().close() + SystemDSContext(capture_stdout=True).close() def test_create_multiple_context(self): # Creating multiple contexts in sequence but open at the same time is okay. - a = SystemDSContext() - b = SystemDSContext() - c = SystemDSContext() - d = SystemDSContext() + a = SystemDSContext(capture_stdout=True) + b = SystemDSContext(capture_stdout=True) + c = SystemDSContext(capture_stdout=True) + d = SystemDSContext(capture_stdout=True) a.close() b.close() diff --git a/src/main/python/tests/basics/test_context_stats.py b/src/main/python/tests/basics/test_context_stats.py index 25a83e18003..853fe9e3e1f 100644 --- a/src/main/python/tests/basics/test_context_stats.py +++ b/src/main/python/tests/basics/test_context_stats.py @@ -33,7 +33,7 @@ class TestContextCreation(unittest.TestCase): @classmethod def setUpClass(cls): - cls.sds = SystemDSContext() + cls.sds = SystemDSContext(capture_stdout=True, logging_level=50) @classmethod def tearDownClass(cls): diff --git a/src/main/python/tests/examples/tutorials/test_adult.py b/src/main/python/tests/examples/tutorials/test_adult.py index f0711eeabb1..e3ccfed3538 100644 --- a/src/main/python/tests/examples/tutorials/test_adult.py +++ b/src/main/python/tests/examples/tutorials/test_adult.py @@ -46,7 +46,7 @@ class TestAdultStandardML(unittest.TestCase): @classmethod def setUpClass(cls): - cls.sds = SystemDSContext() + cls.sds = SystemDSContext(capture_stdout=True, logging_level=50) cls.d = DataManager() @classmethod diff --git a/src/main/python/tests/examples/tutorials/test_adult_neural.py b/src/main/python/tests/examples/tutorials/test_adult_neural.py index 3f5ed34c54e..2de6497806c 100644 --- a/src/main/python/tests/examples/tutorials/test_adult_neural.py +++ b/src/main/python/tests/examples/tutorials/test_adult_neural.py @@ -53,7 +53,7 @@ class TestAdultNeural(unittest.TestCase): @classmethod def setUpClass(cls): - cls.sds = SystemDSContext() + cls.sds = SystemDSContext(capture_stdout=True, logging_level=50) cls.d = DataManager() shutil.rmtree(cls.network_dir, ignore_errors=True) diff --git a/src/main/python/tests/examples/tutorials/test_mnist.py b/src/main/python/tests/examples/tutorials/test_mnist.py index 90950094dbf..f6a221fef60 100644 --- a/src/main/python/tests/examples/tutorials/test_mnist.py +++ b/src/main/python/tests/examples/tutorials/test_mnist.py @@ -37,7 +37,7 @@ class Test_DMLScript(unittest.TestCase): @classmethod def setUpClass(cls): - cls.sds = SystemDSContext() + cls.sds = SystemDSContext(capture_stdout=True, logging_level=50) cls.d = DataManager() @classmethod diff --git a/src/main/python/tests/federated/test_federated_adult_neural.py b/src/main/python/tests/federated/test_federated_adult_neural.py index 96ad3456dd1..783bf730d85 100644 --- a/src/main/python/tests/federated/test_federated_adult_neural.py +++ b/src/main/python/tests/federated/test_federated_adult_neural.py @@ -129,7 +129,7 @@ class TestFederatedAdultNeural(unittest.TestCase): @classmethod def setUpClass(cls): - cls.sds = SystemDSContext() + cls.sds = SystemDSContext(capture_stdout=True, logging_level=50) cls.d = DataManager() cls.data_path_train = create_row_federated_dataset( "train_data", cls.d.get_train_data_pandas()[0 : cls.train_count] diff --git a/src/main/python/tests/federated/test_federated_aggregations.py b/src/main/python/tests/federated/test_federated_aggregations.py index e19d91dc1cb..274d8127b59 100644 --- a/src/main/python/tests/federated/test_federated_aggregations.py +++ b/src/main/python/tests/federated/test_federated_aggregations.py @@ -72,7 +72,7 @@ class TestFederatedAggFn(unittest.TestCase): @classmethod def setUpClass(cls): - cls.sds = SystemDSContext() + cls.sds = SystemDSContext(capture_stdout=True, logging_level=50) @classmethod def tearDownClass(cls): diff --git a/src/main/python/tests/federated/test_federated_aggregations_noHeader.py b/src/main/python/tests/federated/test_federated_aggregations_noHeader.py index be1a92a8f7d..c29531736be 100644 --- a/src/main/python/tests/federated/test_federated_aggregations_noHeader.py +++ b/src/main/python/tests/federated/test_federated_aggregations_noHeader.py @@ -70,7 +70,7 @@ class TestFederatedAggFn(unittest.TestCase): @classmethod def setUpClass(cls): - cls.sds = SystemDSContext() + cls.sds = SystemDSContext(capture_stdout=True, logging_level=50) @classmethod def tearDownClass(cls): diff --git a/src/main/python/tests/federated/test_federated_basic.py b/src/main/python/tests/federated/test_federated_basic.py index 8910084e989..7d40b2014ca 100644 --- a/src/main/python/tests/federated/test_federated_basic.py +++ b/src/main/python/tests/federated/test_federated_basic.py @@ -72,7 +72,7 @@ class TestFederatedAggFn(unittest.TestCase): @classmethod def setUpClass(cls): - cls.sds = SystemDSContext() + cls.sds = SystemDSContext(capture_stdout=True, logging_level=50) @classmethod def tearDownClass(cls): diff --git a/src/main/python/tests/federated/test_federated_matrix_mult.py b/src/main/python/tests/federated/test_federated_matrix_mult.py index dcdeaca42d4..ae862e5eb71 100644 --- a/src/main/python/tests/federated/test_federated_matrix_mult.py +++ b/src/main/python/tests/federated/test_federated_matrix_mult.py @@ -75,7 +75,7 @@ class TestFederatedAggFn(unittest.TestCase): @classmethod def setUpClass(cls): - cls.sds = SystemDSContext() + cls.sds = SystemDSContext(capture_stdout=True, logging_level=50) cls.sds.federated([fed1], [([0, 0], [dim, dim])]).write( fed1_file, format="federated" ).compute() diff --git a/src/main/python/tests/federated/test_federated_mnist.py b/src/main/python/tests/federated/test_federated_mnist.py index cb5e9641165..46f14658eee 100644 --- a/src/main/python/tests/federated/test_federated_mnist.py +++ b/src/main/python/tests/federated/test_federated_mnist.py @@ -100,7 +100,7 @@ class TestFederatedMnist(unittest.TestCase): @classmethod def setUpClass(cls): - cls.sds = SystemDSContext() + cls.sds = SystemDSContext(capture_stdout=True, logging_level=50) cls.d = DataManager() @classmethod diff --git a/src/main/python/tests/federated/test_federated_read.py b/src/main/python/tests/federated/test_federated_read.py index 927d5d5fc34..7397439bf1a 100644 --- a/src/main/python/tests/federated/test_federated_read.py +++ b/src/main/python/tests/federated/test_federated_read.py @@ -70,7 +70,7 @@ class TestFederatedAggFn(unittest.TestCase): @classmethod def setUpClass(cls): - cls.sds = SystemDSContext() + cls.sds = SystemDSContext(capture_stdout=True, logging_level=50) cls.sds.federated([fed1], [([0, 0], [dim, dim])]).write( fed1_file, format="federated" ).compute() diff --git a/src/main/python/tests/frame/test_hyperband.py b/src/main/python/tests/frame/test_hyperband.py index 1f4973c611b..0f6c4d864fb 100644 --- a/src/main/python/tests/frame/test_hyperband.py +++ b/src/main/python/tests/frame/test_hyperband.py @@ -44,7 +44,7 @@ class TestHyperband(unittest.TestCase): @classmethod def setUpClass(cls): - cls.sds = SystemDSContext() + cls.sds = SystemDSContext(capture_stdout=True, logging_level=50) @classmethod def tearDownClass(cls): diff --git a/src/main/python/tests/frame/test_rIndexing.py b/src/main/python/tests/frame/test_rIndexing.py index 060edb07c07..d4689cc55e3 100644 --- a/src/main/python/tests/frame/test_rIndexing.py +++ b/src/main/python/tests/frame/test_rIndexing.py @@ -35,7 +35,7 @@ class Test_rIndexing(unittest.TestCase): @classmethod def setUpClass(cls): - cls.sds = SystemDSContext() + cls.sds = SystemDSContext(capture_stdout=True, logging_level=50) @classmethod def tearDownClass(cls): diff --git a/src/main/python/tests/frame/test_r_c_bind.py b/src/main/python/tests/frame/test_r_c_bind.py index 6a69c8e814d..23742950e65 100644 --- a/src/main/python/tests/frame/test_r_c_bind.py +++ b/src/main/python/tests/frame/test_r_c_bind.py @@ -60,7 +60,7 @@ class TestRCBind(unittest.TestCase): @classmethod def setUpClass(cls): - cls.sds = SystemDSContext() + cls.sds = SystemDSContext(capture_stdout=True, logging_level=50) @classmethod def tearDownClass(cls): diff --git a/src/main/python/tests/frame/test_replace.py b/src/main/python/tests/frame/test_replace.py index 7adafb3050a..08c47fcf831 100644 --- a/src/main/python/tests/frame/test_replace.py +++ b/src/main/python/tests/frame/test_replace.py @@ -39,7 +39,7 @@ class TestReplaceFrame(unittest.TestCase): @classmethod def setUpClass(cls): - cls.sds = SystemDSContext() + cls.sds = SystemDSContext(capture_stdout=True, logging_level=50) @classmethod def tearDownClass(cls): diff --git a/src/main/python/tests/frame/test_slice.py b/src/main/python/tests/frame/test_slice.py index 5abb46cd3b4..471653ee1b3 100644 --- a/src/main/python/tests/frame/test_slice.py +++ b/src/main/python/tests/frame/test_slice.py @@ -40,7 +40,7 @@ class TestFederatedAggFn(unittest.TestCase): @classmethod def setUpClass(cls): - cls.sds = SystemDSContext() + cls.sds = SystemDSContext(capture_stdout=True, logging_level=50) @classmethod def tearDownClass(cls): diff --git a/src/main/python/tests/frame/test_transform_apply.py b/src/main/python/tests/frame/test_transform_apply.py index 9cbd22292e7..420f8afcba0 100644 --- a/src/main/python/tests/frame/test_transform_apply.py +++ b/src/main/python/tests/frame/test_transform_apply.py @@ -36,7 +36,7 @@ class TestTransformApply(unittest.TestCase): @classmethod def setUpClass(cls): - cls.sds = SystemDSContext() + cls.sds = SystemDSContext(capture_stdout=True, logging_level=50) @classmethod def tearDownClass(cls): diff --git a/src/main/python/tests/frame/test_transform_encode.py b/src/main/python/tests/frame/test_transform_encode.py index c3ae837a557..a6388ffb0b9 100644 --- a/src/main/python/tests/frame/test_transform_encode.py +++ b/src/main/python/tests/frame/test_transform_encode.py @@ -39,7 +39,7 @@ class TestTransformEncode(unittest.TestCase): @classmethod def setUpClass(cls): - cls.sds = SystemDSContext() + cls.sds = SystemDSContext(capture_stdout=True, logging_level=50) @classmethod def tearDownClass(cls): diff --git a/src/main/python/tests/frame/test_write_read.py b/src/main/python/tests/frame/test_write_read.py index d7fdbd06cba..2b24cc5ab89 100644 --- a/src/main/python/tests/frame/test_write_read.py +++ b/src/main/python/tests/frame/test_write_read.py @@ -42,7 +42,7 @@ class TestWriteRead(unittest.TestCase): @classmethod def setUpClass(cls): - cls.sds = SystemDSContext() + cls.sds = SystemDSContext(capture_stdout=True, logging_level=50) @classmethod def tearDownClass(cls): diff --git a/src/main/python/tests/iotests/test_io_pandas_systemds.py b/src/main/python/tests/iotests/test_io_pandas_systemds.py index 7f599ea163d..214bc7475ad 100644 --- a/src/main/python/tests/iotests/test_io_pandas_systemds.py +++ b/src/main/python/tests/iotests/test_io_pandas_systemds.py @@ -46,7 +46,7 @@ class TestPandasFromToSystemds(unittest.TestCase): @classmethod def setUpClass(cls): - cls.sds = SystemDSContext() + cls.sds = SystemDSContext(capture_stdout=True, logging_level=50) if not os.path.exists(cls.temp_dir): os.makedirs(cls.temp_dir) diff --git a/src/main/python/tests/list/test_list.py b/src/main/python/tests/list/test_list.py index 20835286ad1..b6b3e2af1f1 100644 --- a/src/main/python/tests/list/test_list.py +++ b/src/main/python/tests/list/test_list.py @@ -32,7 +32,7 @@ class TestListOperations(unittest.TestCase): @classmethod def setUpClass(cls): - cls.sds = SystemDSContext() + cls.sds = SystemDSContext(capture_stdout=True, logging_level=50) @classmethod def tearDownClass(cls): diff --git a/src/main/python/tests/list/test_list_readwrite.py b/src/main/python/tests/list/test_list_readwrite.py index f43d0fc3d57..d36b35cfdb7 100644 --- a/src/main/python/tests/list/test_list_readwrite.py +++ b/src/main/python/tests/list/test_list_readwrite.py @@ -33,7 +33,7 @@ class TestListOperations(unittest.TestCase): @classmethod def setUpClass(cls): - cls.sds = SystemDSContext() + cls.sds = SystemDSContext(capture_stdout=True, logging_level=50) @classmethod def tearDownClass(cls): diff --git a/src/main/python/tests/list/test_list_unknown.py b/src/main/python/tests/list/test_list_unknown.py index f5aecb8669f..68e9945533d 100644 --- a/src/main/python/tests/list/test_list_unknown.py +++ b/src/main/python/tests/list/test_list_unknown.py @@ -34,7 +34,7 @@ class TestListOperationsUnknown(unittest.TestCase): @classmethod def setUpClass(cls): - cls.sds = SystemDSContext() + cls.sds = SystemDSContext(capture_stdout=True, logging_level=50) @classmethod def tearDownClass(cls): diff --git a/src/main/python/tests/matrix/test_aggregations.py b/src/main/python/tests/matrix/test_aggregations.py index 597bcfc9f5b..bfd713b0d71 100644 --- a/src/main/python/tests/matrix/test_aggregations.py +++ b/src/main/python/tests/matrix/test_aggregations.py @@ -39,7 +39,7 @@ class TestMatrixAggFn(unittest.TestCase): @classmethod def setUpClass(cls): - cls.sds = SystemDSContext() + cls.sds = SystemDSContext(capture_stdout=True, logging_level=50) @classmethod def tearDownClass(cls): diff --git a/src/main/python/tests/matrix/test_arg_min_max.py b/src/main/python/tests/matrix/test_arg_min_max.py index 602a9dfee27..7d37a966f96 100644 --- a/src/main/python/tests/matrix/test_arg_min_max.py +++ b/src/main/python/tests/matrix/test_arg_min_max.py @@ -39,7 +39,7 @@ def weighted_quantiles(values, weights, quantiles=0.5): class TestARGMINMAX(unittest.TestCase): def setUp(self): - self.sds = SystemDSContext() + self.sds = SystemDSContext(capture_stdout=True, logging_level=50) def tearDown(self): self.sds.close() @@ -58,7 +58,7 @@ def test_argmin_basic2(self): def test_argmin_basic3(self): sds_input = self.sds.from_numpy(m) - sds_result = sds_input.argmin().compute(verbose=True) + sds_result = sds_input.argmin().compute() np_result = np.argmin(m) assert np.allclose(sds_result - 1, np_result, 1e-9) diff --git a/src/main/python/tests/matrix/test_binary_op.py b/src/main/python/tests/matrix/test_binary_op.py index 582cc8b8f5b..abb73d2ab4c 100644 --- a/src/main/python/tests/matrix/test_binary_op.py +++ b/src/main/python/tests/matrix/test_binary_op.py @@ -40,7 +40,7 @@ class TestBinaryOp(unittest.TestCase): @classmethod def setUpClass(cls): - cls.sds = SystemDSContext() + cls.sds = SystemDSContext(capture_stdout=True, logging_level=50) @classmethod def tearDownClass(cls): diff --git a/src/main/python/tests/matrix/test_block_converter.py b/src/main/python/tests/matrix/test_block_converter.py index 3e132b42384..ef4b28b1bc4 100644 --- a/src/main/python/tests/matrix/test_block_converter.py +++ b/src/main/python/tests/matrix/test_block_converter.py @@ -35,7 +35,7 @@ class Test_MatrixBlockConverter(unittest.TestCase): @classmethod def setUpClass(cls): - cls.sds = SystemDSContext() + cls.sds = SystemDSContext(capture_stdout=True, logging_level=50) @classmethod def tearDownClass(cls): diff --git a/src/main/python/tests/matrix/test_block_converter_unix_pipe.py b/src/main/python/tests/matrix/test_block_converter_unix_pipe.py index 53a2eb4630f..c24a9357c84 100644 --- a/src/main/python/tests/matrix/test_block_converter_unix_pipe.py +++ b/src/main/python/tests/matrix/test_block_converter_unix_pipe.py @@ -36,7 +36,7 @@ class TestMatrixBlockConverterUnixPipe(unittest.TestCase): @classmethod def setUpClass(cls): cls.sds = SystemDSContext( - data_transfer_mode=1, logging_level=10, capture_stdout=True + data_transfer_mode=1, logging_level=50, capture_stdout=True ) if not os.path.exists(cls.temp_dir): os.makedirs(cls.temp_dir) @@ -63,7 +63,7 @@ def test_python_to_java(self): matrix_sds = self.sds.from_numpy(matrix) matrix_sds.write( self.temp_dir + "into_systemds_matrix.csv", format="csv", header=False - ).compute(verbose=True) + ).compute() # Read the CSV file using pandas result_df = pd.read_csv( diff --git a/src/main/python/tests/matrix/test_casting.py b/src/main/python/tests/matrix/test_casting.py index f990ec09d3d..f1f3f6f068f 100644 --- a/src/main/python/tests/matrix/test_casting.py +++ b/src/main/python/tests/matrix/test_casting.py @@ -28,7 +28,7 @@ class TestDIAG(unittest.TestCase): def setUp(self): - self.sds = SystemDSContext() + self.sds = SystemDSContext(capture_stdout=True, logging_level=50) def tearDown(self): self.sds.close() diff --git a/src/main/python/tests/matrix/test_ceil.py b/src/main/python/tests/matrix/test_ceil.py index c0db01fb375..454b4e582eb 100644 --- a/src/main/python/tests/matrix/test_ceil.py +++ b/src/main/python/tests/matrix/test_ceil.py @@ -26,7 +26,7 @@ class TestCEIL(unittest.TestCase): def setUp(self): - self.sds = SystemDSContext() + self.sds = SystemDSContext(capture_stdout=True, logging_level=50) def tearDown(self): self.sds.close() diff --git a/src/main/python/tests/matrix/test_cholesky.py b/src/main/python/tests/matrix/test_cholesky.py index d6ba5ba232f..8a4a3bfbeb8 100644 --- a/src/main/python/tests/matrix/test_cholesky.py +++ b/src/main/python/tests/matrix/test_cholesky.py @@ -37,7 +37,7 @@ class TestCholesky(unittest.TestCase): @classmethod def setUpClass(cls): - cls.sds = SystemDSContext(11412) + cls.sds = SystemDSContext(11412, capture_stdout=True, logging_level=50) @classmethod def tearDownClass(cls): diff --git a/src/main/python/tests/matrix/test_cumulative.py b/src/main/python/tests/matrix/test_cumulative.py index 963f1014170..05cee02c3dd 100644 --- a/src/main/python/tests/matrix/test_cumulative.py +++ b/src/main/python/tests/matrix/test_cumulative.py @@ -39,7 +39,7 @@ def comsumprod(m): class TestCUMBASE(unittest.TestCase): def setUp(self): - self.sds = SystemDSContext() + self.sds = SystemDSContext(capture_stdout=True, logging_level=50) def tearDown(self): self.sds.close() diff --git a/src/main/python/tests/matrix/test_diag.py b/src/main/python/tests/matrix/test_diag.py index 99f74f24c2c..0ea53f052d5 100644 --- a/src/main/python/tests/matrix/test_diag.py +++ b/src/main/python/tests/matrix/test_diag.py @@ -26,7 +26,7 @@ class TestDIAG(unittest.TestCase): def setUp(self): - self.sds = SystemDSContext() + self.sds = SystemDSContext(capture_stdout=True, logging_level=50) def tearDown(self): self.sds.close() diff --git a/src/main/python/tests/matrix/test_eigen.py b/src/main/python/tests/matrix/test_eigen.py index f036ce73690..14501bd5f68 100644 --- a/src/main/python/tests/matrix/test_eigen.py +++ b/src/main/python/tests/matrix/test_eigen.py @@ -26,7 +26,7 @@ class TestEigen(unittest.TestCase): def setUp(self): - self.sds = SystemDSContext() + self.sds = SystemDSContext(capture_stdout=True, logging_level=50) def tearDown(self): self.sds.close() diff --git a/src/main/python/tests/matrix/test_exp.py b/src/main/python/tests/matrix/test_exp.py index 1fa6a0e125d..24124dd3f82 100644 --- a/src/main/python/tests/matrix/test_exp.py +++ b/src/main/python/tests/matrix/test_exp.py @@ -26,7 +26,7 @@ class TestEXP(unittest.TestCase): def setUp(self): - self.sds = SystemDSContext() + self.sds = SystemDSContext(capture_stdout=True, logging_level=50) def tearDown(self): self.sds.close() diff --git a/src/main/python/tests/matrix/test_fft.py b/src/main/python/tests/matrix/test_fft.py index d4806ab31d5..b09245ad64a 100644 --- a/src/main/python/tests/matrix/test_fft.py +++ b/src/main/python/tests/matrix/test_fft.py @@ -26,7 +26,7 @@ class TestFFT(unittest.TestCase): def setUp(self): - self.sds = SystemDSContext() + self.sds = SystemDSContext(capture_stdout=True, logging_level=50) def tearDown(self): self.sds.close() diff --git a/src/main/python/tests/matrix/test_floor.py b/src/main/python/tests/matrix/test_floor.py index 3c6c5b32965..566d333477a 100644 --- a/src/main/python/tests/matrix/test_floor.py +++ b/src/main/python/tests/matrix/test_floor.py @@ -26,7 +26,7 @@ class TestFLOOR(unittest.TestCase): def setUp(self): - self.sds = SystemDSContext() + self.sds = SystemDSContext(capture_stdout=True, logging_level=50) def tearDown(self): self.sds.close() diff --git a/src/main/python/tests/matrix/test_inv.py b/src/main/python/tests/matrix/test_inv.py index 801c22dfd23..ca15eba192d 100644 --- a/src/main/python/tests/matrix/test_inv.py +++ b/src/main/python/tests/matrix/test_inv.py @@ -29,7 +29,7 @@ class TestINV(unittest.TestCase): def setUp(self): - self.sds = SystemDSContext() + self.sds = SystemDSContext(capture_stdout=True, logging_level=50) def tearDown(self): self.sds.close() diff --git a/src/main/python/tests/matrix/test_is_special.py b/src/main/python/tests/matrix/test_is_special.py index e04e61ddbf2..95d6aa606ff 100644 --- a/src/main/python/tests/matrix/test_is_special.py +++ b/src/main/python/tests/matrix/test_is_special.py @@ -53,7 +53,7 @@ class TestIS_SPECIAL(unittest.TestCase): def setUp(self): - self.sds = SystemDSContext() + self.sds = SystemDSContext(capture_stdout=True, logging_level=50) def tearDown(self): self.sds.close() diff --git a/src/main/python/tests/matrix/test_log.py b/src/main/python/tests/matrix/test_log.py index d0be8848a4e..887600377c0 100644 --- a/src/main/python/tests/matrix/test_log.py +++ b/src/main/python/tests/matrix/test_log.py @@ -26,7 +26,7 @@ class TestLOG(unittest.TestCase): def setUp(self): - self.sds = SystemDSContext() + self.sds = SystemDSContext(capture_stdout=True, logging_level=50) def tearDown(self): self.sds.close() diff --git a/src/main/python/tests/matrix/test_lu.py b/src/main/python/tests/matrix/test_lu.py index 72e397c362f..a14a069ce51 100644 --- a/src/main/python/tests/matrix/test_lu.py +++ b/src/main/python/tests/matrix/test_lu.py @@ -27,7 +27,7 @@ class TestLU(unittest.TestCase): def setUp(self): - self.sds = SystemDSContext() + self.sds = SystemDSContext(capture_stdout=True, logging_level=50) def tearDown(self): self.sds.close() diff --git a/src/main/python/tests/matrix/test_order.py b/src/main/python/tests/matrix/test_order.py index 6319c1451ab..70a812214e1 100644 --- a/src/main/python/tests/matrix/test_order.py +++ b/src/main/python/tests/matrix/test_order.py @@ -40,7 +40,7 @@ class TestOrderBase(unittest.TestCase): @classmethod def setUpClass(cls): - cls.sds = SystemDSContext() + cls.sds = SystemDSContext(capture_stdout=True, logging_level=50) @classmethod def tearDownClass(cls): diff --git a/src/main/python/tests/matrix/test_qr.py b/src/main/python/tests/matrix/test_qr.py index bdb823befc0..b11e0e2f2e3 100644 --- a/src/main/python/tests/matrix/test_qr.py +++ b/src/main/python/tests/matrix/test_qr.py @@ -26,7 +26,7 @@ class TestQR(unittest.TestCase): def setUp(self): - self.sds = SystemDSContext() + self.sds = SystemDSContext(capture_stdout=True, logging_level=50) def tearDown(self): self.sds.close() diff --git a/src/main/python/tests/matrix/test_quantile.py b/src/main/python/tests/matrix/test_quantile.py index 19930902977..53351021971 100644 --- a/src/main/python/tests/matrix/test_quantile.py +++ b/src/main/python/tests/matrix/test_quantile.py @@ -39,7 +39,7 @@ def weighted_quantiles(values, weights, quantiles=0.5): class TestQUANTILE(unittest.TestCase): def setUp(self): - self.sds = SystemDSContext() + self.sds = SystemDSContext(capture_stdout=True, logging_level=50) def tearDown(self): self.sds.close() diff --git a/src/main/python/tests/matrix/test_rIndexing.py b/src/main/python/tests/matrix/test_rIndexing.py index 61b337c47ae..00893cedb8d 100644 --- a/src/main/python/tests/matrix/test_rIndexing.py +++ b/src/main/python/tests/matrix/test_rIndexing.py @@ -31,7 +31,7 @@ class Test_rIndexing(unittest.TestCase): @classmethod def setUpClass(cls): - cls.sds = SystemDSContext() + cls.sds = SystemDSContext(capture_stdout=True, logging_level=50) @classmethod def tearDownClass(cls): diff --git a/src/main/python/tests/matrix/test_r_c_bind.py b/src/main/python/tests/matrix/test_r_c_bind.py index b4968eecf4a..f931f400780 100644 --- a/src/main/python/tests/matrix/test_r_c_bind.py +++ b/src/main/python/tests/matrix/test_r_c_bind.py @@ -31,7 +31,7 @@ class TestRBind(unittest.TestCase): @classmethod def setUpClass(cls): - cls.sds = SystemDSContext() + cls.sds = SystemDSContext(capture_stdout=True, logging_level=50) @classmethod def tearDownClass(cls): diff --git a/src/main/python/tests/matrix/test_rand.py b/src/main/python/tests/matrix/test_rand.py index 3a67d92de6b..88f4a387a8e 100644 --- a/src/main/python/tests/matrix/test_rand.py +++ b/src/main/python/tests/matrix/test_rand.py @@ -44,7 +44,7 @@ class TestRand(unittest.TestCase): @classmethod def setUpClass(cls): - cls.sds = SystemDSContext() + cls.sds = SystemDSContext(capture_stdout=True, logging_level=50) @classmethod def tearDownClass(cls): diff --git a/src/main/python/tests/matrix/test_replace.py b/src/main/python/tests/matrix/test_replace.py index 331770331e1..a240d1fd005 100644 --- a/src/main/python/tests/matrix/test_replace.py +++ b/src/main/python/tests/matrix/test_replace.py @@ -40,7 +40,7 @@ class TestReplaceMatrix(unittest.TestCase): @classmethod def setUpClass(cls): - cls.sds = SystemDSContext() + cls.sds = SystemDSContext(capture_stdout=True, logging_level=50) @classmethod def tearDownClass(cls): diff --git a/src/main/python/tests/matrix/test_reverse.py b/src/main/python/tests/matrix/test_reverse.py index a1643af257e..55df1feddd3 100644 --- a/src/main/python/tests/matrix/test_reverse.py +++ b/src/main/python/tests/matrix/test_reverse.py @@ -39,7 +39,7 @@ class TestReverse(unittest.TestCase): @classmethod def setUpClass(cls): - cls.sds = SystemDSContext() + cls.sds = SystemDSContext(capture_stdout=True, logging_level=50) @classmethod def tearDownClass(cls): diff --git a/src/main/python/tests/matrix/test_roll.py b/src/main/python/tests/matrix/test_roll.py index 8778e9514d3..8f3b362bc56 100644 --- a/src/main/python/tests/matrix/test_roll.py +++ b/src/main/python/tests/matrix/test_roll.py @@ -43,7 +43,7 @@ class TestRoll(unittest.TestCase): @classmethod def setUpClass(cls): - cls.sds = SystemDSContext() + cls.sds = SystemDSContext(capture_stdout=True, logging_level=50) @classmethod def tearDownClass(cls): diff --git a/src/main/python/tests/matrix/test_sign.py b/src/main/python/tests/matrix/test_sign.py index 796e30e79e0..62cb97cda8a 100644 --- a/src/main/python/tests/matrix/test_sign.py +++ b/src/main/python/tests/matrix/test_sign.py @@ -26,7 +26,7 @@ class TestSIGN(unittest.TestCase): def setUp(self): - self.sds = SystemDSContext() + self.sds = SystemDSContext(capture_stdout=True, logging_level=50) def tearDown(self): self.sds.close() diff --git a/src/main/python/tests/matrix/test_slice.py b/src/main/python/tests/matrix/test_slice.py index b795de31e1f..146266aacc3 100644 --- a/src/main/python/tests/matrix/test_slice.py +++ b/src/main/python/tests/matrix/test_slice.py @@ -36,7 +36,7 @@ class TestFederatedAggFn(unittest.TestCase): @classmethod def setUpClass(cls): - cls.sds = SystemDSContext() + cls.sds = SystemDSContext(capture_stdout=True, logging_level=50) @classmethod def tearDownClass(cls): diff --git a/src/main/python/tests/matrix/test_split.py b/src/main/python/tests/matrix/test_split.py index f0c984b28ff..1396a8017cc 100644 --- a/src/main/python/tests/matrix/test_split.py +++ b/src/main/python/tests/matrix/test_split.py @@ -36,7 +36,7 @@ class TestOrder(unittest.TestCase): @classmethod def setUpClass(cls): - cls.sds = SystemDSContext() + cls.sds = SystemDSContext(capture_stdout=True, logging_level=50) @classmethod def tearDownClass(cls): diff --git a/src/main/python/tests/matrix/test_sqrt.py b/src/main/python/tests/matrix/test_sqrt.py index bf46836d6c1..c355b3310d7 100644 --- a/src/main/python/tests/matrix/test_sqrt.py +++ b/src/main/python/tests/matrix/test_sqrt.py @@ -26,7 +26,7 @@ class TestSQRT(unittest.TestCase): def setUp(self): - self.sds = SystemDSContext() + self.sds = SystemDSContext(capture_stdout=True, logging_level=50) def tearDown(self): self.sds.close() diff --git a/src/main/python/tests/matrix/test_svd.py b/src/main/python/tests/matrix/test_svd.py index 2e2dd500f34..c4e8b1c3b78 100644 --- a/src/main/python/tests/matrix/test_svd.py +++ b/src/main/python/tests/matrix/test_svd.py @@ -26,7 +26,7 @@ class TestSVD(unittest.TestCase): def setUp(self): - self.sds = SystemDSContext() + self.sds = SystemDSContext(capture_stdout=True, logging_level=50) def tearDown(self): self.sds.close() diff --git a/src/main/python/tests/matrix/test_to_one_hot.py b/src/main/python/tests/matrix/test_to_one_hot.py index c4d673b2a02..2754a58855d 100644 --- a/src/main/python/tests/matrix/test_to_one_hot.py +++ b/src/main/python/tests/matrix/test_to_one_hot.py @@ -31,7 +31,7 @@ class TestMatrixOneHot(unittest.TestCase): @classmethod def setUpClass(cls): - cls.sds = SystemDSContext() + cls.sds = SystemDSContext(capture_stdout=True, logging_level=50) @classmethod def tearDownClass(cls): diff --git a/src/main/python/tests/matrix/test_transpose.py b/src/main/python/tests/matrix/test_transpose.py index 1ed01394291..ed8e8c5e9e3 100644 --- a/src/main/python/tests/matrix/test_transpose.py +++ b/src/main/python/tests/matrix/test_transpose.py @@ -39,7 +39,7 @@ class TestTranspose(unittest.TestCase): @classmethod def setUpClass(cls): - cls.sds = SystemDSContext() + cls.sds = SystemDSContext(capture_stdout=True, logging_level=50) @classmethod def tearDownClass(cls): diff --git a/src/main/python/tests/matrix/test_triangular.py b/src/main/python/tests/matrix/test_triangular.py index f7ea2d840be..63f7dd2005b 100644 --- a/src/main/python/tests/matrix/test_triangular.py +++ b/src/main/python/tests/matrix/test_triangular.py @@ -30,7 +30,7 @@ class TestTRIANGULAR(unittest.TestCase): def setUp(self): - self.sds = SystemDSContext() + self.sds = SystemDSContext(capture_stdout=True, logging_level=50) def tearDown(self): self.sds.close() diff --git a/src/main/python/tests/matrix/test_trigonometric.py b/src/main/python/tests/matrix/test_trigonometric.py index f0da9c8f39b..50d3966f3d0 100644 --- a/src/main/python/tests/matrix/test_trigonometric.py +++ b/src/main/python/tests/matrix/test_trigonometric.py @@ -37,7 +37,7 @@ class TestTrigonometricOp(unittest.TestCase): @classmethod def setUpClass(cls): - cls.sds = SystemDSContext() + cls.sds = SystemDSContext(capture_stdout=True, logging_level=50) @classmethod def tearDownClass(cls): diff --git a/src/main/python/tests/matrix/test_unique.py b/src/main/python/tests/matrix/test_unique.py index b84c3ae2f5a..66d1f19a9df 100644 --- a/src/main/python/tests/matrix/test_unique.py +++ b/src/main/python/tests/matrix/test_unique.py @@ -43,7 +43,7 @@ def padded(row): class TestUNIQUE(unittest.TestCase): def setUp(self): - self.sds = SystemDSContext() + self.sds = SystemDSContext(capture_stdout=True, logging_level=50) def tearDown(self): self.sds.close() diff --git a/src/main/python/tests/matrix/test_write.py b/src/main/python/tests/matrix/test_write.py index d50d1f7b3c4..780d01696c3 100644 --- a/src/main/python/tests/matrix/test_write.py +++ b/src/main/python/tests/matrix/test_write.py @@ -33,7 +33,7 @@ class TestWrite(unittest.TestCase): @classmethod def setUpClass(cls): - cls.sds = SystemDSContext() + cls.sds = SystemDSContext(capture_stdout=True, logging_level=50) @classmethod def tearDownClass(cls): diff --git a/src/main/python/tests/nn/test_affine.py b/src/main/python/tests/nn/test_affine.py index b13ba39ea39..9ca5d2843f6 100644 --- a/src/main/python/tests/nn/test_affine.py +++ b/src/main/python/tests/nn/test_affine.py @@ -67,7 +67,7 @@ class TestAffine(unittest.TestCase): @classmethod def setUpClass(cls): - cls.sds = SystemDSContext() + cls.sds = SystemDSContext(capture_stdout=True, logging_level=50) @classmethod def tearDownClass(cls): diff --git a/src/main/python/tests/nn/test_layer.py b/src/main/python/tests/nn/test_layer.py index 0b6a0eb2e1d..4e043ef2a05 100644 --- a/src/main/python/tests/nn/test_layer.py +++ b/src/main/python/tests/nn/test_layer.py @@ -30,7 +30,7 @@ class TestLayer(unittest.TestCase): @classmethod def setUpClass(cls): - cls.sds = SystemDSContext() + cls.sds = SystemDSContext(capture_stdout=True, logging_level=50) @classmethod def tearDownClass(cls): diff --git a/src/main/python/tests/nn/test_neural_network.py b/src/main/python/tests/nn/test_neural_network.py index f13b591cb48..82760fd7116 100644 --- a/src/main/python/tests/nn/test_neural_network.py +++ b/src/main/python/tests/nn/test_neural_network.py @@ -31,7 +31,7 @@ class TestNeuralNetwork(unittest.TestCase): @classmethod def setUpClass(cls): - cls.sds = SystemDSContext() + cls.sds = SystemDSContext(capture_stdout=True, logging_level=50) np.random.seed(42) cls.X = np.random.rand(6, 1) cls.exp_out = np.array( diff --git a/src/main/python/tests/nn/test_relu.py b/src/main/python/tests/nn/test_relu.py index 2fa6306a04c..c859602d029 100644 --- a/src/main/python/tests/nn/test_relu.py +++ b/src/main/python/tests/nn/test_relu.py @@ -33,7 +33,7 @@ class TestRelu(unittest.TestCase): @classmethod def setUpClass(cls): - cls.sds = SystemDSContext() + cls.sds = SystemDSContext(capture_stdout=True, logging_level=50) @classmethod def tearDownClass(cls): diff --git a/src/main/python/tests/nn/test_sequential.py b/src/main/python/tests/nn/test_sequential.py index 12360679d33..a69d6493eb2 100644 --- a/src/main/python/tests/nn/test_sequential.py +++ b/src/main/python/tests/nn/test_sequential.py @@ -63,7 +63,7 @@ class TestSequential(unittest.TestCase): @classmethod def setUpClass(cls): - cls.sds = SystemDSContext() + cls.sds = SystemDSContext(capture_stdout=True, logging_level=50) @classmethod def tearDownClass(cls): diff --git a/src/main/python/tests/scuro/__init__.py b/src/main/python/tests/scuro/__init__.py deleted file mode 100644 index e66abb4646f..00000000000 --- a/src/main/python/tests/scuro/__init__.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------------------------------- -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# -# ------------------------------------------------------------- diff --git a/src/main/python/tests/source/test_source_01.py b/src/main/python/tests/source/test_source_01.py index ef9b4ee723f..725cc6809be 100644 --- a/src/main/python/tests/source/test_source_01.py +++ b/src/main/python/tests/source/test_source_01.py @@ -31,7 +31,7 @@ class TestSource_01(unittest.TestCase): @classmethod def setUpClass(cls): - cls.sds = SystemDSContext() + cls.sds = SystemDSContext(capture_stdout=True, logging_level=50) @classmethod def tearDownClass(cls): diff --git a/src/main/python/tests/source/test_source_02.py b/src/main/python/tests/source/test_source_02.py index bc6d1168ac5..c3e9442b310 100644 --- a/src/main/python/tests/source/test_source_02.py +++ b/src/main/python/tests/source/test_source_02.py @@ -31,7 +31,7 @@ class TestSource_01(unittest.TestCase): @classmethod def setUpClass(cls): - cls.sds = SystemDSContext() + cls.sds = SystemDSContext(capture_stdout=True, logging_level=50) @classmethod def tearDownClass(cls): diff --git a/src/main/python/tests/source/test_source_list.py b/src/main/python/tests/source/test_source_list.py index 066571a2e1e..f6acbbf6ec8 100644 --- a/src/main/python/tests/source/test_source_list.py +++ b/src/main/python/tests/source/test_source_list.py @@ -33,7 +33,7 @@ class TestSource_01(unittest.TestCase): @classmethod def setUpClass(cls): - cls.sds = SystemDSContext() + cls.sds = SystemDSContext(capture_stdout=True, logging_level=50) @classmethod def tearDownClass(cls): diff --git a/src/main/python/tests/source/test_source_multi_arguments.py b/src/main/python/tests/source/test_source_multi_arguments.py index 555096a9d6a..eb8d3ba00e5 100644 --- a/src/main/python/tests/source/test_source_multi_arguments.py +++ b/src/main/python/tests/source/test_source_multi_arguments.py @@ -32,7 +32,7 @@ class TestSource_MultiArguments(unittest.TestCase): @classmethod def setUpClass(cls): - cls.sds = SystemDSContext() + cls.sds = SystemDSContext(capture_stdout=True, logging_level=50) @classmethod def tearDownClass(cls): diff --git a/src/main/python/tests/source/test_source_neural_net.py b/src/main/python/tests/source/test_source_neural_net.py index 59302b20844..d9aa078ba63 100644 --- a/src/main/python/tests/source/test_source_neural_net.py +++ b/src/main/python/tests/source/test_source_neural_net.py @@ -32,7 +32,7 @@ class TestSource_NeuralNet(unittest.TestCase): @classmethod def setUpClass(cls): - cls.sds = SystemDSContext() + cls.sds = SystemDSContext(capture_stdout=True, logging_level=50) @classmethod def tearDownClass(cls): diff --git a/src/main/python/tests/source/test_source_reuse.py b/src/main/python/tests/source/test_source_reuse.py index 77188af7a0f..3f2e80ff962 100644 --- a/src/main/python/tests/source/test_source_reuse.py +++ b/src/main/python/tests/source/test_source_reuse.py @@ -32,7 +32,7 @@ class TestSourceReuse(unittest.TestCase): @classmethod def setUpClass(cls): - cls.sds = SystemDSContext() + cls.sds = SystemDSContext(capture_stdout=True, logging_level=50) cls.source_reuse = cls.sds.source("./tests/source/source_01.dml", "test") @classmethod diff --git a/src/main/python/tests/source/test_source_with_default_values.py b/src/main/python/tests/source/test_source_with_default_values.py index f8229fbd7f9..a95a4c09611 100644 --- a/src/main/python/tests/source/test_source_with_default_values.py +++ b/src/main/python/tests/source/test_source_with_default_values.py @@ -21,7 +21,6 @@ import unittest -import numpy as np from systemds.context import SystemDSContext @@ -32,7 +31,7 @@ class TestSource_DefaultValues(unittest.TestCase): @classmethod def setUpClass(cls): - cls.sds = SystemDSContext() + cls.sds = SystemDSContext(capture_stdout=True, logging_level=50) @classmethod def tearDownClass(cls):