How to create an Android mobile app with a deep learning AI model ?

Creating an Android mobile app with a deep learning AI model involves several key steps: 1. Define the AI Model’s Objective and Gather Data: 2. Develop and Train the Deep Learning Model: 3. Optimize and Convert the Model for Mobile Deployment: Convert your trained model to a mobile-optimized format like TensorFlow Lite (LiteRT) for efficient execution on Android devices. This often involves quantization and pruning to reduce model size and improve inference speed. If the model Read more…

Install PyTorch on Windows

PyTorch is a deep learning package for machine learning, or deep learning in particular for a neural network model. To install PyTorch onto your Windows operating system, first goes to the official website for PyTorch: www.pytorch.org, and the information associated with Windows and Cuda version should be highlighted on this page. Before we will run the statement for the PyTorch installation in a prompt window, e.g. Anaconda prompt windows, Cuda Toolkit must be installed on Read more…

Topic Modeling using Latent Dirichlet Allocation with Python

Topic modeling is a subcategory of unsupervised machine learning method, and a clustering task in particular. The main purpose of a topic model is assigning topics to unlabeled text documents., for example, a typical application is the categorization of social media blog into categories, such as sports, finance, world news, politics, and local news. The specific technique applied in topic modeling is called Latent Dirichlet Allocation (LDA). LDA is a Bayesian statistical approach that tries Read more…

Document sentiment classification using bag-of-words in Python

For online Python training registration, click here ! Sentiment classification is a type of machine learning methods, and a subfield of natural language processing (NLP). It is a kind of supervised machine learning task. With classification algorithms, such as logistic regression model, text data can be trained with respect to their labels, e.g. positive and negative. The main procedure of a sentiment classification implementation contains the following jobs: In the following example, we show how Read more…

How to create a data frame from nested dictionary with Pandas in Python

For online Python training registration, click here ! Pandas provides flexible ways of generating data frames. One of them is by inputting in pd.DataFrame() function. For example, ND1 is a nested dictionary. When this dictionary is passed directly as an argument to the function DataFrame(), it will be treated by Pandas that external keys of the nested dictionary as column names of the new data frame, and internal keys as labels for the indexes. If Read more…

How to delete columns of a data frame in Python

For online Python training registration, click here ! Data frame is the tabular data object in Python. It can store different mode of data for different columns. If you want to remove unwanted columns from a data frame, you can use either del() function or drop() method. Next we show some examples about that. Sometimes you may need the removed column, then you can use pop() method to data frame. For more examples on Python, Read more…