Machine learning models/Production/English 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?English 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/enwiki/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*16539146631876121846123
Culture.Biography.Women4162318098281258906
Culture.Food and drink13019163856962510
Culture.Internet culture2969230766220060711
Culture.Linguistics1367102734010462409
Culture.Literature52983939135943358149
Culture.Media.Books1906135555119861776
Culture.Media.Entertainment182591790817361882
Culture.Media.Films2347194040714561388
Culture.Media.Media*14457124112046144547978
Culture.Media.Music2665216250329260923
Culture.Media.Radio11919632282862661
Culture.Media.Software1784102875634961747
Culture.Media.Television2224169453017961477
Culture.Media.Video games211419042103661730
Culture.Performing arts132485447010162455
Culture.Philosophy and religion27121579113333960829
Culture.Sports5901530259930657673
Culture.Visual arts.Architecture2571190666525061059
Culture.Visual arts.Comics and Anime150912312789162280
Culture.Visual arts.Fashion11738053684662661
Culture.Visual arts.Visual arts*59894575141452157370
Geography.Geographical35182284123427860084
Geography.Regions.Africa.Africa*6484567880635957037
Geography.Regions.Africa.Central Africa11558872683562690
Geography.Regions.Africa.Eastern Africa11009011993662744
Geography.Regions.Africa.Northern Africa13099993109462477
Geography.Regions.Africa.Southern Africa126010112494362577
Geography.Regions.Africa.Western Africa11519581936562664
Geography.Regions.Americas.Central America13029313718862490
Geography.Regions.Americas.North America748253032179125155147
Geography.Regions.Americas.South America1575115641913462171
Geography.Regions.Asia.Asia*112069648155882451850
Geography.Regions.Asia.Central Asia11338892444562702
Geography.Regions.Asia.East Asia2749208966025660875
Geography.Regions.Asia.North Asia136992944018362328
Geography.Regions.Asia.South Asia2428210432411861334
Geography.Regions.Asia.Southeast Asia1726135836810362051
Geography.Regions.Asia.West Asia2301189740412461455
Geography.Regions.Europe.Eastern Europe3088246062829260500
Geography.Regions.Europe.Europe*1226595442721174349872
Geography.Regions.Europe.Northern Europe40992867123263759144
Geography.Regions.Europe.Southern Europe2397172067729761186
Geography.Regions.Europe.Western Europe3062211994344460374
Geography.Regions.Oceania2535210343214661199
History and Society.Business and economics34581651180756159861
History and Society.Education22041073113124461432
History and Society.History33071380192751360060
History and Society.Military and warfare40482928112038059452
History and Society.Politics and government46042919168546858808
History and Society.Society40091667234240759464
History and Society.Transportation3601311548619660083
STEM.Biology2951242153014660783
STEM.Chemistry131993338615262409
STEM.Computing2102139470842761351
STEM.Earth and environment1619115646312362138
STEM.Engineering2361170465718461335
STEM.Libraries & Information11656914748062635
STEM.Mathematics11367663706962675
STEM.Medicine & Health1784120058416761929
STEM.Physics117376640713562572
STEM.STEM*16613144972116106246205
STEM.Space141212191935062418
STEM.Technology36912310138161159578

Test data sample rates:

