Machine learning models/Production/Wikidata item 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?Wikidata
This model uses item features to predict the likelihood that the item belongs to a set of topics.


Motivation

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

This model, part of the ORES suite of models, analyzes an item 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 Wikidata dynamics (pageviews, item quality, edit trends) and filtering items.

Users and uses


Use this model for
  • high-level analyses of Wikidata dynamics such as pageview, item quality, or edit trends — e.g. How are pageview dynamics different between the physics and biology categories?
  • filtering to relevant items — e.g. filter items only to those in the music category.
Don't use this model for
  • definitively establishing what topic an items pertains to
  • automated editing of items 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 Wikidata, platform research, and other on-wiki tasks.

Example API call:
https://ores.wikimedia.org/v3/scores/wikidatawiki/1907686315/itemtopic

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 Wikidata 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*166701576290846446810
Culture.Biography.Women4110312598567959155
Culture.Food and drink131861370512662500
Culture.Internet culture29661948101814060838
Culture.Linguistics14669345325662422
Culture.Literature53673996137140458173
Culture.Media.Books1974156041413661834
Culture.Media.Entertainment173385787616262049
Culture.Media.Films2295189639912261527
Culture.Media.Media*14383115722811113548426
Culture.Media.Music2583202755624761114
Culture.Media.Radio11568572994462744
Culture.Media.Software1750685106530761887
Culture.Media.Television2230151072017661538
Culture.Media.Video games214717583895461743
Culture.Performing arts133474159311662494
Culture.Philosophy and religion27021074162828560957
Culture.Sports5925518673924957770
Culture.Visual arts.Architecture2648186778123061066
Culture.Visual arts.Comics and Anime1508100750114062296
Culture.Visual arts.Fashion11996695309862647
Culture.Visual arts.Visual arts*60704131193955457320
Geography.Geographical34642226123835960121
Geography.Regions.Africa.Africa*64494664178541457081
Geography.Regions.Africa.Central Africa11456974488362716
Geography.Regions.Africa.Eastern Africa11147044105662774
Geography.Regions.Africa.Northern Africa128077450610862556
Geography.Regions.Africa.Southern Africa12448593858162619
Geography.Regions.Africa.Western Africa11427743687562727
Geography.Regions.Americas.Central America13317076248762526
Geography.Regions.Americas.North America762550642561116955150
Geography.Regions.Americas.South America1532108245014262270
Geography.Regions.Asia.Asia*116478432321583551462
Geography.Regions.Asia.Central Asia10866714157062788
Geography.Regions.Asia.East Asia2717172799024160986
Geography.Regions.Asia.North Asia2076133674016361705
Geography.Regions.Asia.South Asia2366161275413561443
Geography.Regions.Asia.Southeast Asia1721105966211962104
Geography.Regions.Asia.West Asia2160147368712961655
Geography.Regions.Europe.Eastern Europe35332472106123460177
Geography.Regions.Europe.Europe*1293993723567181049195
Geography.Regions.Europe.Northern Europe42212571165060159122
Geography.Regions.Europe.Southern Europe2438156587326861238
Geography.Regions.Europe.Western Europe30761934114241760451
Geography.Regions.Oceania2638185977913861168
History and Society.Business and economics35021544195856959873
History and Society.Education22431113113025561446
History and Society.History31721154201836060412
History and Society.Military and warfare32381677156129660410
History and Society.Politics and government45902406218432959025
History and Society.Society2971897207416660807
History and Society.Transportation36292615101416960146
STEM.Biology291622376799160937
STEM.Chemistry127069058013862536
STEM.Computing1968828114033261644
STEM.Earth and environment162791870911462203
STEM.Engineering2195128491114161608
STEM.Libraries & Information11746055698762683
STEM.Mathematics113730783010762700
STEM.Medicine & Health172676995718062038
STEM.Physics121944877110762618
STEM.STEM*16449126093840276644729
STEM.Space13659324334762532
STEM.Technology36481396225242459872

Test data sample rates:

