Loading...

vastorbit.machine_learning.vast.linear_model.Lasso

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

Creates a Lasso 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 Lasso model:

from vastorbit.machine_learning.vast import Lasso

Then we can create the model:

model = Lasso(
    tol = 1e-6,
    alpha = 0.5,
    max_iter = 100,
)

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_variance-6.661338147750939e-16
max_error2.8161252900232014
median_absolute_error0.6882705413949076
mean_absolute_error0.6552147266120845
mean_squared_error0.772291719589362
root_mean_squared_error0.8367908188528812
r2-0.00034645858802329066
r2_adj-0.004900387838044473
aic-328.21117261145594
bic-292.04645174547494
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
Regression60.89133780670495950.148556301117493270.185154476680838060.9810020855231005
Residual13181057.48026395474930.8023370743207506
Total13241058.975094339618
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.10.290.332.050.06313.027.00.995163.260.8411.771red0.045.816125290023201
29.60.50.362.80.115999999999999926.055.00.997223.180.6810.950red0.045.816125290023201
37.71.0050.152.10.10211.032.00.996043.230.4810.050red0.055.816125290023201
48.00.180.370.90.04936.0109.00.990072.890.4412.760red0.095.816125290023201
57.00.510.092.10.0624.09.00.995843.350.5410.550red0.015.816125290023201
68.60.830.02.80.09517.043.00.998223.330.610.460red0.05.816125290023201
77.90.310.321.90.06614.036.00.993643.410.5612.660red0.135.816125290023201
86.40.7950.02.20.06528.052.00.993783.490.5211.650red0.05.816125290023201
97.20.340.212.50.07541.068.00.995863.370.5410.160red0.095.816125290023201
107.70.580.011.80.08812.018.00.995683.320.5610.571red0.135.816125290023201
117.10.590.02.10.0919.014.00.994883.420.5511.571red0.165.816125290023201
128.10.820.04.10.0955.014.00.998543.360.539.650red0.05.816125290023201
138.90.7450.182.50.07715.048.00.997393.20.479.760red0.115.816125290023201
146.90.490.191.70.07913.026.00.995473.380.649.860red0.135.816125290023201
159.50.390.418.90.06918.039.00.998593.290.8110.971red0.15.816125290023201
168.30.330.422.30.079.020.00.994263.380.7712.771red0.085.816125290023201
178.20.640.272.00.0955.077.00.997473.130.629.160red0.15.816125290023201
188.20.740.092.00.0675.010.00.994183.280.5711.860red0.165.816125290023201
197.70.610.182.40.0836.020.00.99633.290.610.260red0.115.816125290023201
206.60.520.082.40.0713.026.00.993583.40.7212.571red0.195.816125290023201
218.00.620.352.80.08628.052.00.9973.310.6210.850red0.195.816125290023201
229.10.250.342.00.07145.067.00.997693.440.8610.271red0.175.816125290023201
237.90.30.688.30.0537.5289.00.993163.010.5112.371red0.085.816125290023201
246.80.480.081.80.07440.064.00.995293.120.499.650red0.035.816125290023201
2511.60.410.541.50.09522.041.00.997353.020.769.971red0.045.816125290023201
269.20.310.362.20.07911.031.00.996153.330.8612.071red0.175.816125290023201
279.40.40.472.50.0876.020.00.997723.150.510.550red0.185.816125290023201
285.40.420.272.00.09223.055.00.994713.780.6412.371red0.055.816125290023201
297.00.690.072.50.09115.021.00.995723.380.611.360red0.135.816125290023201
306.30.470.01.40.05527.033.00.99223.450.4812.360red0.115.816125290023201
3110.70.40.371.90.08117.029.00.996743.120.6511.260red0.155.816125290023201
326.50.580.02.20.0963.013.00.995573.620.6211.540red0.065.816125290023201
338.80.240.351.70.05513.027.00.993943.140.5911.371red0.145.816125290023201
3410.00.430.332.70.09528.089.00.99843.220.6810.050red0.15.816125290023201
357.20.480.075.50.08910.018.00.996843.370.6811.271red0.175.816125290023201
368.00.250.431.70.06722.050.00.99463.380.611.960red0.185.816125290023201
3710.40.520.452.00.086.013.00.997743.220.7611.460red0.115.816125290023201
388.20.380.322.50.0824.071.00.996243.270.8511.060red0.195.816125290023201
396.10.580.232.50.04416.070.00.993523.460.6512.560red0.095.816125290023201
406.60.580.02.20.150.063.00.995443.590.6811.460red0.015.816125290023201
418.50.180.511.750.07145.088.00.995243.330.7611.871red0.175.816125290023201
428.50.320.422.30.07512.019.00.994343.140.7111.871red0.085.816125290023201
439.90.540.262.00.1117.060.00.997092.940.9810.250red0.05.816125290023201
447.60.50.292.30.0865.014.00.995023.320.6211.560red0.145.816125290023201
456.60.80.037.80.0796.012.00.99633.520.512.250red0.145.816125290023201
467.00.430.32.00.0856.039.00.993463.330.4611.960red0.185.816125290023201
478.80.9550.051.80.0755.019.00.996163.30.449.640red0.165.816125290023201
489.10.40.574.60.086.020.00.996523.280.5712.560red0.055.816125290023201
497.90.580.232.30.07623.094.00.996863.210.589.560red0.185.816125290023201
507.70.570.211.50.0694.09.00.994583.160.549.860red0.065.816125290023201
518.60.420.391.80.0686.012.00.995163.350.6911.781red0.025.816125290023201
527.20.360.462.10.07424.044.00.995343.40.8511.071red0.095.816125290023201
536.60.440.152.10.07622.053.00.99573.320.629.350red0.115.816125290023201
5410.20.230.372.20.05714.036.00.996143.230.499.340red0.15.816125290023201
557.10.750.012.20.05911.018.00.992423.390.412.860red0.115.816125290023201
566.00.330.3212.90.0546.0113.00.995723.30.5611.540red0.045.816125290023201
577.80.550.01.70.077.017.00.996593.260.649.460red0.045.816125290023201
587.40.550.191.80.081999999999999915.034.00.996553.490.6810.550red0.05.816125290023201
597.40.550.191.80.081999999999999915.034.00.996553.490.6810.550red0.035.816125290023201
607.90.660.01.40.0966.013.00.995693.430.589.550red0.175.816125290023201
618.30.40.418.20.0515.0122.00.99793.390.499.350white0.025.816125290023201
625.90.340.312.00.0338.0142.00.988923.40.4112.971white0.065.816125290023201
637.20.320.245.60.03323.0120.00.993342.920.6610.371white0.085.816125290023201
647.60.10.331.00.03133.093.00.990943.060.6811.260white0.025.816125290023201
656.60.210.291.80.02635.0128.00.991833.370.4811.260white0.05.816125290023201
666.60.240.388.00.04256.0187.00.995773.210.469.250white0.025.816125290023201
676.50.230.3616.30.03843.0133.00.999243.260.418.850white0.125.816125290023201
687.80.250.3413.70.04466.0184.00.999763.220.758.950white0.045.816125290023201
695.60.20.221.30.04925.0155.00.992963.740.4310.050white0.165.816125290023201
707.50.260.34.60.02729.092.00.990853.150.3812.071white0.015.816125290023201
718.20.370.6413.90.04322.0171.00.998732.990.89.350white0.135.816125290023201
727.50.180.316.50.02953.0160.00.992763.030.3810.960white0.095.816125290023201
735.30.20.313.60.03622.091.00.992783.410.59.860white0.155.816125290023201
747.90.510.366.20.05130.0173.00.99843.090.539.750white0.095.816125290023201
757.90.510.342.60.04913.0135.00.993353.090.5110.050white0.165.816125290023201
767.10.290.289.30.04850.0141.00.99493.130.4910.360white0.135.816125290023201
776.50.170.311.50.04134.0121.00.990923.060.4610.560white0.095.816125290023201
788.00.230.282.70.04849.0165.00.99523.260.729.560white0.185.816125290023201
797.70.180.355.80.05525.0144.00.995763.240.5410.260white0.055.816125290023201
806.00.260.151.30.0651.0154.00.993543.140.518.750white0.095.816125290023201
817.70.30.341.20.0484.0119.00.990843.180.3412.160white0.025.816125290023201
827.90.160.37.40.0558.0152.00.996123.120.379.560white0.085.816125290023201
837.00.360.3210.50.04535.0135.00.99353.090.3311.681white0.05.816125290023201
846.20.2350.341.90.0364.0117.00.990323.40.4412.250white0.055.816125290023201
857.80.9650.665.80.0748.0160.01.038983.390.6911.760white0.065.816125290023201
866.40.240.2520.20.08335.0157.00.999763.170.59.150white0.045.816125290023201
876.80.260.448.20.04652.0183.00.995843.20.519.450white0.065.816125290023201
887.30.20.261.60.0436.0123.00.992383.340.4410.860white0.165.816125290023201
897.50.170.7111.80.03852.0148.00.998013.030.468.950white0.115.816125290023201
907.20.260.46.30.04752.0172.00.995733.180.539.560white0.175.816125290023201
917.10.260.3216.20.04431.0170.00.996443.170.3711.250white0.125.816125290023201
927.30.260.39.30.0535.0154.00.995813.210.510.460white0.015.816125290023201
935.80.220.290.90.03434.089.00.989363.140.3611.171white0.05.816125290023201
948.00.220.315.60.04924.097.00.9933.10.4210.950white0.015.816125290023201
956.50.220.297.40.02816.087.00.993113.150.5610.971white0.015.816125290023201
967.30.230.349.30.05219.086.00.995743.040.5610.050white0.095.816125290023201
975.30.160.391.00.02840.0101.00.991563.570.5910.660white0.145.816125290023201
986.40.210.285.90.04729.0101.00.992783.150.411.060white0.05.816125290023201
996.70.150.381.70.03720.084.00.990463.090.5311.460white0.115.816125290023201
1006.40.220.3113.90.0457.0135.00.996723.210.3810.750white0.095.816125290023201
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.

Contour plot is another useful plot that can be produced for models with two predictors.

model.contour()

Important

Machine learning models with two predictors can usually benefit from their own contour plot. This visual representation aids in exploring predictions and gaining a deeper understanding of how these models perform in different scenarios. Please refer to Contour Plot for more examples.

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