Test data sample rates
LabelSamplePopulation
Culture.Biography.Biography*0.2590.123
Culture.Biography.Women0.0650.015
Culture.Food and drink0.020.002
Culture.Internet culture0.0460.003
Culture.Linguistics0.0210.007
Culture.Literature0.0830.015
Culture.Media.Books0.030.004
Culture.Media.Entertainment0.0290.004
Culture.Media.Films0.0370.011
Culture.Media.Media*0.2260.058
Culture.Media.Music0.0420.024
Culture.Media.Radio0.0190.002
Culture.Media.Software0.0280.001
Culture.Media.Television0.0350.009
Culture.Media.Video games0.0330.003
Culture.Performing arts0.0210.003
Culture.Philosophy and religion0.0420.011
Culture.Sports0.0920.071
Culture.Visual arts.Architecture0.040.011
Culture.Visual arts.Comics and Anime0.0240.002
Culture.Visual arts.Fashion0.0180.001
Culture.Visual arts.Visual arts*0.0940.018
Geography.Geographical0.0550.024
Geography.Regions.Africa.Africa*0.1020.008
Geography.Regions.Africa.Central Africa0.0180.001
Geography.Regions.Africa.Eastern Africa0.0170
Geography.Regions.Africa.Northern Africa0.020.001
Geography.Regions.Africa.Southern Africa0.020.001
Geography.Regions.Africa.Western Africa0.0180.001
Geography.Regions.Americas.Central America0.020.003
Geography.Regions.Americas.North America0.1170.064
Geography.Regions.Americas.South America0.0250.006
Geography.Regions.Asia.Asia*0.1750.045
Geography.Regions.Asia.Central Asia0.0180.001
Geography.Regions.Asia.East Asia0.0430.011
Geography.Regions.Asia.North Asia0.0210.001
Geography.Regions.Asia.South Asia0.0380.015
Geography.Regions.Asia.Southeast Asia0.0270.006
Geography.Regions.Asia.West Asia0.0360.011
Geography.Regions.Europe.Eastern Europe0.0480.013
Geography.Regions.Europe.Europe*0.1920.076
Geography.Regions.Europe.Northern Europe0.0640.031
Geography.Regions.Europe.Southern Europe0.0380.013
Geography.Regions.Europe.Western Europe0.0480.019
Geography.Regions.Oceania0.040.015
History and Society.Business and economics0.0540.01
History and Society.Education0.0350.007
History and Society.History0.0520.011
History and Society.Military and warfare0.0630.014
History and Society.Politics and government0.0720.028
History and Society.Society0.0630.013
History and Society.Transportation0.0560.015
STEM.Biology0.0460.034
STEM.Chemistry0.0210.002
STEM.Computing0.0330.003
STEM.Earth and environment0.0250.005
STEM.Engineering0.0370.005
STEM.Libraries & Information0.0180.001
STEM.Mathematics0.0180
STEM.Medicine & Health0.0280.006
STEM.Physics0.0180.001
STEM.STEM*0.260.069
STEM.Space0.0220.006
STEM.Technology0.0580.005

Test data performance:

