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/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..03d4aa0ad0f --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/WoE.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. +.. +.. ------------------------------------------------------------ + +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..0184da72972 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/WoEApply.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. +.. +.. ------------------------------------------------------------ + +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..7cdd607c995 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/abstain.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. +.. +.. ------------------------------------------------------------ + +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..9ba4dad7c8d --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/adasyn.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. +.. +.. ------------------------------------------------------------ + +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..5e1322876ca --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/als.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. +.. +.. ------------------------------------------------------------ + +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..d9372b79836 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/alsCG.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. +.. +.. ------------------------------------------------------------ + +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..0f4a6218b17 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/alsDS.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. +.. +.. ------------------------------------------------------------ + +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..86172e95e8f --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/alsPredict.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. +.. +.. ------------------------------------------------------------ + +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..24d9a71d06f --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/alsTopkPredict.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. +.. +.. ------------------------------------------------------------ + +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..d7975094d88 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/ampute.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. +.. +.. ------------------------------------------------------------ + +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..d70123740af --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/apply_pipeline.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. +.. +.. ------------------------------------------------------------ + +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..21e6c6e97cc --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/arima.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. +.. +.. ------------------------------------------------------------ + +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..3b58485f6e6 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/auc.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. +.. +.. ------------------------------------------------------------ + +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..503a30902b7 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/autoencoder_2layer.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. +.. +.. ------------------------------------------------------------ + +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..3e58f19269d --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/bandit.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. +.. +.. ------------------------------------------------------------ + +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..87dd37e3663 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/bivar.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. +.. +.. ------------------------------------------------------------ + +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..372027bf02b --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/components.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. +.. +.. ------------------------------------------------------------ + +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..4826358aa2a --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/confusionMatrix.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. +.. +.. ------------------------------------------------------------ + +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..c4121fc6fca --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/cooccurrenceMatrix.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. +.. +.. ------------------------------------------------------------ + +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..629392b1ba7 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/cor.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. +.. +.. ------------------------------------------------------------ + +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..d9d08716724 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/correctTypos.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. +.. +.. ------------------------------------------------------------ + +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..eae28b65a9d --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/correctTyposApply.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. +.. +.. ------------------------------------------------------------ + +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..08bf5a4881d --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/cox.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. +.. +.. ------------------------------------------------------------ + +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..1643166e9cb --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/cspline.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. +.. +.. ------------------------------------------------------------ + +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..ac850209ec3 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/csplineCG.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. +.. +.. ------------------------------------------------------------ + +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..09823928c02 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/csplineDS.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. +.. +.. ------------------------------------------------------------ + +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..e3c98f9f2f5 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/cvlm.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. +.. +.. ------------------------------------------------------------ + +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..c3facac6357 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/dbscan.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. +.. +.. ------------------------------------------------------------ + +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..09b3ad3ca67 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/dbscanApply.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. +.. +.. ------------------------------------------------------------ + +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..7b31de0ca73 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/decisionTree.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. +.. +.. ------------------------------------------------------------ + +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..3af61055685 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/decisionTreePredict.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. +.. +.. ------------------------------------------------------------ + +decisionTreePredict +=================== + +.. autofunction:: systemds.operator.algorithm.decisionTreePredict \ No newline at end of file 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 new file mode 100644 index 00000000000..a86c6b7fef1 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/deepWalk.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. +.. +.. ------------------------------------------------------------ + +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..0de31cd7460 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/denialConstraints.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. +.. +.. ------------------------------------------------------------ + +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..ee528f20634 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/differenceStatistics.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. +.. +.. ------------------------------------------------------------ + +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..ba43397f8e9 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/discoverFD.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. +.. +.. ------------------------------------------------------------ + +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..bd81e7ba875 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/dist.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. +.. +.. ------------------------------------------------------------ + +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..e1da1bbc69b --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/dmv.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. +.. +.. ------------------------------------------------------------ + +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..030ccc3176d --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/ema.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. +.. +.. ------------------------------------------------------------ + +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..6f6dd9ec5b9 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/executePipeline.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. +.. +.. ------------------------------------------------------------ + +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..a4dcdd1ce3d --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/f1Score.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. +.. +.. ------------------------------------------------------------ + +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..8a8e0f5487e --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/fdr.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. +.. +.. ------------------------------------------------------------ + +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..3ce1573be7b --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/ffPredict.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. +.. +.. ------------------------------------------------------------ + +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..0f2198587dc --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/ffTrain.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. +.. +.. ------------------------------------------------------------ + +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..c86cab83001 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/fit_pipeline.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. +.. +.. ------------------------------------------------------------ + +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..b8dcf1e1264 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/fixInvalidLengths.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. +.. +.. ------------------------------------------------------------ + +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..c5123cea8ec --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/fixInvalidLengthsApply.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. +.. +.. ------------------------------------------------------------ + +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..19e5d50b68e --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/flattenQuantile.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. +.. +.. ------------------------------------------------------------ + +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..8ccf233f7f1 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/frameSort.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. +.. +.. ------------------------------------------------------------ + +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..3f3c858fd96 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/frequencyEncode.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. +.. +.. ------------------------------------------------------------ + +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..d9007d14bf5 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/frequencyEncodeApply.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. +.. +.. ------------------------------------------------------------ + +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..0f6ab5086fa --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/garch.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. +.. +.. ------------------------------------------------------------ + +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..326ce63fefd --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/gaussianClassifier.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. +.. +.. ------------------------------------------------------------ + +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..59264345082 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/getAccuracy.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. +.. +.. ------------------------------------------------------------ + +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..f728f256d21 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/glm.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. +.. +.. ------------------------------------------------------------ + +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..75ed2674629 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/glmPredict.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. +.. +.. ------------------------------------------------------------ + +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..0757b8ad7c1 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/glove.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. +.. +.. ------------------------------------------------------------ + +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..784f8c51707 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/gmm.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. +.. +.. ------------------------------------------------------------ + +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..fcaf4bb8096 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/gmmPredict.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. +.. +.. ------------------------------------------------------------ + +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..3e95fdc00c9 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/gnmf.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. +.. +.. ------------------------------------------------------------ + +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..f454bbb4953 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/gridSearch.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. +.. +.. ------------------------------------------------------------ + +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..4720a98de54 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/hospitalResidencyMatch.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. +.. +.. ------------------------------------------------------------ + +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..bb6f9a90342 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/hyperband.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. +.. +.. ------------------------------------------------------------ + +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..7bcd421edec --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/img_brightness.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. +.. +.. ------------------------------------------------------------ + +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..fe7005d5e26 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/img_brightness_linearized.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. +.. +.. ------------------------------------------------------------ + +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..a72b4917087 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/img_crop.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. +.. +.. ------------------------------------------------------------ + +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..b69e7bac8cf --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/img_crop_linearized.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. +.. +.. ------------------------------------------------------------ + +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..5497282eaf8 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/img_cutout.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. +.. +.. ------------------------------------------------------------ + +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..0296819f302 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/img_cutout_linearized.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. +.. +.. ------------------------------------------------------------ + +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..1fe136b8f93 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/img_invert.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. +.. +.. ------------------------------------------------------------ + +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..ec225cf20b7 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/img_invert_linearized.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. +.. +.. ------------------------------------------------------------ + +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..08273fa9f0c --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/img_mirror.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. +.. +.. ------------------------------------------------------------ + +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..1b6135d4e48 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/img_mirror_linearized.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. +.. +.. ------------------------------------------------------------ + +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..916a1779643 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/img_posterize.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. +.. +.. ------------------------------------------------------------ + +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..77c1dd3ac92 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/img_posterize_linearized.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. +.. +.. ------------------------------------------------------------ + +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..aa005e3bc4d --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/img_rotate.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. +.. +.. ------------------------------------------------------------ + +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..2a758e01f86 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/img_rotate_linearized.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. +.. +.. ------------------------------------------------------------ + +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..8d986115f1e --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/img_sample_pairing.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. +.. +.. ------------------------------------------------------------ + +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..872be83c35f --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/img_sample_pairing_linearized.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. +.. +.. ------------------------------------------------------------ + +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..267e655e351 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/img_shear.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. +.. +.. ------------------------------------------------------------ + +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..451b47c9cdd --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/img_shear_linearized.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. +.. +.. ------------------------------------------------------------ + +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..d31c187e972 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/img_transform.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. +.. +.. ------------------------------------------------------------ + +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..0bd10770c9d --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/img_transform_linearized.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. +.. +.. ------------------------------------------------------------ + +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..291eba3535c --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/img_translate.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. +.. +.. ------------------------------------------------------------ + +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..8ed3d67486a --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/img_translate_linearized.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. +.. +.. ------------------------------------------------------------ + +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..a677a252679 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/impurityMeasures.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. +.. +.. ------------------------------------------------------------ + +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..e21a6c03fa4 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/imputeByFD.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. +.. +.. ------------------------------------------------------------ + +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..1694f00a73a --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/imputeByFDApply.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. +.. +.. ------------------------------------------------------------ + +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..abdab8c5499 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/imputeByKNN.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. +.. +.. ------------------------------------------------------------ + +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..97b167c1d78 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/imputeByMean.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. +.. +.. ------------------------------------------------------------ + +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..3627e29ba91 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/imputeByMeanApply.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. +.. +.. ------------------------------------------------------------ + +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..6c02c2afcc3 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/imputeByMedian.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. +.. +.. ------------------------------------------------------------ + +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..1218387ae68 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/imputeByMedianApply.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. +.. +.. ------------------------------------------------------------ + +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..a8b4f855025 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/imputeByMode.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. +.. +.. ------------------------------------------------------------ + +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..a73b27fd9e1 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/imputeByModeApply.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. +.. +.. ------------------------------------------------------------ + +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..8749fdb6869 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/incSliceLine.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. +.. +.. ------------------------------------------------------------ + +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..13a5029db29 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/intersect.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. +.. +.. ------------------------------------------------------------ + +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..37cfecc96a2 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/km.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. +.. +.. ------------------------------------------------------------ + +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..47980528d53 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/kmeans.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. +.. +.. ------------------------------------------------------------ + +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..c99ebb119c6 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/kmeansPredict.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. +.. +.. ------------------------------------------------------------ + +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..ab17b2f98d7 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/knn.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. +.. +.. ------------------------------------------------------------ + +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..5e0f3a98bf9 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/knnGraph.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. +.. +.. ------------------------------------------------------------ + +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..cec6d981af5 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/knnbf.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. +.. +.. ------------------------------------------------------------ + +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..3b3dec6ec49 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/l2svm.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. +.. +.. ------------------------------------------------------------ + +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..b8a0c38aef3 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/l2svmPredict.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. +.. +.. ------------------------------------------------------------ + +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..af9f28cce86 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/lasso.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. +.. +.. ------------------------------------------------------------ + +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..662ef797c2b --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/lenetPredict.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. +.. +.. ------------------------------------------------------------ + +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..8255a2169b3 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/lenetTrain.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. +.. +.. ------------------------------------------------------------ + +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..5dd8ac15942 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/lm.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. +.. +.. ------------------------------------------------------------ + +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..d5c854f82f0 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/lmCG.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. +.. +.. ------------------------------------------------------------ + +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..35bb9fa14c2 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/lmDS.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. +.. +.. ------------------------------------------------------------ + +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..306d89fe064 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/lmPredict.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. +.. +.. ------------------------------------------------------------ + +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..37e9e3f4aaf --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/lmPredictStats.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. +.. +.. ------------------------------------------------------------ + +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..e5a182f0a72 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/logSumExp.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. +.. +.. ------------------------------------------------------------ + +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..2d5e5470967 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/mae.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. +.. +.. ------------------------------------------------------------ + +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..7205b96e2ad --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/mape.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. +.. +.. ------------------------------------------------------------ + +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..2aa519f7b75 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/matrixProfile.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. +.. +.. ------------------------------------------------------------ + +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..4cc9184277f --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/mcc.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. +.. +.. ------------------------------------------------------------ + +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..e03b4e5717a --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/mdedup.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. +.. +.. ------------------------------------------------------------ + +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..da6da26acb6 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/mice.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. +.. +.. ------------------------------------------------------------ + +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..9fce2990b57 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/miceApply.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. +.. +.. ------------------------------------------------------------ + +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..60e4e70bcfc --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/mse.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. +.. +.. ------------------------------------------------------------ + +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..ffe45ad8729 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/msmape.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. +.. +.. ------------------------------------------------------------ + +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..a9d83d797cd --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/msvm.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. +.. +.. ------------------------------------------------------------ + +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..daf745369d0 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/msvmPredict.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. +.. +.. ------------------------------------------------------------ + +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..d4994f8cff7 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/multiLogReg.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. +.. +.. ------------------------------------------------------------ + +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..2276e805af9 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/multiLogRegPredict.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. +.. +.. ------------------------------------------------------------ + +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..12c05495378 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/na_locf.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. +.. +.. ------------------------------------------------------------ + +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..e638554805f --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/naiveBayes.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. +.. +.. ------------------------------------------------------------ + +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..d20c87e4bfb --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/naiveBayesPredict.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. +.. +.. ------------------------------------------------------------ + +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..959fa7368b0 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/normalize.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. +.. +.. ------------------------------------------------------------ + +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..3559eb622b9 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/normalizeApply.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. +.. +.. ------------------------------------------------------------ + +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..5049a0cc483 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/nrmse.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. +.. +.. ------------------------------------------------------------ + +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..6b076100e33 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/outlier.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. +.. +.. ------------------------------------------------------------ + +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..d9d71341ce5 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/outlierByArima.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. +.. +.. ------------------------------------------------------------ + +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..e92c6153318 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/outlierByIQR.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. +.. +.. ------------------------------------------------------------ + +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..6cd11e3a5ba --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/outlierByIQRApply.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. +.. +.. ------------------------------------------------------------ + +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..8b919e658b2 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/outlierBySd.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. +.. +.. ------------------------------------------------------------ + +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..e26e031636a --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/outlierBySdApply.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. +.. +.. ------------------------------------------------------------ + +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..418782e9017 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/pageRank.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. +.. +.. ------------------------------------------------------------ + +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..a3e0a86f45c --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/pca.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. +.. +.. ------------------------------------------------------------ + +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..bc077dec69c --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/pcaInverse.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. +.. +.. ------------------------------------------------------------ + +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..f4e99ea1bfc --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/pcaTransform.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. +.. +.. ------------------------------------------------------------ + +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..20d4379c61e --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/pnmf.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. +.. +.. ------------------------------------------------------------ + +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..080d1605679 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/ppca.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. +.. +.. ------------------------------------------------------------ + +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..9c4d6e956d8 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/psnr.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. +.. +.. ------------------------------------------------------------ + +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..edc1b0622b4 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/quantizeByCluster.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. +.. +.. ------------------------------------------------------------ + +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..eca208c2737 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/raGroupby.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. +.. +.. ------------------------------------------------------------ + +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..69191241853 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/raJoin.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. +.. +.. ------------------------------------------------------------ + +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..3d02704d99d --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/raSelection.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. +.. +.. ------------------------------------------------------------ + +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..cea42410fda --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/randomForest.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. +.. +.. ------------------------------------------------------------ + +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..5b05e584f60 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/randomForestPredict.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. +.. +.. ------------------------------------------------------------ + +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..594279ad2a1 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/rmse.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. +.. +.. ------------------------------------------------------------ + +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..cc2510dc9dc --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/scale.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. +.. +.. ------------------------------------------------------------ + +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..888b81e1e9b --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/scaleApply.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. +.. +.. ------------------------------------------------------------ + +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..eb5631ca731 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/scaleMinMax.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. +.. +.. ------------------------------------------------------------ + +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..f1d57a715c9 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/selectByVarThresh.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. +.. +.. ------------------------------------------------------------ + +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..a179d87adb8 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/ses.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. +.. +.. ------------------------------------------------------------ + +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..196c665a6df --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/setdiff.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. +.. +.. ------------------------------------------------------------ + +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..a2f5860e333 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/shapExplainer.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. +.. +.. ------------------------------------------------------------ + +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..61e887b2bb0 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/sherlock.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. +.. +.. ------------------------------------------------------------ + +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..c8cb350af8c --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/sherlockPredict.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. +.. +.. ------------------------------------------------------------ + +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..c187fffc192 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/shortestPath.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. +.. +.. ------------------------------------------------------------ + +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..663cee4b9b6 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/sigmoid.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. +.. +.. ------------------------------------------------------------ + +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..6cf24c0fca5 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/skewness.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. +.. +.. ------------------------------------------------------------ + +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..4a78a5150bf --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/sliceLine.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. +.. +.. ------------------------------------------------------------ + +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..52f98cf71ce --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/sliceLineDebug.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. +.. +.. ------------------------------------------------------------ + +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..931e856e728 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/sliceLineExtract.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. +.. +.. ------------------------------------------------------------ + +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..93397c938cc --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/slicefinder.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. +.. +.. ------------------------------------------------------------ + +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..152c5e38ba6 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/smape.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. +.. +.. ------------------------------------------------------------ + +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..204c5b422f6 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/smote.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. +.. +.. ------------------------------------------------------------ + +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..f1150c62be3 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/softmax.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. +.. +.. ------------------------------------------------------------ + +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..a2179198efd --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/split.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. +.. +.. ------------------------------------------------------------ + +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..54b68593505 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/splitBalanced.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. +.. +.. ------------------------------------------------------------ + +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..7a6ddad91a6 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/sqrtMatrix.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. +.. +.. ------------------------------------------------------------ + +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..f97b7ed434d --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/stableMarriage.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. +.. +.. ------------------------------------------------------------ + +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..5360f5a3b9e --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/statsNA.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. +.. +.. ------------------------------------------------------------ + +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..0b70490e67c --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/steplm.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. +.. +.. ------------------------------------------------------------ + +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..2223957ccb1 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/stratstats.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. +.. +.. ------------------------------------------------------------ + +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..646d44ee923 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/symmetricDifference.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. +.. +.. ------------------------------------------------------------ + +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..394a79d5260 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/tSNE.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. +.. +.. ------------------------------------------------------------ + +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..c39a9079aa8 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/toOneHot.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. +.. +.. ------------------------------------------------------------ + +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..c58f208ecd5 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/tomeklink.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. +.. +.. ------------------------------------------------------------ + +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..59fcb5e16d9 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/topk_cleaning.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. +.. +.. ------------------------------------------------------------ + +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..76c86189621 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/underSampling.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. +.. +.. ------------------------------------------------------------ + +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..63070d24fd7 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/union.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. +.. +.. ------------------------------------------------------------ + +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..8946978c266 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/univar.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. +.. +.. ------------------------------------------------------------ + +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..651fea807be --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/vectorToCsv.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. +.. +.. ------------------------------------------------------------ + +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..d9800dacd67 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/wer.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. +.. +.. ------------------------------------------------------------ + +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..cf1f5b46209 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/winsorize.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. +.. +.. ------------------------------------------------------------ + +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..b70f018ef47 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/winsorizeApply.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. +.. +.. ------------------------------------------------------------ + +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..4ed05eb7cc7 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/xdummy1.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. +.. +.. ------------------------------------------------------------ + +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..0aaaf4db4ba --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/xdummy2.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. +.. +.. ------------------------------------------------------------ + +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..3c3b47c97e6 --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/xgboost.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. +.. +.. ------------------------------------------------------------ + +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..a6114be8b2e --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/xgboostPredictClassification.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. +.. +.. ------------------------------------------------------------ + +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..5f2f99c723e --- /dev/null +++ b/src/main/python/docs/source/api/operator/algorithms/xgboostPredictRegression.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. +.. +.. ------------------------------------------------------------ + +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..b21a4f6c6b5 100644 --- a/src/main/python/generator/generator.py +++ b/src/main/python/generator/generator.py @@ -35,11 +35,17 @@ class PythonAPIFileGenerator(object): target_path = os.path.join(os.path.dirname(os.path.dirname( __file__)), 'systemds', 'operator', 'algorithm', 'builtin') - licence_path = os.path.join('resources', 'template_python_script_license') + 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') + 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 @@ -55,6 +61,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 @@ -65,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 : " @@ -87,18 +97,65 @@ 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) - 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.license) + test_script.write(self.generated_by) + 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") + 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\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.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: @@ -390,6 +447,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 +463,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/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/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_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_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/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/scuro/__init__.py b/src/main/python/tests/auto_tests/test_dist.py similarity index 53% rename from src/main/python/tests/scuro/__init__.py rename to src/main/python/tests/auto_tests/test_dist.py index e66abb4646f..12041a33ffb 100644 --- a/src/main/python/tests/scuro/__init__.py +++ b/src/main/python/tests/auto_tests/test_dist.py @@ -18,3 +18,30 @@ # 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..df43d0e6018 --- /dev/null +++ b/src/main/python/tests/auto_tests/test_img_brightness.py @@ -0,0 +1,49 @@ +# ------------------------------------------------------------- +# +# 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..8bbedc4e7df --- /dev/null +++ b/src/main/python/tests/auto_tests/test_img_brightness_linearized.py @@ -0,0 +1,49 @@ +# ------------------------------------------------------------- +# +# 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..a3393259bbd --- /dev/null +++ b/src/main/python/tests/auto_tests/test_img_crop.py @@ -0,0 +1,49 @@ +# ------------------------------------------------------------- +# +# 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..8f9bbe211b7 --- /dev/null +++ b/src/main/python/tests/auto_tests/test_img_crop_linearized.py @@ -0,0 +1,49 @@ +# ------------------------------------------------------------- +# +# 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..c80c9438334 --- /dev/null +++ b/src/main/python/tests/auto_tests/test_img_cutout.py @@ -0,0 +1,51 @@ +# ------------------------------------------------------------- +# +# 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..35675c0ba52 --- /dev/null +++ b/src/main/python/tests/auto_tests/test_img_cutout_linearized.py @@ -0,0 +1,51 @@ +# ------------------------------------------------------------- +# +# 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..de10adc55d4 --- /dev/null +++ b/src/main/python/tests/auto_tests/test_img_invert.py @@ -0,0 +1,51 @@ +# ------------------------------------------------------------- +# +# 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..0b21ef99cdb --- /dev/null +++ b/src/main/python/tests/auto_tests/test_img_invert_linearized.py @@ -0,0 +1,51 @@ +# ------------------------------------------------------------- +# +# 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..0210a9c39a3 --- /dev/null +++ b/src/main/python/tests/auto_tests/test_img_mirror.py @@ -0,0 +1,51 @@ +# ------------------------------------------------------------- +# +# 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..734c7cb8c41 --- /dev/null +++ b/src/main/python/tests/auto_tests/test_img_mirror_linearized_0.py @@ -0,0 +1,51 @@ +# ------------------------------------------------------------- +# +# 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..bb94c9d8a61 --- /dev/null +++ b/src/main/python/tests/auto_tests/test_img_mirror_linearized_1.py @@ -0,0 +1,58 @@ +# ------------------------------------------------------------- +# +# 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..6d3da9440c9 --- /dev/null +++ b/src/main/python/tests/auto_tests/test_img_posterize.py @@ -0,0 +1,51 @@ +# ------------------------------------------------------------- +# +# 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..3361cd4dc8e --- /dev/null +++ b/src/main/python/tests/auto_tests/test_img_posterize_linearized.py @@ -0,0 +1,51 @@ +# ------------------------------------------------------------- +# +# 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..dc316fcb0da --- /dev/null +++ b/src/main/python/tests/auto_tests/test_img_rotate.py @@ -0,0 +1,51 @@ +# ------------------------------------------------------------- +# +# 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..60f3b4c6f10 --- /dev/null +++ b/src/main/python/tests/auto_tests/test_img_rotate_linearized.py @@ -0,0 +1,51 @@ +# ------------------------------------------------------------- +# +# 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..3feac94aa2f --- /dev/null +++ b/src/main/python/tests/auto_tests/test_img_sample_pairing.py @@ -0,0 +1,56 @@ +# ------------------------------------------------------------- +# +# 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..39d66c56a44 --- /dev/null +++ b/src/main/python/tests/auto_tests/test_img_sample_pairing_linearized.py @@ -0,0 +1,56 @@ +# ------------------------------------------------------------- +# +# 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..faad011b864 --- /dev/null +++ b/src/main/python/tests/auto_tests/test_img_shear.py @@ -0,0 +1,51 @@ +# ------------------------------------------------------------- +# +# 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..b57223f14b1 --- /dev/null +++ b/src/main/python/tests/auto_tests/test_img_shear_linearized.py @@ -0,0 +1,51 @@ +# ------------------------------------------------------------- +# +# 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..c43575853e8 --- /dev/null +++ b/src/main/python/tests/auto_tests/test_img_transform.py @@ -0,0 +1,51 @@ +# ------------------------------------------------------------- +# +# 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..c1279fe4f5e --- /dev/null +++ b/src/main/python/tests/auto_tests/test_img_transform_linearized.py @@ -0,0 +1,51 @@ +# ------------------------------------------------------------- +# +# 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..8e6088168e4 --- /dev/null +++ b/src/main/python/tests/auto_tests/test_img_translate.py @@ -0,0 +1,51 @@ +# ------------------------------------------------------------- +# +# 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..936adf856c3 --- /dev/null +++ b/src/main/python/tests/auto_tests/test_img_translate_linearized.py @@ -0,0 +1,51 @@ +# ------------------------------------------------------------- +# +# 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..45ee569cf13 --- /dev/null +++ b/src/main/python/tests/auto_tests/test_lm.py @@ -0,0 +1,62 @@ +# ------------------------------------------------------------- +# +# 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..b5ba8373494 --- /dev/null +++ b/src/main/python/tests/auto_tests/test_normalize.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 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..42115c0b152 --- /dev/null +++ b/src/main/python/tests/auto_tests/test_randomForest.py @@ -0,0 +1,74 @@ +# ------------------------------------------------------------- +# +# 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..41fba0a4d86 --- /dev/null +++ b/src/main/python/tests/auto_tests/test_randomForestPredict.py @@ -0,0 +1,74 @@ +# ------------------------------------------------------------- +# +# 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..7bc5cbde1f4 --- /dev/null +++ b/src/main/python/tests/auto_tests/test_toOneHot.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 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() 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/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):