Swift Machine Learning

Open-source Swift projects categorized as Machine Learning

Top 11 Swift Machine Learning Projects

  • Bender

    Easily craft fast Neural Networks on iOS! Use TensorFlow models. Metal under the hood.

  • CoreML-in-ARKit

    Simple project to detect objects and display 3D labels above them in AR. This serves as a basic Template for an ARKit project to use CoreML.

  • SonarQube

    Static code analysis for 29 languages.. Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.

  • NSFWDetector

    A NSFW (aka porn) detector with CoreML

  • AIToolbox

    A toolbox of AI modules written in Swift: Graphs/Trees, Support Vector Machines, Neural Networks, PCA, K-Means, Genetic Algorithms

  • Swift-Brain

    Artificial intelligence/machine learning data structures and Swift algorithms for future iOS development. bayes theorem, neural networks, and more AI.

  • TensorSwift

    A lightweight library to calculate tensors in Swift, which has similar APIs to TensorFlow's

  • SwiftCoreMLTools

    A Swift library for creating and exporting CoreML Models in Swift

  • InfluxDB

    Build time-series-based applications quickly and at scale.. InfluxDB is the Time Series Data Platform where developers build real-time applications for analytics, IoT and cloud-native services in less time with less code.

  • DL4S

    Accelerated tensor operations and dynamic neural networks based on reverse mode automatic differentiation for every device that can run Swift - from watchOS to Linux

    Project mention: Machine learning modules for swift | reddit.com/r/swift | 2022-10-25

    Lastly, there are some third party libraries that you could try. I wrote a machine learning / deep learning library for Swift a while ago: DL4S. It does not have GPU acceleration (yet), so it won't allow you to do large ML workloads, but it has no problem with datasets like MNIST and it has an API similar to PyTorch/Tensorflow 2.

  • Revolver

    A framework for building fast genetic algorithms in Swift.

  • s4tf

    Swift for TensorFlow

    Project mention: Future of swift on non Apple platforms (and non Arm architectures) | reddit.com/r/swift | 2022-08-14

    There has been active work recently on Swift for Tensorflow: https://github.com/s4tf/s4tf

  • sniglet

    Generate sniglets with machine learning!

    Project mention: Just published a major feature update to my sniglet generator, written in SwiftUI/Catalyst! | reddit.com/r/SwiftUI | 2022-02-19
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2022-10-25.

Swift Machine Learning related posts


What are some of the best open-source Machine Learning projects in Swift? This list will help you:

Project Stars
1 Bender 1,749
2 CoreML-in-ARKit 1,592
3 NSFWDetector 1,468
4 AIToolbox 774
5 Swift-Brain 330
6 TensorSwift 322
7 SwiftCoreMLTools 128
8 DL4S 83
9 Revolver 28
10 s4tf 27
11 sniglet 4
Truly a developer’s best friend
Scout APM is great for developers who want to find and fix performance issues in their applications. With Scout, we'll take care of the bugs so you can focus on building great things 🚀.