Loading...

vastorbit.machine_learning.vast.linear_model.PLSRegression

class vastorbit.machine_learning.vast.linear_model.PLSRegression(name: str = None, overwrite_model: bool = False, **kwargs)

Creates an PLSRegression object using scikit-learn for training and the scalability of VAST DataBase for the inferences.

Parameters:
  • name (str, optional) – Name of the model. The model is stored in the database.

  • overwrite_model (bool, optional) – If set to True, training a model with the same name as an existing model overwrites the existing model.

  • **kwargs (scikit-learn model parameters.)

Variables:
  • created (Many attributes are)

  • phase. (during the fitting)

  • coef_ (numpy.array) – The regression coefficients. The order of coefficients is the same as the order of columns used during the fitting phase.

  • intercept_ (float) – The expected value of the dependent variable when all independent variables are zero, serving as the baseline or constant term in the model.

  • feature_importances_ (numpy.array) – The importance of features is computed through the model coefficients, which are normalized based on their range. Subsequently, an activation function calculates the final score. It is necessary to use the features_importance() method to compute it initially, and the computed values will be subsequently utilized for subsequent calls.

  • note:: (..) – All attributes can be accessed using the get_attributes() method.

Examples

The following examples provide a basic understanding of usage. For more detailed examples, please refer to the Machine Learning or the Examples section on the website.

Load data for machine learning

We import vastorbit:

import vastorbit as vo

Hint

By assigning an alias to vastorbit, we mitigate the risk of code collisions with other libraries. This precaution is necessary because vastorbit uses commonly known function names like “average” and “median”, which can potentially lead to naming conflicts. The use of an alias ensures that the functions from vastorbit are used as intended without interfering with functions from other libraries.

For this example, we will use the winequality dataset.

import vastorbit.datasets as vod