Test data performance
LabelMatch rateFilter rateRecallPrecisionf1AccuracyROC AUCPR AUC
Culture.Biography.Biography*0.1320.8680.8870.8290.8570.9630.9780.909
Culture.Biography.Women0.0250.9750.7640.4540.5690.9830.9810.567
Culture.Food and drink0.0030.9970.7040.6120.6550.9980.9820.625
Culture.Internet culture0.0060.9940.7770.4540.5730.9960.9860.739
Culture.Linguistics0.0070.9930.7510.7690.760.9970.9780.785
Culture.Literature0.0190.9810.7430.6130.6720.9890.9770.742
Culture.Media.Books0.0060.9940.7110.4740.5680.9960.9810.597
Culture.Media.Entertainment0.0050.9950.5020.3930.4410.9950.9680.415
Culture.Media.Films0.0110.9890.8270.7880.8070.9960.9830.844
Culture.Media.Media*0.0780.9220.8580.6460.7370.9640.9780.847
Culture.Media.Music0.0240.9760.8110.8060.8090.9910.9850.853
Culture.Media.Radio0.0020.9980.8090.7960.8020.9990.9870.85
Culture.Media.Software0.0060.9940.5760.120.1990.9940.980.187
Culture.Media.Television0.010.990.7620.70.730.9950.9810.77
Culture.Media.Video games0.0030.9970.9010.8020.8480.9990.9930.902
Culture.Performing arts0.0030.9970.6450.5360.5860.9970.9810.593
Culture.Philosophy and religion0.0120.9880.5820.5310.5550.990.9640.538
Culture.Sports0.0690.9310.8980.9290.9130.9880.9840.947
Culture.Visual arts.Architecture0.0120.9880.7410.660.6980.9930.9830.749
Culture.Visual arts.Comics and Anime0.0030.9970.8160.5520.6580.9980.9860.74
Culture.Visual arts.Fashion0.0010.9990.6860.4310.5290.9990.9830.513
Culture.Visual arts.Visual arts*0.0230.9770.7640.6130.680.9870.9760.756
Geography.Geographical0.020.980.6490.7730.7060.9870.970.757
Geography.Regions.Africa.Africa*0.0130.9870.8760.5240.6560.9930.9850.718
Geography.Regions.Africa.Central Africa0.0010.9990.7680.4650.5790.9990.9880.627
Geography.Regions.Africa.Eastern Africa0.0010.9990.8190.3940.5320.9990.9840.459
Geography.Regions.Africa.Northern Africa0.0020.9980.7630.3840.5110.9980.9810.422
Geography.Regions.Africa.Southern Africa0.0020.9980.8020.5790.6730.9990.9850.654
Geography.Regions.Africa.Western Africa0.0020.9980.8320.3550.4970.9990.9830.446
Geography.Regions.Americas.Central America0.0040.9960.7150.6270.6680.9980.9820.672
Geography.Regions.Americas.North America0.0660.9340.7090.6870.6980.9610.9660.767
Geography.Regions.Americas.South America0.0070.9930.7340.6840.7080.9960.9830.745
Geography.Regions.Asia.Asia*0.0540.9460.8610.7240.7870.9790.980.841
Geography.Regions.Asia.Central Asia0.0010.9990.7850.4870.6010.9990.9870.714
Geography.Regions.Asia.East Asia0.0130.9870.760.6770.7160.9930.9810.739
Geography.Regions.Asia.North Asia0.0040.9960.6790.1760.280.9970.9850.223
Geography.Regions.Asia.South Asia0.0150.9850.8670.8740.870.9960.9850.896
Geography.Regions.Asia.Southeast Asia0.0060.9940.7870.7420.7630.9970.9820.74
Geography.Regions.Asia.West Asia0.0110.9890.8240.8190.8220.9960.9860.875
Geography.Regions.Europe.Eastern Europe0.0150.9850.7970.6830.7350.9930.9840.775
Geography.Regions.Europe.Europe*0.090.910.7780.6550.7110.9520.9640.768
Geography.Regions.Europe.Northern Europe0.0320.9680.6990.6740.6870.980.9730.713
Geography.Regions.Europe.Southern Europe0.0140.9860.7180.6620.6890.9920.9770.711
Geography.Regions.Europe.Western Europe0.020.980.6920.6490.670.9870.9760.684
Geography.Regions.Oceania0.0150.9850.830.8430.8360.9950.9850.86
History and Society.Business and economics0.0140.9860.4770.3440.40.9860.9580.345
History and Society.Education0.0080.9920.4870.4770.4820.9920.960.436
History and Society.History0.0130.9870.4170.3510.3810.9850.9440.319
History and Society.Military and warfare0.0160.9840.7230.6190.6670.990.9780.706
History and Society.Politics and government0.0260.9740.6340.70.6650.9820.9650.709
History and Society.Society0.0120.9880.4160.4390.4270.9860.9290.398
History and Society.Transportation0.0160.9840.8650.8030.8330.9950.9860.877
STEM.Biology0.030.970.820.9230.8680.9920.9810.915
STEM.Chemistry0.0040.9960.7070.3120.4330.9970.9840.459
STEM.Computing0.0090.9910.6630.2060.3140.9920.9810.301
STEM.Earth and environment0.0050.9950.7140.6220.6650.9970.9780.691
STEM.Engineering0.0070.9930.7220.5590.630.9960.980.652
STEM.Libraries & Information0.0020.9980.5930.2240.3250.9980.9750.356
STEM.Mathematics0.0010.9990.6740.2040.3130.9990.9810.385
STEM.Medicine & Health0.0070.9930.6730.6170.6440.9950.9780.655
STEM.Physics0.0030.9970.6530.2050.3120.9980.9810.325
STEM.STEM*0.0810.9190.8730.7430.8020.970.9770.897
STEM.Space0.0060.9940.8630.8670.8650.9980.9870.904
STEM.Technology0.0130.9870.6260.2410.3480.9880.9690.365

The training dataset for this model is available here.

Implementation


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

Output:

