Sentiment Classification with Recurrent Neural Networks in MindSpore

To perform sentiment analysis on the IMDB movie review dataset, a recurrent neural network (LSTM) is built using MindSpore. The task is a binary classification problem: Positive or Negative. The workflow covers data acquisition, preprocessing, model construction, training, evaluation, and inference on custom input sentences. 1. Data Acquisition ...

Posted on Thu, 08 Oct 2026 16:56:57 +0000 by CRichardson

Visualizing Naive Bayes with Confidence Ellipses

This lab explores Naive Bayes features by visualizing tweet sentiment data, focusing on the log-likelihood ratio as a numeric feature for machine learning. We also introduce confidence ellipses as a tool to intuitively represent the Naive Bayes model. Imports import numpy as np import pandas as pd import matplotlib.pyplot as plt from utils impo ...

Posted on Sat, 08 Aug 2026 16:21:26 +0000 by BigJohn