05 Aug '17, 7am

blog更新しました演劇感想文リンクのデータを使えば簡単とか思ったのですが、大変でした。「[Ruby]ベイズ推定で、氏名を識別する https://t.co/Vpu1PCqxgD」

blog更新しました演劇感想文リンクのデータを使えば簡単とか思ったのですが、大変でした。「[Ruby]ベイズ推定で、氏名を識別する https://t.co/Vpu1PCqxgD」

# encoding: utf-8 # naivebayesの実装 http://qiita.com/mochizukikotaro/items/64247e14024c2c5534d9 を参考 include Math require "set" class NaiveBayes def initialize() @category = Set.new @num_of_train_data = 0 @num_of_cat = Hash.new(0.0) # @num_of_cat[cat] = {catの数} @num_of_word = Hash.new{|h,k| h[k] = Hash.new(0.0)} # @num_of_word[cat][word] = {wordの数} @prob_of_category = Hash.new(0.0) # P(cat) @prob_of_word = Hash.new{|h,k| h[k] = Hash.new(0.0)} # P(word|cat) end # トレーニングをする(P(cat)までを求めています) def train(train_data) @num_of_train_data = train_data.count set_num(train_data) set_prob_cat end # テストデータの分類をする(P(word|cat)まで求めています) def classify(test_data) test_data.each do |v| doc = v[:doc] set_prob_word(doc) likelihood = {} @category.each do |cat| likelihood[cat] = log(@prob_of_category[cat]) + doc.map{|word| log(@prob_of_word[cat][word])}.inject(:+) end # 出力 #puts @prob_of_word #puts li...

Full article: http://blog.kansolink.com/develop/ai/classify-name-by-nai...

Tweets

Бэкенд-разработчик (Ruby on Rails) https://t.co...

ulan-ude.hh.ru 05 Aug '17, 5pm

Опыт работы с реляционными базами данных (PostgreSQL) и не реляционными (MongoDB). Опыт работы в unix системах хорошее зна...

Facebook pictures render on Ruby on Rails appli...

freelancer.com 04 Aug '17, 12pm

ruby rails application marketplace , transfer ruby rails application , ruby rails facebook application , ruby rails applic...

#webdev #rails #rubyonrails #ruby

engineyard.com 04 Aug '17, 5pm

With Ruby gems, you can use open source code to make your life a lot easier when developing Ruby applications. Through my ...

Ruby on Rails Developer - Arlington, VA

morganstephens.catsone.com 04 Aug '17, 5pm

Exciting direct hire opportunity for any software developer looking for a fantastic, salaried opportunity with a reputable...

Integration of chatbot using Ruby on Rails

rubyflow.com 04 Aug '17, 9am

× The Ruby and Rails community linklog Made a library? Written a blog post? Found a useful tutorial? Share it with the Rub...

Lead Developer Ruby on Rails @Landing_jobs Berlin

siliconarmada.com 04 Aug '17, 4am

For our German cooperation partner we are looking for an excellent Ruby on Rails Lead Developer for a startup of an leadin...

Ruby on Rails Developer @Landing_jobs Berlin

siliconarmada.com 02 Aug '17, 11pm

For our German cooperation partner we are looking for an excellent Ruby on Rails Developer for an IT-business company. You...

Начинаем работать с Ruby on Rails в Docker https://t.co/Qt56Ti5rnV https://t.co/lWgdEUeOP5

Начинаем работать с Ruby on Rails в Docker http...

habrahabr.ru 01 Aug '17, 8am

# /path/to/app/Dockerfile FROM ruby:2.3-alpine # Установка часового пояса RUN apk add --update tzdata && \ cp /usr/share/z...

New Job Alert: Need 'Ruby on Rails' AND 'Phaser...

freelancer.com 04 Aug '17, 10am

Hi, its pretty simple for me but I have few questions to ask, knock me for further discussion, PLEASE DON'T AWARD PROJECT ...

Ruby on rails developer needed for fixes by pra...

freelancer.com 03 Aug '17, 4pm

Hi,Budget is 10$ for this fix and it should be done in max of 1 hr for expertise. Please apply if you are ready to work fo...

Why is it just lazy to bad-mouth Ruby on Rails?

rubyflow.com 03 Aug '17, 9pm

× The Ruby and Rails community linklog Made a library? Written a blog post? Found a useful tutorial? Share it with the Rub...

Onepager optimisation RUBY ON RAILS APP by aces25

freelancer.com 01 Aug '17, 6pm

Dear sir! please see my profile. I have extension experienced in developing Javascript, Ruby on Rails. I am very familiar ...

Complete work on existing ruby on rails App by ...

freelancer.com 01 Aug '17, 10am

Hi, As you are looking to hire a existing ruby on rails App so I am glad to inform you that we are an ISO Certified 9001 :...

New #job: Ruby on Rails, DevOps - Blockchain,Ci...

aplitrak.com 01 Aug '17, 9am

Location: City of London, England Salary: GBP62000 - GBP75000 per annum Ruby DevOps – Blockchain - Remote Our client a Blo...

Event sourcing and autonomous (micro) services ...

rubyflow.com 01 Aug '17, 10pm

× The Ruby and Rails community linklog Made a library? Written a blog post? Found a useful tutorial? Share it with the Rub...