data = vod.load_winequality()
123
fixed_acidity
Decimal(6, 3)
123
volatile_acidity
Decimal(7, 4)
123
citric_acid
Decimal(6, 3)
123
residual_sugar
Decimal(7, 3)
123
chlorides
Double
123
free_sulfur_dioxide
Decimal(7, 2)
123
total_sulfur_dioxide
Decimal(7, 2)
123
density
Double
123
ph
Decimal(6, 3)
123
sulphates
Decimal(6, 3)
123
alcohol
Double
123
quality
Integer
123
good
Integer
Abc
color
Varchar(20)
16.30.670.4812.60.05257.0222.00.99793.170.529.360white
27.40.40.295.40.04431.0122.00.9943.30.511.181white
37.10.260.312.20.04429.0128.00.99373.340.6410.981white
49.00.310.486.60.04311.073.00.99382.90.3811.650white
56.30.390.246.90.0699.0117.00.99423.150.3510.240white
68.20.220.366.80.03412.090.00.99443.010.3810.581white
77.10.190.283.60.03316.078.00.9932.910.7811.460white
87.30.250.3613.10.0535.0200.00.99863.040.468.971white
97.90.20.341.20.0429.0118.00.99323.140.4110.660white
107.10.260.325.90.03739.097.00.99343.310.411.660white
117.00.20.345.70.03532.083.00.99283.190.4611.560white
126.90.30.334.10.03526.0155.00.99253.250.7912.381white
138.10.290.497.10.04222.0124.00.99443.140.4110.860white
145.80.170.31.40.03755.0130.00.99093.290.3811.360white
155.90.4150.020.80.03822.063.00.99323.360.369.350white
166.60.230.261.30.04516.0128.00.99343.360.610.060white
178.60.550.3515.550.05735.5366.51.00013.040.6311.030white
186.90.350.741.00.04418.0132.00.9923.130.5510.250white
197.60.140.741.60.0427.0103.00.99163.070.410.871white
209.20.280.4911.80.04229.0137.00.9983.10.3410.140white
216.20.180.494.50.04717.090.00.99193.270.3711.660white
225.30.1650.241.10.05125.0105.00.99253.320.479.150white
239.80.250.7410.00.05636.0225.00.99773.060.4310.040white
248.10.290.497.10.04222.0124.00.99443.140.4110.860white
256.80.220.490.90.05226.0128.00.9913.250.3511.460white
267.20.220.491.00.04534.0140.00.993.050.3412.760white
277.40.250.491.10.04235.0156.00.99173.130.5511.350white
288.20.180.491.10.03328.081.00.99233.00.6810.471white
296.10.220.491.50.05118.087.00.99283.30.469.650white
307.00.390.241.00.0488.0119.00.99233.00.3110.140white
316.10.220.491.50.05118.087.00.99283.30.469.650white
326.50.360.492.90.0316.094.00.99023.10.4912.171white
337.10.290.491.20.03132.099.00.98933.070.3312.260white
347.40.250.491.10.04235.0156.00.99173.130.5511.350white
356.90.230.2414.20.05319.094.00.99823.170.59.650white
368.50.560.7417.850.05151.0243.01.00052.990.79.250white
378.20.180.491.10.03328.081.00.99233.00.6810.471white
386.30.230.497.10.0567.0210.00.99513.230.349.550white
396.10.250.497.60.05267.0226.00.99563.160.478.950white
407.20.260.7413.60.0556.0162.00.9983.030.448.850white
417.20.310.241.40.05717.0117.00.99283.160.3510.550white
428.00.250.491.20.06127.0117.00.99383.080.349.450white
437.00.180.495.30.0434.0125.00.99143.240.412.260white
447.80.430.4913.00.03337.0158.00.99553.140.3511.360white
458.30.20.744.450.04433.0130.00.99243.250.4212.260white
466.30.270.491.20.06335.092.00.99113.380.4212.260white
477.40.160.491.20.05518.0150.00.99173.230.4711.260white
487.40.160.491.20.05518.0150.00.99173.230.4711.260white
496.90.190.496.60.03649.0172.00.99323.20.2711.560white
507.80.430.4913.00.03337.0158.00.99553.140.3511.360white
517.20.40.491.10.04811.0138.00.99293.010.429.350white
527.80.430.4913.00.03337.0158.00.99553.140.3511.360white
537.60.520.4914.00.03437.0156.00.99583.140.3811.871white
548.30.210.4919.80.05450.0231.01.00122.990.549.250white
556.90.340.7411.20.06944.0150.00.99683.00.819.250white
566.30.270.491.20.06335.092.00.99113.380.4212.260white
578.30.20.744.450.04433.0130.00.99243.250.4212.260white
587.10.220.742.70.04442.0144.00.9913.310.4112.260white
597.90.110.494.50.04827.0133.00.99463.240.4210.660white
608.50.170.743.60.0529.0128.00.99283.280.412.460white
616.40.1450.495.40.04854.0164.00.99463.560.4410.860white
627.40.160.491.20.05518.0150.00.99173.230.4711.260white
638.30.190.491.20.05111.0137.00.99183.060.4611.060white
648.00.440.499.10.03146.0151.00.99263.160.2712.781white
657.00.20.740.80.04419.0163.00.99313.460.5310.250white
666.90.190.496.60.03649.0172.00.99323.20.2711.560white
677.10.250.493.00.0330.096.00.99033.130.3912.371white
686.50.240.241.60.04615.060.00.99283.190.399.850white
697.20.40.491.10.04811.0138.00.99293.010.429.350white
707.60.520.4914.00.03437.0156.00.99583.140.3811.871white
717.80.430.4913.00.03337.0158.00.99553.140.3511.360white
727.80.210.491.350.0526.048.00.99113.150.2811.450white
737.00.20.495.90.03839.0128.00.99383.210.4810.860white
746.90.250.243.60.05713.085.00.99422.990.489.540white
757.20.080.491.30.0518.0148.00.99453.460.4410.260white
767.10.850.498.70.02840.0184.00.99623.220.3610.750white
777.60.510.241.20.0410.0104.00.9923.050.2910.860white
787.90.220.244.60.04439.0159.00.99272.990.2811.560white
797.70.160.492.00.05620.0124.00.99483.320.4910.760white
807.20.080.491.30.0518.0148.00.99453.460.4410.260white
816.60.250.241.70.04826.0124.00.99423.370.610.160white
826.70.160.492.40.04657.0187.00.99523.620.8110.460white
836.90.250.243.60.05713.085.00.99422.990.489.540white
847.50.320.244.60.0538.0134.00.99583.140.59.130white
857.40.280.491.50.03420.0126.00.99182.980.3910.660white
866.20.150.490.90.03317.051.00.99323.30.79.460white
876.70.250.7419.40.05444.0169.01.00043.510.459.860white
886.50.260.7413.30.04468.0224.00.99723.180.549.560white
897.90.160.7417.850.03752.0187.00.99982.990.419.350white
905.60.1850.491.10.0328.0117.00.99183.550.4510.360white
917.50.20.491.30.0318.097.00.99183.060.6211.150white
928.00.30.499.40.04647.0188.00.99643.140.4810.050white
938.00.340.499.00.03339.0180.00.99363.130.3812.381white
947.70.350.498.650.03342.0186.00.99313.140.3812.481white
957.60.290.499.60.0345.0197.00.99383.130.3812.371white
966.70.620.241.10.0396.062.00.99343.410.3210.450white
976.80.270.491.20.04435.0126.00.993.130.4812.171white
987.70.270.491.80.04123.086.00.99143.160.4212.560white
996.70.510.242.10.04314.0155.00.99043.220.613.060white
1007.40.190.499.30.0326.0132.00.9942.990.3211.071white
Rows: 1-100 | Columns: 14

