nokoxxx1212 / keiba-hacke

Horse Racing Forecast App
Apache License 2.0
0 stars 0 forks source link

ベースコード開発(学習) #9

Closed nokoxxx1212 closed 4 months ago

nokoxxx1212 commented 5 months ago

🧑 Story

🔨 Acceptance Criteria

📝 Task List

📚 Resources

🎯 Deliverables

🔜 Remaining Tasks

nokoxxx1212 commented 4 months ago

冪等性のための修正(updated_at)

job = aiplatform.PipelineJob( display_name='my_pipeline', template_path='path_to_pipeline.json', parameter_values={'param1': 'value1', 'param2': 'value2'}, enable_caching=False )

job.run()

-> update_at = datetime.now().strftime('%Y-%m-%d %H:%M:%S')

-> `ValueError: 26 columns passed, passed data had 27 columns`

* -> pythonファイルを更新しただけだとpushの時に更新されない?

docker rmi $(docker images -q) -f

REPOSITORY TAG IMAGE ID CREATED SIZE

f6578beaa4af 2 minutes ago 1.81GB ``` * `docker tag f65 gcr.io/keiba-hacke/khnetkeiba_scraperdocker` で回避できた * -> イメージがへん。mntとかない * 単にapt-get update && apt-get installが落ちていた -yつける * -> 全部nullになっている? * 日本語のカラム名は対応していない ['race_id','馬','騎手','馬番','走破時間','オッズ','通過順','着順','体重','体重変化','性','齢','斤量','上がり','人気','レース名','日付','開催','クラス','芝orダート','距離','回り','馬場','天気','場id','場名', 'update_at'] -> ['race_id', 'horse', 'jockey', 'horse_number', 'run_time', 'odds', 'pass_order', 'rank', 'weight', 'weight_change', 'gender', 'age', 'load', 'rise', 'popularity', 'race_name', 'date', 'event', 'class', 'turf_or_dirt', 'distance', 'lap', 'racecourse', 'weather', 'place_id', 'place_name', 'update_at']
nokoxxx1212 commented 4 months ago

前処理スクリプト

nokoxxx1212 commented 4 months ago

前処理パイプライン

パイプラインの実行時にサービスアカウントが明示的に指定されていない場合、デフォルトのサービスアカウント(通常はプロジェクトのCompute Engineデフォルトサービスアカウント)が使用されます。

でもscrapeでできていたけど...?

nokoxxx1212 commented 4 months ago

学習スクリプト

nokoxxx1212 commented 4 months ago

学習パイプライン