Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8426403
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T04:31:34+00:00 2026-06-10T04:31:34+00:00

For a personal project I need to run several machine learning algorithms against different

  • 0

For a personal project I need to run several machine learning algorithms against different texts in order to classify them.

I used to do this using RapidMiner but I decided to move all my development to R as I feel I have more control with it.

The issue I am seeing now (which I did not notice with RapidMiner) is that loading the models is taking a lot of time.

For example:

I have a model which checks if it the text refers to sports.
The model is 37.7 MB and it takes 8:34 with my 2.2 GH i7 Mac with 4GB of RAM

The way I am calling the model is the following:

fileNameMatrix = paste(query,query1,"-matrix.Rd", sep ="")
fileNameModel= paste(query,query1,"-model.Rd", sep ="")

load(fileNameMatrix)
load(fileNameModel)

The model was generated using RTextTools

Those query variables you read are because I need to call almost 20 models and compare them against different datasets. That is why although 8 minutes is not a lot, when I read all of them its almost 3 hours just on loading which makes my task almost useless considering its an almost real time task.

Which factors should I consider to reduce loading time if reducing the size of the model is not an option?

One other thing I consider suspicious is that while the matrix file is rather small 64KB the model is still 37.7MB. Is it possible that the model file is bigger than necessary? Have anyone experienced something similar using RTextTools?

This is one of my firsts tasks using models in R so excuse me if I am doing somethings which is obviously wrong.

Thanks a lot for your time and any tip in the right direction will be much appreciated!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T04:31:35+00:00Added an answer on June 10, 2026 at 4:31 am

    Have you checked the RAM usage in your Activity Monitor? Compressed RData files are relatively tiny, but they uncompress to be massive. For instance, an n x n matrix of all 0‘s will take up essentially no space for any n (that may explain your small matrix size). Your loaded model might then be huge; I have some RData files that amount to maybe 200 MB but that cannot be loaded in memory in R. This could become a problem if you’re running low on RAM, as your computer may attempt to use drive space to load the files.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on a personal project where I need to manipulate values in
I'm working on a personal project problem. It's a donation management model. I need
I'm working on a small personal project and I need to create a non-rectanguar
For a personal project, I need to build a forum using PHP and MySQL.
For a personal project, I need to dynamically populate a grid, based on the
I need a free code coverage tools in .NET for personal project. NCover is
For a personal project, I'd need to find out if two cubic Bézier curves
In my personal of Iphone development project I need to retrieve data from plain
I have a personal project I'm planning and I came to a small hurdle.
I am about to start a new personal project. It aims to be a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.