A.I, Data and Software Engineering

Categoryfull-stack

full-stack category

Kotlin Scoping Functions apply vs. with, let, also, and run

petamind

Functional-style programming is highly advocated and supported by Kotlin’s syntax as well as a range of functions in Kotlin’s standard library. In this post we will examine five Kotlin scoping functions (aka higher-order functions): apply, with, let, also, and run. When learning these five functions, you will need to memorize 2 things: how to use them, and when to use them...

Constraints with Android Worker

petamind

Sometimes, we want our app to perform some background tasks under certain conditions, such as Battery level or network etc. With Worker and Constraints, we can conveniently achieve that. The example problem A worker class that prints a message to the console. class MyWorker(context: Context, params: WorkerParameters): Worker(context,params) { override fun doWork(): Result { Log.i(LOG_TAG...

Lasso vs Ridge vs Elastic Net – Machine learning

petamind

Lasso, Ridge, and Elastic Net are excellent methods to improve the performance of your linear model. This post will summarise the usage of these regularization techniques. Bias: Biases are the underlying assumptions that are made by data to simplify the target function. Bias does help us generalize the data better and make the model less sensitive to single data points. It also decreases the...

How to Setup SSH Tunneling in Mac OS (or Ubuntu)

petamind

When working with Jupyter notebooks on AWS, I want to interact with it directly in my browsers. In order to do so, we may need to create an SSH tunnel from our laptop to the remote server. If you are using a Macbook, you can easily do so using the default Terminal application available in the Mac OS. Yes, we do not have to install any other application for doing so, as we do in Windows. If you...

Play with computer vision using teachable machine

petamind

Nowadays, with the existing tools, creating an AI application is not so complicated. In this post, I will quickly show how easy you can make a computer vision project within 10 minutes. Steps Create a computer vision project in Teachable machinePrepare some images of different classes, e.g. cup, people, hand.Upload photos and train the modelDownload the model and integrate to your website (web...

A.I, Data and Software Engineering

PetaMinds focuses on developing the coolest topics in data science, A.I, and programming, and make them so digestible for everyone to learn and create amazing applications in a short time.

Categories