Package Name | pyhrf Version | Current Version |
---|---|---|
Numpy | 1.0 | 1.8 |
Qt | 3.3.6 | 5.1.0 |
PyQt | 3.17.3 | 5.3.4 |
PyXML | 0.8.4 | متوقف شده |
SIP | 4.7 | 4.15.3 |
SciPy | 0.5.2 | 0.13.0 |
GSL | 1.9 | 1.16 |
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
pyhrf-0.2$ sudo pyhrf_maketests | |
[sudo] password for vahid: | |
_test_single_sampler bold_mixt_params ... | |
._test_single_sampler brf ... | |
._test_single_sampler brf_var ... | |
._test_single_sampler brl ... | |
.E_test_single_sampler drift_coeff ... | |
.._test_single_sampler label ... | |
._test_specific_samplers ['perf_baseline', 'noise_var'] ... | |
out_dir: /tmp/pyhrf_jaSwEP |
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 org.apache.hadoop.fs.Path; | |
import org.apache.hadoop.io.IntWritable; | |
import org.apache.hadoop.io.Text; | |
import org.apache.hadoop.mapred.FileInputFormat; | |
import org.apache.hadoop.mapred.FileOutputFormat; | |
import org.apache.hadoop.mapred.JobClient; | |
import org.apache.hadoop.mapred.JobConf; | |
public class WordCount { |
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 errno | |
import functools | |
import socket | |
from tornado import ioloop, iostream | |
class Connection(object): | |
def __init__(self, connection): | |
self.stream = iostream.IOStream(connection) | |
self._read() |
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
curl -XDELETE "http://localhost:9200/test_index" | |
echo | |
echo | |
curl -XPUT "http://localhost:9200/test_index" -d' | |
{ | |
"mappings": { | |
"doc": { | |
"properties": { | |
"publication_date": { | |
"type": "date", |
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
{ | |
"mappings": { | |
"articles": { | |
"properties": { | |
"category_en": { | |
"type": "string", | |
"index": "not_analyzed" | |
}, | |
"category_fa": { | |
"type": "string", |
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
python open_nsfw/classify_nsfw.py --model_def open_nsfw/nsfw_model/deploy.prototxt --pretrained_model open_nsfw/nsfw_model/resnet_50_1by2_nsfw.caffemodel /home/vahid/Pictures/nsfw/3.jpg > res | |
WARNING: Logging before InitGoogleLogging() is written to STDERR | |
W1002 15:14:37.439743 21339 _caffe.cpp:122] DEPRECATION WARNING - deprecated use of Python interface | |
W1002 15:14:37.439810 21339 _caffe.cpp:123] Use this instead (with the named "weights" parameter): | |
W1002 15:14:37.439823 21339 _caffe.cpp:125] Net('open_nsfw/nsfw_model/deploy.prototxt', 1, weights='open_nsfw/nsfw_model/resnet_50_1by2_nsfw.caffemodel') | |
I1002 15:14:37.444419 21339 upgrade_proto.cpp:77] Attempting to upgrade batch norm layers using deprecated params: open_nsfw/nsfw_model/deploy.prototxt | |
I1002 15:14:37.444463 21339 upgrade_proto.cpp:80] Successfully upgraded batch norm layers using deprecated params. | |
I1002 15:14:37.446965 21339 net.cpp:58] Initializing net from parameters: | |
name: "ResNet_50_1by2_nsfw" | |
state { |