Machine learning models/Production/Basque Wikipedia article topic

Model card
This page is an on-wiki machine learning model card.
A diagram of a neural network
A model card is a document about a machine learning model that seeks to answer basic questions about the model.
Model Information Hub
Model creator(s)Aaron Halfaker (User:EpochFail) and Amir Sarabadani
Model owner(s)WMF Machine Learning Team (ml@wikimediafoundation.org)
Model interfaceOres homepage
Codedrafttopic Github, ORES training data, and ORES model binaries
Uses PIINo
In production?Yes
Which projects?Basque Wikipedia
This model uses article text to predict the likelihood that the article belongs to a set of topics.


Motivation

How can we predict what general topic an article is in? Answering this question is useful for various analyses of Wikipedia dynamics. However, it is difficult to group a very diverse range of Wikipedia articles into coherent, consistent topics manually.

This model, part of the ORES suite of models, analyzes an article to predict its likelihood of belonging to a set of topics. Similar models (though not necessarily with the same performance level or topics, are deployed across about a dozen other projects. There is also a language agnostic article topic model.

This model may be useful for high-level analyses of Wikipedia dynamics (pageviews, article quality, edit trends) and filtering articles.

Users and uses


Use this model for
  • high-level analyses of Wikipedia dynamics such as pageview, article quality, or edit trends — e.g. How are pageview dynamics different between the physics and biology categories?
  • filtering to relevant articles — e.g. filter articles only to those in the music category.
Don't use this model for
  • definitively establishing what topic an article pertains to
  • automated editing of articles or topics without a human in the loop
Current uses

This model is a part of ORES, and generally accessible via API. It is used for high-level analysis of Wikipedia, platform research, and other on-wiki tasks.

Example API call:
https://ores.wikimedia.org/v3/scores/euwiki/1234/articletopic

Ethical considerations, caveats, and recommendations

  • This model was trained on data that is now several years old (from mid-2020). Underlying data drift may skew model outputs.
  • This model uses word2vec as a training feature. Word2vec, like other natural language embeddings, encodes the linguistic biases of underlying datasets — along the lines of gender, race, ethnicity, religion etc. Since Wikipedia has known biases in its text, this model may encode and at times reproduce those biases.
  • This model has highly variable performance across different topics — consult the test statistics below to get a sense of inter-topic performance.

Model

Performance


Test data confusion matrix:

Test data confusion matrix
LabelnTrue positiveFalse positiveFalse negativeTrue Negative
Culture.Biography.Biography*1411112792131969041643
Culture.Biography.Women35582491106732452562
Culture.Food and drink1464106440011154869
Culture.Internet culture2157188527214454143
Culture.Linguistics2171162354814254131
Culture.Literature48753743113240751162
Culture.Media.Books130510832227355066
Culture.Media.Entertainment2110121689425254082
Culture.Media.Films310228532498353259
Culture.Media.Media*1152310170135395643965
Culture.Media.Music2715233438113353596
Culture.Media.Radio253189642856163
Culture.Media.Software2005186713817854261
Culture.Media.Television173314033308654625
Culture.Media.Video games651615362055773
Culture.Performing arts155197757411054783
Culture.Philosophy and religion42422436180637051832
Culture.Sports3639293570413752668
Culture.Visual arts.Architecture2502195354924353699
Culture.Visual arts.Comics and Anime116110081533955244
Culture.Visual arts.Fashion6184281904055786
Culture.Visual arts.Visual arts*49693733123638451091
Geography.Geographical46273220140764351174
Geography.Regions.Africa.Africa*39062632127432252216
Geography.Regions.Africa.Central Africa8085033058555551
Geography.Regions.Africa.Eastern Africa3602341262256062
Geography.Regions.Africa.Northern Africa1527104548211554802
Geography.Regions.Africa.Southern Africa5903872034155813
Geography.Regions.Africa.Western Africa7749282456343
Geography.Regions.Americas.Central America140681459213854900
Geography.Regions.Americas.North America65444963158176349137
Geography.Regions.Americas.South America1784137341112254538
Geography.Regions.Asia.Asia*98667962190482945749
Geography.Regions.Asia.Central Asia9286882407455442
Geography.Regions.Asia.East Asia3315275056518052949
Geography.Regions.Asia.North Asia1410120220812054914
Geography.Regions.Asia.South Asia1800129450610454540
Geography.Regions.Asia.Southeast Asia175096878219154503
Geography.Regions.Asia.West Asia2383186252113553926
Geography.Regions.Europe.Eastern Europe3057256449316253225
Geography.Regions.Europe.Europe*16976144582518190137567
Geography.Regions.Europe.Northern Europe4149327187831051985
Geography.Regions.Europe.Southern Europe54774245123264450323
Geography.Regions.Europe.Western Europe52014151105039350850
Geography.Regions.Oceania1895131857714954400
History and Society.Business and economics31252030109523053089
History and Society.Education177792185611654551
History and Society.History61504002214872549569
History and Society.Military and warfare41992821137840851837
History and Society.Politics and government47132715199850451227
History and Society.Society69463529341765748841
History and Society.Transportation253321324017353838
STEM.Biology6821623258915949464
STEM.Chemistry1541127326810754796
STEM.Computing2464219826614253838
STEM.Earth and environment1875136650910354466
STEM.Engineering2557186269520153686
STEM.Libraries & Information4763711053155937
STEM.Mathematics10699501193355342
STEM.Medicine & Health1942139354913254370
STEM.Physics1574121036413854732
STEM.STEM*1998818321166780535651
STEM.Space187917361432854537
STEM.Technology4389345393653051525

Test data sample rates:

Test data sample rates
LabelSamplePopulation
Culture.Biography.Biography*0.250.123
Culture.Biography.Women0.0630.015
Culture.Food and drink0.0260.002
Culture.Internet culture0.0380.003
Culture.Linguistics0.0380.007
Culture.Literature0.0860.015
Culture.Media.Books0.0230.004
Culture.Media.Entertainment0.0370.004
Culture.Media.Films0.0550.011
Culture.Media.Media*0.2040.058
Culture.Media.Music0.0480.024
Culture.Media.Radio0.0040.002
Culture.Media.Software0.0360.001
Culture.Media.Television0.0310.009
Culture.Media.Video games0.0120.003
Culture.Performing arts0.0270.003
Culture.Philosophy and religion0.0750.011
Culture.Sports0.0640.071
Culture.Visual arts.Architecture0.0440.011
Culture.Visual arts.Comics and Anime0.0210.002
Culture.Visual arts.Fashion0.0110.001
Culture.Visual arts.Visual arts*0.0880.018
Geography.Geographical0.0820.024
Geography.Regions.Africa.Africa*0.0690.008
Geography.Regions.Africa.Central Africa0.0140.001
Geography.Regions.Africa.Eastern Africa0.0060
Geography.Regions.Africa.Northern Africa0.0270.001
Geography.Regions.Africa.Southern Africa0.010.001
Geography.Regions.Africa.Western Africa0.0010.001
Geography.Regions.Americas.Central America0.0250.003
Geography.Regions.Americas.North America0.1160.064
Geography.Regions.Americas.South America0.0320.006
Geography.Regions.Asia.Asia*0.1750.045
Geography.Regions.Asia.Central Asia0.0160.001
Geography.Regions.Asia.East Asia0.0590.011
Geography.Regions.Asia.North Asia0.0250.001
Geography.Regions.Asia.South Asia0.0320.015
Geography.Regions.Asia.Southeast Asia0.0310.006
Geography.Regions.Asia.West Asia0.0420.011
Geography.Regions.Europe.Eastern Europe0.0540.013
Geography.Regions.Europe.Europe*0.3010.076
Geography.Regions.Europe.Northern Europe0.0740.031
Geography.Regions.Europe.Southern Europe0.0970.013
Geography.Regions.Europe.Western Europe0.0920.019
Geography.Regions.Oceania0.0340.015
History and Society.Business and economics0.0550.01
History and Society.Education0.0310.007
History and Society.History0.1090.011
History and Society.Military and warfare0.0740.014
History and Society.Politics and government0.0830.028
History and Society.Society0.1230.013
History and Society.Transportation0.0450.015
STEM.Biology0.1210.034
STEM.Chemistry0.0270.002
STEM.Computing0.0440.003
STEM.Earth and environment0.0330.005
STEM.Engineering0.0450.005
STEM.Libraries & Information0.0080.001
STEM.Mathematics0.0190
STEM.Medicine & Health0.0340.006
STEM.Physics0.0280.001
STEM.STEM*0.3540.069
STEM.Space0.0330.006
STEM.Technology0.0780.005

Test data performance:

Test data performance
LabelMatch rateFilter rateRecallPrecisionf1AccuracyROC AUCPR AUC
Culture.Biography.Biography*0.1260.8740.9070.8860.8960.9740.9830.955
Culture.Biography.Women0.0160.9840.70.6280.6620.990.9790.684
Culture.Food and drink0.0040.9960.7270.4710.5710.9970.980.623
Culture.Internet culture0.0060.9940.8740.5360.6650.9970.9870.76
Culture.Linguistics0.0080.9920.7480.6780.7110.9960.9830.773
Culture.Literature0.020.980.7680.6050.6770.9890.980.743
Culture.Media.Books0.0050.9950.830.7170.7690.9980.9840.789
Culture.Media.Entertainment0.0070.9930.5760.3090.4020.9940.9730.342
Culture.Media.Films0.0110.9890.920.8630.890.9980.9880.929
Culture.Media.Media*0.0720.9280.8830.720.7930.9730.9820.892
Culture.Media.Music0.0230.9770.860.8950.8770.9940.9850.903
Culture.Media.Radio0.0020.9980.7470.7640.7550.9990.9480.58
Culture.Media.Software0.0050.9950.9310.2750.4240.9970.9890.569
Culture.Media.Television0.0090.9910.810.8210.8150.9970.9850.844
Culture.Media.Video games0.0030.9970.9450.8730.9080.9990.9830.936
Culture.Performing arts0.0040.9960.630.4760.5430.9970.9750.528
Culture.Philosophy and religion0.0130.9870.5740.4660.5140.9880.9590.52
Culture.Sports0.060.940.8070.960.8760.9840.9780.934
Culture.Visual arts.Architecture0.0130.9870.7810.6490.7090.9930.9840.763
Culture.Visual arts.Comics and Anime0.0030.9970.8680.730.7930.9990.9880.837
Culture.Visual arts.Fashion0.0010.9990.6930.4390.5370.9990.9780.503
Culture.Visual arts.Visual arts*0.0210.9790.7510.6520.6980.9880.9770.739
Geography.Geographical0.0290.9710.6960.5750.630.9810.9720.661
Geography.Regions.Africa.Africa*0.0110.9890.6740.4640.5490.9910.9740.584
Geography.Regions.Africa.Central Africa0.0020.9980.6230.2050.3080.9980.9810.233
Geography.Regions.Africa.Eastern Africa0.0010.9990.650.430.5170.9990.9640.324
Geography.Regions.Africa.Northern Africa0.0030.9970.6840.2860.4040.9980.9780.364
Geography.Regions.Africa.Southern Africa0.0020.9980.6560.5120.5750.9990.9680.423
Geography.Regions.Africa.Western Africa0.0010.9990.6360.5050.5630.9990.8320.313
Geography.Regions.Americas.Central America0.0040.9960.5790.4330.4960.9960.9710.467
Geography.Regions.Americas.North America0.0630.9370.7580.7730.7660.970.9740.842
Geography.Regions.Americas.South America0.0070.9930.770.6860.7260.9960.9830.806
Geography.Regions.Asia.Asia*0.0540.9460.8070.6840.740.9740.9750.825
Geography.Regions.Asia.Central Asia0.0020.9980.7410.3250.4520.9980.9810.355
Geography.Regions.Asia.East Asia0.0130.9870.830.7390.7810.9950.9830.81
Geography.Regions.Asia.North Asia0.0030.9970.8520.2660.4050.9980.9880.362
Geography.Regions.Asia.South Asia0.0130.9870.7190.8530.780.9940.9760.801
Geography.Regions.Asia.Southeast Asia0.0070.9930.5530.4890.5190.9940.9750.538
Geography.Regions.Asia.West Asia0.0110.9890.7810.7750.7780.9950.9790.778
Geography.Regions.Europe.Eastern Europe0.0140.9860.8390.7820.8090.9950.9820.838
Geography.Regions.Europe.Europe*0.1090.8910.8520.5930.6990.9440.9680.804
Geography.Regions.Europe.Northern Europe0.030.970.7880.8070.7980.9880.9810.841
Geography.Regions.Europe.Southern Europe0.0230.9770.7750.4480.5670.9850.980.639
Geography.Regions.Europe.Western Europe0.0230.9770.7980.670.7290.9890.9820.806
Geography.Regions.Oceania0.0130.9870.6960.7960.7420.9930.9790.782
History and Society.Business and economics0.0110.9890.650.6050.6270.9920.9720.64
History and Society.Education0.0060.9940.5180.6440.5740.9940.970.544
History and Society.History0.0210.9790.6510.3310.4390.9820.9630.463
History and Society.Military and warfare0.0170.9830.6720.5510.6050.9880.9740.637
History and Society.Politics and government0.0260.9740.5760.6320.6030.9790.9560.636
History and Society.Society0.020.980.5080.3280.3990.9810.9380.381
History and Society.Transportation0.0140.9860.8420.9050.8720.9960.9850.918
STEM.Biology0.0340.9660.9140.9080.9110.9940.9860.954
STEM.Chemistry0.0030.9970.8260.3980.5370.9980.9870.58
STEM.Computing0.0050.9950.8920.4780.6220.9970.990.702
STEM.Earth and environment0.0050.9950.7290.6370.680.9970.9810.705
STEM.Engineering0.0080.9920.7280.5070.5980.9950.9780.637
STEM.Libraries & Information0.0010.9990.7790.4670.5840.9990.9510.605
STEM.Mathematics0.0010.9990.8890.3830.5360.9990.990.538
STEM.Medicine & Health0.0070.9930.7170.6560.6850.9960.9780.719
STEM.Physics0.0030.9970.7690.2060.3250.9970.9850.341
STEM.STEM*0.0840.9160.9170.7550.8280.9740.980.922
STEM.Space0.0060.9940.9240.9160.920.9990.9920.947
STEM.Technology0.0140.9860.7870.2850.4180.9890.980.474

The training dataset for this model is available here.

Implementation


Model architecture
Model architecture
{
    "type": "GradientBoosting",
    "params": {
        "scale": false,
        "center": false,
        "labels": [
            "Culture.Biography.Biography*",
            "Culture.Biography.Women",
            "Culture.Food and drink",
            "Culture.Internet culture",
            "Culture.Linguistics",
            "Culture.Literature",
            "Culture.Media.Books",
            "Culture.Media.Entertainment",
            "Culture.Media.Films",
            "Culture.Media.Media*",
            "Culture.Media.Music",
            "Culture.Media.Radio",
            "Culture.Media.Software",
            "Culture.Media.Television",
            "Culture.Media.Video games",
            "Culture.Performing arts",
            "Culture.Philosophy and religion",
            "Culture.Sports",
            "Culture.Visual arts.Architecture",
            "Culture.Visual arts.Comics and Anime",
            "Culture.Visual arts.Fashion",
            "Culture.Visual arts.Visual arts*",
            "Geography.Geographical",
            "Geography.Regions.Africa.Africa*",
            "Geography.Regions.Africa.Central Africa",
            "Geography.Regions.Africa.Eastern Africa",
            "Geography.Regions.Africa.Northern Africa",
            "Geography.Regions.Africa.Southern Africa",
            "Geography.Regions.Africa.Western Africa",
            "Geography.Regions.Americas.Central America",
            "Geography.Regions.Americas.North America",
            "Geography.Regions.Americas.South America",
            "Geography.Regions.Asia.Asia*",
            "Geography.Regions.Asia.Central Asia",
            "Geography.Regions.Asia.East Asia",
            "Geography.Regions.Asia.North Asia",
            "Geography.Regions.Asia.South Asia",
            "Geography.Regions.Asia.Southeast Asia",
            "Geography.Regions.Asia.West Asia",
            "Geography.Regions.Europe.Eastern Europe",
            "Geography.Regions.Europe.Europe*",
            "Geography.Regions.Europe.Northern Europe",
            "Geography.Regions.Europe.Southern Europe",
            "Geography.Regions.Europe.Western Europe",
            "Geography.Regions.Oceania",
            "History and Society.Business and economics",
            "History and Society.Education",
            "History and Society.History",
            "History and Society.Military and warfare",
            "History and Society.Politics and government",
            "History and Society.Society",
            "History and Society.Transportation",
            "STEM.Biology",
            "STEM.Chemistry",
            "STEM.Computing",
            "STEM.Earth and environment",
            "STEM.Engineering",
            "STEM.Libraries & Information",
            "STEM.Mathematics",
            "STEM.Medicine & Health",
            "STEM.Physics",
            "STEM.STEM*",
            "STEM.Space",
            "STEM.Technology"
        ],
        "multilabel": true,
        "population_rates": null,
        "ccp_alpha": 0.0,
        "criterion": "friedman_mse",
        "init": null,
        "learning_rate": 0.1,
        "loss": "deviance",
        "max_depth": 5,
        "max_features": "log2",
        "max_leaf_nodes": null,
        "min_impurity_decrease": 0.0,
        "min_impurity_split": null,
        "min_samples_leaf": 1,
        "min_samples_split": 2,
        "min_weight_fraction_leaf": 0.0,
        "n_estimators": 150,
        "n_iter_no_change": null,
        "presort": "deprecated",
        "random_state": null,
        "subsample": 1.0,
        "tol": 0.0001,
        "validation_fraction": 0.1,
        "verbose": 0,
        "warm_start": false,
        "label_weights": {}
    }
}
Output schema
Output schema
{
    "title": "Scikit learn-based classifier score with probability",
    "type": "object",
    "properties": {
        "prediction": {
            "description": "The most likely labels predicted by the estimator",
            "type": "array",
            "items": {
                "type": "string"
            }
        },
        "probability": {
            "description": "A mapping of probabilities onto each of the potential output labels",
            "type": "object",
            "properties": {
                "Culture.Biography.Biography*": {
                    "type": "number"
                },
                "Culture.Biography.Women": {
                    "type": "number"
                },
                "Culture.Food and drink": {
                    "type": "number"
                },
                "Culture.Internet culture": {
                    "type": "number"
                },
                "Culture.Linguistics": {
                    "type": "number"
                },
                "Culture.Literature": {
                    "type": "number"
                },
                "Culture.Media.Books": {
                    "type": "number"
                },
                "Culture.Media.Entertainment": {
                    "type": "number"
                },
                "Culture.Media.Films": {
                    "type": "number"
                },
                "Culture.Media.Media*": {
                    "type": "number"
                },
                "Culture.Media.Music": {
                    "type": "number"
                },
                "Culture.Media.Radio": {
                    "type": "number"
                },
                "Culture.Media.Software": {
                    "type": "number"
                },
                "Culture.Media.Television": {
                    "type": "number"
                },
                "Culture.Media.Video games": {
                    "type": "number"
                },
                "Culture.Performing arts": {
                    "type": "number"
                },
                "Culture.Philosophy and religion": {
                    "type": "number"
                },
                "Culture.Sports": {
                    "type": "number"
                },
                "Culture.Visual arts.Architecture": {
                    "type": "number"
                },
                "Culture.Visual arts.Comics and Anime": {
                    "type": "number"
                },
                "Culture.Visual arts.Fashion": {
                    "type": "number"
                },
                "Culture.Visual arts.Visual arts*": {
                    "type": "number"
                },
                "Geography.Geographical": {
                    "type": "number"
                },
                "Geography.Regions.Africa.Africa*": {
                    "type": "number"
                },
                "Geography.Regions.Africa.Central Africa": {
                    "type": "number"
                },
                "Geography.Regions.Africa.Eastern Africa": {
                    "type": "number"
                },
                "Geography.Regions.Africa.Northern Africa": {
                    "type": "number"
                },
                "Geography.Regions.Africa.Southern Africa": {
                    "type": "number"
                },
                "Geography.Regions.Africa.Western Africa": {
                    "type": "number"
                },
                "Geography.Regions.Americas.Central America": {
                    "type": "number"
                },
                "Geography.Regions.Americas.North America": {
                    "type": "number"
                },
                "Geography.Regions.Americas.South America": {
                    "type": "number"
                },
                "Geography.Regions.Asia.Asia*": {
                    "type": "number"
                },
                "Geography.Regions.Asia.Central Asia": {
                    "type": "number"
                },
                "Geography.Regions.Asia.East Asia": {
                    "type": "number"
                },
                "Geography.Regions.Asia.North Asia": {
                    "type": "number"
                },
                "Geography.Regions.Asia.South Asia": {
                    "type": "number"
                },
                "Geography.Regions.Asia.Southeast Asia": {
                    "type": "number"
                },
                "Geography.Regions.Asia.West Asia": {
                    "type": "number"
                },
                "Geography.Regions.Europe.Eastern Europe": {
                    "type": "number"
                },
                "Geography.Regions.Europe.Europe*": {
                    "type": "number"
                },
                "Geography.Regions.Europe.Northern Europe": {
                    "type": "number"
                },
                "Geography.Regions.Europe.Southern Europe": {
                    "type": "number"
                },
                "Geography.Regions.Europe.Western Europe": {
                    "type": "number"
                },
                "Geography.Regions.Oceania": {
                    "type": "number"
                },
                "History and Society.Business and economics": {
                    "type": "number"
                },
                "History and Society.Education": {
                    "type": "number"
                },
                "History and Society.History": {
                    "type": "number"
                },
                "History and Society.Military and warfare": {
                    "type": "number"
                },
                "History and Society.Politics and government": {
                    "type": "number"
                },
                "History and Society.Society": {
                    "type": "number"
                },
                "History and Society.Transportation": {
                    "type": "number"
                },
                "STEM.Biology": {
                    "type": "number"
                },
                "STEM.Chemistry": {
                    "type": "number"
                },
                "STEM.Computing": {
                    "type": "number"
                },
                "STEM.Earth and environment": {
                    "type": "number"
                },
                "STEM.Engineering": {
                    "type": "number"
                },
                "STEM.Libraries & Information": {
                    "type": "number"
                },
                "STEM.Mathematics": {
                    "type": "number"
                },
                "STEM.Medicine & Health": {
                    "type": "number"
                },
                "STEM.Physics": {
                    "type": "number"
                },
                "STEM.STEM*": {
                    "type": "number"
                },
                "STEM.Space": {
                    "type": "number"
                },
                "STEM.Technology": {
                    "type": "number"
                }
            }
        }
    }
}
Example input and output
Input:
https://ores.wikimedia.org/v3/scores/euwiki/1234/articletopic

Output:

Example output
{
    "euwiki": {
        "models": {
            "articletopic": {
                "version": "1.4.0"
            }
        },
        "scores": {
            "1234": {
                "articletopic": {
                    "score": {
                        "prediction": [
                            "STEM.STEM*"
                        ],
                        "probability": {
                            "Culture.Biography.Biography*": 0.04474557328405812,
                            "Culture.Biography.Women": 0.01497907119604387,
                            "Culture.Food and drink": 0.004752578712389338,
                            "Culture.Internet culture": 0.0023449403303050457,
                            "Culture.Linguistics": 0.0022740280576232182,
                            "Culture.Literature": 0.1182325750318887,
                            "Culture.Media.Books": 0.019549951107536098,
                            "Culture.Media.Entertainment": 0.01794452542211024,
                            "Culture.Media.Films": 0.002490622258081927,
                            "Culture.Media.Media*": 0.09069096640892323,
                            "Culture.Media.Music": 0.001933147122339207,
                            "Culture.Media.Radio": 0.015838931867138636,
                            "Culture.Media.Software": 0.0024631575903988523,
                            "Culture.Media.Television": 0.002503439185117112,
                            "Culture.Media.Video games": 2.942126295513376e-05,
                            "Culture.Performing arts": 0.004104411115017456,
                            "Culture.Philosophy and religion": 0.08753806275640869,
                            "Culture.Sports": 0.01539663101982379,
                            "Culture.Visual arts.Architecture": 0.07475321770031441,
                            "Culture.Visual arts.Comics and Anime": 0.0106637883730939,
                            "Culture.Visual arts.Fashion": 0.008487458202515499,
                            "Culture.Visual arts.Visual arts*": 0.07794234539600262,
                            "Geography.Geographical": 0.07125542627710914,
                            "Geography.Regions.Africa.Africa*": 0.05225989682090054,
                            "Geography.Regions.Africa.Central Africa": 0.001331958383514617,
                            "Geography.Regions.Africa.Eastern Africa": 0.0010447758438333376,
                            "Geography.Regions.Africa.Northern Africa": 0.06864989790471651,
                            "Geography.Regions.Africa.Southern Africa": 0.020527802857465454,
                            "Geography.Regions.Africa.Western Africa": 0.0002347637092073111,
                            "Geography.Regions.Americas.Central America": 0.0037047140715219433,
                            "Geography.Regions.Americas.North America": 0.09146335046453571,
                            "Geography.Regions.Americas.South America": 0.013138976351002755,
                            "Geography.Regions.Asia.Asia*": 0.11804834121648503,
                            "Geography.Regions.Asia.Central Asia": 0.0003669441969964404,
                            "Geography.Regions.Asia.East Asia": 0.01393943345886899,
                            "Geography.Regions.Asia.North Asia": 0.007152463634187921,
                            "Geography.Regions.Asia.South Asia": 0.054313198796259836,
                            "Geography.Regions.Asia.Southeast Asia": 0.04614969513772421,
                            "Geography.Regions.Asia.West Asia": 0.01663646391547243,
                            "Geography.Regions.Europe.Eastern Europe": 0.03664229764058916,
                            "Geography.Regions.Europe.Europe*": 0.31386936084546685,
                            "Geography.Regions.Europe.Northern Europe": 0.010818009917968689,
                            "Geography.Regions.Europe.Southern Europe": 0.09413262097348489,
                            "Geography.Regions.Europe.Western Europe": 0.02790924075522509,
                            "Geography.Regions.Oceania": 0.004733876078865698,
                            "History and Society.Business and economics": 0.047713624709890816,
                            "History and Society.Education": 0.024040146797416194,
                            "History and Society.History": 0.25198383619251563,
                            "History and Society.Military and warfare": 0.03931141868901636,
                            "History and Society.Politics and government": 0.04428292344027469,
                            "History and Society.Society": 0.1284071527319192,
                            "History and Society.Transportation": 0.020875200987459503,
                            "STEM.Biology": 0.05144344976440123,
                            "STEM.Chemistry": 0.002200494070686233,
                            "STEM.Computing": 0.002307932122133117,
                            "STEM.Earth and environment": 0.0028832527239357223,
                            "STEM.Engineering": 0.06476645687968684,
                            "STEM.Libraries & Information": 0.0006815428356950466,
                            "STEM.Mathematics": 0.0025962242677785587,
                            "STEM.Medicine & Health": 0.02667075270370134,
                            "STEM.Physics": 0.009673325411912001,
                            "STEM.STEM*": 0.8435791704707369,
                            "STEM.Space": 0.0010474124653407004,
                            "STEM.Technology": 0.04173308618717429
                        }
                    }
                }
            }
        }
    }
}

Data


Data pipeline

The data to train was fetched from a set of revision IDs. Then various pieces of information about the revision were extracted using automated processes, and the revision text was fed into word2vec to get an article embedding. Finally, labels are derived from the mid-level WikiProject categories that the article is associated with.

Training data

If available, the training dataset can be found here. Training data was automatically and randomly separated from test data during training using the drafttopic git repository (which trains both drafttopic and articletopic models).

Test data

Test data was automatically and randomly split off from train data using the drafttopic git repository (which trains both drafttopic and articletopic models). The model then makes a prediction on that data, which is compared to the underlying ground truth to calculate performance statistics.

Licenses


Citation


Cite this model card as:

@misc{
  Triedman_Bazira_2023_Basque_Wikipedia_article_topic,
  title={ Basque Wikipedia article topic model card },
  author={ Triedman, Harold and Bazira, Kevin },
  year={ 2023 },
  url={ https://meta.wikimedia.org/wiki/Machine_learning_models/Production/Basque_Wikipedia_article_topic }
}
Category:Machine learning models Category:Basque Wikipedia
Category:Basque Wikipedia Category:Machine learning models