Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
Hey Guys! I'Ve Got The Latest Version Of Trains 0.16.0 And Now I Have A Problem. In Previous Versions I Could Easily Override Default Arguments On Hyperparameters  Tab And Now After Editing The Arguments Values With The New Ones And Executing The Experime

Hey guys! I've got the latest version of trains 0.16.0 and now I have a problem. In previous versions I could easily override default arguments on HYPERPARAMETERS  tab and now after editing the arguments values with the new ones and executing the experiment remotely, the default values are applied((

  
  
Posted 3 years ago
Votes Newest

Answers 28


DilapidatedDucks58 what do you get when calling
from trains.backend_api import Session print(Session.api_version)After Task.init()

  
  
Posted 3 years ago

On my local machine was previous version of trains package

  
  
Posted 3 years ago

ValueError: Task has no hyperparams section defined

  
  
Posted 3 years ago

Hey! I tried all of you said, started a new experiment from scratch, updated trains python package version to the latest version in the Installed packages section and that's all didn't work until i updated local trains python package version to 0.16.0 and then repeated the steps above. Now it seems to work fine

  
  
Posted 3 years ago

I change the arguments in Web UI, but it looks like they are not parsed by trains

  
  
Posted 3 years ago

What exactly do you connect in your code? dict? argparser?

  
  
Posted 3 years ago

Yeah, that's what I meant 🙂

  
  
Posted 3 years ago

same here, changing arguments in the Args section of Hyperparameters doesn’t work, training script starts with the default values.

trains 0.16.0
trains-agent 0.16.0
trains-server 0.16.0

  
  
Posted 3 years ago

A few more questions:
What is your Trains python package version? Was your experiment started using a previous Trains python package version? What hyper-parameter section are the values stored in?

  
  
Posted 3 years ago

Try doing that from scratch - i.e. creating the experiment again using the new version (by running the development code again locally and letting it create a new experiment)

  
  
Posted 3 years ago

DilapidatedDucks58 same question - Was your experiment started using a previous Trains python package version? 🙂

  
  
Posted 3 years ago

DilapidatedDucks58 this does not seem to be the same issue you're having, am I correct?

  
  
Posted 3 years ago

I misunderstood you then, anyway thanks a lot for your help))

  
  
Posted 3 years ago

There was a change in parameters nesting, perhaps it's causing it to drop your old values somehow... can you print out task._get_task_property('hyperparams') ?

  
  
Posted 3 years ago

Can you perhaps print out the result of task.get_parameters() and see if the argparser-related keys have an Args prefix? when running remotely, of course

  
  
Posted 3 years ago

it prints an empty dict

I’m doing Task.init() in the script, maybe it somehow resets connected parameters… but it used to work before, weird

  
  
Posted 3 years ago

I don’t connect anything explicitly, I’m using argparse, it used to work before the update

  
  
Posted 3 years ago

Hi GracefulDeer63 ,
A few questions:
When editing the hyperparameters (in v0.16.0 this is located under CONFIGURATION\HYPER PARAMETERS\General ) - do you see your changed correctly in the UI? After running the modified experiment using the Trains Agent, do you still see your edited changes in the hyper-parameters in the UI or are the values in the UI back to the default values?

  
  
Posted 3 years ago

trains-server - 0.16.0 Yes, I see Yes, after running the modified experiment, I do see my edited values in the hyper-parameters in the UI

  
  
Posted 3 years ago

Hi GracefulDeer63 ,

What trains and trains-server versions are you using?

  
  
Posted 3 years ago

Oh, so that's exactly the scenario I suspected when asking if the experiment was created using a previous Trains version and ran remotely using Trains 0.16.0 🙂

  
  
Posted 3 years ago

Try locating the hyperparams property in the task.data dict... If it's not there, try seeing if you have an execution.parameters property in the same dict

  
  
Posted 3 years ago

There maybe some issue with assumptions the new Trains code makes as to how the experiment was created

  
  
Posted 3 years ago

I updated the version in the Installed packages section before starting the experiment

  
  
Posted 3 years ago

OK, and in the experiment log you see the default values being used?

  
  
Posted 3 years ago

nope, same problem even after creating a new experiment from scratch

  
  
Posted 3 years ago

exactly

  
  
Posted 3 years ago

Oh, GracefulDeer63 so previously your trains package was not 0.16.0?

  
  
Posted 3 years ago