Skip to content

Conversation

@alan-mnix
Copy link

scripts/generate-dataset.py file to save datasets in the MATLAB/OCTAVE format.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

HP_FNAME is received as an optional parameter.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

QUanto ao problema de identação, creio que seja algum problema do editor, mas não cheguei a compreender o porquê deste trecho de código ser desnecessário.

___________________________________________________________Alan Zanoni Peixinho
Masters student in Computer Science - Instituto de Computação - Unicamp - http://ic.unicamp.br/
Liv Research Group - http://www.liv.ic.unicamp.br/
Graduate in Computer Science - Faculdade de Ciências, Unesp - http://www.fc.unesp.br/Recogna Reasearch Group - http://www.recogna.fc.unesp.br/

Date: Fri, 16 Jan 2015 02:01:08 -0800
From: notifications@github.com
To: simple-hp@noreply.github.com
CC: alan-peixinho@hotmail.com
Subject: Re: [simple-hp] Generate Dataset (#2)

In simplehp/scripts/generate_dataset.py:

  • domain.evaluate(best_hps, ctrl, attach_attachments=True)
  • print 'Ok'

+def get_optparser():
+

  • dataset_options = ''
  • for k in sorted(datasets.keys()):
  •  dataset_options +=  ("     %s - %s \n" % (k, datasets[k].**name**))
    
  • usage = ("usage: %prog <DATASET_PATH> <OUTPUT_FILE>\n\n"
  •         "+ DATASET is an integer corresponding to the following supported "
    
  •         "datasets:\n" + dataset_options + '\n'
    
  •         "+ HP_FNAME is the pkl file containing the result of a previous "
    

this is unnecessary, right?


Reply to this email directly or view it on GitHub.

                  =

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants