InsuranceCostsPrediction an example app built on top of SwiftUI

Overview

InsuranceCostsPrediction - iOS App

This is an example app built on top of #SwiftUI and #CoreML. The app allows the user to estimated amount of $ to pay for the insurance costs based on some feature, such as:

  • sex (either male or female)
  • age
  • child: number of child
  • smoke: yes or no
  • bmi (body mass index)

At the core of the predictions runs a simple model built with CreateML which has been trained on the data repository available at the following link: https://www.kaggle.com/datasets/mirichoi0218/insurance. By the end, the model reached very good performances (root mean square error of about 0.0097), this is pretty good considering that the model weights approximately 3 MB. The main idea of this simple app is to show how bring a ML model into an app with CoreML and make predictions on the device. Also, SwithUI for the UI is used to try some cool stuff :) !

Swift Version 5.5 Swift Version 5.5 Swift Version 5.5 Swift Version 5.5 Swift Version 5.5 Swift Version 5.5 Swift Version 5.5 Swift Version 5.5

Technology

  • Machine Learning
  • Create ML, Core ML
  • SwiftUI
  • iOS App Development

Notes

This app, especcially in the UI, can be widley improved because of the main purpose was to integrate a ML into a working app. For the future, for sure, some adjustement of the UI can be conducted and also an app Icon can be designed. I think that the idea of trying to predict cost insurance is something of interesting, someone might fint it usefull (who knows !). The model's prediciton power can be enriched by working with a different and bigger dataset.

Usage

Feel free to use the app and take insipiration from this project (but please cite me somehow :) ). For any suggestion or curiosity or technical stuff feel free to reach me by:

To use the app download the whole project, open it with Xcode (v.13.0 +) and made the build on the iphone :D.

You will have a very lightweight and powerful ML model into your pocket ready to calculate the insurance costs you have to face due to some factors.

You might also like...
An example to-do list app using SwiftUI which is introduced in WWDC19
An example to-do list app using SwiftUI which is introduced in WWDC19

SwiftUITodo SwiftUITodo is an example to-do list application using SwiftUI which is first introduced in WWDC19 keynote. Requirements Xcode 11 Beta Swi

An example APOD app with SwiftUI and Combine using NASA API
An example APOD app with SwiftUI and Combine using NASA API

SwiftUI-APOD An example Astronomy Picture of the Day(APOD) application using SwiftUI and Combine under iOS 13 Requirement Xcode 11 macOS 10.15 Catalin

SwiftUI iOS Widget and WatchOS app that randomly shows a word of the day with description and example.
SwiftUI iOS Widget and WatchOS app that randomly shows a word of the day with description and example.

Word Of The Day iOS Widget and WatchOS app made in SwiftUI that displays a random word of the day with description and example of usuage. Requirements

Superhero-composable-watch-example - A superhero themed experiment using the swift composable architecture on a SwiftUI/Combine iOS app and Watch extension Quotes App is quotes browsing app which is built with Quotable Free API completely in SwiftUI.
Quotes App is quotes browsing app which is built with Quotable Free API completely in SwiftUI.

Quotes App is quotes browsing app which is built with Quotable Free API completely in SwiftUI. You can watch the whole journey of building this

SwiftUI and Combine based GitHubSearch example.
SwiftUI and Combine based GitHubSearch example.

GitHubSearchWithSwiftUI GitHubSearchWithSwiftUI is an example that using Combine and SwiftUI Receive Results Receive Error SafariViewController ricemi

An example of creating custom popups in SwiftUI
An example of creating custom popups in SwiftUI

Custom Popup Example An example project for Implementing custom popups in SwiftUI article. Author Artem Novichkov, [email protected] License The

This is an example project of SwiftUI and Combine using GitHub API.
This is an example project of SwiftUI and Combine using GitHub API.

SwiftUI-Combine-Example This is an example project of SwiftUI and Combine using GitHub GET /search/users API. 📋 Requirements Swift5.1 Beta Xcode11.0

An example of using SwiftUI + CoreData
An example of using SwiftUI + CoreData

ShoppingList An example of using SwiftUI + CoreData Screenshots ||| Running Must use the latest Xcode 11 beta, and be running some sort of beta softwa

Owner
Christian Riccio
I'm a Data Scientist with a bachelor in Physics. Currently I am attending the Apple Developer Academy in Naples and the PhD in Data Science at Federico II
Christian Riccio
E-commerce app built in SwiftUI. Built in the course SwiftUI Masterclass in Udemy.

Touchdown-SwiftUI E-commerce app built in SwiftUI. Built in the course SwiftUI Masterclass in Udemy. Main components and concepts used: @EnvironmentOb

Jorge Martinez 5 Aug 18, 2022
Assignment 2 - A fully functional example in the CardinalKit-Example directory

Assignment 2 - A fully functional example in the CardinalKit-Example directory

GaitMate 1 Jan 31, 2022
Mahmoud-Abdelwahab 5 Nov 23, 2022
Repository for App IOS Reddit Top 50

iOS Reddit Top50 Repository for App IOS Reddit Top 50 App shows a list for the Top 50 posts in [Reddit] - www.reddit.com/top Requirements iOS 14.0+ Xc

Luiz Felipe Teixeira 3 Jul 5, 2021
App which lets two people share their social media details by simply putting one phone on top of the other ("tapping"). Currently in development by Nikita Mounier.

Tap It Tap It enables two people to seamlessly share their social media information (e.g. Instagram, Snapchat, phone number) by simply placing one scr

Nikita Mounier 24 Oct 21, 2022
RippleQueries is an iOS application built as assessment task at Ripple Egypt. Built Using MVVM (Model-View-ViewModel) and Clean Architecture concepts

RippleRepositories RippleRepositories is an iOS application built as an assessment task at Ripple Egypt. Built Using RxSwift & MVVM (Model-View-ViewMo

Muhammad Ewaily 3 Sep 16, 2021
Porting the example app from our Advanced iOS App Architecture book from UIKit to SwiftUI.

SwiftUI example app: Koober We're porting the example app from our Advanced iOS App Architecture book from UIKit to SwiftUI and we are sharing the cod

raywenderlich 55 Dec 19, 2022
Weather-swiftui - An example of using SwiftUI

weather-swiftui An example of using SwiftUI Installation Get openweather api key

null 0 Jan 1, 2022
Matthew Asaminew 0 Jan 25, 2022
Swiftui-pressed-states-example - Examples of Pressed States in SwiftUI

Examples of Pressed States in SwiftUI pressed-states.mp4

Philip Davis 6 Nov 15, 2022