%matplotlib inline
import random, os, sys
import h2o
import pandas
import pprint
import operator
import matplotlib
from h2o.estimators.glm import H2OGeneralizedLinearEstimator
from h2o.estimators.gbm import H2OGradientBoostingEstimator
from h2o.estimators.random_forest import H2ORandomForestEstimator
from h2o.estimators.deeplearning import H2ODeepLearningEstimator
from tabulate import tabulate
from h2o.automl import H2OAutoML
from datetime import datetime
import pandas as pd
import logging
import csv
import optparse
import time
import json
from distutils.util import strtobool
import psutil
import numpy as np
# 连接H2O服务器
h2o.init(strict_version_check=False)
# 设置交互式图形
interactive = True
if not interactive: matplotlib.use('Agg', warn=False)
import matplotlib.pyplot as plt
# 导入数据集
print("Import and Parse airlines data")
data = h2o.import_file(path='data/allyears2k.csv')
data.describe()
#
def scatter_plot(data, x, y, max_points = 1000
python--h2o实现广义线性模型
最新推荐文章于 2024-07-09 06:30:00 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)