Example output
{
    "enwiki": {
        "models": {
            "articletopic": {
                "version": "1.3.0"
            }
        },
        "scores": {
            "1234": {
                "articletopic": {
                    "score": {
                        "prediction": [
                            "STEM.STEM*"
                        ],
                        "probability": {
                            "Culture.Biography.Biography*": 0.007324216272400619,
                            "Culture.Biography.Women": 0.0012902608239981099,
                            "Culture.Food and drink": 0.012590959877795965,
                            "Culture.Internet culture": 0.0005287782922645555,
                            "Culture.Linguistics": 0.0023009688839875403,
                            "Culture.Literature": 0.003750485897413451,
                            "Culture.Media.Books": 0.0006460359265654311,
                            "Culture.Media.Entertainment": 0.001019549745209333,
                            "Culture.Media.Films": 0.0008073367081496864,
                            "Culture.Media.Media*": 0.012011986684036512,
                            "Culture.Media.Music": 0.0008537381008416275,
                            "Culture.Media.Radio": 0.0002869665819413362,
                            "Culture.Media.Software": 0.001089289634412607,
                            "Culture.Media.Television": 0.0008907233279284757,
                            "Culture.Media.Video games": 0.0001200262230068454,
                            "Culture.Performing arts": 0.0019581135216171887,
                            "Culture.Philosophy and religion": 0.006759709347651477,
                            "Culture.Sports": 0.002708191532469151,
                            "Culture.Visual arts.Architecture": 0.006677867414092196,
                            "Culture.Visual arts.Comics and Anime": 0.00012020261708547758,
                            "Culture.Visual arts.Fashion": 0.0008955508074615747,
                            "Culture.Visual arts.Visual arts*": 0.01634491597811793,
                            "Geography.Geographical": 0.021850841219839115,
                            "Geography.Regions.Africa.Africa*": 0.01403461063487551,
                            "Geography.Regions.Africa.Central Africa": 0.0001865675770278535,
                            "Geography.Regions.Africa.Eastern Africa": 0.0299178497643664,
                            "Geography.Regions.Africa.Northern Africa": 0.0002661363607017024,
                            "Geography.Regions.Africa.Southern Africa": 0.0002798146633784188,
                            "Geography.Regions.Africa.Western Africa": 0.00034452672014203926,
                            "Geography.Regions.Americas.Central America": 0.0008260548714261792,
                            "Geography.Regions.Americas.North America": 0.264295864207147,
                            "Geography.Regions.Americas.South America": 0.00015273918706570618,
                            "Geography.Regions.Asia.Asia*": 0.005740602435312139,
                            "Geography.Regions.Asia.Central Asia": 9.711333852867366e-05,
                            "Geography.Regions.Asia.East Asia": 0.0008691503787446779,
                            "Geography.Regions.Asia.North Asia": 0.0001781509472634297,
                            "Geography.Regions.Asia.South Asia": 0.0002519598342558709,
                            "Geography.Regions.Asia.Southeast Asia": 0.0007149941847729443,
                            "Geography.Regions.Asia.West Asia": 0.0007647733764823995,
                            "Geography.Regions.Europe.Eastern Europe": 0.0021314421964480305,
                            "Geography.Regions.Europe.Europe*": 0.04348112583641243,
                            "Geography.Regions.Europe.Northern Europe": 0.03873409183096865,
                            "Geography.Regions.Europe.Southern Europe": 0.0017978097009254826,
                            "Geography.Regions.Europe.Western Europe": 0.001196308436445433,
                            "Geography.Regions.Oceania": 0.0010145084950130057,
                            "History and Society.Business and economics": 0.014571914809621094,
                            "History and Society.Education": 0.022647190342216877,
                            "History and Society.History": 0.006181778255649838,
                            "History and Society.Military and warfare": 0.00431305074559507,
                            "History and Society.Politics and government": 0.017814417716100546,
                            "History and Society.Society": 0.022076257425149896,
                            "History and Society.Transportation": 0.0011766622074844352,
                            "STEM.Biology": 0.009271860405065028,
                            "STEM.Chemistry": 0.0011815942896098593,
                            "STEM.Computing": 0.0007807185930526152,
                            "STEM.Earth and environment": 0.0036473015518475203,
                            "STEM.Engineering": 0.003285589480897292,
                            "STEM.Libraries & Information": 0.0037889231177539767,
                            "STEM.Mathematics": 0.010840473137394606,
                            "STEM.Medicine & Health": 0.004612666090909239,
                            "STEM.Physics": 0.0007788391574850387,
                            "STEM.STEM*": 0.7655342414491919,
                            "STEM.Space": 8.220588424577983e-05,
                            "STEM.Technology": 0.01811368106322167
                        }
                    }
                }
            }
        }
    }
}

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_English_Wikipedia_article_topic,
  title={ English Wikipedia article topic model card },
  author={ Triedman, Harold and Bazira, Kevin },
  year={ 2023 },
  url={ https://meta.wikimedia.org/wiki/Machine_learning_models/Production/English_Wikipedia_article_topic }
}
Category:Machine learning models Category:English Wikipedia
Category:English Wikipedia Category:Machine learning models