diff --git a/Daten/Vorhersagen/WIP_final_BE_4.xlsx b/Daten/Vorhersagen/WIP_final_BE_4.xlsx index 924f96a707e2989dc1a5073c0fc333ea351b3cb8..5f52703952a91115560bb9f3a53243529d2541b8 100644 Binary files a/Daten/Vorhersagen/WIP_final_BE_4.xlsx and b/Daten/Vorhersagen/WIP_final_BE_4.xlsx differ diff --git a/Notebooks/Completing_BE_data.ipynb b/Notebooks/Completing_BE_data.ipynb index 5258ed79b43b8bf322fddbf7435f0a8ccd817c3a..8a66ccc2ff3e08ab034d3609bb7dd5330c2d2c35 100644 --- a/Notebooks/Completing_BE_data.ipynb +++ b/Notebooks/Completing_BE_data.ipynb @@ -859,7 +859,38 @@ }, { "cell_type": "code", - "execution_count": 244, + "execution_count": 260, + "id": "927de1ce-4152-4983-ad07-17d45de2cf47", + "metadata": { + "tags": [] + }, + "outputs": [ + { + "data": { + "text/plain": [ + "hs. Katalog Konfidenz\n", + "sicher 8339\n", + "sicher | sicher 190\n", + "sicher | unsicher 83\n", + "unsicher 26\n", + "unsicher | unsicher 19\n", + "sicher | sicher | sicher 3\n", + "sicher | sicher | sicher | sicher 1\n", + "Name: count, dtype: int64" + ] + }, + "execution_count": 260, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "BE_with_Ink_df['hs. Katalog Konfidenz'].value_counts()" + ] + }, + { + "cell_type": "code", + "execution_count": 271, "id": "06fbcb36-61b6-44d9-bb5c-79df81e02f89", "metadata": {}, "outputs": [ @@ -876,7 +907,7 @@ ], "source": [ "def complex_classify(BE_row):\n", - " if (BE_row['Wappenklassifizierung'] in ['A', 'B', 'C']) or (BE_row['hs. Katalog Konfidenz'] == 'sicher'):\n", + " if (BE_row['Wappenklassifizierung'] in ['A', 'B', 'C']) or (not pd.isna(BE_row['hs. Katalog Konfidenz']) and not (BE_row['hs. Katalog Konfidenz'] == 'unsicher') and not (BE_row['hs. Katalog Konfidenz'] == 'unsicher | unsicher')):\n", " return 2\n", " elif (BE_row['hs. Katalog Konfidenz'] == 'unsicher') or (BE_row['Anfang Veröffentlichungsdatum'] <= 1736):\n", " return 1\n", @@ -894,7 +925,7 @@ }, { "cell_type": "code", - "execution_count": 256, + "execution_count": 272, "id": "b9ee6630-7122-44d9-9d2f-c8113e5a8e97", "metadata": { "tags": [] @@ -909,7 +940,7 @@ "Name: count, dtype: int64" ] }, - "execution_count": 256, + "execution_count": 272, "metadata": {}, "output_type": "execute_result" } @@ -920,7 +951,7 @@ }, { "cell_type": "code", - "execution_count": 255, + "execution_count": 273, "id": "175c1147-0063-45e4-8498-39ee390ea7a0", "metadata": { "tags": [] @@ -930,13 +961,13 @@ "data": { "text/plain": [ "Komplexe Klassifizierung\n", - "0 10131\n", - "2 9568\n", - "1 3175\n", + "0 10114\n", + "2 9761\n", + "1 2999\n", "Name: count, dtype: int64" ] }, - "execution_count": 255, + "execution_count": 273, "metadata": {}, "output_type": "execute_result" } @@ -947,13 +978,83 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 275, "id": "9ecc028b-9b46-4bf8-ae24-2aa9c58366bb", - "metadata": {}, + "metadata": { + "tags": [] + }, "outputs": [], "source": [ - "BE_with_Ink_df.to_excel('../Daten/Vorhersagen/WIP_final_BE_4.xlsx', " + "BE_with_Ink_df.to_excel('../Daten/Vorhersagen/WIP_final_BE_4.xlsx')" ] + }, + { + "cell_type": "code", + "execution_count": 274, + "id": "dea71f92-ee6d-474c-b655-6936a86a4586", + "metadata": { + "tags": [] + }, + "outputs": [ + { + "data": { + "text/plain": [ + "Signatur BE.1.A.14\n", + "Barcode B998501\n", + "Titel Columna Cochlis M. Aurelio Antonio Augusto dicata\n", + "Autor Bellori, Giovanni Pietro\n", + "Mitwirkender NaN\n", + "Anfang Veröffentlichungsdatum 1704.0\n", + "Ende Veröffentlichungsdatum NaN\n", + "Veröffentlichungsdatum 1704\n", + "Veröffentlichungsort Roma\n", + "Veröffentlichungsort (normiert) Rom\n", + "Sprache Italian\n", + "Dateiname NaN\n", + "Wappenklassifizierung NaN\n", + "p_A NaN\n", + "p_B NaN\n", + "p_C NaN\n", + "p_N NaN\n", + "Farbklassifizierung NaN\n", + "p_blue NaN\n", + "p_red NaN\n", + "p_yellow NaN\n", + "IIIF Manifest NaN\n", + "hs. Katalog 1.0\n", + "hs. Katalog Konfidenz sicher | sicher\n", + "hs. Katalogband 14.378 | 14.378\n", + "hs. Katalogseite Digitalisat 371 | 560\n", + "Wissensklasse Paralipomena Historica | Imagines Incisæ\n", + "Wissensunterklasse Antiquitatis Monumenta, seu Ædificia, Amphitheatri, Obelisci, Statuæ, Gemmæ, Lucernæ, Vasa, &c | Imaginum Romæ in æs incisarum Collectio\n", + "Formatangabe Folio | \n", + "hs. Katalogseite Handschrift 1203 | 1380\n", + "hs. Katalogeintrag ID 14.378_371_01 | 14.378_560_03\n", + "hs. Katalogeintrag 2342 Columna Cochlis seu Antoniana; vide Imagines Romæ | CLXXIX Columna Cochlis seu Antoniana a Petro S. Bartholo in æs incisa cum I. Petri Bellorij notis. in fol.° chartâ magnâ, formâ oblongâ. Romæ. 1704. Domin. de Rubeis n. 886.\n", + "hs. Katalog Image URL https://iiif.onb.ac.at/images/DOD/51219/00000371.jp2/full/full/0/native.jpg | https://iiif.onb.ac.at/images/DOD/51219/00000560.jp2/full/full/0/native.jpg\n", + "dup_title False\n", + "copy_from -1.0\n", + "Einfache Klassifizierung True\n", + "Komplexe Klassifizierung 2\n", + "Name: 6, dtype: object" + ] + }, + "execution_count": 274, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "BE_with_Ink_df.loc[6]" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "bd73ed76-756a-4a6e-b8f6-183ebfe33ae4", + "metadata": {}, + "outputs": [], + "source": [] } ], "metadata": {