Test data sample rates
LabelSamplePopulation
Culture.Biography.Biography*0.2610.12
Culture.Biography.Women0.0640.015
Culture.Food and drink0.0210.003
Culture.Internet culture0.0460.004
Culture.Linguistics0.0230.008
Culture.Literature0.0840.015
Culture.Media.Books0.0310.004
Culture.Media.Entertainment0.0270.004
Culture.Media.Films0.0360.012
Culture.Media.Media*0.2250.055
Culture.Media.Music0.040.021
Culture.Media.Radio0.0180.002
Culture.Media.Software0.0270.001
Culture.Media.Television0.0350.009
Culture.Media.Video games0.0340.003
Culture.Performing arts0.0210.003
Culture.Philosophy and religion0.0420.01
Culture.Sports0.0930.06
Culture.Visual arts.Architecture0.0410.011
Culture.Visual arts.Comics and Anime0.0240.002
Culture.Visual arts.Fashion0.0190.001
Culture.Visual arts.Visual arts*0.0950.018
Geography.Geographical0.0540.021
Geography.Regions.Africa.Africa*0.1010.008
Geography.Regions.Africa.Central Africa0.0180.001
Geography.Regions.Africa.Eastern Africa0.0170.001
Geography.Regions.Africa.Northern Africa0.020.001
Geography.Regions.Africa.Southern Africa0.0190.001
Geography.Regions.Africa.Western Africa0.0180.001
Geography.Regions.Americas.Central America0.0210.003
Geography.Regions.Americas.North America0.1190.063
Geography.Regions.Americas.South America0.0240.007
Geography.Regions.Asia.Asia*0.1820.052
Geography.Regions.Asia.Central Asia0.0170.001
Geography.Regions.Asia.East Asia0.0420.012
Geography.Regions.Asia.North Asia0.0320.006
Geography.Regions.Asia.South Asia0.0370.016
Geography.Regions.Asia.Southeast Asia0.0270.006
Geography.Regions.Asia.West Asia0.0340.012
Geography.Regions.Europe.Eastern Europe0.0550.018
Geography.Regions.Europe.Europe*0.2020.081
Geography.Regions.Europe.Northern Europe0.0660.029
Geography.Regions.Europe.Southern Europe0.0380.014
Geography.Regions.Europe.Western Europe0.0480.02
Geography.Regions.Oceania0.0410.016
History and Society.Business and economics0.0550.01
History and Society.Education0.0350.008
History and Society.History0.050.011
History and Society.Military and warfare0.0510.015
History and Society.Politics and government0.0720.028
History and Society.Society0.0460.008
History and Society.Transportation0.0570.016
STEM.Biology0.0460.034
STEM.Chemistry0.020.002
STEM.Computing0.0310.003
STEM.Earth and environment0.0250.005
STEM.Engineering0.0340.006
STEM.Libraries & Information0.0180.001
STEM.Mathematics0.0180
STEM.Medicine & Health0.0270.006
STEM.Physics0.0190.001
STEM.STEM*0.2570.065
STEM.Space0.0210.004
STEM.Technology0.0570.005

Test data performance:

