Generating an ItemSequence with tuples instead of dictionaries
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
Start by reading the ItemSequence implementation and tracing how feature dictionaries are converted into ItemSequence objects. Check how tuple input could preserve feature names and values while reducing memory use, then identify the relevant tests for sequence construction. Done means tuple input is supported and existing dictionary behavior remains covered.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Would it be possible to extend the functionality of ItemSequence to allow the use of tuples. Python dictionaries have an incredible memory overhead and when using an extensive feature set of thousands of features the feature dictionaries alone can take up a lot of memory. Python dictionaries inherently are memory costly so that they have fast look up times. After looking through your code you are just using dictionaries as a store for the key/value information for features which are eventually converted into ItemSequence objects. A more optimal data structure in terms of memory would be a tuple with the first element as the feature name and the second as the feature value.
Let me know your thoughts. I think it would be a big optimisation to shift from dictionaries towards tuples for large feature sets.
- Lingua principale
- Python
- Stelle
- 774
- Fork
- 223
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di scrapinghub/python-crfsuite
-
no wheels for python 3.14Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 63/100
scrapinghub/python-crfsuite#167 · 2 commenti · 2 reazioni ·
-
CRFsuite training too slowAperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
scrapinghub/python-crfsuite#142 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 25/100
scrapinghub/python-crfsuite#129 · 1 commento · 2 reazioni ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
scrapinghub/python-crfsuite#119 · 1 commento · 1 reazione ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
scrapinghub/python-crfsuite#114 ·
Tutte le issue di scrapinghub/python-crfsuite
Issue simili
-
[19.0] pos_sale: settling an order with a 0 down payment line crashes (reading 'reward_id') and leaves a wrong amount dueForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 79/100
developmentseed/titiler-covjson#164 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
awslabs/visual-asset-management-system#2164 ·
I maintainer di solito rispondono entro 1 giorno
-
needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
MakazhanAlpamys/Soup#3589 ·
I maintainer di solito rispondono entro 1 giorno
-
channels status reports the wrong Enabled value for Feishu instances and default-enabled WebSocketAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
I maintainer di solito rispondono entro 1 giorno