Force an orientation on a single page in Xamarin.Forms

Articles

In certain cases, there are requirements where a certain page in your application can only be viewed in a particular orientation, i.e. portrait/landscape. Dealing with this issue in native Android/iOS is like a walk in the park, but doing this in a cross-platform framework can be confusing!

Want to find the easiest way out of it? This tutorial is intended to show you how to force an orientation on a single page while developing with Xamarin. Let’s get to it!

Continue reading Force an orientation on a single page in Xamarin.Forms

Evaluation Metrics for Machine Learning Models

Articles

Machine learning as a field is full of technical terms, making it difficult for beginners to get started. One might see things like “deep learning,” “the kernel trick,” “regularization,” “overfitting,” “semi-supervised learning,” “cross-validation,” etc. But what in the world do they mean?

One of the core tasks in building any machine learning model is to evaluate its performance. It’s fundamental, and it’s also really hard.

Continue reading Evaluation Metrics for Machine Learning Models

Detect Users’ Activity in Android Using the Transition API

Articles

In today’s world, mobile devices are an essential part of our daily lives—we use them as we walk, run, drive, and when doing many other activities.

Understanding what users are doing when holding their phones can allow your apps to adapt intuitively based on those user actions. And for some apps, it might be a requirement to identify when a user starts or stops a particular activity. For example, an app can start music in the background if a user starts running, or it can calculate the number of calories burned.

Continue reading Detect Users’ Activity in Android Using the Transition API

Getting started with Doc2Vec

Articles

This post is a beginner’s guide for understanding the inner workings of doc2vec for NLP tasks.

There are two primary architectures for implementing doc2vec: namely Distributed Memory Model of Paragraph Vectors (PV-DM) and Distributed Bag-of-Words version of Paragraph Vector (PV-DBOW).

In this article, we’ll dive into how doc2vec is related to word2vec and explore both of their architectures while also getting some hands-on experience with them.

Continue reading Getting started with Doc2Vec

Data-Free Speech Translator using SFSpeechRecognizer and ML Kit on iOS

Articles

We’ve seen this feature in countless smartphone ads. The quick scene has someone traveling to a foreign country, having a local say something into their smartphone, and then smile as it provides the translation for them. Usually it takes up just seconds of the ad before they move onto a new camera feature or something.

What they don’t show is the aftermath as that smile turns into panic. For soon after, the user realizes they’re nowhere near their hotel’s free WiFi. They begin to calculate how much their international data charge will be by the time they finally translate the local’s instructions to the best food in town. Who knows if they’ll be able to afford it by then?

Continue reading Data-Free Speech Translator using SFSpeechRecognizer and ML Kit on iOS

Connect Android Devices with a Wear OS Emulator

Articles

Nowadays, people check their watches for important notifications as much as they do the time. Wearable devices, like Android-based watches, are gaining more momentum as Google continues to improve its Android Wear platform for developers.

A couple of months ago, I was working on a simple application called Location-based tasks using Geofence. If you don’t know what Geofencing is, check out the link below:

Continue reading Connect Android Devices with a Wear OS Emulator