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
import numpy as np | |
from numpy.random import rand, uniform | |
# reference: https://en.wikipedia.org/wiki/Particle_swarm_optimization#Parameter_selection | |
ob = lambda x: (np.power(x, 4.0) - x * x * 16 + x * 5).sum() / 2.0 # Styblinski-Tang function | |
lims = np.array([[-5.0, 4.0], [-3.0, 4.0]]) | |
loop = 100 |
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 -* | |
from PIL import Image | |
import argparse | |
import os | |
def make(image_names, target_height, seconds, imgs_per_seconds, outfile_prefix, outdir): | |
try: | |
if not os.path.exists(outdir): |
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 -* | |
from bs4 import BeautifulSoup as BS | |
import requests | |
import argparse | |
def convert(url, out, midashi, need_title, need_author): |
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
diff --git src/event-noun.pl src/event-noun.pl | |
index 48c431f..3b8ae3b 100644 | |
--- src/event-noun.pl | |
+++ src/event-noun.pl | |
@@ -32,22 +32,22 @@ sub new { | |
# (skip now. consider later) | |
# argument-identification model (in the same bunsetsul) | |
- for my $TYPE qw(ga o ni) { | |
+ for my $TYPE (qw(ga o ni)) { |