Comments (3)
Wendy Wong commented: codes to reproduce customer issue:
import pandas as pd
import numpy as np
import pandas as pd
import numpy as np
import h2o
from h2o.estimators.coxph import H2OCoxProportionalHazardsEstimator
h2o.init()
np.random.seed(1234)
n_rows = 10
start = np.random.choice([0, 1, 2, 3, 4], size=10)
delta = np.random.choice([1, 2, 3], size=10)
data = {
"start": start,
"stop": start + delta,
"X1": np.random.randn(n_rows),
"X2": np.random.randn(n_rows),
"age": np.random.choice(["young", "old"], 10),
"W": np.random.choice([10, 20], size=n_rows),
"Offset": np.random.uniform(0, 1, 10),
"Y": np.random.choice([0, 1], size=n_rows)
}
train = h2o.H2OFrame(pd.DataFrame(data))
train["age"] = train["age"].asfactor()
h2o_model = H2OCoxProportionalHazardsEstimator(
start_column="start",
stop_column="stop",
weights_column="W",
offset_column="Offset",
interactions=["X1", "X2"],
stratify_by=["age"]
)
h2o_model.train(x=["X1", "X2", "age"], y="Y", training_frame=train)
h2o_model.save_mojo("./data/test")
from h2o-3.
Wendy Wong commented: Fixed in JIRA-8945
from h2o-3.
JIRA Issue Details
Jira Issue: PUBDEV-8944
Assignee: New H2O Bugs
Reporter: Wendy Wong
State: Closed
Fix Version: N/A
Attachments: N/A
Development PRs: N/A
from h2o-3.
Related Issues (20)
- Rows Duplicated When Reading Python Dictionary
- POJO Reading change
- Validate h2o-3 package on R 4.4
- `h2o.set_s3_credentials` should support endpoint and region HOT 1
- Infogram bug in algorithm_params HOT 2
- Updating user guide - Index to adhere to makersaurus guidelines
- Updating user guide - Welcome to adhere to makersaurus guidelines
- Enable set auc_type parameter when using H2OAutoML HOT 1
- Updating user guide - Cloud Integration to adhere to makersaurus guidelines
- Updating user guide - API Changes to adhere to makersaurus guidelines
- Updating user guide - Downloading & Installing H2O to adhere to makersaurus guidelines
- 3.46.0.2 Release notes
- The h2o.findSynonyms failed if the 'word' parameter is uknown for the word2vec model HOT 3
- Fix the links in the download page for install on hadoop HOT 2
- Improve POJO documentation HOT 1
- Load randomForest library causes error in R tests
- Investigate if generic model can be saved as mojo again. HOT 6
- Throw usef friendly error the importing binary model is allowed only in the same version as was created
- provide example code to run constrained GLM
- update latest quickstart video for H2O-3 opensource.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from h2o-3.