Skip to content

Commit

Permalink
Performace metrics dataframe
Browse files Browse the repository at this point in the history
  • Loading branch information
jdvelasq committed Jan 23, 2025
1 parent 2669ce2 commit fd098e6
Show file tree
Hide file tree
Showing 65 changed files with 898 additions and 768 deletions.
14 changes: 0 additions & 14 deletions sphinx/_generated/analyze/cross_co_occurrence/heatmap.html

This file was deleted.

Large diffs are not rendered by default.

14 changes: 0 additions & 14 deletions sphinx/_generated/visualize/advanced_plots/bubble_plot.html

This file was deleted.

14 changes: 0 additions & 14 deletions sphinx/_generated/visualize/basic_plots/bar_plot.html

This file was deleted.

14 changes: 0 additions & 14 deletions sphinx/_generated/visualize/basic_plots/cleveland_dot_plot.html

This file was deleted.

14 changes: 0 additions & 14 deletions sphinx/_generated/visualize/basic_plots/column_plot.html

This file was deleted.

14 changes: 0 additions & 14 deletions sphinx/_generated/visualize/basic_plots/line_plot.html

This file was deleted.

14 changes: 0 additions & 14 deletions sphinx/_generated/visualize/basic_plots/pie_plot.html

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import networkx as nx # type: ignore
import numpy as np

from .....database.load.load__filtered_database import load__filtered_database
from .....database.load.load__database import load__filtered_database


def _create_citation_nx_graph(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
import networkx as nx # type: ignore
import numpy as np

from .....database.load.load__filtered_database import load__filtered_database
from .....database.metrics.performance_metrics.dataframe import (
from .....database.load.load__database import load__filtered_database
from .....database.metrics.performance_metrics.data_frame import (
performance_metrics_frame,
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import networkx as nx # type: ignore
import numpy as np

from ....database.load.load__filtered_database import load__filtered_database
from ....database.load.load__database import load__filtered_database


def _create_co_citation_nx_graph(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
[5 rows x 6 columns]
"""
from ...database.load.load__filtered_database import load__filtered_database
from ...database.load.load__database import load__filtered_database
from ...internals.mt.mt_extract_top_n_terms_by_metric import (
_mt_extract_top_n_terms_by_metric,
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import networkx as nx # type: ignore
import numpy as np

from .....database.load.load__filtered_database import load__filtered_database
from .....database.load.load__database import load__filtered_database


def _create_coupling_nx_graph(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
import networkx as nx # type: ignore
import numpy as np

from .....database.load.load__filtered_database import load__filtered_database
from .....database.metrics.performance_metrics.dataframe import (
from .....database.load.load__database import load__filtered_database
from .....database.metrics.performance_metrics.data_frame import (
performance_metrics_frame,
)
from .....internals.utils.utils_append_occurrences_and_citations_to_axis import (
Expand Down
2 changes: 1 addition & 1 deletion techminer2/analyze/cross_co_occurrence/dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"""
from ...database.load.load__filtered_database import load__filtered_database
from ...database.load.load__database import load__filtered_database
from ...database.load.load__user_stopwords import load__user_stopwords
from ...internals.mt.mt_calculate_global_performance_metrics import (
_mt_calculate_global_performance_metrics,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

import numpy as np

from ....database.load.load__filtered_database import load__filtered_database
from ....database.load.load__database import load__filtered_database


def _compute_main_path(
Expand Down
2 changes: 1 addition & 1 deletion techminer2/analyze/metrics/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Metrics menu options"""

from ...database.metrics.performance_metrics.dataframe import performance_metrics_frame
from ...database.metrics.performance_metrics.data_frame import performance_metrics_frame
from ..collaboration.collaboration_metrics_dataframe import collaboration_metrics_frame
from ..collaboration.collaboration_metrics_plot import collaboration_metrics_plot
from .general_metrics_dataframe import general_metrics_frame
Expand Down
2 changes: 1 addition & 1 deletion techminer2/analyze/metrics/general_metrics_dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
import numpy as np
import pandas as pd # type: ignore

from ...database.load.load__filtered_database import load__filtered_database
from ...database.load.load__database import load__filtered_database


class MainInformation:
Expand Down
2 changes: 1 addition & 1 deletion techminer2/analyze/metrics/internals/documents_per_item.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""documents by each item in a column"""

from ....database.load.load__filtered_database import load__filtered_database
from ....database.load.load__database import load__filtered_database


def documents_per_item(
Expand Down
2 changes: 1 addition & 1 deletion techminer2/analyze/metrics/tfidf_dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
import pandas as pd # type: ignore
from sklearn.feature_extraction.text import TfidfTransformer # type: ignore

from ...database.load.load__filtered_database import load__filtered_database
from ...database.load.load__database import load__filtered_database
from ...internals.mt.mt_calculate_global_performance_metrics import (
_mt_calculate_global_performance_metrics,
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"""
from ....database.load.load__filtered_database import load__filtered_database
from ....database.load.load__database import load__filtered_database


def compute_trend_metrics(
Expand Down
2 changes: 1 addition & 1 deletion techminer2/analyze/rpys/rpys_frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"""
import pandas as pd # type: ignore

from ...database.load.load__filtered_database import load__filtered_database
from ...database.load.load__database import load__filtered_database


def rpys_frame(
Expand Down
4 changes: 2 additions & 2 deletions techminer2/database/field_extractors/extractors__top_terms.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"""
from ...internals.mixins import InputFunctionsMixin
from ..load import load__filtered_database
from ..load import load__database
from ..metrics.performance_metrics.internals.internal__add_rank_field_by_metrics import (
internal__add_rank_field_by_metrics,
)
Expand Down Expand Up @@ -72,7 +72,7 @@ class TopTermsExtractor(

def build(self):

records = load__filtered_database(
records = load__database(
root_dir=self.params.root_dir,
database=self.params.database,
record_years_range=self.params.record_years_range,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from typing import Dict, List, Optional, Tuple

from ...load import load__filtered_database
from ...load import load__database


def internal__get_field_values_from_database(
Expand All @@ -24,7 +24,7 @@ def internal__get_field_values_from_database(
):
"""Returns a DataFrame with the content of the field in all databases."""

dataframe = load__filtered_database(
dataframe = load__database(
#
# DATABASE PARAMS:
root_dir=root_dir,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

from typing import Dict, List, Optional, Tuple

from ...load import load__filtered_database
from ...load import load__database


def internal__top_terms(
Expand All @@ -36,7 +36,7 @@ def build_terms_df(
records_order_by: Optional[str],
records_match: Optional[Dict[str, List[str]]],
):
records = load__filtered_database(
records = load__database(
root_dir=root_dir,
database=database,
record_years_range=record_years_range,
Expand Down
4 changes: 2 additions & 2 deletions techminer2/database/load/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
"""Load filtered records from the database."""

from .load__filtered_database import load__filtered_database
from .load__database import DatabaseLoader
from .load__user_stopwords import load__user_stopwords

__all__ = [
"load__filtered_database",
"DatabaseLoader",
"load__user_stopwords",
]
Loading

0 comments on commit fd098e6

Please sign in to comment.