From 0763dfbe14497ab7b4b3a1c429c37d69d96dff59 Mon Sep 17 00:00:00 2001 From: Yasha Borstein Date: Tue, 9 Feb 2021 00:33:27 +0200 Subject: [PATCH 1/4] update dependencies --- pyproject.toml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 1506bffc..48794003 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,11 +14,11 @@ license = "Apache License 2.0" [tool.poetry.dependencies] python = ">=3.6, <4.0" -scikit-learn = ">=0.21, <0.24" -numpy = ">=1.17, <2.0" -scipy = ">=1.3, <2.0" -tqdm = ">=4.3, <5.0" -lifelines = ">=0.25, <0.29" +scikit-learn = ">=0.21" +numpy = ">=1.17" +scipy = ">=1.3" +tqdm = ">=4.3" +lifelines = ">=0.25" [tool.poetry.dev-dependencies] pytest = "^6.1.2" From f87c832d44005486804e9f8e2e3cfd7f7c36efde Mon Sep 17 00:00:00 2001 From: Ryan Date: Wed, 2 Jun 2021 13:03:57 -0500 Subject: [PATCH 2/4] fix helper functions --- ngboost/helpers.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ngboost/helpers.py b/ngboost/helpers.py index 669d5678..5e245a4c 100644 --- a/ngboost/helpers.py +++ b/ngboost/helpers.py @@ -5,13 +5,14 @@ def Y_from_censored(T, E=None): if T is None: return None - T = check_array(T, ensure_2d=False) - T = T.reshape(T.shape[0]) - if T.dtype == [ + elif T.dtype == [ ("Event", "?"), ("Time", " Date: Wed, 2 Jun 2021 15:54:06 -0500 Subject: [PATCH 3/4] fix linting issues with else and the returns --- ngboost/helpers.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ngboost/helpers.py b/ngboost/helpers.py index 5e245a4c..88b7cfdb 100644 --- a/ngboost/helpers.py +++ b/ngboost/helpers.py @@ -5,14 +5,13 @@ def Y_from_censored(T, E=None): if T is None: return None - elif T.dtype == [ + if T.dtype == [ ("Event", "?"), ("Time", " Date: Thu, 3 Jun 2021 09:32:20 -0500 Subject: [PATCH 4/4] bump version --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index faf95ddf..76be6cf7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "ngboost" -version = "0.3.11dev" +version = "0.3.12dev" description = "Library for probabilistic predictions via gradient boosting." authors = ["Stanford ML Group "] readme = "README.md"