windowsでurllib.retrieveが使えなくて | python3Xのブログ

python3Xのブログ

ここでは40代、50代の方が日々の生活で役に立つ情報や私の趣味であるプログラム、Excelや科学に関する内容で投稿する予定です。

tar.gzファイルをダウンロードし、tarfileで解凍する部分が上手くいかず

この部分を変えてプログラムを組むことにしました

今回は、ストーリー+質問を受け付け

それに答えるbAbIというMemory Networkを試しました

ストーリーはどんどん流れていきますが

それに対してbAbIはどう反応するか?

下記が質問に対する答えです

10問中8問正解、間違いは2つでした

まずまずの成績だと思います

 

john travelled to the hallway mary journeyed to the bathroom
 where is john
 
o True: hallway, Predicted: hallway
daniel went back to the bathroom john moved to the bedroom
 where is mary
 
o True: bathroom, Predicted: bathroom
john went to the hallway sandra journeyed to the kitchen
 where is sandra
 o True: kitchen, Predicted: kitchen
sandra travelled to the hallway john went to the garden
 where is sandra

 o True: hallway, Predicted: hallway
sandra went back to the bathroom sandra moved to the kitchen
 where is sandra
 o True: kitchen, Predicted: kitchen
sandra travelled to the kitchen sandra travelled to the hallway
 where is sandra
 o True: hallway, Predicted: hallway
mary went to the bathroom sandra moved to the garden
 where is sandra
 
o True: garden, Predicted: garden
sandra travelled to the office daniel journeyed to the hallway
 where is daniel
 
o True: hallway, Predicted: hallway
daniel journeyed to the office john moved to the hallway
 where is sandra
 
x True: office, Predicted: bathroom
john travelled to the bathroom john journeyed to the office
 where is daniel

 x True: office, Predicted: bedroom