Machine Learning -III

Posted on 11th May 2019 10:43:49 Machine Learning

In the part 2 we did a small case study where we tried to find an approach how we can increase the sales by 5%. To do it, we started with the descriptive stastics where in we took a sample and found the various central tendencies - Using the continous & descrete data. Further, we used the categorial data to plot the histogram, stem-leaf & box plot to visualize and summarize it. With the visualization techique with the stem-leaf we reached to a summary that below 40 years we could easily improve the sales by 5%. Further more we made a summary which listed the different formulas with it's required value to clean the data sets.  We had learnt

Basics of Statisics

> Type of Random Variables - Based on Scale of Measurement

- Numerical Data (Continuous & Discrete) has Normal Continous Probability Distribution & Discrete Probability Distribution

- Nominal Data - Binomial Probability Distribution

- Ordinal Data

- Interval Data

- Ratio Data

> Variance

> Standard Deviation etc

In this part we would start learning how we can make use of inference statistics for predicting the future data. We would start learning: Probability Distributions - 

> Normal Distribution

> Standard Normal Distribution & Z Score

> Binomial Distribution

> Poisson Distribution

Read More

Machine Learning -II

Posted on 11th May 2019 10:43:49 Machine Learning

This in sequel to the 1st part where we started learning basic of the statstics which we use in the machine learning. We also learnt about CRISP and the different phases of the data science life cycle. We dig a level more to learn the EDA(Exploratory Data Analysis) techniques where we discussed few visusual and summarization techniques. We ended the first part by cleaning the data using the Zscore making use of Central Tendency & Dispersion.

Read More

Machine Learning -I

Posted on 11th May 2019 03:00:14 Machine Learning

Machine learning involves a lot of statistics. This and up coming next blogs would include concepts related with it. As at this moment of time am learning this subject, I would try to update it here in my blog.

Read More

JavaScript Introduction

Posted on 4th Nov 2018 23:10:28 Javascript

What is JavaScript?

JavaScript was initially created to “make webpages alive”.

The programs in this language are called scripts. They can be written right in the HTML and execute automatically as the page loads.

Scripts are provided and executed as a plain text. They don’t need a special preparation or a compilation to run.

In this aspect, JavaScript is very different from another language called Java.

Read More

MySQL Command Line Cheat Sheet

Posted on 23rd Sep 2018 03:58:47 Database

MySQL cheat sheet provides you with the most commonly used MySQL commands and statements that help you work with MySQL more effectively.

Read More

Reset a MySQL root password in command line interface

Posted on 23rd Sep 2018 03:41:47 Database

The MySQL root password allows the root user to have full access to the MySQL database. You must have (Linux) root or (Windows) Administrator access to the Cloud Server to reset the MySQL root password.

Note: The Cloud Server (Linux) root or (Windows) Administrator account password is not the same as the MySQL password. The Cloud Server password allows access to the server. The MySQL root password allows access only to the MySQL database

Use the following steps to reset a MySQL root password by using the command line interface.

Read More

How to use ejabberd with mysql

Posted on 23rd Sep 2018 03:29:08 XMPP

Although ejabberd has its default database called Mnesia but when you want to access this database,you have to learn this new if you have used sql database earlier then it will be easy for you to use mysql with ejabberd.
         For using Mnesia database,you do not need to do anything it comes by default with ejabberd installation but if you want use mysql instead of Mnesia then you need to enable it at the time of ejabberd installation and after installation you have to configure mysql in the configuration file of ejabberd called "ejabberd.yml".
 so we are going to give a step by step guide to make ejabberd working with mysql.

Read More

Introduction to XMPP

Posted on 13th Jul 2018 22:55:18 XMPP

XMPP stands for eXtensible Messaging and Presence Protocol.It is an open standard protocol that is used to build real time applications.Example applications are Instant Messaging Apps ,White-boarding applications,real time gaming applications and many more.The protocol uses XML as a means to exchange information.In short XMPP allows you to send chunks of XML data from one node to another in real time .In this tutorial we lay down the conceptual concepts needed to make your XMPP journey as smooth as possible.

Read More

MVVM - Part2

Posted on 27th Nov 2017 05:13:50 Android, Design

In the previous MVVM-part1 we learnt  about the data binding, how we can set data binding in android, which attributes can be bounded, and how do we can create auto-updating layouts.

In this part of the article series of MVVM we would learn how the MVVM model interact with its different components.

Read More

MVVM - Part1

Posted on 27th Nov 2017 04:48:40 Android, Design

Model-View-Presenter (MVP) architecture is widely used in today’s Android apps to separate the view from the presentation logic and the model by introducing a presenter. Model-View-ViewModel (MVVM) is quite similar to MVP, with the view model acting as an enhanced presenter, using a data binder to keep the view model and the view in sync. By binding the view to view model properties, the data binder can handle view updates without the need to manually set changed data back to the view (e.g. no more setText() or setVisibility() on a TextView). As with the presenter in MVP, the view model can easily be unit tested. This article gives an introduction to both the data binding library and the MVVM architectural pattern and how they work together on Android.

Read More


Posted on 29th Oct 2017 20:32:16 Design, Android

Model View Presenter(MVP) is similar to other structural patterns for implementing separation of concerns, such as Model-View-Controller and Model-View-ViewModel. In MVP on Android, your activities and fragments typically act as the view objects by implementing a view interface, and handle interaction of the app with the user.

The view passes on user actions to the presenter, which handles the business logic and interaction with data repositories, such as a server API or database. The model layer consists of the objects that make up the content of the app.


Read More

Dagger2 - Part4

Posted on 29th Oct 2017 02:10:17 Java, Android