Test data performance
LabelMatch rateFilter rateRecallPrecisionf1AccuracyROC AUCPR AUC
Culture.Biography.Biography*0.1220.8780.9460.9290.9370.9850.9820.952
Culture.Biography.Women0.0230.9770.760.5040.6060.9850.9750.589
Culture.Food and drink0.0030.9970.4650.3710.4130.9970.9370.352
Culture.Internet culture0.0050.9950.6570.5170.5780.9960.960.549
Culture.Linguistics0.0060.9940.6370.8520.7290.9960.9540.656
Culture.Literature0.0180.9820.7450.6190.6760.9890.9650.726
Culture.Media.Books0.0060.9940.790.6090.6880.9970.9710.659
Culture.Media.Entertainment0.0050.9950.4950.4290.4590.9950.9470.433
Culture.Media.Films0.0110.9890.8260.8290.8280.9960.9740.813
Culture.Media.Media*0.0660.9340.8050.670.7310.9680.9660.813
Culture.Media.Music0.020.980.7850.8070.7950.9920.9740.818
Culture.Media.Radio0.0020.9980.7410.7110.7260.9990.9620.741
Culture.Media.Software0.0050.9950.3910.0940.1520.9940.9460.094
Culture.Media.Television0.0090.9910.6770.680.6780.9940.9640.664
Culture.Media.Video games0.0030.9970.8190.7320.7730.9990.9770.801
Culture.Performing arts0.0040.9960.5550.4780.5140.9970.9470.414
Culture.Philosophy and religion0.0090.9910.3970.4720.4310.9890.910.339
Culture.Sports0.0570.9430.8750.9290.9010.9880.9760.933
Culture.Visual arts.Architecture0.0110.9890.7050.6720.6880.9930.9690.673
Culture.Visual arts.Comics and Anime0.0040.9960.6680.4160.5130.9970.9660.558
Culture.Visual arts.Fashion0.0020.9980.5580.2420.3380.9980.950.215
Culture.Visual arts.Visual arts*0.0220.9780.6810.5660.6180.9850.9520.666
Geography.Geographical0.0190.9810.6430.70.670.9870.9560.698
Geography.Regions.Africa.Africa*0.0130.9870.7230.4620.5640.9910.960.639
Geography.Regions.Africa.Central Africa0.0020.9980.6090.2440.3490.9980.9540.321
Geography.Regions.Africa.Eastern Africa0.0010.9990.6320.2620.3710.9990.9570.253
Geography.Regions.Africa.Northern Africa0.0030.9970.6050.3210.420.9980.9450.343
Geography.Regions.Africa.Southern Africa0.0020.9980.6910.4110.5150.9980.9590.514
Geography.Regions.Africa.Western Africa0.0020.9980.6780.2970.4130.9990.960.277
Geography.Regions.Americas.Central America0.0030.9970.5310.5690.550.9970.9320.494
Geography.Regions.Americas.North America0.0610.9390.6640.6820.6730.9590.9490.726
Geography.Regions.Americas.South America0.0070.9930.7060.6810.6930.9960.9630.691
Geography.Regions.Asia.Asia*0.0530.9470.7240.7150.7190.970.9490.756
Geography.Regions.Asia.Central Asia0.0020.9980.6180.3060.410.9990.9520.462
Geography.Regions.Asia.East Asia0.0120.9880.6360.6650.650.9920.950.625
Geography.Regions.Asia.North Asia0.0060.9940.6440.5790.6090.9950.9460.55
Geography.Regions.Asia.South Asia0.0130.9870.6810.8390.7520.9930.9530.708
Geography.Regions.Asia.Southeast Asia0.0060.9940.6150.6680.6410.9960.9420.557
Geography.Regions.Asia.West Asia0.010.990.6820.7940.7340.9940.9530.662
Geography.Regions.Europe.Eastern Europe0.0170.9830.70.7710.7330.9910.9510.71
Geography.Regions.Europe.Europe*0.0910.9090.7240.6420.6810.9450.9430.744
Geography.Regions.Europe.Northern Europe0.0270.9730.6090.6430.6260.9790.9480.644
Geography.Regions.Europe.Southern Europe0.0130.9870.6420.6730.6570.9910.9490.618
Geography.Regions.Europe.Western Europe0.020.980.6290.6570.6430.9860.950.63
Geography.Regions.Oceania0.0140.9860.7050.8390.7660.9930.960.75
History and Society.Business and economics0.0140.9860.4410.3150.3670.9850.9360.248
History and Society.Education0.0080.9920.4960.4890.4930.9920.9440.4
History and Society.History0.010.990.3640.4030.3820.9870.9160.315
History and Society.Military and warfare0.0130.9870.5180.6220.5650.9880.9330.521
History and Society.Politics and government0.020.980.5240.7310.6110.9810.9250.603
History and Society.Society0.0050.9950.3020.480.3710.9920.8710.318
History and Society.Transportation0.0140.9860.7210.8090.7620.9930.9630.712
STEM.Biology0.0280.9720.7670.9480.8480.9910.9620.816
STEM.Chemistry0.0030.9970.5430.2940.3820.9970.9580.27
STEM.Computing0.0070.9930.4210.1820.2540.9930.9510.149
STEM.Earth and environment0.0040.9960.5640.5940.5790.9960.9470.522
STEM.Engineering0.0060.9940.5850.5960.5910.9950.9470.51
STEM.Libraries & Information0.0020.9980.5150.2030.2910.9980.9480.238
STEM.Mathematics0.0020.9980.270.0680.1090.9980.9420.125
STEM.Medicine & Health0.0060.9940.4460.4990.4710.9940.9330.398
STEM.Physics0.0020.9980.3680.1680.230.9980.9450.126
STEM.STEM*0.1040.8960.7670.4770.5880.930.9550.768
STEM.Space0.0040.9960.6830.7950.7350.9980.9630.686
STEM.Technology0.0090.9910.3830.2190.2790.990.9280.213

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/wikidatawiki/1907686315/itemtopic

Output:

