Model.predict

In [ ]:
Model.predict()

Creates a vDataFrame of the model.

Returns

vDataFrame : the vDataFrame including the prediction.

Example

In [20]:
from verticapy.learn.cluster import DBSCAN
model = DBSCAN(name = "public.DBSCAN_iris")
model.fit("public.iris", ["PetalLengthCm", "PetalWidthCm"])
model.predict()
123
PetalLengthCm
Numeric(5,2)
123
PetalWidthCm
Numeric(5,2)
123
dbscan_cluster
Int
11.000.200
21.100.100
31.200.200
41.200.200
51.300.200
61.300.200
71.300.200
81.300.200
91.300.300
101.300.300
111.300.400
121.400.100
131.400.200
141.400.200
151.400.200
161.400.200
171.400.200
181.400.200
191.400.200
201.400.200
211.400.300
221.400.300
231.400.300
241.500.100
251.500.100
261.500.100
271.500.100
281.500.200
291.500.200
301.500.200
311.500.200
321.500.200
331.500.200
341.500.300
351.500.400
361.500.400
371.500.400
381.600.200
391.600.200
401.600.200
411.600.200
421.600.200
431.600.400
441.600.600
451.700.200
461.700.300
471.700.400
481.700.500
491.900.200
501.900.400
513.001.101
523.301.001
533.301.001
543.501.001
553.501.001
563.601.301
573.701.001
583.801.101
593.901.101
603.901.201
613.901.402
624.001.002
634.001.202
644.001.302
654.001.302
664.001.302
674.101.002
684.101.302
694.101.302
704.201.202
714.201.302
724.201.302
734.201.502
744.301.302
754.301.302
764.401.202
774.401.302
784.401.402
794.401.402
804.501.302
814.501.502
824.501.502
834.501.502
844.501.502
854.501.502
864.501.602
874.501.702
884.601.302
894.601.402
904.601.502
914.701.202
924.701.402
934.701.402
944.701.502
954.701.602
964.801.402
974.801.802
984.801.802
994.801.802
1004.901.502
Out[20]:
Rows: 1-100 of 150 | Columns: 3