Module sktmls.models.contrib.vas_xcloud_rule_model

Classes

class VasXcloudRuleModel (model_name: str, model_version: str, features: List[str])

Args

  • model_name: (str) 모델 이름
  • model_version: (str) 모델 버전
  • features: (list(str)) 피쳐 리스트

Example

my_model = VasXcloudRuleModel(
    model_name="vas_xloud_rule_model",
    model_version="v1",
    features=[
        "age",
        "real_arpu_bf_m1",
        "app_use_traffic_game",
        "app_use_days_video_median_yn",
        "data_use_night_ratio_median_yn",
    ],
)

result = my_model.predict([20, 55000, 10000, "Y", "Y"])

Ancestors

Methods

def predict(self, x: List[Any], **kwargs) ‑> Dict[str, Any]

Inherited members