Model.transform

In [ ]:
Model.transform()

Creates a vDataFrame of the model.

Returns

vDataFrame : object result of the model transformation.

Example

In [26]:
from verticapy.learn.preprocessing import CountVectorizer
model = CountVectorizer("cv_titanic")
model.fit("public.titanic", 
          ["name", "embarked", "cabin"])
model.transform()
Abc
token
Varchar(128)
123
df
Numeric(36,18)
123
cnt
Int
123
rnk
Int
1[null]0.4159369527145359029501
2mr0.0577933450087565671322
3mrs0.032837127845884413753
4miss0.023642732049036778544
5william0.007880910683012259185
6john0.007443082311733800176
7master0.00394045534150613097
8edward0.00350262697022767188
9walter0.00306479859894921279
10thomas0.00306479859894921279
11mary0.00306479859894921279
12henry0.00306479859894921279
13george0.00306479859894921279
14charles0.00306479859894921279
15frederick0.002626970227670753615
16fortune0.002626970227670753615
17elizabeth0.002626970227670753615
18c250.002626970227670753615
19c20.002626970227670753615
20richard0.002189141856392294520
21james0.002189141856392294520
22helen0.002189141856392294520
23edith0.002189141856392294520
24arthur0.002189141856392294520
25y0.001751313485113835425
26taylor0.001751313485113835425
27smith0.001751313485113835425
28ryerson0.001751313485113835425
29robert0.001751313485113835425
30margaret0.001751313485113835425
31graham0.001751313485113835425
32dr0.001751313485113835425
33carter0.001751313485113835425
34c260.001751313485113835425
35becker0.001751313485113835425
36b980.001751313485113835425
37b60.001751313485113835425
38b590.001751313485113835425
39b50.001751313485113835425
40allison0.001751313485113835425
41widener0.001313485113835377341
42white0.001313485113835377341
43thayer0.001313485113835377341
44taussig0.001313485113835377341
45spencer0.001313485113835377341
46spedden0.001313485113835377341
47sandstrom0.001313485113835377341
48peter0.001313485113835377341
49newell0.001313485113835377341
50minahan0.001313485113835377341
51martha0.001313485113835377341
52marie0.001313485113835377341
53lamsonsc1010.001313485113835377341
54hudson0.001313485113835377341
55herbert0.001313485113835377341
56helene0.001313485113835377341
57hays0.001313485113835377341
58emil0.001313485113835377341
59e0.001313485113835377341
60douglas0.001313485113835377341
61dodge0.001313485113835377341
62crosby0.001313485113835377341
63compton0.001313485113835377341
64col0.001313485113835377341
65boriecb570.001313485113835377341
66b600.001313485113835377341
67b530.001313485113835377341
68alice0.001313485113835377341
69albert0.001313485113835377341
70washingtonsa340.000875656742556918270
71washington0.000875656742556918270
72warren0.000875656742556918270
73victor0.000875656742556918270
74tyrell0.000875656742556918270
75thornton0.000875656742556918270
76strom0.000875656742556918270
77straus0.000875656742556918270
78stengel0.000875656742556918270
79sophia0.000875656742556918270
80snyder0.000875656742556918270
81silvey0.000875656742556918270
82samuel0.000875656742556918270
83ruth0.000875656742556918270
84polksb960.000875656742556918270
85penasco0.000875656742556918270
86pears0.000875656742556918270
87paul0.000875656742556918270
88ostby0.000875656742556918270
89norman0.000875656742556918270
90nelson0.000875656742556918270
91navratil0.000875656742556918270
92moor0.000875656742556918270
93may0.000875656742556918270
94marvin0.000875656742556918270
95maria0.000875656742556918270
96major0.000875656742556918270
97lucile0.000875656742556918270
98lucien0.000875656742556918270
99lines0.000875656742556918270
100lily0.000875656742556918270
Out[26]:
Rows: 1-100 of 750 | Columns: 4