Fastai: A Layered API for Deep Learning

被引:550
作者
Howard, Jeremy [1 ,2 ]
Gugger, Sylvain [1 ]
机构
[1] Fastai, San Francisco, CA 94117 USA
[2] Univ San Francisco, Data Sci Inst, San Francisco, CA 94117 USA
关键词
deep learning; data processing pipelines;
D O I
10.3390/info11020108
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
fastai is a deep learning library which provides practitioners with high-level components that can quickly and easily provide state-of-the-art results in standard deep learning domains, and provides researchers with low-level components that can be mixed and matched to build new approaches. It aims to do both things without substantial compromises in ease of use, flexibility, or performance. This is possible thanks to a carefully layered architecture, which expresses common underlying patterns of many deep learning and data processing techniques in terms of decoupled abstractions. These abstractions can be expressed concisely and clearly by leveraging the dynamism of the underlying Python language and the flexibility of the PyTorch library. fastai includes: a new type dispatch system for Python along with a semantic type hierarchy for tensors; a GPU-optimized computer vision library which can be extended in pure Python; an optimizer which refactors out the common functionality of modern optimizers into two basic pieces, allowing optimization algorithms to be implemented in 4-5 lines of code; a novel 2-way callback system that can access any part of the data, model, or optimizer and change it at any point during training; a new data block API; and much more. We used this library to successfully create a complete deep learning course, which we were able to write more quickly than using previous approaches, and the code was more clear. The library is already in wide use in research, industry, and teaching.
引用
收藏
页数:26
相关论文
共 50 条
  • [31] Traffic Lights Detection and Recognition with New Benchmark Datasets Using Deep Learning and TensorFlow Object Detection API
    Kilic, Irfan
    Aydin, Galip
    TRAITEMENT DU SIGNAL, 2022, 39 (05) : 1673 - 1683
  • [32] Advanced prediction of events and temporal expressions in medical text using the Jena API: integrating ontologies and deep learning
    Tiaiba, Hafida
    Sabri, Lyazid
    Kazar, Okba
    TURKISH JOURNAL OF ELECTRICAL ENGINEERING AND COMPUTER SCIENCES, 2025, 33 (01) : 65 - 85
  • [33] Adoption of Deep-Learning Models for Managing Threat in API Calls with Transparency Obligation Practice for Overall Resilience
    Basheer, Nihala
    Islam, Shareeful
    Alwaheidi, Mohammed K. S.
    Papastergiou, Spyridon
    SENSORS, 2024, 24 (15)
  • [34] Phase prediction and new parametric approach for multi-component alloys with using deep learning API: Keras
    Sarlar, Kagan
    PHYSICA SCRIPTA, 2021, 96 (12)
  • [35] A Study of Classifying Advanced Persistent Threats With Multi-Layered Deep Learning Approaches
    Hu, Yen-Hung
    Hsieh, Chung-Chu
    19TH IEEE INTERNATIONAL SYMPOSIUM ON PARALLEL AND DISTRIBUTED PROCESSING WITH APPLICATIONS (ISPA/BDCLOUD/SOCIALCOM/SUSTAINCOM 2021), 2021, : 1645 - 1650
  • [36] Fast and Effective Intrusion Detection Using Multi-Layered Deep Learning Networks
    Chellammal, P.
    Malarchelvi, Sheba Kezia
    Reka, K.
    Raja, G.
    INTERNATIONAL JOURNAL OF WEB SERVICES RESEARCH, 2022, 19 (01)
  • [37] Layered low-frequency extrapolation with deep learning in full-waveform inversion
    Liu, Yao
    Liu, Baodi
    Huang, Jianping
    Wang, Jun
    Chen, Honglong
    Liu, Weifeng
    TENTH INTERNATIONAL SYMPOSIUM ON PRECISION MECHANICAL MEASUREMENTS, 2021, 12059
  • [38] Deep Cascade Model-Based Face Recognition: When Deep-Layered Learning Meets Small Data
    Zhang, Lei
    Liu, Ji
    Zhang, Bob
    Zhang, David
    Zhu, Ce
    IEEE TRANSACTIONS ON IMAGE PROCESSING, 2020, 29 (29) : 1016 - 1029
  • [39] ProcGuard: Process Injection Behaviours Detection Using Fine-grained Analysis of API Call Chain with Deep Learning
    Wang, Juan
    Ma, Chenjun
    Li, Ziang
    Yuan, Huanyu
    Wang, Jie
    2022 IEEE INTERNATIONAL CONFERENCE ON TRUST, SECURITY AND PRIVACY IN COMPUTING AND COMMUNICATIONS, TRUSTCOM, 2022, : 778 - 785
  • [40] Dual-layered deep learning and optimization algorithm for electric vehicles charging infrastructure planning
    Sedhom, Bishoy E.
    Eladl, Abdelfattah A.
    Siano, Pierluigi
    El-Afifi, Magda I.
    INTERNATIONAL JOURNAL OF ELECTRICAL POWER & ENERGY SYSTEMS, 2025, 166