Note

vastorbit offers a wide range of sample datasets that are ideal for training and testing purposes. You can explore the full list of available datasets in the Datasets, which provides detailed information on each dataset and how to use them effectively. These datasets are invaluable resources for honing your data analysis and machine learning skills within the vastorbit environment.

You can easily divide your dataset into training and testing subsets using the VastFrame.train_test_split() method. This is a crucial step when preparing your data for machine learning, as it allows you to evaluate the performance of your models accurately.

data = vod.load_winequality()
train, test = data.train_test_split(test_size = 0.2)

Warning

In this case, vastorbit utilizes seeded randomization to guarantee the reproducibility of your data split. However, please be aware that this approach may lead to reduced performance. For a more efficient data split, you can use the VastFrame.to_db() method to save your results into tables or temporary tables. This will help enhance the overall performance of the process.

Model Initialization

First we import the PLSRegression model:

from vastorbit.machine_learning.vast import PLSRegression

Then we can create the model:

model = PLSRegression()

Important

The model name is crucial for the model management system and versioning. It’s highly recommended to provide a name if you plan to reuse the model later.

Model Training

We can now fit the model:

model.fit(
    train,
    [
        "fixed_acidity",
        "volatile_acidity",
        "citric_acid",
        "residual_sugar",
        "chlorides",
        "density",
    ],
    "quality",
    test,
)

Important

To train a model, you can directly use the VastFrame or the name of the relation stored in the database. The test set is optional and is only used to compute the test metrics. In vastorbit, we don’t work using X matrices and y vectors. Instead, we work directly with lists of predictors and the response name.

Metrics

We can get the entire report using:

model.report()
value
explained_variance0.12673087017089846
max_error67.35812683974027
median_absolute_error64.46593009032297
mean_absolute_error64.47755126582939
mean_squared_error4161.040581888313
root_mean_squared_error64.48305132874968
r2-5118.346865489804
r2_adj-5141.992809441258
aic10897.7395105446
bic10933.800793348277
Rows: 1-10 | Columns: 2

Important

Most metrics are computed using a single SQL query, but some of them might require multiple SQL queries. Selecting only the necessary metrics in the report can help optimize performance. E.g. model.report(metrics = ["mse", "r2"]).

For LinearModel, we can easily get the ANOVA table using:

model.report(metrics = "anova")
DfSSMSFp_value
Regression65432242.137198795905373.6895331325216.390780153541679.711962668459322e-192
Residual12995434983.9760688634183.9753472431585
Total13051010.6998468606462
Rows: 1-3 | Columns: 6

You can also use the LinearModel.score function to compute the R-squared value:

model.score()

Prediction

Prediction is straight-forward:

