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 条
  • [41] A dual-stage deep learning model based on a sparse autoencoder and layered deep classifier for intrusion detection with imbalanced data
    Al-Harbi, Omar
    Hamed, Ahmed
    INTERNATIONAL JOURNAL OF SENSOR NETWORKS, 2024, 45 (02) : 74 - 86
  • [42] A survey on deep learning and deep reinforcement learning in robotics with a tutorial on deep reinforcement learning
    Morales, Eduardo F.
    Murrieta-Cid, Rafael
    Becerra, Israel
    Esquivel-Basaldua, Marco A.
    INTELLIGENT SERVICE ROBOTICS, 2021, 14 (05) : 773 - 805
  • [43] A survey on deep learning and deep reinforcement learning in robotics with a tutorial on deep reinforcement learning
    Eduardo F. Morales
    Rafael Murrieta-Cid
    Israel Becerra
    Marco A. Esquivel-Basaldua
    Intelligent Service Robotics, 2021, 14 : 773 - 805
  • [44] Deep, deep learning with BART
    Blumenthal, Moritz
    Luo, Guanxiong
    Schilling, Martin
    Holme, H. Christian M.
    Uecker, Martin
    MAGNETIC RESONANCE IN MEDICINE, 2023, 89 (02) : 678 - 693
  • [45] Hybrid Greylag Goose deep learning with layered sparse network for women nutrition recommendation during menstrual cycle
    E. Logapriya
    Surendran Rajendran
    Mohammad Zakariah
    Scientific Reports, 15 (1)
  • [46] Deep Learning
    Hao, Xing
    Zhang, Guigang
    Ma, Shang
    INTERNATIONAL JOURNAL OF SEMANTIC COMPUTING, 2016, 10 (03) : 417 - 439
  • [47] Machine learning and deep learning
    Janiesch, Christian
    Zschech, Patrick
    Heinrich, Kai
    ELECTRONIC MARKETS, 2021, 31 (03) : 685 - 695
  • [48] Deep Learning
    Salakhutdinov, Ruslan
    PROCEEDINGS OF THE 20TH ACM SIGKDD INTERNATIONAL CONFERENCE ON KNOWLEDGE DISCOVERY AND DATA MINING (KDD'14), 2014, : 1973 - 1973
  • [49] Machine learning and deep learning
    Christian Janiesch
    Patrick Zschech
    Kai Heinrich
    Electronic Markets, 2021, 31 : 685 - 695
  • [50] Anomaly Detection with Machine Learning Models Using API Calls
    Sahin, Varol
    Satilmis, Hami
    Yazar, Bilge Kagan
    Akleylek, Sedat
    INFORMATION TECHNOLOGIES AND THEIR APPLICATIONS, PT II, ITTA 2024, 2025, 2226 : 298 - 309