Skip to content

Hyperparamopt - #58

Merged
mihaic merged 13 commits into
brainiak:masterfrom
narayanan2004:hyperparamopt
Jul 16, 2016
Merged

Hyperparamopt#58
mihaic merged 13 commits into
brainiak:masterfrom
narayanan2004:hyperparamopt

Conversation

@narayanan2004

Copy link
Copy Markdown
Contributor

No description provided.

@buildbot-princeton

Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

1 similar comment
@buildbot-princeton

Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

@mihaic

mihaic commented Jul 12, 2016

Copy link
Copy Markdown
Member

OK to test.

Comment thread brainiak/hyperparamopt/mcmc.py Outdated
# limitations under the License.
"""Metropolis-Hasting Random number generator

This implementation provides random samples from a user-given

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

How is this MCMC different or better than other MCMC implementations for Python? May want to explain here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I looked for other python packages that do what I want i.e generate samples from a user-specified pdf. I couldn't find any, so had to write my own. If you know of any other implementation, please let me know as I am not aware of any at this point.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Or maybe http://dan.iel.fm/emcee/current/ . It's OK if neither of these does what you need, you can just say that (and why) in the comments so people know there's a reason for having an MCMC module in brainiak rather than using an existing library.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Still and MCMC module should be outside this package, maybe in utils or some other package.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

After some searching, I see that I only need samples from a 1D Gaussian mixture model. I have changed the code to do this using other simpler methods in numpy+scipy. I will remove this file (mcmc.py) and the corresponding tests.

Comment thread brainiak/hyperparamopt/hpo.py Outdated
logger = logging.getLogger(__name__)


def get_sigma(x, minlimit=-np.inf, maxlimit=np.inf):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

min_limit, max_limit

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done

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.

5 participants