Loading...

vastorbit.machine_learning.vast.linear_model.PoissonRegressor

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

Creates an PoissonRegressor 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 PoissonRegressor model:

from vastorbit.machine_learning.vast import PoissonRegressor

Then we can create the model:

model = PoissonRegressor(
    tol = 1e-6,
    alpha = 1,
    max_iter = 100,
    fit_intercept = True,
)

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.005729900173940372
max_error7.235282431564016
median_absolute_error4.230854290146871
mean_absolute_error4.051821006209925
mean_squared_error16.193842579956193
root_mean_squared_error4.1394627321506485
r2-22.73173236265499
r2_adj-22.84109518460271
aic3659.2435010662607
bic3695.321218130935
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
Regression621762.4559083006753627.075984716779229.352192883440153.422967368677542e-200
Residual130220590.3979932786615.814437782856114
Total1308966.3720397249851
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
19.20.160.492.00.04418.0107.00.995143.10.5310.240white0.141.7567522931465274
29.80.160.461.80.04623.0130.00.995873.040.679.650white0.11.7517624933301672
37.10.210.282.70.03423.0111.00.994053.350.6410.240white0.181.7690521922332318
47.00.160.266.850.04730.0220.00.996223.380.5810.160white0.091.7657545959884795
56.80.260.4311.750.04553.0198.00.99693.260.559.550white0.161.75975630639991
66.40.270.178.40.04460.0198.00.995783.210.479.450white0.151.7641163219728915
76.90.430.289.40.05629.0183.00.995943.170.439.450white0.141.754816596931804
87.60.2850.3214.60.06332.0201.00.9983.00.459.250white0.051.7473643103089163
96.60.260.271.50.0419.0114.00.992953.360.6210.560white0.111.7729582403012532
106.60.560.1510.00.03738.0157.00.996423.280.529.450white0.21.7509599960376983
117.80.320.3310.40.03147.0194.00.996923.070.589.660white0.091.7503765647132206
126.60.330.2416.050.04531.0147.00.998223.080.529.250white0.21.7513882869893362
137.50.270.7911.950.0451.0159.00.998392.980.448.750white0.141.757585831506643
145.20.160.340.80.02926.077.00.991553.250.5110.160white0.091.7893445144521123
156.10.270.311.50.03517.083.00.990763.320.4411.171white0.21.7772043314758499
167.40.560.091.50.07119.0117.00.994963.220.539.850white0.141.754645032462573
176.10.280.2419.950.07432.0174.00.999223.190.449.360white0.031.7518243203856414
187.60.310.2312.70.05420.0139.00.998363.160.59.740white0.191.748067537465013
198.60.230.2511.30.03113.096.00.996453.110.410.850white0.151.7446325593074334
206.80.210.3618.10.04632.0133.01.03.270.488.850white0.051.7522693768235056
216.40.310.46.40.03939.0191.00.995133.140.529.850white0.031.7680928379198104
227.10.340.315.20.03236.0140.00.991663.350.4712.371white0.041.762001501398871
237.30.510.2911.30.03461.0224.00.996833.140.569.560white0.01.7467548909325896
247.50.410.2314.80.05428.0174.00.998983.180.499.750white0.021.7429572460333667
256.50.180.331.40.02935.0138.00.991143.360.611.571white0.191.7771989627134435
267.50.410.2314.80.05428.0174.00.998983.180.499.750white0.071.7429572460333667
275.80.30.121.60.03657.0163.00.992393.380.5910.560white0.091.7763974315165252
285.90.280.148.60.03230.0142.00.995423.280.449.560white0.061.7673414588056242
297.20.220.241.40.04117.0159.00.991963.250.5311.260white0.191.7691200087370336
306.20.330.144.80.05227.0128.00.994753.210.489.450white0.061.7681446086796184
315.70.2550.651.20.07917.0137.00.993073.20.429.450white0.021.7849712757590654
326.90.280.2210.00.05236.0131.00.996963.080.469.650white0.111.7581556709263917
336.90.320.262.30.0311.0103.00.991063.060.4211.160white0.11.7674941403543658
346.60.410.161.40.03728.0160.00.991672.950.4510.660white0.051.7670702382266674
357.00.140.281.30.02610.056.00.993523.460.459.950white0.141.7739688642612443
365.80.30.271.70.01445.0104.00.989143.40.5612.671white0.021.7780942959056159
377.30.320.291.50.03832.0144.00.992963.20.5510.850white0.151.7655690962576922
387.80.280.312.10.04628.0208.00.994343.230.649.850white0.071.762164819197309
396.80.110.421.10.04251.0132.00.990593.180.7411.371white0.121.7783281786330976
406.70.30.292.80.02537.0107.00.991593.310.6311.371white0.181.7694807293282842
416.50.180.4114.20.03947.0129.00.996783.280.7210.371white0.021.7613672944085574
426.60.260.212.90.02648.0126.00.990893.220.3811.371white0.161.7705267442252244
436.60.350.356.00.06331.0150.00.995373.10.479.460white0.11.7650080995730475
446.70.280.282.40.01236.0100.00.990643.260.3911.771white0.041.7705964049596605
457.40.20.371.20.02828.089.00.991323.140.6111.860white0.071.7699355896431042
466.10.150.3515.80.04255.0158.00.996423.240.3710.650white0.171.7628047769035273
475.80.150.280.80.03743.0127.00.991983.240.519.350white0.091.7840394300756297
486.40.680.263.40.06925.0146.00.993473.180.49.350white0.011.7584513833762958
497.40.40.295.40.04431.0122.00.9943.30.511.181white0.061.757085143755268
506.30.390.246.90.0699.0117.00.99423.150.3510.240white0.011.763724867257231
518.20.220.366.80.03412.090.00.99443.010.3810.581white0.191.7553196915540628
527.90.20.341.20.0429.0118.00.99323.140.4110.660white0.031.7654470604303207
537.10.260.325.90.03739.097.00.99343.310.411.660white0.061.7637260418337237
545.80.170.31.40.03755.0130.00.99093.290.3811.360white0.171.7828478241386476
555.90.4150.020.80.03822.063.00.99323.360.369.350white0.051.7718074164876372
569.20.280.4911.80.04229.0137.00.9983.10.3410.140white0.111.740160136970525
575.30.1650.241.10.05125.0105.00.99253.320.479.150white0.111.7867209349865414
588.10.290.497.10.04222.0124.00.99443.140.4110.860white0.151.7549494591826023
597.40.250.491.10.04235.0156.00.99173.130.5511.350white0.031.7697619844154096
607.00.390.241.00.0488.0119.00.99233.00.3110.140white0.041.7658152900276816
616.50.360.492.90.0316.094.00.99023.10.4912.171white0.171.7713200388971293
627.40.250.491.10.04235.0156.00.99173.130.5511.350white0.171.7697619844154096
636.30.230.497.10.0567.0210.00.99513.230.349.550white0.011.7715130875824596
647.20.260.7413.60.0556.0162.00.9983.030.448.850white0.131.757580334791013
656.90.190.496.60.03649.0172.00.99323.20.2711.560white0.051.7686187381489957
667.80.430.4913.00.03337.0158.00.99553.140.3511.360white0.11.7452908564012406
677.10.220.742.70.04442.0144.00.9913.310.4112.260white0.041.7739170214995428
686.40.1450.495.40.04854.0164.00.99463.560.4410.860white0.121.7756343023864551
697.10.250.493.00.0330.096.00.99033.130.3912.371white0.191.7697994418734266
707.80.430.4913.00.03337.0158.00.99553.140.3511.360white0.011.7452908564012406
717.00.20.495.90.03839.0128.00.99383.210.4810.860white0.161.7683849228230517
726.60.250.241.70.04826.0124.00.99423.370.610.160white0.141.77263130043199
736.70.160.492.40.04657.0187.00.99523.620.8110.460white0.021.7766279947690888
747.40.280.491.50.03420.0126.00.99182.980.3910.660white0.041.7683267875710573
756.70.250.7419.40.05444.0169.01.00043.510.459.860white0.081.7543974279635879
768.00.30.499.40.04647.0188.00.99643.140.4810.050white0.01.752426119330196
776.80.270.491.20.04435.0126.00.993.130.4812.171white0.031.7738820415385448
788.30.20.491.70.0434.0169.00.99383.050.3710.150white0.011.7632369195650723
796.80.360.244.60.03924.0124.00.99093.270.3412.671white0.191.7637609833534098
809.20.180.491.50.04139.0130.00.99453.040.499.871white0.021.756782770736878
817.30.220.499.90.03148.0161.00.99373.010.2811.260white0.181.760121709996906
828.20.220.499.60.03753.0154.00.99513.020.3310.660white0.011.753132905366893
838.20.240.499.30.03852.0163.00.99523.020.3310.660white0.091.752880774495583
846.60.30.241.20.03417.0121.00.99333.130.369.250white0.141.7717643036021975
856.60.210.4918.150.04241.0158.00.99973.280.398.760white0.011.75533808109557
867.50.230.497.70.04961.0209.00.99413.140.311.171white0.131.7609411493590006
877.90.120.495.20.04933.0152.00.99523.180.4710.660white0.131.7644417632875509
886.60.190.991.20.12245.0129.00.99363.090.318.760white0.011.7833359030898501
897.30.210.491.80.03844.0152.00.99123.320.4412.671white0.041.7709631178754026
907.90.420.498.20.05632.0164.00.99653.290.611.271white0.01.7509263688001988
916.90.240.491.30.03235.0148.00.99323.450.5710.771white0.01.7739544943919947
927.80.30.741.80.03333.0156.00.9913.290.5212.860white0.041.7668839501701068
937.60.180.4918.050.04636.0158.00.99963.060.419.250white0.171.7482405281093432
946.60.30.744.60.04136.0159.00.99463.210.459.950white0.191.7729847793719078
959.00.30.497.20.03932.084.00.99382.940.3211.560white0.041.7471698407916278
966.40.180.7411.90.04654.0168.00.99783.580.6810.150white0.161.7688994966116363
976.40.250.747.80.04552.0209.00.99563.210.429.260white0.051.7720184692313117
988.60.160.497.30.0439.063.00.99533.130.5910.560white0.151.7547467466762727
996.40.270.497.30.04653.0206.00.99563.240.439.260white0.021.7691816993925713
1006.30.240.741.40.17224.0108.00.99323.270.399.960white0.021.7808163021497414
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({'tol': 0.001})

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