verticapy.machine_learning.memmodel.naive_bayes.NaiveBayes.get_attributes#
- NaiveBayes.get_attributes() dict #
Returns the model attributes.
Examples#
Import the required module.
from verticapy.machine_learning.memmodel.linear_model import LinearModel
We will use the following attributes:
coefficients = [0.5, 1.2] intercept = 2.0
Let’s create a model.
model_lm = LinearModel(coefficients, intercept)
Let’s get the model attributes.
model_lm.get_attributes() Out[16]: {'coef': array([0.5, 1.2]), 'intercept': 2.0}
Important
For this example, a specific model is utilized, and it may not correspond exactly to the model you are working with. To see a comprehensive example specific to your class of interest, please refer to that particular class.