model.predict(
    test,
    [
        "fixed_acidity",
        "volatile_acidity",
        "citric_acid",
        "residual_sugar",
        "chlorides",
        "density",
    ],
    "prediction",
)
123
fixed_acidity
Decimal(6, 3)
123
volatile_acidity
Decimal(7, 4)
123
citric_acid
Decimal(6, 3)
123
residual_sugar
Decimal(7, 3)
123
chlorides
Double
123
free_sulfur_dioxide
Decimal(7, 2)
123
total_sulfur_dioxide
Decimal(7, 2)
123
density
Double
123
ph
Decimal(6, 3)
123
sulphates
Decimal(6, 3)
123
alcohol
Double
123
quality
Integer
123
good
Integer
Abc
color
Varchar(20)
123
seedrand
Decimal(26, 6)
123
prediction
Double
18.30.230.32.10.04921.0153.00.99533.090.59.660white0.1-58.57326515443723
26.80.430.33.50.03327.0135.00.99063.00.3712.060white0.11-58.49361702496944
37.60.260.361.60.0326.0106.00.9933.150.410.440white0.07-58.41750710743568
48.80.340.339.70.03646.0172.00.99663.080.410.250white0.12-58.68215096076783
57.10.490.222.00.047146.5307.50.99243.240.3711.030white0.06-58.73149663114173
66.80.280.361.60.0425.087.00.99243.230.6610.360white0.13-58.45013516778693
78.80.340.339.70.03646.0172.00.99663.080.410.250white0.03-58.68215096076783
89.91.0050.461.40.04634.0185.00.99663.020.4910.240white0.19-59.244999099576205
98.10.310.368.20.02829.0142.00.99253.010.3413.071white0.17-58.38853844931297
108.10.240.384.30.04449.0172.00.9963.370.7410.860white0.03-58.5779983422428
117.20.150.331.10.02716.063.00.99373.370.49.950white0.17-58.381571530915814
127.00.120.327.20.05822.089.00.99663.290.389.260white0.01-58.6052087737996
137.40.320.5516.60.05653.0238.01.00172.960.588.760white0.03-58.960365773761005
146.80.310.426.90.04650.0173.00.99583.190.469.050white0.12-58.66736252331357
156.80.270.357.80.04876.0197.00.99593.240.439.560white0.01-58.675915705869606
168.10.220.287.70.04357.0176.00.99543.120.5510.050white0.17-58.56551692177333
177.60.20.314.20.05653.0212.50.9993.140.468.981white0.03-58.80341292798906
187.00.280.3314.60.04347.0168.00.99943.340.678.860white0.09-58.88978796519038
196.80.310.091.40.0456.0145.00.99223.190.4610.050white0.18-58.61623926350483
206.70.310.081.30.03858.0147.00.99223.180.4610.050white0.12-58.622381186283306
217.00.280.3314.60.04347.0168.00.99943.340.678.860white0.04-58.88978796519038
228.40.20.3811.80.05551.0170.01.00043.340.828.960white0.2-58.81740307122048
237.70.260.346.40.0536.0163.00.99373.190.711.560white0.12-58.495830879121826
246.30.210.281.50.05146.0142.00.99283.230.4210.160white0.12-58.4975624783967
259.50.420.412.30.03422.0145.00.99513.060.5211.060white0.03-58.598942536946346
267.60.290.266.50.04232.0160.00.99443.140.4710.750white0.11-58.60258270905935
277.20.230.3312.70.04950.0183.00.99873.410.49.850white0.17-58.803314967974664
288.30.330.439.20.04622.0126.00.99823.380.479.350white0.05-58.76484829126127
296.30.280.248.450.03132.0172.00.99583.390.579.771white0.05-58.72622741141045
307.80.270.281.80.0521.0127.00.99343.150.449.950white0.13-58.524910832318604
316.60.230.275.60.04343.0164.00.99533.270.769.550white0.07-58.646003996095594
327.50.330.3211.10.03625.0119.00.99623.150.3410.560white0.1-58.707123699643624
338.20.170.321.50.0517.0101.00.9943.140.589.550white0.1-58.4274093679794
347.20.240.197.70.04553.0176.00.99583.170.389.550white0.02-58.70510265358381
356.60.220.5315.10.05222.0136.00.99862.940.359.450white0.1-58.70407495119238
366.60.220.5315.10.05222.0136.00.99862.940.359.450white0.08-58.70407495119238
376.00.160.36.70.04343.0153.00.99513.630.4610.650white0.02-58.57290676946854
387.70.230.3110.70.03859.0186.00.99693.120.559.560white0.2-58.65706483648152
396.80.20.271.20.03419.068.00.99023.140.3711.740white0.14-58.26813706699014
406.80.250.2710.70.07647.0154.00.99673.050.389.050white0.03-58.803647581640426
416.50.430.2812.00.05623.0174.00.99863.310.559.350white0.09-59.06580097068087
427.10.220.3216.90.05649.0158.00.99983.370.389.660white0.09-58.88012698731106
438.50.250.274.70.03131.092.00.99223.010.3312.060white0.14-58.356592907871416
446.80.370.284.00.0329.079.00.993.230.4612.471white0.1-58.400281389514284
458.50.250.274.70.03131.092.00.99223.010.3312.060white0.09-58.356592907871416
467.00.350.311.80.06915.0162.00.99443.180.479.450white0.15-58.72551363091594
476.90.320.137.80.04211.0117.00.9963.230.379.250white0.1-58.83602635899052
487.60.320.5816.750.0543.0163.00.99993.150.549.250white0.19-58.80535920330166
496.90.320.137.80.04211.0117.00.9963.230.379.250white0.2-58.83602635899052
506.00.340.245.40.0623.0126.00.99513.250.449.071white0.18-58.81845639164539
517.70.240.311.30.04733.0106.00.9933.220.5510.860white0.11-58.45265181263055
526.60.320.2710.90.04137.0146.00.99633.240.4710.050white0.15-58.78254238238406
537.10.180.3212.20.04836.0125.00.99672.920.549.460white0.14-58.634031032100175
546.80.250.181.40.05613.0137.00.99353.110.429.550white0.2-58.6252745899414
557.00.220.261.10.03720.071.00.99023.10.3811.760white0.13-58.290491365618465
567.30.180.291.00.03626.0101.00.993.090.3711.760white0.03-58.20682192648096
577.10.260.32.00.03113.0128.00.99173.190.4911.450white0.08-58.385804177166996
587.40.240.261.60.05853.0150.00.99363.180.59.971white0.09-58.55455607338372
597.70.280.296.90.04129.0163.00.99523.440.610.560white0.04-58.62079348244895
608.00.450.2810.80.05125.0157.00.99573.060.4711.471white0.06-58.82224870873615
617.70.280.5812.10.04660.0177.00.99833.080.468.950white0.0-58.66022684853784
626.50.390.351.60.04910.0164.00.995163.350.519.750white0.18-58.773420817428565
636.70.230.4211.20.04752.0171.00.997583.540.7410.450white0.0-58.702346794502006
647.50.310.247.10.03128.0141.00.993973.160.3810.671white0.09-58.58581696060233
656.10.150.296.20.04639.0151.00.994713.60.4410.660white0.1-58.54618256817468
666.20.260.193.40.04947.0172.00.99243.140.4310.460white0.07-58.56618353231832
677.20.390.541.40.15734.0132.00.994493.110.539.060white0.12-58.81472180670758
686.60.190.4310.90.04553.0154.00.997523.520.7710.460white0.1-58.65513520888196
696.20.250.288.50.03528.0108.00.994863.40.4210.460white0.18-58.62648913698676
707.40.140.31.30.03325.091.00.992683.530.3910.660white0.05-58.32515478621028
716.40.160.251.30.04720.077.00.99333.610.5410.260white0.15-58.4858881864743
728.60.170.282.70.04738.0150.00.993653.10.5610.860white0.18-58.400173428611886
737.00.320.316.40.03138.0115.00.992353.380.5812.271white0.06-58.47551028650473
746.80.210.5514.60.05334.0159.00.998052.930.449.250white0.19-58.64178442300506
757.00.220.262.80.03644.0132.00.990783.340.4112.071white0.08-58.322364102388605
769.40.280.31.60.04536.0139.00.995343.110.499.350white0.0-58.568077571063824
777.50.240.6210.60.04551.0153.00.997793.160.448.850white0.02-58.57634431617525
786.60.40.321.70.03539.084.00.990963.590.4812.771white0.19-58.49378348302431
796.10.410.041.30.03623.0121.00.992283.240.619.960white0.07-58.76953994889065
806.90.30.217.20.04554.0190.00.995953.220.489.450white0.15-58.776517343880144
816.90.350.5511.950.03822.0111.00.996873.110.299.750white0.06-58.671722444007266
827.60.30.42.20.05429.0175.00.994453.190.539.850white0.04-58.57197923047856
837.50.230.3517.80.058128.0212.01.002413.440.438.950white0.06-59.026851410603314
847.20.340.38.40.05140.0167.00.997563.480.629.750white0.18-58.86621577447692
857.70.290.294.80.0627.0156.00.995723.490.5910.360white0.09-58.7077234782687
867.20.340.38.40.05140.0167.00.997563.480.629.750white0.14-58.86621577447692
877.70.40.274.50.03427.095.00.991753.210.5912.381white0.1-58.51533866684326
887.00.230.267.20.04121.090.00.995093.220.559.560white0.02-58.612408693910695
898.30.260.312.00.02914.0141.00.990772.950.7712.260white0.07-58.2621064722196
907.90.310.2213.30.04846.0212.00.999423.470.5910.050white0.08-58.95392610655981
916.50.180.291.70.03539.0144.00.99273.490.510.560white0.17-58.41430155541003
927.40.340.314.90.03770.0169.00.996983.250.3710.460white0.09-58.77671825912116
937.00.320.294.90.03641.0150.00.991683.380.4312.260white0.0-58.456614724481
946.90.30.31.30.05324.0186.00.993613.290.549.940white0.13-58.60409109045994
956.80.460.262.70.04228.083.00.991143.380.5112.081white0.16-58.60010199446327
966.50.190.274.90.03713.0101.00.99163.170.4111.860white0.04-58.36074997362885
979.20.190.422.00.04716.0104.00.995173.090.6610.040white0.13-58.41539961793054
987.80.760.042.30.09215.054.00.9973.260.659.850red0.17-59.45187889310458
997.90.60.061.60.06915.059.00.99643.30.469.450red0.06-59.19658709433635
1007.80.610.291.60.1149.029.00.99743.261.569.150red0.18-59.24034346077658
Rows: 1-100 | Columns: 16

