Skip to content

A basic example of how to implement logistic regression in Swift

Notifications You must be signed in to change notification settings

hollance/Logistic-Regression-Swift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Logistic Regression with Swift and fmincg

This is a very simple example of how to implement logistic regression in Swift, using the famous Iris dataset and a conjugate gradient optimizer.

Last updated for Swift 4.2 (Xcode 10.1).

Based on the MATLAB code from Andrew Ng's machine learning course at Coursera.

The included Matrix class is minimal and unoptimized for performance. For a more complete and accelerated version, see here.

For the fmincg license terms, see the comment in fmincg.swift. There rest of the code is licensed under the terms of the MIT license.

About

A basic example of how to implement logistic regression in Swift

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages