
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Optuna example that optimizes a simple quadratic function. | |
In this example, we demonstrate how to import existing experimental results | |
and continue the optimization. | |
We have the following two ways to execute this example: | |
(1) Execute this code directly. | |
$ python quadratic_change_range.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Optuna example that optimizes a simple quadratic function. | |
In this example, we demonstrate how to import existing experimental results | |
and continue the optimization. | |
We have the following two ways to execute this example: | |
(1) Execute this code directly. | |
$ python quadratic_trial_import.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import argparse | |
def run(): | |
args = parse_args() | |
print("Input path: {0}".format(args.input_path)) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir tmp | |
for f in *b.zip | |
do | |
echo $f | |
pushd tmp | |
unzip ../$f | |
popd | |
done | |
mkdir utf8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import tweepy | |
import datetime | |
import time | |
# See http://blog.unfindable.net/archives/4257 | |
locationsL=[-180,-90,180,90] | |
class StreamListener(tweepy.StreamListener): | |
def __init__(self, api=None): |
NewerOlder