CoolFace
Modelpublic

auphong2707/wm-grsa-lstm-baseline-results

sourceHugging Facemitupdated 9mo agoView on Hugging Face
0likes19downloads
Model Card

Wm-Grsa-Lstm-Baseline - Game Review Sentiment Analysis

Model Description

This model performs sentiment analysis on game reviews, classifying them into three categories:

  • —Positive: Favorable reviews
  • —Mixed: Neutral or mixed sentiment reviews
  • —Negative: Unfavorable reviews

Model Type: Wm-Grsa-Lstm-Baseline

Training Date: 2025-12-23

Performance

Test Set Metrics

MetricScore
Accuracy0.8266
F1-Score0.7587
Precision0.7560
Recall0.7617

Training Information

  • —Training Time: 33635.10 seconds
  • —Training Samples: 629,884
  • —Validation Samples: 78,735
  • —Test Samples: 78,737

Model Configuration

json
{
  "embed_dim": 128,
  "hidden_dim": 128,
  "learning_rate": 0.0005,
  "batch_size": 64,
  "epochs": 20,
  "max_len": 200,
  "vocab_size": 73738,
  "dropout_rate": 0.5,
  "fc_sizes": [
    64,
    64,
    16
  ],
  "subset": 1.0
}

Usage

Loading the Model

python
from pathlib import Path
import pickle

# Load the model components
model_dir = Path("path/to/model")

with open(model_dir / 'vectorizer.pkl', 'rb') as f:
    vectorizer = pickle.load(f)

with open(model_dir / 'classifier.pkl', 'rb') as f:
    classifier = pickle.load(f)

with open(model_dir / 'label_encoder.pkl', 'rb') as f:
    label_encoder = pickle.load(f)

Making Predictions

python
# Example reviews
reviews = [
    "This game is absolutely amazing! Best game I've played this year.",
    "It's okay, nothing special but not terrible either.",
    "Terrible game, waste of money and time."
]

# Transform and predict
X = vectorizer.transform(reviews)
predictions_encoded = classifier.predict(X)
predictions = label_encoder.inverse_transform(predictions_encoded)

print(predictions)
# Output: ['positive', 'mixed', 'negative']

# Get probabilities
probabilities = classifier.predict_proba(X)
print(probabilities)

Per-Class Performance

ClassPrecisionRecallF1-ScoreSupport
Positive0.91480.89900.906845859
Mixed0.53010.54930.539512697
Negative0.82320.83660.829820181

Feature Importance

The model identifies important words/phrases for each sentiment class. See results.json for the complete feature importance analysis.

Limitations

  • —The model is trained specifically on game reviews and may not generalize well to other domains
  • —Performance may vary on reviews with sarcasm or nuanced sentiments
  • —The model treats text as bag-of-words and doesn't capture word order

Training Details

This model was trained as part of a game review sentiment analysis project. For more information, see the project repository.

Files

  • —vectorizer.pkl: TF-IDF vectorizer
  • —classifier.pkl: Trained classifier
  • —label_encoder.pkl: Label encoder for sentiment classes
  • —config.json: Model configuration
  • —results.json: Complete training results and metrics

Citation

If you use this model, please cite:

@misc{game_review_sentiment,
  author = {Game Review Sentiment Analysis Project},
  title = {Sentiment Analysis Model for Game Reviews},
  year = {2025},
  url = {https://huggingface.co/wm-grsa-lstm-baseline}
}