My working code snippets
Project description
Q-snippets
My working code snippets
.
├── q_snippets
│ ├── adversarial.py
│ ├── data.py
│ ├── __init__.py
│ ├── metrics.py
│ ├── object.py
│ ├── optim.py
│ ├── pretrains.py
│ └── tensor_ops.py
adversarial
- FGM
- PGD
objects
- RoPE
- CircleLoss
- FocalLoss
- TrainerProcess
- Config
- RNNWrapper
- MultiHeadAttnWrapper
data
- timeit
- save_json
- load_json
- load_yaml
- BaseData
- MRCSample
- MRCBatch
- load_data
- MRCDataset
- span_decode
- DataProcessor
- gen_uid
sequence_padding
dict2list
SegmentUtility
prepare_inputs
prepare_batch_inputs
optim
pass
metrics
pass
tensor_ops
- safesoftmax
- feature_transform
- select_span_rep
- select_func
- get_max_startend
- label_smoothing
- mean_pooling( seq_vecs, attention_mask)
Pretrains
- get_model_url 获得本地路径,本地没有则保存到本地后返回
- save_pretrains 查看模型列表中保存到本地的情况
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Q-snippets-Qing25-0.0.6.tar.gz
(24.8 kB
view hashes)
Built Distribution
Close
Hashes for Q_snippets_Qing25-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 678baba9ecca19ae90e42e569ed76dd8aa5b362f27299a55d070d1cbd09b4e20 |
|
MD5 | eabb217064f0bfe98b8c0af6e10273b4 |
|
BLAKE2b-256 | eee25f64352096a3406be423590d4cf35ed9b3d68c6b8260c9d60a1af7d14b20 |