This is the part 4 of the article series. In part 3 we learnt what a Component is, how it wires with the Module. We also implemented the DemoApplication Activity lifecycle & the respective layout.

In this article we would learn how DaggerApplicationComponent  generates the DAG(Directed Acyclic Graph) when we provide the ApplicationModule class to it. Further, we would learn how @inject is used to get the object instance to finish our learning about Dagger2. Let's get started!

Read More

Dagger2 - Part3

Posted on 29th Oct 2017 01:33:20 Java, Android

This is the part 3  of the article series. In part 2 we implemented the DataManagerDbHelper , SharedPrefsHelper and we modeled the class so that we can retrieve the value from the database. 

We will learn next what is a Component, how we can create a Component & how it wire itself in the DemoApplication to generate the dependent acyclic grap of objects.

Read More

Dagger2 - Part2

Posted on 29th Oct 2017 01:14:37 Java, Android

Using Dependency Injection in Android.

This is the part 2 of the article series. In part 1 we understood the need and advantages of dependency injection. We also got an overview of Dagger2. In this part, we will focus on implementing the DI using Dagger2 in an android app.For the sake of this tutorial, we will break the process in steps and analyze each step one by one. Remember Dagger2 requires a concentrated approach. So actively follow the below tutorial, asking a lot of questions.

Read More

Dagger2 - Part1

Posted on 29th Oct 2017 00:38:52 Java

In the Java world, there are a number of frameworks that have been created to simplify the application of dependency injection. The frameworks remove a lot of the boilerplate code that can occur, and also provide a systematic way to apply dependency injection across a software system.

One of the earlier Java dependency injection frameworks was Guice, created at Google. The team at Squarelater developed the Dagger framework, targeted primarily at Android.

While a fantastic accomplishment, the initial Dagger framework had a few downsides. For example, performance issues due to runtime reflection and difficulty working with ProGuard.

As a result, the updated Dagger 2 framework was born, which produces simpler generated code and solves the performance issues by having injection occur at compile time.

The name “Dagger” is inspired in part by the nature of dependencies in software development. The web of dependencies that occur between objects such as ABC, …, create a structure called a Directed Acyclic Graph. Dagger and Dagger 2 are used to simplify the creation of such graphs in your Java and Android projects.

For the remainder of the tutorial, the term Dagger will refer to Dagger 2.

Read More

Android - Draw a Custom View

Posted on 20th Aug 2017 15:05:21 Android

Every day we use various applications and despite of their diverse intentions, most of them are very similar or even resemble each other in terms of design. That’s why a lot of customers are requesting specific, customized layouts and appearances that no other application has embodied yet, in order to make the Android application unique and contrast from others.

If a specific feature requires a very customized functionality that could not be created by android built-in views — then here comes custom view drawing. What that means in most cases, is that it will take quite a while to complete it. But it does mean that we should not do this, moreover it’s very exciting and interesting to implement.

Read More

Database Design - I

Posted on 20th Jan 2017 23:22:17 Database

The requirements and the collection analysis phase produce both data requirements and functional requirements. The data requirements are used as a source of database design. The data requirements should be specified in as detailed and complete form as possible.

In parallel with specifying the data requirements, it is useful to specify the known functional requirements of the application. These consist of user-defined operations that will be applied to the database (retrievals and updates). The functional requirements are used as a source of application software design. Of course some functions may produce also needs for database design.

Note that some phases are database management system independent and some are dependent. The idea is to design first the database without thinking about the actual database system - just to concentrate on the data.


Database Design and Implementation is applicable for whatever industry your in. Here is a step by step approach to designing and implementing a database in your organisation. 

Database design is the process of producing a detailed data model of database. This data model contains all the needed logical and physical design choices and physical storage parameters needed to generate a design in a data definition language, which can then be used to create a database. 

Read More

Modeling Database - I

Posted on 19th Jan 2017 01:07:46 Database

This article/tutorial will teach the basis of relational database design and explains how to make a good database design. It is a rather long text, but we advise to read all of it. Designing a database is in fact fairly easy, but there are a few rules to stick to. It is important to know what these rules are, but more importantly is to know why these rules exist, otherwise you will tend to make mistakes!

Read More

Modeling Database - II

Posted on 14th Jan 2017 20:54:39 Database

Normalization of Database

In the first part of this tutorial on modeling database -I we saw how we can model a table. In this part we will focus on what we mean by normalization of relational DB, what are few ways to do it.

Database normalization, or simply normalization, is the process of organizing the columns (attributes) and tables (relations) of a relational database to reduce data redundancy and improve data integrity.

Normalization involves arranging attributes in tables based on dependencies between attributes, ensuring that the dependencies are properly enforced by database integrity constraints.

Read More

JDK8- JDBC ODBC Bridge in Java 8

Posted on 28th Dec 2016 02:06:14 Java

Starting with Java 8, the JDBC-ODBC Bridge will no longer be included with the JDK.

 Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); // classNotFoundException is thrown

 So, is there a solution to read and write to excel file using JDBC ODBC Bridge? The answer is YES! 

Read More

State Driven Agent Design

Posted on 19th Dec 2016 06:08:53 Artificial Intelligence

Finite state machines, or FSMs as they are usually referred to, have for many years been the AI coder’s instrument of choice to imbue a game agent with the illusion of intelligence. You will find FSMs of one kind or another in just about every game to hit the shelves since the early days of video games, and despite the increasing popularity of more esoteric agent architectures, they are going to be around for a long time to come.

Read More


“It is better to live your own destiny imperfectly than to live an imitation of somebody else's life with perfection.”
-The Bhagavad Gita

© SOFTHINKERS 2013-18 All Rights Reserved. Privacy policy