Open KersyTom opened 3 years ago
@KersyTom ,could you try to set use_active_gpu
true, or remove this field from conf.yaml, to check whether it works?
@QuanluZhang,hi quanlu,thanks for your reply,I have changed these configurations, and my computer does not have a GPU device, but the problem still exists, the following is my screenshot
@KersyTom , I cannot reproduce your problem using your provided code and configuration. my environment is
NNI version:2.3 Training service (local|remote|pai|aml|etc):local Client OS:windows10 Server OS (for remote mode only): Python version:3.8.8 PyTorch/TensorFlow version:None Is conda/virtualenv/venv used?:conda Is running in Docker?:no
@KersyTom , if you are still encountering this problem, please provide the complete log file. From the log you have provided above, nnimanager has received the first trial config, it is strange that this trial is waiting.
@QuanluZhang, my CLient OS is win7, I just used my colleague’s computer, and it runs successfully, i'm not sure my experiment runs failed caused by my win7 os,i will try again if i can find another win7 computer
Describe the issue: The example of sklearn is executed under the windows platform, and the trial status on the web-ui is always displayed as waiting
Environment:
Configuration:
Log message:normal
LOG = logging.getLogger('sklearn_regression')
def load_data(): '''Load dataset, use boston dataset''' boston = load_boston() X_train, X_test, y_train, y_test = train_test_split( boston.data, boston.target, random_state=99, test_size=0.25)
normalize data
def get_default_parameters(): '''get default parameters''' params = {'model_name': 'LinearRegression'} return params
def get_model(PARAMS): '''Get model according to parameters''' model_dict = { 'LinearRegression': LinearRegression(), 'Ridge': Ridge(), 'Lars': Lars(), 'ARDRegression': ARDRegression()
def run(X_train, X_test, y_train, y_test, model): '''Train model and predict result''' model.fit(X_train, y_train) predict_y = model.predict(X_test) score = r2_score(y_test, predict_y) LOG.debug('r2 score: %s', score) nni.report_final_result(score)
if name == 'main': X_train, X_test, y_train, y_test = load_data()
How to reproduce it?: