	{"id":63295,"date":"2021-09-22T15:44:25","date_gmt":"2021-09-22T14:44:25","guid":{"rendered":"https:\/\/www.artefact.com\/?post_type=news&#038;p=63295"},"modified":"2024-09-20T17:45:46","modified_gmt":"2024-09-20T16:45:46","slug":"visual-time-series-forecasting-with-streamlit-prophet","status":"publish","type":"blog","link":"https:\/\/www.artefact.com\/de\/blog\/visual-time-series-forecasting-with-streamlit-prophet\/","title":{"rendered":"Visuelle Zeitreihenprognose mit Streamlit Prophet"},"content":{"rendered":"<p><div class=\"fusion-fullwidth fullwidth-box fusion-builder-row-1 fusion-flex-container nonhundred-percent-fullwidth non-hundred-percent-height-scrolling\" style=\"--awb-border-radius-top-left:0px;--awb-border-radius-top-right:0px;--awb-border-radius-bottom-right:0px;--awb-border-radius-bottom-left:0px;--awb-margin-top:40px;--awb-margin-bottom:40px;--awb-flex-wrap:wrap;\" ><div class=\"fusion-builder-row fusion-row fusion-flex-align-items-center fusion-flex-justify-content-center fusion-flex-content-wrap\" style=\"max-width:calc( 1440px + 20px );margin-left: calc(-20px \/ 2 );margin-right: calc(-20px \/ 2 );\"><div class=\"fusion-layout-column fusion_builder_column fusion-builder-column-0 fusion_builder_column_1_1 1_1 fusion-flex-column fusion-flex-align-self-center fusion-column-inner-bg-wrapper\" style=\"--awb-padding-top:20px;--awb-padding-right:20px;--awb-padding-bottom:20px;--awb-padding-left:20px;--awb-overflow:hidden;--awb-inner-bg-size:cover;--awb-border-color:rgba(10,17,40,0.1);--awb-border-top:1px;--awb-border-right:1px;--awb-border-bottom:1px;--awb-border-left:1px;--awb-border-style:solid;--awb-border-radius:4px 4px 4px 4px;--awb-inner-bg-border-radius:4px 4px 4px 4px;--awb-inner-bg-overflow:hidden;--awb-width-large:100%;--awb-margin-top-large:0px;--awb-spacing-right-large:10px;--awb-margin-bottom-large:0px;--awb-spacing-left-large:10px;--awb-width-medium:100%;--awb-order-medium:0;--awb-spacing-right-medium:10px;--awb-spacing-left-medium:10px;--awb-width-small:100%;--awb-order-small:0;--awb-spacing-right-small:10px;--awb-spacing-left-small:10px;\"><span class=\"fusion-column-inner-bg hover-type-none\"><a class=\"fusion-column-anchor\" href=\"https:\/\/medium.com\/artefact-engineering-and-data-science\/visual-time-series-forecasting-with-streamlit-prophet-71d86a769928\" rel=\"noopener noreferrer\" target=\"_blank\"><span class=\"fusion-column-inner-bg-image\"><\/span><\/a><\/span><div class=\"fusion-column-wrapper fusion-column-has-shadow fusion-flex-justify-content-center fusion-content-layout-row fusion-flex-align-items-center\"><div class=\"fusion-text fusion-text-1\"><p><u>Lesen Sie unseren Artikel \u00fcber<\/u><\/p>\n<\/div><div class=\"fusion-image-element\" style=\"--awb-margin-right:20px;--awb-margin-left:20px;--awb-max-width:150px;--awb-caption-title-font-family:var(--h2_typography-font-family);--awb-caption-title-font-weight:var(--h2_typography-font-weight);--awb-caption-title-font-style:var(--h2_typography-font-style);--awb-caption-title-size:var(--h2_typography-font-size);--awb-caption-title-transform:var(--h2_typography-text-transform);--awb-caption-title-line-height:var(--h2_typography-line-height);--awb-caption-title-letter-spacing:var(--h2_typography-letter-spacing);\"><span class=\"fusion-imageframe imageframe-none imageframe-1 hover-type-none\"><img decoding=\"async\" width=\"4000\" height=\"992\" title=\"Mittel Blog\" src=\"https:\/\/www.artefact.com\/\/wp-content\/uploads\/2021\/04\/Medium-Blog.png\" data-orig-src=\"https:\/\/www.artefact.com\/\/wp-content\/uploads\/2021\/04\/Medium-Blog.png\" alt class=\"lazyload img-responsive wp-image-60582\" srcset=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%274000%27%20height%3D%27992%27%20viewBox%3D%270%200%204000%20992%27%3E%3Crect%20width%3D%274000%27%20height%3D%27992%27%20fill-opacity%3D%220%22%2F%3E%3C%2Fsvg%3E\" data-srcset=\"https:\/\/www.artefact.com\/\/wp-content\/uploads\/2021\/04\/Medium-Blog-200x50.png 200w, https:\/\/www.artefact.com\/\/wp-content\/uploads\/2021\/04\/Medium-Blog-400x99.png 400w, https:\/\/www.artefact.com\/\/wp-content\/uploads\/2021\/04\/Medium-Blog-600x149.png 600w, https:\/\/www.artefact.com\/\/wp-content\/uploads\/2021\/04\/Medium-Blog-800x198.png 800w, https:\/\/www.artefact.com\/\/wp-content\/uploads\/2021\/04\/Medium-Blog-1200x298.png 1200w, https:\/\/www.artefact.com\/\/wp-content\/uploads\/2021\/04\/Medium-Blog.png 4000w\" data-sizes=\"auto\" data-orig-sizes=\"(max-width: 640px) 100vw, 4000px\" \/><\/span><\/div><div class=\"fusion-text fusion-text-2\"><p>.<\/p>\n<\/div><\/div><\/div><\/div><\/div><div class=\"fusion-fullwidth fullwidth-box fusion-builder-row-2 fusion-flex-container nonhundred-percent-fullwidth non-hundred-percent-height-scrolling article-author\" style=\"--awb-border-radius-top-left:0px;--awb-border-radius-top-right:0px;--awb-border-radius-bottom-right:0px;--awb-border-radius-bottom-left:0px;--awb-background-color:#ffffff;--awb-flex-wrap:wrap;\" ><div class=\"fusion-builder-row fusion-row fusion-flex-align-items-flex-start fusion-flex-content-wrap\" style=\"max-width:calc( 1440px + 20px );margin-left: calc(-20px \/ 2 );margin-right: calc(-20px \/ 2 );\"><div class=\"fusion-layout-column fusion_builder_column fusion-builder-column-1 fusion_builder_column_1_2 1_2 fusion-flex-column\" style=\"--awb-bg-size:cover;--awb-width-large:50%;--awb-margin-top-large:0px;--awb-spacing-right-large:10px;--awb-margin-bottom-large:0px;--awb-spacing-left-large:10px;--awb-width-medium:50%;--awb-order-medium:0;--awb-spacing-right-medium:10px;--awb-spacing-left-medium:10px;--awb-width-small:100%;--awb-order-small:0;--awb-spacing-right-small:10px;--awb-spacing-left-small:10px;\"><div class=\"fusion-column-wrapper fusion-column-has-shadow fusion-flex-justify-content-flex-start fusion-content-layout-column\"><div class=\"fusion-title title fusion-title-1 fusion-sep-none fusion-title-text fusion-title-size-two\" style=\"--awb-margin-bottom-small:8px;\"><h2 class=\"fusion-title-heading title-heading-left fusion-responsive-typography-calculated\" style=\"margin:0;--fontSize:50;line-height:1.2;\">Autor<\/h2><\/div><img decoding=\"async\" src=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27150%27%20height%3D%270%27%20viewBox%3D%270%200%20150%200%27%3E%3Crect%20width%3D%27150%27%20height%3D%270%27%20fill-opacity%3D%220%22%2F%3E%3C%2Fsvg%3E\" data-orig-src=\"https:\/\/www.artefact.com\/\/wp-content\/uploads\/2021\/09\/Maxime-Lutel.jpeg\" alt=\"Image\" class=\"lazyload artefact-elegant-image align-left article-author-image\" style=\"width: 150px; border-radius: 54% 46% 77% 23% \/ 74% 40% 60% 26%; overflow: hidden;\" width=\"150\" height=\"auto\" \/><div class=\"fusion-title title fusion-title-2 fusion-sep-none fusion-title-text fusion-title-size-three article-author-name-title\" style=\"--awb-margin-bottom-small:8px;\"><h3 class=\"fusion-title-heading title-heading-left fusion-responsive-typography-calculated\" style=\"margin:0;--fontSize:20;line-height:1.2;\">Maxime Lutel<\/h3><\/div><div class=\"fusion-text fusion-text-3 article-author-description\"><p>Data Wissenschaftlerin bei Artefact Frankreich<\/p>\n<\/div><\/div><\/div><\/div><\/div><div class=\"fusion-fullwidth fullwidth-box fusion-builder-row-3 fusion-flex-container nonhundred-percent-fullwidth non-hundred-percent-height-scrolling\" style=\"--awb-border-radius-top-left:0px;--awb-border-radius-top-right:0px;--awb-border-radius-bottom-right:0px;--awb-border-radius-bottom-left:0px;--awb-flex-wrap:wrap;\" ><div class=\"fusion-builder-row fusion-row fusion-flex-align-items-flex-start fusion-flex-content-wrap\" style=\"max-width:calc( 1440px + 20px );margin-left: calc(-20px \/ 2 );margin-right: calc(-20px \/ 2 );\"><div class=\"fusion-layout-column fusion_builder_column fusion-builder-column-2 fusion_builder_column_1_1 1_1 fusion-flex-column\" style=\"--awb-bg-size:cover;--awb-width-large:100%;--awb-margin-top-large:0px;--awb-spacing-right-large:10px;--awb-margin-bottom-large:0px;--awb-spacing-left-large:10px;--awb-width-medium:100%;--awb-order-medium:0;--awb-spacing-right-medium:10px;--awb-spacing-left-medium:10px;--awb-width-small:100%;--awb-order-small:0;--awb-spacing-right-small:10px;--awb-spacing-left-small:10px;\"><div class=\"fusion-column-wrapper fusion-column-has-shadow fusion-flex-justify-content-flex-start fusion-content-layout-column\"><div class=\"fusion-text fusion-text-4 description\"><p>Sie brauchen eine Grundlage f\u00fcr Ihr neuestes Projekt zur Zeitreihenprognose? Sie m\u00f6chten einem Unternehmen den Entscheidungsprozess eines Prognosemodells erkl\u00e4ren audience? Sie m\u00f6chten verstehen, ob Autopreise saisonal sind, bevor Sie ein neues Auto kaufen? Wir haben vielleicht etwas f\u00fcr Sie! In diesem Artikel stellen wir Ihnen Streamlit Prophet vor, eine Web-App, mit der Wissenschaftler data Prognosemodelle auf visuelle Weise trainieren, bewerten und optimieren k\u00f6nnen. Die Vorhersagen werden mit Prophet erstellt, einem schnellen und leicht interpretierbaren Modell.<\/p>\n<\/div><\/div><\/div><\/div><\/div><article class=\"fusion-fullwidth fullwidth-box fusion-builder-row-4 fusion-flex-container nonhundred-percent-fullwidth non-hundred-percent-height-scrolling\" style=\"--awb-border-radius-top-left:0px;--awb-border-radius-top-right:0px;--awb-border-radius-bottom-right:0px;--awb-border-radius-bottom-left:0px;--awb-flex-wrap:wrap;\" ><div class=\"fusion-builder-row fusion-row fusion-flex-align-items-flex-start fusion-flex-justify-content-center fusion-flex-content-wrap\" style=\"max-width:calc( 1440px + 20px );margin-left: calc(-20px \/ 2 );margin-right: calc(-20px \/ 2 );\"><div class=\"fusion-layout-column fusion_builder_column fusion-builder-column-3 fusion_builder_column_1_1 1_1 fusion-flex-column\" style=\"--awb-bg-size:cover;--awb-width-large:100%;--awb-margin-top-large:0px;--awb-spacing-right-large:10px;--awb-margin-bottom-large:0px;--awb-spacing-left-large:10px;--awb-width-medium:100%;--awb-order-medium:0;--awb-spacing-right-medium:10px;--awb-spacing-left-medium:10px;--awb-width-small:100%;--awb-order-small:0;--awb-spacing-right-small:10px;--awb-spacing-left-small:10px;\"><div class=\"fusion-column-wrapper fusion-column-has-shadow fusion-flex-justify-content-flex-start fusion-content-layout-column\"><div class=\"fusion-text fusion-text-5\"><p>Sie k\u00f6nnen die App online testen\u00a0<a class=\"bv kl\" href=\"https:\/\/share.streamlit.io\/maximelutel\/streamlit_prophet\/main\/streamlit_prophet\/app\/dashboard.py\" rel=\"noopener ugc nofollow\" target=\"_blank\">Hier<\/a>\u00a0aber aufgrund begrenzter gemeinsam genutzter Computerressourcen ist er m\u00f6glicherweise nicht immer verf\u00fcgbar. Eine andere M\u00f6glichkeit ist die Installation des\u00a0<a class=\"bv kl\" href=\"https:\/\/github.com\/artefactory-global\/streamlit_prophet\" rel=\"noopener ugc nofollow\" target=\"_blank\">Python-Paket<\/a>\u00a0und f\u00fchren Sie es lokal aus.<\/p>\n<\/div><div class=\"fusion-title title fusion-title-3 fusion-sep-none fusion-title-text fusion-title-size-two\" style=\"--awb-margin-bottom-small:8px;\"><h2 class=\"fusion-title-heading title-heading-left fusion-responsive-typography-calculated\" style=\"margin:0;--fontSize:50;line-height:1.2;\">Was ist Streamlit Prophet?<\/h2><\/div><div class=\"fusion-text fusion-text-6\"><p>Streamlit Prophet ist ein Python-Paket, mit dem Sie eine App zur Erstellung von Zeitreihenprognosemodellen bereitstellen k\u00f6nnen\u00a0<strong class=\"jn kf\">visuell<\/strong>\u00a0und\u00a0<strong class=\"jn kf\">ohne jegliche Codierung<\/strong>. Sobald Sie ein dataset mit historischen Werten des zu prognostizierenden Signals hochgeladen haben, trainiert die App mit wenigen Klicks ein Prognosemodell, zusammen mit verschiedenen Visualisierungen, die Ihnen helfen, seine Leistung zu bewerten und weitere Erkenntnisse zu gewinnen.<\/p>\n<\/div><div class=\"fusion-text fusion-text-7\"><p>Das zugrunde liegende Modell wird mit\u00a0<a class=\"bv kl\" href=\"https:\/\/facebook.github.io\/prophet\/\" rel=\"noopener ugc nofollow\" target=\"_blank\"><strong class=\"jn kf\">Prophet<\/strong><\/a>, eine von Facebook entwickelte Open-Source-Bibliothek zur Prognose von Zeitreihen data. Das Signal wird in mehrere Komponenten wie Trend, Saisonalit\u00e4t und Ferieneffekte zerlegt. Der Sch\u00e4tzer lernt, jeden dieser Bl\u00f6cke separat zu modellieren und addiert dann ihre verschiedenen Beitr\u00e4ge, um eine leicht interpretierbare Prognose zu erstellen. Er schneidet besser ab, wenn die Reihen starke saisonale Muster aufweisen und wenn mehrere Zyklen historischer data verf\u00fcgbar sind. Sie k\u00f6nnen sich dies ansehen\u00a0<a class=\"bv kl\" href=\"https:\/\/twitter.com\/seanjtaylor\/status\/1123278417971990528\" rel=\"noopener ugc nofollow\" target=\"_blank\">thread<\/a>\u00a0oder dies\u00a0<a class=\"bv kl\" href=\"https:\/\/medium.com\/future-vision\/the-math-of-prophet-46864fa9c55a\" rel=\"noopener\" target=\"_blank\">Artikel<\/a>\u00a0wenn Sie mehr \u00fcber die mathematischen Grundlagen von Prophet erfahren m\u00f6chten.<br \/>\nDie Schnittstelle wird mit\u00a0<a class=\"bv kl\" href=\"https:\/\/streamlit.io\/\" rel=\"noopener ugc nofollow\" target=\"_blank\"><strong class=\"jn kf\">Streamlit<\/strong><\/a>, ein Python-Framework f\u00fcr die Erstellung von data-Wissenschafts-Webanwendungen.<\/p>\n<\/div><div class=\"fusion-title title fusion-title-4 fusion-sep-none fusion-title-text fusion-title-size-two\" style=\"--awb-margin-bottom-small:8px;\"><h2 class=\"fusion-title-heading title-heading-left fusion-responsive-typography-calculated\" style=\"margin:0;--fontSize:50;line-height:1.2;\">Was sind die wichtigsten Merkmale?<\/h2><\/div><div class=\"fusion-text fusion-text-8\"><p>Streamlit Prophet soll data-Wissenschaftlern und Business-Analysten helfen, ihre Zeitreihenprojekte schnell zum Laufen zu bringen. Zur Veranschaulichung: Nehmen wir an, wir m\u00f6chten die zuk\u00fcnftigen Verk\u00e4ufe von Konsumg\u00fctern in einem bestimmten Gesch\u00e4ft anhand historischer data aus den Jahren 2011 bis 2015 vorhersagen. Unser data-Set sieht wie die unten stehende Tabelle aus.<\/p>\n<\/div><div class=\"fusion-image-element\" style=\"--awb-caption-title-font-family:var(--h2_typography-font-family);--awb-caption-title-font-weight:var(--h2_typography-font-weight);--awb-caption-title-font-style:var(--h2_typography-font-style);--awb-caption-title-size:var(--h2_typography-font-size);--awb-caption-title-transform:var(--h2_typography-text-transform);--awb-caption-title-line-height:var(--h2_typography-line-height);--awb-caption-title-letter-spacing:var(--h2_typography-letter-spacing);\"><span class=\"fusion-imageframe imageframe-none imageframe-2 hover-type-none\"><img decoding=\"async\" width=\"193\" height=\"163\" title=\"Artikel-Maxime-lutel-2\" src=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27193%27%20height%3D%27163%27%20viewBox%3D%270%200%20193%20163%27%3E%3Crect%20width%3D%27193%27%20height%3D%27163%27%20fill-opacity%3D%220%22%2F%3E%3C%2Fsvg%3E\" data-orig-src=\"https:\/\/www.artefact.com\/\/wp-content\/uploads\/2021\/09\/article-Maxime-lutel-2.png\" alt class=\"lazyload img-responsive wp-image-63297\"\/><\/span><\/div><div class=\"fusion-text fusion-text-9\"><p>Ein Basismodell mit Standardparametern wird auf das data angepasst, sobald es hochgeladen wird. Lassen Sie uns nun sehen, wie wir Streamlit Prophet verwenden k\u00f6nnen, um es zu verbessern und ein besseres Verst\u00e4ndnis des Ph\u00e4nomens zu erreichen.<\/p>\n<\/div><div class=\"fusion-title title fusion-title-5 fusion-sep-none fusion-title-text fusion-title-size-three\" style=\"--awb-margin-bottom-small:8px;\"><h3 class=\"fusion-title-heading title-heading-left fusion-responsive-typography-calculated\" style=\"margin:0;--fontSize:20;line-height:1.2;\">Data Erkundung<\/h3><\/div><div class=\"fusion-text fusion-text-10\"><p>Der erste Schritt bei jedem Prognoseprojekt besteht darin, sicherzustellen, dass das dataset keine Geheimnisse f\u00fcr Sie hat. Prophet bietet von Haus aus eine sch\u00f6ne\u00a0<strong class=\"jn kf\">Zersetzung des Signals\u00a0<\/strong>um Ihnen zu helfen, dieses Ziel zu erreichen. In der App sind mehrere Diagramme verf\u00fcgbar, um diese wertvollen Erkenntnisse auf einen Blick zu erhalten.<br \/>\nDas folgende Diagramm ist ein guter Ausgangspunkt, da es eine globale Darstellung der hochgeladenen Zeitreihen bietet und viele n\u00fctzliche Informationen enth\u00e4lt.<\/p>\n<\/div><div class=\"fusion-image-element\" style=\"--awb-caption-title-font-family:var(--h2_typography-font-family);--awb-caption-title-font-weight:var(--h2_typography-font-weight);--awb-caption-title-font-style:var(--h2_typography-font-style);--awb-caption-title-size:var(--h2_typography-font-size);--awb-caption-title-transform:var(--h2_typography-text-transform);--awb-caption-title-line-height:var(--h2_typography-line-height);--awb-caption-title-letter-spacing:var(--h2_typography-letter-spacing);\"><span class=\"fusion-imageframe imageframe-none imageframe-3 hover-type-none\"><img decoding=\"async\" width=\"700\" height=\"330\" title=\"Artikel-Maxime-lutel-3\" src=\"https:\/\/www.artefact.com\/\/wp-content\/uploads\/2021\/09\/article-Maxime-lutel-3.png\" data-orig-src=\"https:\/\/www.artefact.com\/\/wp-content\/uploads\/2021\/09\/article-Maxime-lutel-3.png\" alt class=\"lazyload img-responsive wp-image-63298\" srcset=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27700%27%20height%3D%27330%27%20viewBox%3D%270%200%20700%20330%27%3E%3Crect%20width%3D%27700%27%20height%3D%27330%27%20fill-opacity%3D%220%22%2F%3E%3C%2Fsvg%3E\" data-srcset=\"https:\/\/www.artefact.com\/\/wp-content\/uploads\/2021\/09\/article-Maxime-lutel-3-200x94.png 200w, https:\/\/www.artefact.com\/\/wp-content\/uploads\/2021\/09\/article-Maxime-lutel-3-400x189.png 400w, https:\/\/www.artefact.com\/\/wp-content\/uploads\/2021\/09\/article-Maxime-lutel-3-600x283.png 600w, https:\/\/www.artefact.com\/\/wp-content\/uploads\/2021\/09\/article-Maxime-lutel-3.png 700w\" data-sizes=\"auto\" data-orig-sizes=\"(max-width: 640px) 100vw, 700px\" \/><\/span><\/div><div class=\"fusion-text fusion-text-11\"><p>Die schwarzen Punkte sind die tats\u00e4chlichen historischen Verk\u00e4ufe, die meist zwischen 75 und 225 Einheiten pro Tag liegen. Einige Ausrei\u00dfer ohne Verk\u00e4ufe oder mit geringem Volumen sind am Ende eines jeden Jahres um Weihnachten herum zu erkennen, wenn die Gesch\u00e4fte wahrscheinlich geschlossen sind. Der Trend wird auf einer roten Linie dargestellt, um eine synthetischere Vision des Signals zu erhalten und globale Entwicklungen zu visualisieren. Die blaue Linie schlie\u00dflich stellt die Prognosen eines Prophet-Modells dar, das automatisch auf Ihr dataset trainiert wurde. Hier sehen wir, dass das Modell f\u00fcr 2016 einen Anstieg der Ums\u00e4tze erwartet und damit dem Wachstumstrend folgt, der 2015 begann.<\/p>\n<p>Diese Vorhersagen scheinen saisonal zu sein, aber es ist schwer, die verschiedenen periodischen Komponenten auf dieser ersten Grafik zu unterscheiden. Schauen wir uns eine andere Visualisierung an, um zu verstehen, wie diese saisonalen Muster die Modellausgabe beeinflussen.<\/p>\n<\/div><div class=\"fusion-image-element\" style=\"--awb-caption-title-font-family:var(--h2_typography-font-family);--awb-caption-title-font-weight:var(--h2_typography-font-weight);--awb-caption-title-font-style:var(--h2_typography-font-style);--awb-caption-title-size:var(--h2_typography-font-size);--awb-caption-title-transform:var(--h2_typography-text-transform);--awb-caption-title-line-height:var(--h2_typography-line-height);--awb-caption-title-letter-spacing:var(--h2_typography-letter-spacing);\"><span class=\"fusion-imageframe imageframe-none imageframe-4 hover-type-none\"><img decoding=\"async\" width=\"700\" height=\"309\" title=\"Artikel-Maxime-lutel-4\" src=\"https:\/\/www.artefact.com\/\/wp-content\/uploads\/2021\/09\/article-Maxime-lutel-4.png\" data-orig-src=\"https:\/\/www.artefact.com\/\/wp-content\/uploads\/2021\/09\/article-Maxime-lutel-4.png\" alt class=\"lazyload img-responsive wp-image-63299\" srcset=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27700%27%20height%3D%27309%27%20viewBox%3D%270%200%20700%20309%27%3E%3Crect%20width%3D%27700%27%20height%3D%27309%27%20fill-opacity%3D%220%22%2F%3E%3C%2Fsvg%3E\" data-srcset=\"https:\/\/www.artefact.com\/\/wp-content\/uploads\/2021\/09\/article-Maxime-lutel-4-200x88.png 200w, https:\/\/www.artefact.com\/\/wp-content\/uploads\/2021\/09\/article-Maxime-lutel-4-400x177.png 400w, https:\/\/www.artefact.com\/\/wp-content\/uploads\/2021\/09\/article-Maxime-lutel-4-600x265.png 600w, https:\/\/www.artefact.com\/\/wp-content\/uploads\/2021\/09\/article-Maxime-lutel-4.png 700w\" data-sizes=\"auto\" data-orig-sizes=\"(max-width: 640px) 100vw, 700px\" \/><\/span><\/div><div class=\"fusion-text fusion-text-12\"><p>Es wurden zwei Periodizit\u00e4ten festgestellt, die einige interessante Einblicke in die Gewohnheiten der Verbraucher bieten. Der Wochenzyklus zeigt, dass die meisten Menschen an den Wochenenden einkaufen, an denen die Prognosen um fast 40 Einheiten pro Tag steigen. Die Grafik deutet auch darauf hin, dass die verkauften Produkte eine j\u00e4hrliche Saisonalit\u00e4t aufweisen, wobei im Sommer etwas mehr verkauft wird als im Rest des Jahres. Diese periodischen Komponenten und der globale Trend werden dann von dem Sch\u00e4tzer kombiniert, um Prognosen f\u00fcr zuk\u00fcnftige Tage zu erstellen.<\/p>\n<\/div><div class=\"fusion-title title fusion-title-6 fusion-sep-none fusion-title-text fusion-title-size-three\" style=\"--awb-margin-bottom-small:8px;\"><h3 class=\"fusion-title-heading title-heading-left fusion-responsive-typography-calculated\" style=\"margin:0;--fontSize:20;line-height:1.2;\">Leistungsbewertung<\/h3><\/div><div class=\"fusion-text fusion-text-13\"><p>Diese Darstellungen geben die Art und Weise wieder, wie data von Prophet modelliert wird. Aber wie k\u00f6nnen wir sicherstellen, dass diese Darstellung zuverl\u00e4ssig ist? Um diese berechtigte Frage zu beantworten, ist ein Abschnitt der App der Bewertung der Modellqualit\u00e4t gewidmet. Sie liefert dem Benutzer schnell eine Basisprognoseleistung. Zu diesem Zweck wird die Zeitreihe in mehrere Teile aufgeteilt: Das Modell wird zun\u00e4chst an einen Trainingssatz angepasst und dann an einem Validierungssatz getestet. Andere Optionen wie die Kreuzvalidierung sind f\u00fcr eine fortgeschrittene Nutzung ebenfalls verf\u00fcgbar.<\/p>\n<\/div><div class=\"fusion-text fusion-text-14\"><p>Zur Bewertung der Modellqualit\u00e4t k\u00f6nnen verschiedene Metriken verwendet werden: Absolute Metriken wie der mittlere quadratische Fehler (Root Mean Squared Error, RMSE) sind hilfreich, um sich ein Bild von der Gr\u00f6\u00dfe der Fehler in Bezug auf die Anzahl der Verk\u00e4ufe zu machen, aber relative Metriken wie der mittlere absolute prozentuale Fehler (MAPE) sind vielleicht besser zu interpretieren. Es liegt an Ihnen, die Metrik zu w\u00e4hlen, die f\u00fcr Ihren Anwendungsfall am relevantesten ist.<\/p>\n<\/div><div class=\"fusion-text fusion-text-15\"><p>Es ist jedoch unwahrscheinlich, dass die Leistung \u00fcber alle data-Punkte hinweg einheitlich ist, daher reicht ein globaler Indikator nicht aus. Wir sollten die Metriken auf einer detaillierteren Granularit\u00e4t berechnen, um ein klares Verst\u00e4ndnis der Modellqualit\u00e4t zu erhalten. Beginnen wir mit einer eingehenden Analyse auf t\u00e4glicher Ebene, was in unserem Fall die kleinstm\u00f6gliche Granularit\u00e4t ist, da das Modell eine Vorhersage pro Tag macht.<\/p>\n<\/div><div class=\"fusion-image-element\" style=\"--awb-caption-title-font-family:var(--h2_typography-font-family);--awb-caption-title-font-weight:var(--h2_typography-font-weight);--awb-caption-title-font-style:var(--h2_typography-font-style);--awb-caption-title-size:var(--h2_typography-font-size);--awb-caption-title-transform:var(--h2_typography-text-transform);--awb-caption-title-line-height:var(--h2_typography-line-height);--awb-caption-title-letter-spacing:var(--h2_typography-letter-spacing);\"><span class=\"fusion-imageframe imageframe-none imageframe-5 hover-type-none\"><img decoding=\"async\" width=\"700\" height=\"364\" title=\"Artikel-Maxime-lutel-5\" src=\"https:\/\/www.artefact.com\/\/wp-content\/uploads\/2021\/09\/article-Maxime-lutel-5.png\" data-orig-src=\"https:\/\/www.artefact.com\/\/wp-content\/uploads\/2021\/09\/article-Maxime-lutel-5.png\" alt class=\"lazyload img-responsive wp-image-63300\" srcset=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27700%27%20height%3D%27364%27%20viewBox%3D%270%200%20700%20364%27%3E%3Crect%20width%3D%27700%27%20height%3D%27364%27%20fill-opacity%3D%220%22%2F%3E%3C%2Fsvg%3E\" data-srcset=\"https:\/\/www.artefact.com\/\/wp-content\/uploads\/2021\/09\/article-Maxime-lutel-5-200x104.png 200w, https:\/\/www.artefact.com\/\/wp-content\/uploads\/2021\/09\/article-Maxime-lutel-5-400x208.png 400w, https:\/\/www.artefact.com\/\/wp-content\/uploads\/2021\/09\/article-Maxime-lutel-5-600x312.png 600w, https:\/\/www.artefact.com\/\/wp-content\/uploads\/2021\/09\/article-Maxime-lutel-5.png 700w\" data-sizes=\"auto\" data-orig-sizes=\"(max-width: 640px) 100vw, 700px\" \/><\/span><\/div><div class=\"fusion-text fusion-text-16\"><p>Wir k\u00f6nnen eine wichtige Variabilit\u00e4t beobachten: Es gibt Tage, an denen der Fehler gr\u00f6\u00dfer als 20% ist, w\u00e4hrend einige andere Vorhersagen nahezu perfekt zutreffen. Angesichts dieser Informationen werden Sie sich wahrscheinlich fragen, ob es Muster in der Art gibt, wie das Modell Fehler macht. Gibt es bestimmte Tage, an denen das Modell schlecht abschneidet? Gl\u00fccklicherweise bietet die App einige praktische Diagramme, die uns helfen, unsere Neugierde zu befriedigen.<\/p>\n<\/div><div class=\"fusion-title title fusion-title-7 fusion-sep-none fusion-title-text fusion-title-size-three\" style=\"--awb-margin-bottom-small:8px;\"><h3 class=\"fusion-title-heading title-heading-left fusion-responsive-typography-calculated\" style=\"margin:0;--fontSize:20;line-height:1.2;\">Fehlerdiagnose<\/h3><\/div><div class=\"fusion-text fusion-text-17\"><p>Der Abschnitt \u00fcber die Fehlerdiagnose ist wahrscheinlich der n\u00fctzlichste, denn er erm\u00f6glicht es Ihnen, die Bereiche hervorzuheben, in denen die Prognosen verbessert werden k\u00f6nnten, und so die wichtigsten Herausforderungen f\u00fcr den Aufbau eines zuverl\u00e4ssigen Prognosemodells genauer zu bestimmen.<\/p>\n<p>F\u00fcr diese Untersuchung stehen mehrere Visualisierungen zur Verf\u00fcgung. Sie sind interaktiv, so dass Sie sich leicht auf bestimmte Bereiche konzentrieren k\u00f6nnen. Das Streudiagramm unten stellt zum Beispiel jede Vorhersage f\u00fcr das Validierungsset durch einen einzelnen Punkt dar. Wenn Sie den Mauszeiger \u00fcber die Punkte bewegen, die von der roten Linie entfernt sind, k\u00f6nnen Sie erkennen, f\u00fcr welche Art von data-Punkten die Vorhersagen weit von der Wahrheit entfernt sind.<\/p>\n<\/div><div class=\"fusion-image-element\" style=\"--awb-caption-title-font-family:var(--h2_typography-font-family);--awb-caption-title-font-weight:var(--h2_typography-font-weight);--awb-caption-title-font-style:var(--h2_typography-font-style);--awb-caption-title-size:var(--h2_typography-font-size);--awb-caption-title-transform:var(--h2_typography-text-transform);--awb-caption-title-line-height:var(--h2_typography-line-height);--awb-caption-title-letter-spacing:var(--h2_typography-letter-spacing);\"><span class=\"fusion-imageframe imageframe-none imageframe-6 hover-type-none\"><img decoding=\"async\" width=\"700\" height=\"327\" title=\"Artikel-Maxime-lutel-6\" src=\"https:\/\/www.artefact.com\/\/wp-content\/uploads\/2021\/09\/article-Maxime-lutel-6.png\" data-orig-src=\"https:\/\/www.artefact.com\/\/wp-content\/uploads\/2021\/09\/article-Maxime-lutel-6.png\" alt class=\"lazyload img-responsive wp-image-63301\" srcset=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27700%27%20height%3D%27327%27%20viewBox%3D%270%200%20700%20327%27%3E%3Crect%20width%3D%27700%27%20height%3D%27327%27%20fill-opacity%3D%220%22%2F%3E%3C%2Fsvg%3E\" data-srcset=\"https:\/\/www.artefact.com\/\/wp-content\/uploads\/2021\/09\/article-Maxime-lutel-6-200x93.png 200w, https:\/\/www.artefact.com\/\/wp-content\/uploads\/2021\/09\/article-Maxime-lutel-6-400x187.png 400w, https:\/\/www.artefact.com\/\/wp-content\/uploads\/2021\/09\/article-Maxime-lutel-6-600x280.png 600w, https:\/\/www.artefact.com\/\/wp-content\/uploads\/2021\/09\/article-Maxime-lutel-6.png 700w\" data-sizes=\"auto\" data-orig-sizes=\"(max-width: 640px) 100vw, 700px\" \/><\/span><\/div><div class=\"fusion-text fusion-text-18\"><p>Wenn Sie in unserem Beispiel mit dem Mauszeiger \u00fcber den oberen rechten Bereich fahren, sehen Sie, dass die Punkte, die am weitesten von der roten Linie entfernt sind, Samstage und Sonntage sind, was darauf schlie\u00dfen l\u00e4sst, dass das Modell unter der Woche besser abschneidet. Lassen Sie uns die Performance-Metriken nach Wochentag aggregieren, um diese Intuition zu best\u00e4tigen.<\/p>\n<\/div><div class=\"fusion-image-element\" style=\"--awb-caption-title-font-family:var(--h2_typography-font-family);--awb-caption-title-font-weight:var(--h2_typography-font-weight);--awb-caption-title-font-style:var(--h2_typography-font-style);--awb-caption-title-size:var(--h2_typography-font-size);--awb-caption-title-transform:var(--h2_typography-text-transform);--awb-caption-title-line-height:var(--h2_typography-line-height);--awb-caption-title-letter-spacing:var(--h2_typography-letter-spacing);\"><span class=\"fusion-imageframe imageframe-none imageframe-7 hover-type-none\"><img decoding=\"async\" width=\"700\" height=\"171\" title=\"Artikel-Maxime-lutel-7\" src=\"https:\/\/www.artefact.com\/\/wp-content\/uploads\/2021\/09\/article-Maxime-lutel-7.png\" data-orig-src=\"https:\/\/www.artefact.com\/\/wp-content\/uploads\/2021\/09\/article-Maxime-lutel-7.png\" alt class=\"lazyload img-responsive wp-image-63302\" srcset=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27700%27%20height%3D%27171%27%20viewBox%3D%270%200%20700%20171%27%3E%3Crect%20width%3D%27700%27%20height%3D%27171%27%20fill-opacity%3D%220%22%2F%3E%3C%2Fsvg%3E\" data-srcset=\"https:\/\/www.artefact.com\/\/wp-content\/uploads\/2021\/09\/article-Maxime-lutel-7-200x49.png 200w, https:\/\/www.artefact.com\/\/wp-content\/uploads\/2021\/09\/article-Maxime-lutel-7-400x98.png 400w, https:\/\/www.artefact.com\/\/wp-content\/uploads\/2021\/09\/article-Maxime-lutel-7-600x147.png 600w, https:\/\/www.artefact.com\/\/wp-content\/uploads\/2021\/09\/article-Maxime-lutel-7.png 700w\" data-sizes=\"auto\" data-orig-sizes=\"(max-width: 640px) 100vw, 700px\" \/><\/span><\/div><div class=\"fusion-text fusion-text-19\"><p>In der Tat sind die Fehler an den Wochenenden im Durchschnitt gr\u00f6\u00dfer als w\u00e4hrend der restlichen Woche. Diese Information sollten Sie im Auge behalten, wenn Sie versuchen, das Modell zu optimieren. Die Leistung kann sich auch im Laufe der Zeit ver\u00e4ndern. Daher ist es m\u00f6glich, andere in der App verf\u00fcgbare Aggregationsebenen zu w\u00e4hlen, um dies zu \u00fcberpr\u00fcfen. Wir k\u00f6nnten zum Beispiel die Metriken auf w\u00f6chentlicher oder monatlicher Ebene berechnen oder \u00fcber einen bestimmten Zeitraum, in dem wir vermuten, dass die Leistung anders ist als sonst.<\/p>\n<\/div><div class=\"fusion-title title fusion-title-8 fusion-sep-none fusion-title-text fusion-title-size-three\" style=\"--awb-margin-bottom-small:8px;\"><h3 class=\"fusion-title-heading title-heading-left fusion-responsive-typography-calculated\" style=\"margin:0;--fontSize:20;line-height:1.2;\">Modell-Optimierung<\/h3><\/div><div class=\"fusion-text fusion-text-20\"><p>Sobald wir die Hauptschw\u00e4chen des Modells entdeckt haben, stehen mehrere Optionen zur Verf\u00fcgung, um es zu verbessern: In der Seitenleiste der App k\u00f6nnen Sie die Standardkonfiguration bearbeiten und Ihre eigenen Spezifikationen eingeben. Alle Leistungsmetriken und Visualisierungen werden jedes Mal aktualisiert, wenn Sie die Einstellungen \u00e4ndern, um schnelles Feedback zu erhalten.<\/p>\n<\/div><div class=\"fusion-text fusion-text-21\"><p>Die erste M\u00f6glichkeit, eine bessere Leistung zu erzielen, besteht darin, Ihr dataset einer individuellen Vorverarbeitung zu unterziehen. Es gibt mehrere Alternativen, um die zuvor identifizierten Herausforderungen zu umgehen. Mit einer Bereinigung k\u00f6nnen wir zum Beispiel die Ausrei\u00dfer um Weihnachten herum entfernen, die das Modell verwirren k\u00f6nnten. Wir k\u00f6nnten auch bestimmte Tage herausfiltern und so ganz einfach unterschiedliche Modelle f\u00fcr die Woche und die Wochenenden trainieren, da diese mit unterschiedlichem Kaufverhalten verbunden zu sein scheinen. Es stehen auch einige andere Filter- und Resampling-Optionen zur Verf\u00fcgung, falls sie f\u00fcr das vorliegende Problem relevant sind.<\/p>\n<\/div><div class=\"fusion-text fusion-text-22\"><p>Die Prophet-Hyperparameter k\u00f6nnen ebenfalls angepasst werden, um das Modell besser an das data anzupassen. Diese Parameter beeinflussen die Art und Weise, wie der Sch\u00e4tzer lernt, den Trend und die Saisonalit\u00e4t aus den historischen Verk\u00e4ufen darzustellen, sowie das relative Gewicht dieser Komponenten in der globalen Prognose. Machen Sie sich keine Sorgen, wenn Sie mit den Prophet-Modellen nicht vertraut sind. Einige Tooltipps erkl\u00e4ren die Intuition hinter jedem Parameter und f\u00fchren Sie durch den Abstimmungsprozess. Im Bereich Modellierung k\u00f6nnen Sie das Modell auch mit externen Informationen wie Feiertagen oder Variablen f\u00fcttern, die mit dem zu prognostizierenden Signal zusammenh\u00e4ngen (wie z.B. dem Verkaufspreis der Produkte). Diese Regressoren werden wahrscheinlich die Leistung verbessern, da sie dem Modell zus\u00e4tzliches Wissen \u00fcber ein Ph\u00e4nomen liefern, das sich auf den Umsatz auswirkt.<\/p>\n<\/div><div class=\"fusion-title title fusion-title-9 fusion-sep-none fusion-title-text fusion-title-size-three\" style=\"--awb-margin-bottom-small:8px;\"><h3 class=\"fusion-title-heading title-heading-left fusion-responsive-typography-calculated\" style=\"margin:0;--fontSize:20;line-height:1.2;\">Interpretierbarkeit der Vorhersage<\/h3><\/div><div class=\"fusion-text fusion-text-23\"><p>Ein genaues Prognosemodell zu haben ist sch\u00f6n, aber noch besser ist es, wenn man die wichtigsten Faktoren erkl\u00e4ren kann, die zu den Vorhersagen beitragen. Der letzte Abschnitt der App soll uns helfen zu verstehen, wie das Modell, das wir gerade erstellt haben, Entscheidungen trifft. Es gibt verschiedene M\u00f6glichkeiten, diese Frage anzugehen: Wir k\u00f6nnen entweder eine einzelne Komponente betrachten und sehen, wie sich ihr Beitrag zu den Gesamtprognosen im Laufe der Zeit entwickelt, oder wir k\u00f6nnen eine einzelne Prognose nehmen und sie in die Summe der Beitr\u00e4ge mehrerer Komponenten zerlegen.<\/p>\n<\/div><div class=\"fusion-text fusion-text-24\"><p>Lassen Sie uns mit der ersten Option beginnen. Die verschiedenen Komponenten, die die Prognosen beeinflussen, sind der Trend, die Saisonalit\u00e4t und die externen Regressoren. Wir haben bereits die Auswirkungen der w\u00f6chentlichen und j\u00e4hrlichen Saisonalit\u00e4ten beobachtet. Konzentrieren wir uns also auf die externen Regressoren, die wir in den Abschnitt zur Modelloptimierung aufgenommen haben: Feiertage und der Verkaufspreis der Produkte.<\/p>\n<\/div><div class=\"fusion-image-element\" style=\"--awb-caption-title-font-family:var(--h2_typography-font-family);--awb-caption-title-font-weight:var(--h2_typography-font-weight);--awb-caption-title-font-style:var(--h2_typography-font-style);--awb-caption-title-size:var(--h2_typography-font-size);--awb-caption-title-transform:var(--h2_typography-text-transform);--awb-caption-title-line-height:var(--h2_typography-line-height);--awb-caption-title-letter-spacing:var(--h2_typography-letter-spacing);\"><span class=\"fusion-imageframe imageframe-none imageframe-8 hover-type-none\"><img decoding=\"async\" width=\"657\" height=\"343\" title=\"Artikel-Maxime-lutel-8\" src=\"https:\/\/www.artefact.com\/\/wp-content\/uploads\/2021\/09\/article-Maxime-lutel-8.png\" data-orig-src=\"https:\/\/www.artefact.com\/\/wp-content\/uploads\/2021\/09\/article-Maxime-lutel-8.png\" alt class=\"lazyload img-responsive wp-image-63303\" srcset=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27657%27%20height%3D%27343%27%20viewBox%3D%270%200%20657%20343%27%3E%3Crect%20width%3D%27657%27%20height%3D%27343%27%20fill-opacity%3D%220%22%2F%3E%3C%2Fsvg%3E\" data-srcset=\"https:\/\/www.artefact.com\/\/wp-content\/uploads\/2021\/09\/article-Maxime-lutel-8-200x104.png 200w, https:\/\/www.artefact.com\/\/wp-content\/uploads\/2021\/09\/article-Maxime-lutel-8-400x209.png 400w, https:\/\/www.artefact.com\/\/wp-content\/uploads\/2021\/09\/article-Maxime-lutel-8-600x313.png 600w, https:\/\/www.artefact.com\/\/wp-content\/uploads\/2021\/09\/article-Maxime-lutel-8.png 657w\" data-sizes=\"auto\" data-orig-sizes=\"(max-width: 640px) 100vw, 657px\" \/><\/span><\/div><div class=\"fusion-text fusion-text-25\"><p>Der Einfluss einiger Feiertage ist ziemlich wichtig: So erh\u00f6ht der Tag der Arbeit Anfang September die Prognosen jedes Jahr um 50 Verk\u00e4ufe, und die Einbr\u00fcche an Weihnachten zeigen, dass das Modell die Tatsache ber\u00fccksichtigt hat, dass die Gesch\u00e4fte an diesem Tag geschlossen sind. Was den Preis betrifft, so ist er Jahr f\u00fcr Jahr gestiegen, und daher hat sich sein Einfluss auf den Umsatz von positiv zu negativ ver\u00e4ndert.<\/p>\n<\/div><div class=\"fusion-text fusion-text-26\"><p>Es k\u00f6nnte auch n\u00fctzlich sein, zu erkl\u00e4ren, wie das Modell eine bestimmte Prognose erstellt hat, insbesondere wenn ein bestimmtes Ereignis die Vorhersage beeinflusst. Das folgende Wasserfalldiagramm zeigt diese Zerlegung f\u00fcr die Prognose vom 31. Oktober 2012.<\/p>\n<\/div><div class=\"fusion-image-element\" style=\"--awb-caption-title-font-family:var(--h2_typography-font-family);--awb-caption-title-font-weight:var(--h2_typography-font-weight);--awb-caption-title-font-style:var(--h2_typography-font-style);--awb-caption-title-size:var(--h2_typography-font-size);--awb-caption-title-transform:var(--h2_typography-text-transform);--awb-caption-title-line-height:var(--h2_typography-line-height);--awb-caption-title-letter-spacing:var(--h2_typography-letter-spacing);\"><span class=\"fusion-imageframe imageframe-none imageframe-9 hover-type-none\"><img decoding=\"async\" width=\"700\" height=\"359\" title=\"Artikel-Maxime-lutel-9\" src=\"https:\/\/www.artefact.com\/\/wp-content\/uploads\/2021\/09\/article-Maxime-lutel-9.png\" data-orig-src=\"https:\/\/www.artefact.com\/\/wp-content\/uploads\/2021\/09\/article-Maxime-lutel-9.png\" alt class=\"lazyload img-responsive wp-image-63304\" srcset=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27700%27%20height%3D%27359%27%20viewBox%3D%270%200%20700%20359%27%3E%3Crect%20width%3D%27700%27%20height%3D%27359%27%20fill-opacity%3D%220%22%2F%3E%3C%2Fsvg%3E\" data-srcset=\"https:\/\/www.artefact.com\/\/wp-content\/uploads\/2021\/09\/article-Maxime-lutel-9-200x103.png 200w, https:\/\/www.artefact.com\/\/wp-content\/uploads\/2021\/09\/article-Maxime-lutel-9-400x205.png 400w, https:\/\/www.artefact.com\/\/wp-content\/uploads\/2021\/09\/article-Maxime-lutel-9-600x308.png 600w, https:\/\/www.artefact.com\/\/wp-content\/uploads\/2021\/09\/article-Maxime-lutel-9.png 700w\" data-sizes=\"auto\" data-orig-sizes=\"(max-width: 640px) 100vw, 700px\" \/><\/span><\/div><div class=\"fusion-text fusion-text-27\"><p>In diesem Beispiel hat das Modell am Ende 96 Verk\u00e4ufe prognostiziert, was der Summe der Beitr\u00e4ge von f\u00fcnf verschiedenen Komponenten entspricht:<\/p>\n<\/div><ul style=\"--awb-line-height:27.2px;--awb-icon-width:27.2px;--awb-icon-height:27.2px;--awb-icon-margin:11.2px;--awb-content-margin:38.4px;\" class=\"fusion-checklist fusion-checklist-1 fusion-checklist-default type-icons\"><li class=\"fusion-li-item\" style=\"\"><span class=\"icon-wrapper circle-no\"><i class=\"fusion-li-icon awb-icon-check\" aria-hidden=\"true\"><\/i><\/span><div class=\"fusion-li-item-content\"><strong>Globaler Trend<\/strong>\u00a0(+134): Dies ist der einflussreichste Faktor.<\/div><\/li><li class=\"fusion-li-item\" style=\"\"><span class=\"icon-wrapper circle-no\"><i class=\"fusion-li-icon awb-icon-check\" aria-hidden=\"true\"><\/i><\/span><div class=\"fusion-li-item-content\"><strong>Halloween<\/strong>\u00a0<strong>Wirkung<\/strong>\u00a0(-12): Das Produkt wird an Halloween weniger verkauft als an normalen Tagen.<\/div><\/li><li class=\"fusion-li-item\" style=\"\"><span class=\"icon-wrapper circle-no\"><i class=\"fusion-li-icon awb-icon-check\" aria-hidden=\"true\"><\/i><\/span><div class=\"fusion-li-item-content\"><strong>Verkaufspreis<\/strong>\u00a0(+2): Der Kurs muss an diesem Tag etwas niedriger als der Durchschnitt gewesen sein.<\/div><\/li><li class=\"fusion-li-item\" style=\"\"><span class=\"icon-wrapper circle-no\"><i class=\"fusion-li-icon awb-icon-check\" aria-hidden=\"true\"><\/i><\/span><div class=\"fusion-li-item-content\"><strong>W\u00f6chentliche Saisonalit\u00e4t\u00a0<\/strong>(-23): Dies war ein Mittwoch, also nicht w\u00e4hrend des Wochenendes.<\/div><\/li><li class=\"fusion-li-item\" style=\"\"><span class=\"icon-wrapper circle-no\"><i class=\"fusion-li-icon awb-icon-check\" aria-hidden=\"true\"><\/i><\/span><div class=\"fusion-li-item-content\"><strong>J\u00e4hrliche Saisonalit\u00e4t<\/strong>\u00a0(-5): Der Oktober ist Nebensaison f\u00fcr dieses Produkt.<\/div><\/li><\/ul><div class=\"fusion-text fusion-text-28\"><p>Diese Art der Zerlegung ist nicht nur n\u00fctzlich, um Erkenntnisse mit Kollegen zu teilen, sondern kann Analysten auch dabei helfen zu verstehen, warum ihr Modell nicht wie erwartet funktioniert. Bei Bedarf stehen in der Seitenleiste der App mehrere Parameter zur Verf\u00fcgung, mit denen Sie die relative Gewichtung der verschiedenen Komponenten erh\u00f6hen oder verringern k\u00f6nnen.<\/p>\n<\/div><div class=\"fusion-title title fusion-title-10 fusion-sep-none fusion-title-text fusion-title-size-two\" style=\"--awb-margin-bottom-small:8px;\"><h2 class=\"fusion-title-heading title-heading-left fusion-responsive-typography-calculated\" style=\"margin:0;--fontSize:50;line-height:1.2;\">Wie fangen Sie an?<\/h2><\/div><div class=\"fusion-text fusion-text-29\"><p>Die Ausf\u00fchrung der App auf Ihrem eigenen Computer ist ziemlich einfach. Die einzige Voraussetzung ist, dass Sie Python installiert haben. F\u00fcr Windows-Benutzer sind einige weitere Voraussetzungen erforderlich (siehe\u00a0<a class=\"bv kl\" href=\"https:\/\/github.com\/artefactory-global\/streamlit_prophet#-requirements\" rel=\"noopener ugc nofollow\" target=\"_blank\">Repository<\/a>\u00a0f\u00fcr weitere Details). Dann folgen Sie den unten stehenden Anweisungen, um loszulegen.<\/p>\n<\/div><div class=\"fusion-title title fusion-title-11 fusion-sep-none fusion-title-text fusion-title-size-three\" style=\"--awb-margin-bottom-small:8px;\"><h3 class=\"fusion-title-heading title-heading-left fusion-responsive-typography-calculated\" style=\"margin:0;--fontSize:20;line-height:1.2;\">Installation<\/h3><\/div><div class=\"fusion-text fusion-text-30\"><p>Wir empfehlen, eine neue virtuelle Umgebung zu erstellen, um Probleme mit Abh\u00e4ngigkeiten oder Inkompatibilit\u00e4t mit Ihrer aktuellen Umgebung zu vermeiden. Sobald Ihre neue Umgebung aktiviert ist, k\u00f6nnen Sie das Paket mit dem folgenden Befehl installieren. Die Installation kann ein paar Minuten dauern (5-10).<\/p>\n<\/div>pip install -U streamlit_prophet<div class=\"fusion-title title fusion-title-12 fusion-sep-none fusion-title-text fusion-title-size-three\" style=\"--awb-margin-bottom-small:8px;\"><h3 class=\"fusion-title-heading title-heading-left fusion-responsive-typography-calculated\" style=\"margin:0;--fontSize:20;line-height:1.2;\">Laufen lassen<\/h3><\/div><div class=\"fusion-text fusion-text-31\"><p>Nachdem das Paket nun installiert wurde, k\u00f6nnen Sie die App mit einem einzigen Befehl von Ihrem Terminal aus starten und in Ihrem Standard-Webbrowser \u00f6ffnen.<\/p>\n<\/div>streamlit_prophet deploy dashboard<div class=\"fusion-text fusion-text-32\"><p>Und schon sind Sie bereit, Prophet-Modelle zu erstellen! Um mit der Modellierung zu beginnen, m\u00fcssen Sie zun\u00e4chst Ihr dataset als csv-Datei mit dem folgenden Format hochladen.<\/p>\n<\/div><img decoding=\"async\" src=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27400%27%20height%3D%270%27%20viewBox%3D%270%200%20400%200%27%3E%3Crect%20width%3D%27400%27%20height%3D%270%27%20fill-opacity%3D%220%22%2F%3E%3C%2Fsvg%3E\" data-orig-src=\"https:\/\/www.artefact.com\/\/wp-content\/uploads\/2021\/09\/article-Maxime-lutel-10.png\" alt=\"Image\" class=\"lazyload artefact-elegant-image align-left hover-enable\" style=\"width: 400px; border-radius: 59% 41% 41% 59% \/ 29% 48% 52% 71%; overflow: hidden;\" width=\"400\" height=\"auto\" \/><div class=\"fusion-text fusion-text-33\"><p>Dann k\u00f6nnen Sie in der Seitenleiste Ihre Spezifikationen angeben, um die Vorverarbeitungsaufgaben durchzuf\u00fchren, die Ihren Anforderungen entsprechen, und die Hyperparameter des Modells einzustellen. Sobald Sie mit den Ergebnissen zufrieden sind, speichern Sie Ihr Experiment, um alle Visualisierungen zu behalten und es sp\u00e4ter leicht reproduzieren zu k\u00f6nnen.<\/p>\n<\/div><div class=\"fusion-title title fusion-title-13 fusion-sep-none fusion-title-text fusion-title-size-three\" style=\"--awb-margin-bottom-small:8px;\"><h3 class=\"fusion-title-heading title-heading-left fusion-responsive-typography-calculated\" style=\"margin:0;--fontSize:20;line-height:1.2;\">Cloud-Bereitstellung<\/h3><\/div><div class=\"fusion-text fusion-text-34\"><p>Wenn Sie die App f\u00fcr mehrere Mitarbeiter leicht zug\u00e4nglich machen m\u00f6chten, ohne dass diese Python herunterladen und das Paket installieren m\u00fcssen, k\u00f6nnen Sie die App auf dem cloud bereitstellen. Als erstes m\u00fcssen Sie das Git-Repository klonen. Anschlie\u00dfend k\u00f6nnen Sie mit einem Docker-Befehl die Anwendung ganz einfach containerisieren und ein Image erstellen, mit dem Sie die App auf der cloud-Plattform Ihrer Wahl bereitstellen k\u00f6nnen. Diese\u00a0<a class=\"bv kl\" href=\"https:\/\/medium.com\/artefact-engineering-and-data-science\/how-to-deploy-and-secure-your-streamlit-app-on-gcp-4ab5fd873ed0\" rel=\"noopener\" target=\"_blank\">Artikel<\/a>\u00a0erkl\u00e4rt im Detail, wie Sie dies auf der Google Cloud Platform tun k\u00f6nnen.<\/p>\n<\/div><div class=\"fusion-text fusion-text-35\"><p>Vielen Dank f\u00fcrs Lesen, ich w\u00fcrde mich \u00fcber Ihr Feedback freuen. Wenn Sie zur Entwicklung des Pakets beitragen m\u00f6chten oder Verbesserungsvorschl\u00e4ge haben, k\u00f6nnen Sie sich gerne an mich wenden. In der Zwischenzeit k\u00f6nnen Sie die\u00a0<a class=\"bv kl\" href=\"https:\/\/github.com\/artefactory-global\/streamlit_prophet\" rel=\"noopener ugc nofollow\" target=\"_blank\">Projekt-Repository<\/a>\u00a0um eine kurze Demo anzusehen und\u00a0<a class=\"bv kl\" href=\"https:\/\/medium.com\/artefact-engineering-and-data-science\" rel=\"noopener\" target=\"_blank\">Artefact technisches Blog<\/a>\u00a0f\u00fcr weitere Informationen \u00fcber unsere data Wissenschaftsprojekte.<\/p>\n<\/div><\/div><\/div><\/div><\/article><div class=\"fusion-fullwidth fullwidth-box fusion-builder-row-5 fusion-flex-container nonhundred-percent-fullwidth non-hundred-percent-height-scrolling\" style=\"--awb-border-radius-top-left:0px;--awb-border-radius-top-right:0px;--awb-border-radius-bottom-right:0px;--awb-border-radius-bottom-left:0px;--awb-margin-top:40px;--awb-margin-bottom:40px;--awb-flex-wrap:wrap;\" ><div class=\"fusion-builder-row fusion-row fusion-flex-align-items-center fusion-flex-justify-content-center fusion-flex-content-wrap\" style=\"max-width:calc( 1440px + 20px );margin-left: calc(-20px \/ 2 );margin-right: calc(-20px \/ 2 );\"><div class=\"fusion-layout-column fusion_builder_column fusion-builder-column-4 fusion_builder_column_1_1 1_1 fusion-flex-column fusion-flex-align-self-center fusion-column-inner-bg-wrapper\" style=\"--awb-padding-top:40px;--awb-padding-right:40px;--awb-padding-bottom:40px;--awb-padding-left:40px;--awb-overflow:hidden;--awb-inner-bg-position:left center;--awb-inner-bg-size:cover;--awb-border-color:rgba(10,17,40,0.1);--awb-border-style:solid;--awb-border-radius:4px 4px 4px 4px;--awb-inner-bg-border-radius:4px 4px 4px 4px;--awb-inner-bg-overflow:hidden;--awb-width-large:100%;--awb-margin-top-large:0px;--awb-spacing-right-large:10px;--awb-margin-bottom-large:0px;--awb-spacing-left-large:10px;--awb-width-medium:100%;--awb-order-medium:0;--awb-spacing-right-medium:10px;--awb-spacing-left-medium:10px;--awb-width-small:100%;--awb-order-small:0;--awb-spacing-right-small:10px;--awb-spacing-left-small:10px;\"><span class=\"fusion-column-inner-bg hover-type-none\"><a class=\"fusion-column-anchor\" href=\"https:\/\/medium.com\/artefact-engineering-and-data-science\/visual-time-series-forecasting-with-streamlit-prophet-71d86a769928\" target=\"_blank\" rel=\"noopener\"><span class=\"fusion-column-inner-bg-image lazyload\" data-bg=\"https:\/\/www.artefact.com\/\/wp-content\/uploads\/2021\/03\/background.jpg\"><\/span><\/a><\/span><div class=\"fusion-column-wrapper fusion-column-has-shadow fusion-flex-justify-content-center fusion-content-layout-column fusion-column-has-bg-image\" data-bg-url=\"https:\/\/www.artefact.com\/\/wp-content\/uploads\/2021\/03\/background.jpg\"><div class=\"fusion-image-element\" style=\"text-align:center;--awb-margin-right:20px;--awb-margin-left:20px;--awb-max-width:150px;--awb-caption-title-font-family:var(--h2_typography-font-family);--awb-caption-title-font-weight:var(--h2_typography-font-weight);--awb-caption-title-font-style:var(--h2_typography-font-style);--awb-caption-title-size:var(--h2_typography-font-size);--awb-caption-title-transform:var(--h2_typography-text-transform);--awb-caption-title-line-height:var(--h2_typography-line-height);--awb-caption-title-letter-spacing:var(--h2_typography-letter-spacing);\"><span class=\"fusion-imageframe imageframe-none imageframe-10 hover-type-none\"><img decoding=\"async\" width=\"72\" height=\"41\" title=\"mittel\" src=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2772%27%20height%3D%2741%27%20viewBox%3D%270%200%2072%2041%27%3E%3Crect%20width%3D%2772%27%20height%3D%2741%27%20fill-opacity%3D%220%22%2F%3E%3C%2Fsvg%3E\" data-orig-src=\"https:\/\/www.artefact.com\/\/wp-content\/uploads\/2021\/03\/medium.png\" alt class=\"lazyload img-responsive wp-image-60927\"\/><\/span><\/div><div class=\"fusion-title title fusion-title-14 fusion-sep-none fusion-title-center fusion-title-text fusion-title-size-three\" style=\"--awb-margin-top:20px;--awb-margin-bottom:0px;--awb-margin-bottom-small:8px;\"><h3 class=\"fusion-title-heading title-heading-center fusion-responsive-typography-calculated\" style=\"margin:0;--fontSize:20;line-height:1.2;\">Mittel Blog von Artefact.<\/h3><\/div><div class=\"fusion-text fusion-text-36\" style=\"--awb-content-alignment:center;\"><p>Dieser Artikel wurde urspr\u00fcnglich ver\u00f6ffentlicht auf <strong>Medium.com<\/strong>.<br \/>\nFolgen Sie uns auf unserem Medium Blog !<\/p>\n<\/div><div style=\"text-align:center;\"><a class=\"fusion-button button-flat button-medium button-default fusion-button-default button-1 fusion-button-default-span fusion-button-default-type\" target=\"_blank\" rel=\"noopener noreferrer\" href=\"https:\/\/medium.com\/artefact-engineering-and-data-science\/visual-time-series-forecasting-with-streamlit-prophet-71d86a769928\"><span class=\"fusion-button-text awb-button__text awb-button__text--default\">Unseren Artikel lesen<\/span><\/a><\/div><\/div><\/div><\/div><\/div><\/p>","protected":false},"excerpt":{"rendered":"<p>22. September 2021<br \/>\nSie brauchen eine Grundlage f\u00fcr Ihr neuestes Projekt zur Zeitreihenprognose? Sie m\u00f6chten einem Unternehmen den Entscheidungsprozess eines Prognosemodells erkl\u00e4ren audience? Sie m\u00f6chten verstehen, ob Autopreise saisonal sind, bevor Sie ein neues Auto kaufen? Wir haben vielleicht etwas f\u00fcr Sie! In diesem Artikel stellen wir Ihnen Streamlit Prophet vor, eine Web-App, mit der Wissenschaftler data Prognosemodelle auf visuelle Weise trainieren, bewerten und optimieren k\u00f6nnen. Die Vorhersagen werden mit Prophet erstellt, einem schnellen und leicht interpretierbaren Modell.<\/p>","protected":false},"featured_media":68689,"parent":0,"template":"","meta":{"_acf_changed":false,"ep_exclude_from_search":false},"blog-category":[21939],"blog-language":[2991],"class_list":["post-63295","blog","type-blog","status-publish","has-post-thumbnail","hentry","blog-category-medium","blog-language-en"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.artefact.com\/de\/wp-json\/wp\/v2\/blog\/63295","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.artefact.com\/de\/wp-json\/wp\/v2\/blog"}],"about":[{"href":"https:\/\/www.artefact.com\/de\/wp-json\/wp\/v2\/types\/blog"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.artefact.com\/de\/wp-json\/wp\/v2\/media\/68689"}],"wp:attachment":[{"href":"https:\/\/www.artefact.com\/de\/wp-json\/wp\/v2\/media?parent=63295"}],"wp:term":[{"taxonomy":"blog-category","embeddable":true,"href":"https:\/\/www.artefact.com\/de\/wp-json\/wp\/v2\/blog-category?post=63295"},{"taxonomy":"blog-language","embeddable":true,"href":"https:\/\/www.artefact.com\/de\/wp-json\/wp\/v2\/blog-language?post=63295"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}