briatte / briatte/elus

Use a sparse(r) matrix

Open
#3 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
R
Stars
5
Forks
4
PR merge metrics
No merged PRs in 30d

Description

The politicians x followers matrix might be better compressed by using `Matrix::sparseMatrix` ([as in this script](https://github.com/pablobarbera/echo_chambers/blob/master/02_estimation/07-create-initial-matrix.r#L49)) instead of `Matrix::Matrix`. The current code is efficient enough, though.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the politicians-by-followers matrix construction and compare it with 02_estimation/07-create-initial-matrix.r, especially the sparseMatrix example at line 49. Check that downstream operations accept the sparse representation, then verify that the matrix is built correctly and remains efficient.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
data, performance
Issue type
Refactor
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.