Swift-AI - Swift高度優化的人工智能和機器學習庫

jopen 8年前發布 | 42K 次閱讀 Apple Swift開發

Swift AI Banner

Swift-AI - Swift高度優化的人工智能和機器學習庫。We currently support iOS and OS X, with support for more platforms coming soon!

Features

Swift AI includes a set of common tools used for machine learning and artificial intelligence research. These tools are designed to be flexible, powerful and suitable for a wide range of applications.

  • Feed-Forward Neural Network
    • 3-layer network with options for customization.
    • Example projects for iOS and OS X.
  • Recurrent Neural Network
  • Convolutional Network
  • GPU-Accelerated Networks
  • Genetic Algorithms
  • Fast Matrix Library
    • Matrix class supporting common operators
    • SIMD-accelerated operations
  • Fourier Transform Functions

Usage and Examples

I've created example projects to demonstrate the usage and potential applications of Swift AI:

  • iOS:
    • 2D function regression (feed-forward neural network)
    • Handwriting recognition (feed-forward neural network)
    • Evolution simulation (genetic algorithm)
  • OS X:
    • XOR logic gate modeling (feed-forward neural network)
    • 2D function regression (feed-forward neural network)
  • Swift Playground:
    • Graphing - used in conjunction with OS X regression examples

Installation

Grab the files you need, drag them into your project. That was easy!

Why don't we use CocoaPods/Carthage?

Swift is open-source now, and it remains to be seen how these dependency managers will cooperate with other platforms.

A better alternative will probably be the Swift Package Manager.

Compatibility

Swift AI currently depends on Apple's Accelerate framework for vector/matrix calculations and digital signal processing.

In order to provide support for more platforms (Linux, Windows, etc.), alternative BLAS solutions are being considered. A vanilla Swift implementation is one possibility, but SIMD instructions will be preferred for their significant performance boost. Check back for more updates on this soon.

Using Swift AI?

If you're using Swift AI in one of your own projects, let me know! I'll add a link to your profile/website/app right here on the front page. Feel free to email me at the address shown below.

Contributing

Contributions to the project are welcome. Please review the documentation before submitting a pull request, and strive to maintain consistency with the structure and formatting of existing code. Official guidelines with more details will be provided soon.

Contact

I develop iOS apps, and have experience in engineering. You can reach me here:

Email

Care Enough to Donate?

Take a little, give a little. More donations = less contract work = more time building great open-source projects!

What good will my money do?

Your donation will help a college student get through school, and give you a warm, fuzzy feeling. Every contribution is appreciated.

Donate


項目地址: https://github.com/collinhundley/Swift-AI

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!