Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove gas fees model dependency on functions #57

Merged
merged 2 commits into from
Dec 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
89 changes: 0 additions & 89 deletions .spice/models/gas_fees/gas_fees_v2.py

This file was deleted.

9 changes: 3 additions & 6 deletions .spice/models/gas_fees/model.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
family: gas_fees
name: v0.0
model_type: gasfees_v1
handler: gas_fees_v2.py
training_entry_point: gas_fees_v2.train
inference_entry_point: gas_fees_v2.infer
name: v0.1
model_type: xgb_gasfees
training_query: 'WITH counts AS ( SELECT block_number, count(1) as "count" FROM eth.transactions GROUP BY block_number ) SELECT number as "ts", CAST(b.base_fee_per_gas / 1000000000.0 AS DOUBLE) as "y", CAST(c."count" AS DOUBLE) as "covariate" FROM eth.blocks b INNER JOIN counts c ON b.number = c.block_number WHERE b.base_fee_per_gas IS NOT NULL ORDER BY block_number DESC LIMIT 500'
inference_query: 'SELECT number as "ts", CAST(base_fee_per_gas / 1000000000.0 AS DOUBLE) as "y", CAST(transaction_count AS DOUBLE) as "y2" from eth.recent_blocks WHERE base_fee_per_gas IS NOT NULL ORDER BY ts DESC LIMIT 35'
lookback_size: 30
forecast_size: 1
metadata:
firecache: false
covariate: true
covariate: true
79 changes: 0 additions & 79 deletions .spice/models/gas_fees/spec.py

This file was deleted.

Loading