itscreek / qual-backend

Quantum Typing API
0 stars 0 forks source link

add qcl model #11

Open kotta-27 opened 1 month ago

kotta-27 commented 1 month ago

QuantumTypeTimePredictionModelを実装しました.それに伴いviewsも変更しました.

itscreek commented 1 month ago

Closes #3

itscreek commented 1 month ago

Closes #8

itscreek commented 1 month ago

QuantumTypeTimePredictionModel.train(), QuantumTypeTimePredictionModel.partial_train()が呼ばれるとdict' object has no attribute 'wordで落ちる. QuantumTypeTimePredictionModel.predict_times()が呼ばれると'QuantumTypeTimePredictionModel' object has no attribute 'min_val'で落ちる.

これらの関数をモックにすると動くので,QuantumTypeTimePredictionModelでバグってそうです.

kotta-27 commented 1 month ago

こちらで挙動を確認できずすみません. min_val, max_valともにコンストラクタで宣言したのでこちらに関しては大丈夫そうです. train()の挙動はまだ手をつけられず.

itscreek commented 1 month ago

Dockerfile

RUN apt update && apt upgrade -y && \
    apt install -y python3 python3-pip vim curl git

から

RUN apt update && apt upgrade -y && \
    apt install -y python3 python3-pip vim curl git \
    g++ make cmake libboost-dev

と変更し, docker compose up --buildとすればqulacsがインストールできるかも知れません. (こちらでは変更せずともなぜか動いてしまうので,これでうまくいくかは確認できていません.)

kotta-27 commented 1 month ago

qulacs==0.6.3がいくらやっても動かず,バージョンを指定しないでqulacsとすると動作確認できました.

こちらでは

QuantumTypeTimePredictionModel.train(), QuantumTypeTimePredictionModel.partial_train()が呼ばれるとdict' object has no attribute 'wordで落ちる.

が確認できませんでした.

qual-backend | Internal Server Error: /problems/ と出るので,errorは吐いてそうなのですが,その詳細なerrorメッセージはどこで確認できますでしょうか..

itscreek commented 1 month ago

エンドポイントを呼び出すと,サーバーからHTTP Responseのエラーメッセージでdict' object has no attribute 'wordと返ってきます.