Example output
{
    "wikidatawiki": {
        "models": {
            "itemtopic": {
                "version": "1.2.0"
            }
        },
        "scores": {
            "1907686315": {
                "itemtopic": {
                    "score": {
                        "prediction": [
                            "STEM.STEM*"
                        ],
                        "probability": {
                            "Culture.Biography.Biography*": 0.009059893345632097,
                            "Culture.Biography.Women": 0.0006924491258526178,
                            "Culture.Food and drink": 0.0006399242658997215,
                            "Culture.Internet culture": 0.0009384780459913412,
                            "Culture.Linguistics": 0.0018606277391225432,
                            "Culture.Literature": 0.003990388751181737,
                            "Culture.Media.Books": 0.0006214752106656115,
                            "Culture.Media.Entertainment": 0.001104834881085509,
                            "Culture.Media.Films": 0.0011465477594696284,
                            "Culture.Media.Media*": 0.009497882960118977,
                            "Culture.Media.Music": 0.0005314326820035878,
                            "Culture.Media.Radio": 0.0001418663128807519,
                            "Culture.Media.Software": 0.0006122966374525156,
                            "Culture.Media.Television": 0.0011153877562536376,
                            "Culture.Media.Video games": 0.0006372239889671269,
                            "Culture.Performing arts": 0.0006531356388159476,
                            "Culture.Philosophy and religion": 0.01399521934257544,
                            "Culture.Sports": 0.0018462250677368348,
                            "Culture.Visual arts.Architecture": 0.0016560396166840437,
                            "Culture.Visual arts.Comics and Anime": 0.0005305955236163667,
                            "Culture.Visual arts.Fashion": 0.000537788411976724,
                            "Culture.Visual arts.Visual arts*": 0.009907875401930734,
                            "Geography.Geographical": 0.01571363482516823,
                            "Geography.Regions.Africa.Africa*": 0.020280349224975614,
                            "Geography.Regions.Africa.Central Africa": 0.0007006250310735848,
                            "Geography.Regions.Africa.Eastern Africa": 0.000981468869640802,
                            "Geography.Regions.Africa.Northern Africa": 0.015712323087656205,
                            "Geography.Regions.Africa.Southern Africa": 0.001221937118377821,
                            "Geography.Regions.Africa.Western Africa": 0.0008305320623083369,
                            "Geography.Regions.Americas.Central America": 0.001306842712476455,
                            "Geography.Regions.Americas.North America": 0.030570993625411366,
                            "Geography.Regions.Americas.South America": 0.009381192562807516,
                            "Geography.Regions.Asia.Asia*": 0.08763779333893186,
                            "Geography.Regions.Asia.Central Asia": 0.0021630529281042718,
                            "Geography.Regions.Asia.East Asia": 0.01090968773383821,
                            "Geography.Regions.Asia.North Asia": 0.029951228290233667,
                            "Geography.Regions.Asia.South Asia": 0.005977584426712786,
                            "Geography.Regions.Asia.Southeast Asia": 0.0028688045552628266,
                            "Geography.Regions.Asia.West Asia": 0.0009526856502617891,
                            "Geography.Regions.Europe.Eastern Europe": 0.029972291587851183,
                            "Geography.Regions.Europe.Europe*": 0.13296776378542635,
                            "Geography.Regions.Europe.Northern Europe": 0.016907973275604154,
                            "Geography.Regions.Europe.Southern Europe": 0.005813048163270592,
                            "Geography.Regions.Europe.Western Europe": 0.005037055635498127,
                            "Geography.Regions.Oceania": 0.007780720915153282,
                            "History and Society.Business and economics": 0.005890874106250135,
                            "History and Society.Education": 0.0017680572320172617,
                            "History and Society.History": 0.01973006391755843,
                            "History and Society.Military and warfare": 0.006573635883462243,
                            "History and Society.Politics and government": 0.007573132449112524,
                            "History and Society.Society": 0.04381007914549254,
                            "History and Society.Transportation": 0.002797769913886188,
                            "STEM.Biology": 0.005780672890531569,
                            "STEM.Chemistry": 0.0022570835539507676,
                            "STEM.Computing": 0.0018290751421398967,
                            "STEM.Earth and environment": 0.0795914195853073,
                            "STEM.Engineering": 0.004058097854564882,
                            "STEM.Libraries & Information": 0.0010339015208737487,
                            "STEM.Mathematics": 0.0017040157655581244,
                            "STEM.Medicine & Health": 0.005650365932513206,
                            "STEM.Physics": 0.020150498627265184,
                            "STEM.STEM*": 0.8790296717258461,
                            "STEM.Space": 0.11458869168317454,
                            "STEM.Technology": 0.012381701761546463
                        }
                    }
                }
            }
        }
    }
}

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 item embedding. Finally, labels are derived from the mid-level WikiProject categories that the item is associated with.

Training data

The training dataset for this model is available 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_Wikidata_item_topic,
  title={ Wikidata item topic model card },
  author={ Triedman, Harold and Bazira, Kevin },
  year={ 2023 },
  url={ https://meta.wikimedia.org/wiki/Machine_learning_models/Production/Wikidata_item_topic }
}
Category:Machine learning models Category:Wikidata
Category:Machine learning models Category:Wikidata