Skip to content

Commit 8c6d756

Browse files
Merge pull request #10 from loft-br/update-docs
doc: update readme and add smaller examples
2 parents 1c92061 + 62762bd commit 8c6d756

20 files changed

+7279
-774
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ The package follows `scikit-learn` API, with a minor adaptation to work with tim
3737
from pycox.datasets import metabric
3838

3939
# importing model and utils from xgbse
40-
from xgbse import XGBEmbedKaplanNeighbors
40+
from xgbse import XGBSEKaplanNeighbors
4141
from xgbse.converters import convert_to_structured
4242

4343
# getting data
@@ -48,7 +48,7 @@ X = df.drop(['duration', 'event'], axis=1)
4848
y = convert_to_structured(df['duration'], df['event'])
4949

5050
# fitting xgbse model
51-
xgbse_model = XGBEmbedKaplanNeighbors(n_neighbors=50)
51+
xgbse_model = XGBSEKaplanNeighbors(n_neighbors=50)
5252
xgbse_model.fit(X, y)
5353

5454
# predicting
@@ -234,7 +234,7 @@ A simple interface to `xgboost` early stopping is provided.
234234
train_test_split(X, y, test_size=0.2, random_state=42)
235235

236236
# fitting with early stopping
237-
xgb_model = XGBEmbedBCE()
237+
xgb_model = XGBSEDebiasedBCE()
238238
xgb_model.fit(
239239
X_train,
240240
y_train,
@@ -407,7 +407,7 @@ To cite this repository:
407407
author = {Davi Vieira and Gabriel Gimenez and Guilherme Marmerola and Vitor Estima},
408408
title = {XGBoost Survival Embeddings: improving statistical properties of XGBoost survival analysis implementation},
409409
url = {http://github.com/loft-br/xgboost-survival-embeddings},
410-
version = {0.1.1},
410+
version = {0.1.2},
411411
year = {2020},
412412
}
413413
```

docs/basic-usage.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The package follows `scikit-learn` API, with a minor adaptation to work with tim
99
from pycox.datasets import metabric
1010

1111
# importing model and utils from xgbse
12-
from xgbse import XGBEmbedKaplanNeighbors
12+
from xgbse import XGBSEKaplanNeighbors
1313
from xgbse.converters import convert_to_structured
1414

1515
# getting data
@@ -20,7 +20,7 @@ X = df.drop(['duration', 'event'], axis=1)
2020
y = convert_to_structured(df['duration'], df['event'])
2121

2222
# fitting xgbse model
23-
xgbse_model = XGBEmbedKaplanNeighbors(n_neighbors=50)
23+
xgbse_model = XGBSEKaplanNeighbors(n_neighbors=50)
2424
xgbse_model.fit(X, y)
2525

2626
# predicting
@@ -189,7 +189,7 @@ A simple interface to `xgboost` early stopping is provided.
189189
train_test_split(X, y, test_size=0.2, random_state=42)
190190

191191
# fitting with early stopping
192-
xgb_model = XGBEmbedBCE()
192+
xgb_model = XGBSEDebiasedBCE()
193193
xgb_model.fit(
194194
X_train,
195195
y_train,
@@ -360,7 +360,7 @@ To cite this repository:
360360
author = {Davi Vieira and Gabriel Gimenez and Guilherme Marmerola and Vitor Estima},
361361
title = {XGBoost Survival Embeddings: improving statistical properties of XGBoost survival analysis implementation},
362362
url = {http://github.com/loft-br/xgboost-survival-embeddings},
363-
version = {0.1.1},
363+
version = {0.1.2},
364364
year = {2020},
365365
}
366366
```

0 commit comments

Comments
 (0)