From 03437b507c8d27f7e4102706ead76a4786d4e62c Mon Sep 17 00:00:00 2001 From: Chengmin Chi Date: Mon, 22 Jun 2020 16:00:02 +0800 Subject: [PATCH 1/3] Fix pylint error --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index b2bae68d72..65f377e4bb 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -10,7 +10,7 @@ jobs: - script: | set -e python3 -m pip install --upgrade pip setuptools --user - python3 -m pip install pylint==2.3.1 astroid==2.2.5 --user + python3 -m pip install pylint==2.3.1 astroid==2.3.1 --user python3 -m pip install coverage --user echo "##vso[task.setvariable variable=PATH]${HOME}/.local/bin:${PATH}" displayName: 'Install python tools' From f0a1c3c24d16601aa9b1657ab545e95566fe1618 Mon Sep 17 00:00:00 2001 From: Chengmin Chi Date: Mon, 22 Jun 2020 16:51:35 +0800 Subject: [PATCH 2/3] updates --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 65f377e4bb..d554d7cc67 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -10,7 +10,7 @@ jobs: - script: | set -e python3 -m pip install --upgrade pip setuptools --user - python3 -m pip install pylint==2.3.1 astroid==2.3.1 --user + python3 -m pip install pylint==2.5.0 astroid==2.4.2 --user python3 -m pip install coverage --user echo "##vso[task.setvariable variable=PATH]${HOME}/.local/bin:${PATH}" displayName: 'Install python tools' From 3cc7620d81e956c96a127328cd037855e4ad3192 Mon Sep 17 00:00:00 2001 From: Chengmin Chi Date: Mon, 22 Jun 2020 16:59:55 +0800 Subject: [PATCH 3/3] updates --- azure-pipelines.yml | 2 +- src/sdk/pynni/nni/bohb_advisor/config_generator.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index d554d7cc67..b2bae68d72 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -10,7 +10,7 @@ jobs: - script: | set -e python3 -m pip install --upgrade pip setuptools --user - python3 -m pip install pylint==2.5.0 astroid==2.4.2 --user + python3 -m pip install pylint==2.3.1 astroid==2.2.5 --user python3 -m pip install coverage --user echo "##vso[task.setvariable variable=PATH]${HOME}/.local/bin:${PATH}" displayName: 'Install python tools' diff --git a/src/sdk/pynni/nni/bohb_advisor/config_generator.py b/src/sdk/pynni/nni/bohb_advisor/config_generator.py index 5bd039844f..c6a13c6b35 100644 --- a/src/sdk/pynni/nni/bohb_advisor/config_generator.py +++ b/src/sdk/pynni/nni/bohb_advisor/config_generator.py @@ -236,7 +236,7 @@ def get_config(self, budget): return sample def impute_conditional_data(self, array): - return_array = np.empty_like(array) + return_array = np.zeros(array.shape) for i in range(array.shape[0]): datum = np.copy(array[i]) nan_indices = np.argwhere(np.isnan(datum)).flatten()