Note

Predictions can be made automatically using the test set, in which case you don’t need to specify the predictors. Alternatively, you can pass only the VastFrame to the predict() function, but in this case, it’s essential that the column names of the VastFrame match the predictors and response name in the model.

Plots

If the model allows, you can also generate relevant plots. For example, regression plots can be found in the Machine Learning - Regression Plots.

model.plot()

Important

The plotting feature is typically suitable for models with fewer than three predictors.

Parameter Modification

In order to see the parameters:

model.get_params()

And to manually change some of the parameters:

model.set_params({'scale': True})

Model Exporting

To Memmodel

model.to_memmodel()

Note

MemModel objects serve as in-memory representations of machine learning models. They can be used for both in-database and in-memory prediction tasks. These objects can be pickled in the same way that you would pickle a scikit-learn model.

The following methods for exporting the model use MemModel, and it is recommended to use MemModel directly.

To SQL

You can get the SQL code by:

model.to_sql()

To Python

To obtain the prediction function in Python syntax, use the following code:

X = [[4.2, 0.17, 0.36, 1.8, 0.029, 0.9899]]
model.to_python()(X)

Hint

The to_python() method is used to retrieve predictions, probabilities, or cluster distances. For specific details on how to use this method for different model types, refer to the relevant documentation for each model.

__init__(name: str = None, overwrite_model: bool = False, **kwargs) None

Methods

__init__([name, overwrite_model])

contour([nbins, chart])

Draws the model's contour plot.

deploySQL([X])

Returns the SQL code needed to deploy the model.

drop()

Drops the model from the VAST DataBase.

export_models(name, path[, kind])

Exports machine learning models.

features_importance([show, chart])

Computes the model's features importance.

fit(input_relation, X, y[, test_relation, ...])

Trains the model.

get_attributes([attr_name])

Returns the model attributes.

get_match_index(x, col_list[, str_check])

Returns the matching index.

get_params()

Returns the parameters of the model.

get_plotting_lib([class_name, chart, ...])

Returns the first available library (Plotly, Matplotlib) to draw a specific graphic.

import_models(path[, schema, kind])

Imports machine learning models.

plot([max_nb_points, chart])

Draws the model.

predict(vdf[, X, name, inplace])

Predicts using the input relation.

regression_report([metrics])

Computes a regression report using multiple metrics to evaluate the model (r2, mse, max error...).

report([metrics])

Computes a regression report using multiple metrics to evaluate the model (r2, mse, max error...).

score([metric])

Computes the model score.

set_params([parameters])

Sets the parameters of the model.

summarize()

Summarizes the model.

to_binary(path)

Exports the model to the VAST Binary format.

to_memmodel()

Converts the model to an InMemory object that can be used for different types of predictions.

to_python([return_proba, ...])

Returns the Python function needed for in-memory scoring without using built-in VAST functions.

to_sql([X, return_proba, ...])

Returns the SQL code needed to deploy the model without using built-in VAST functions.

Attributes

object_type