Last active
September 22, 2020 00:29
-
-
Save nabinno/4bc6c3fc3002fa101e48e9ba00d349dd to your computer and use it in GitHub Desktop.
『仕事ではじめる機械学習』より
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" standalone="no"?><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" contentScriptType="application/ecmascript" contentStyleType="text/css" height="533px" preserveAspectRatio="none" style="width:587px;height:533px;background:#EEEEEE;" version="1.1" viewBox="0 0 587 533" width="587px" zoomAndPan="magnify"><defs><filter height="300%" id="f13z9g8lckpqzx" width="300%" x="-1" y="-1"><feGaussianBlur result="blurOut" stdDeviation="2.0"/><feColorMatrix in="blurOut" result="blurOut2" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .4 0"/><feOffset dx="4.0" dy="4.0" in="blurOut2" result="blurOut3"/><feBlend in="SourceGraphic" in2="blurOut3" mode="normal"/></filter></defs><g><rect fill="#FFFFFF" filter="url(#f13z9g8lckpqzx)" height="130.5313" style="stroke: #383838; stroke-width: 1.0;" width="10" x="77" y="156.6953"/><rect fill="#FFFFFF" filter="url(#f13z9g8lckpqzx)" height="86.2656" style="stroke: #383838; stroke-width: 1.0;" width="10" x="258.5" y="200.9609"/><rect fill="#FFFFFF" filter="url(#f13z9g8lckpqzx)" height="29.1328" style="stroke: #383838; stroke-width: 1.0;" width="10" x="362" y="214.9609"/><rect fill="#FFFFFF" filter="url(#f13z9g8lckpqzx)" height="29.1328" style="stroke: #383838; stroke-width: 1.0;" width="10" x="362" y="362.625"/><rect fill="#FFFFFF" filter="url(#f13z9g8lckpqzx)" height="14" style="stroke: #383838; stroke-width: 1.0;" width="10" x="456" y="244.0938"/><rect fill="#FFFFFF" filter="url(#f13z9g8lckpqzx)" height="29.1328" style="stroke: #383838; stroke-width: 1.0;" width="10" x="537" y="391.7578"/><rect fill="#EEEEEE" filter="url(#f13z9g8lckpqzx)" height="191.9297" style="stroke: #000000; stroke-width: 2.0;" width="504" x="13" y="103.2969"/><rect fill="#EEEEEE" filter="url(#f13z9g8lckpqzx)" height="119.6641" style="stroke: #000000; stroke-width: 2.0;" width="424" x="152" y="309.2266"/><line style="stroke: #383838; stroke-width: 1.0; stroke-dasharray: 5.0,5.0;" x1="82" x2="82" y1="86.2969" y2="445.8906"/><line style="stroke: #383838; stroke-width: 1.0; stroke-dasharray: 5.0,5.0;" x1="180" x2="180" y1="86.2969" y2="445.8906"/><line style="stroke: #383838; stroke-width: 1.0; stroke-dasharray: 5.0,5.0;" x1="263" x2="263" y1="86.2969" y2="445.8906"/><line style="stroke: #383838; stroke-width: 1.0; stroke-dasharray: 5.0,5.0;" x1="367" x2="367" y1="86.2969" y2="445.8906"/><line style="stroke: #383838; stroke-width: 1.0; stroke-dasharray: 5.0,5.0;" x1="461" x2="461" y1="86.2969" y2="445.8906"/><line style="stroke: #383838; stroke-width: 1.0; stroke-dasharray: 5.0,5.0;" x1="542" x2="542" y1="86.2969" y2="445.8906"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacingAndGlyphs" textLength="112" x="23" y="82.9951">アプリケーション</text><ellipse cx="82" cy="13" fill="#F8F8F8" filter="url(#f13z9g8lckpqzx)" rx="8" ry="8" style="stroke: #383838; stroke-width: 2.0;"/><path d="M82,21 L82,48 M69,29 L95,29 M82,48 L69,63 M82,48 L95,63 " fill="none" filter="url(#f13z9g8lckpqzx)" style="stroke: #383838; stroke-width: 2.0;"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacingAndGlyphs" textLength="112" x="23" y="457.8857">アプリケーション</text><ellipse cx="82" cy="471.1875" fill="#F8F8F8" filter="url(#f13z9g8lckpqzx)" rx="8" ry="8" style="stroke: #383838; stroke-width: 2.0;"/><path d="M82,479.1875 L82,506.1875 M69,487.1875 L95,487.1875 M82,506.1875 L69,521.1875 M82,506.1875 L95,521.1875 " fill="none" filter="url(#f13z9g8lckpqzx)" style="stroke: #383838; stroke-width: 2.0;"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacingAndGlyphs" textLength="21" x="166.5" y="82.9951">DB</text><path d="M162,34 C162,24 180,24 180,24 C180,24 198,24 198,34 L198,60 C198,70 180,70 180,70 C180,70 162,70 162,60 L162,34 " fill="#F8F8F8" filter="url(#f13z9g8lckpqzx)" style="stroke: #000000; stroke-width: 1.5;"/><path d="M162,34 C162,44 180,44 180,44 C180,44 198,44 198,34 " fill="none" style="stroke: #000000; stroke-width: 1.5;"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacingAndGlyphs" textLength="21" x="166.5" y="457.8857">DB</text><path d="M162,471.1875 C162,461.1875 180,461.1875 180,461.1875 C180,461.1875 198,461.1875 198,471.1875 L198,497.1875 C198,507.1875 180,507.1875 180,507.1875 C180,507.1875 162,507.1875 162,497.1875 L162,471.1875 " fill="#F8F8F8" filter="url(#f13z9g8lckpqzx)" style="stroke: #000000; stroke-width: 1.5;"/><path d="M162,471.1875 C162,481.1875 180,481.1875 180,481.1875 C180,481.1875 198,481.1875 198,471.1875 " fill="none" style="stroke: #000000; stroke-width: 1.5;"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacingAndGlyphs" textLength="105" x="208" y="82.9951">予測APIサーバー</text><ellipse cx="263.5" cy="13" fill="#F8F8F8" filter="url(#f13z9g8lckpqzx)" rx="8" ry="8" style="stroke: #383838; stroke-width: 2.0;"/><path d="M263.5,21 L263.5,48 M250.5,29 L276.5,29 M263.5,48 L250.5,63 M263.5,48 L276.5,63 " fill="none" filter="url(#f13z9g8lckpqzx)" style="stroke: #383838; stroke-width: 2.0;"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacingAndGlyphs" textLength="105" x="208" y="457.8857">予測APIサーバー</text><ellipse cx="263.5" cy="471.1875" fill="#F8F8F8" filter="url(#f13z9g8lckpqzx)" rx="8" ry="8" style="stroke: #383838; stroke-width: 2.0;"/><path d="M263.5,479.1875 L263.5,506.1875 M250.5,487.1875 L276.5,487.1875 M263.5,506.1875 L250.5,521.1875 M263.5,506.1875 L276.5,521.1875 " fill="none" filter="url(#f13z9g8lckpqzx)" style="stroke: #383838; stroke-width: 2.0;"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacingAndGlyphs" textLength="70" x="329" y="82.9951">特徴抽出器</text><ellipse cx="367" cy="54" fill="#F8F8F8" filter="url(#f13z9g8lckpqzx)" rx="12" ry="12" style="stroke: #383838; stroke-width: 2.0;"/><polygon fill="#383838" points="363,42,369,37,367,42,369,47,363,42" style="stroke: #383838; stroke-width: 1.0;"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacingAndGlyphs" textLength="70" x="329" y="457.8857">特徴抽出器</text><ellipse cx="367" cy="477.1875" fill="#F8F8F8" filter="url(#f13z9g8lckpqzx)" rx="12" ry="12" style="stroke: #383838; stroke-width: 2.0;"/><polygon fill="#383838" points="363,465.1875,369,460.1875,367,465.1875,369,470.1875,363,465.1875" style="stroke: #383838; stroke-width: 1.0;"/><rect fill="#F8F8F8" filter="url(#f13z9g8lckpqzx)" height="30.2969" style="stroke: #383838; stroke-width: 1.5;" width="84" x="419" y="47"/><rect fill="#F8F8F8" filter="url(#f13z9g8lckpqzx)" height="30.2969" style="stroke: #383838; stroke-width: 1.5;" width="84" x="415" y="51"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacingAndGlyphs" textLength="70" x="422" y="70.9951">予測モデル</text><rect fill="#F8F8F8" filter="url(#f13z9g8lckpqzx)" height="30.2969" style="stroke: #383838; stroke-width: 1.5;" width="84" x="419" y="444.8906"/><rect fill="#F8F8F8" filter="url(#f13z9g8lckpqzx)" height="30.2969" style="stroke: #383838; stroke-width: 1.5;" width="84" x="415" y="448.8906"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacingAndGlyphs" textLength="70" x="422" y="468.8857">予測モデル</text><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacingAndGlyphs" textLength="42" x="518" y="82.9951">学習器</text><ellipse cx="542" cy="54" fill="#F8F8F8" filter="url(#f13z9g8lckpqzx)" rx="12" ry="12" style="stroke: #383838; stroke-width: 2.0;"/><polygon fill="#383838" points="538,42,544,37,542,42,544,47,538,42" style="stroke: #383838; stroke-width: 1.0;"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacingAndGlyphs" textLength="42" x="518" y="457.8857">学習器</text><ellipse cx="542" cy="477.1875" fill="#F8F8F8" filter="url(#f13z9g8lckpqzx)" rx="12" ry="12" style="stroke: #383838; stroke-width: 2.0;"/><polygon fill="#383838" points="538,465.1875,544,460.1875,542,465.1875,544,470.1875,538,465.1875" style="stroke: #383838; stroke-width: 1.0;"/><rect fill="#FFFFFF" filter="url(#f13z9g8lckpqzx)" height="130.5313" style="stroke: #383838; stroke-width: 1.0;" width="10" x="77" y="156.6953"/><rect fill="#FFFFFF" filter="url(#f13z9g8lckpqzx)" height="86.2656" style="stroke: #383838; stroke-width: 1.0;" width="10" x="258.5" y="200.9609"/><rect fill="#FFFFFF" filter="url(#f13z9g8lckpqzx)" height="29.1328" style="stroke: #383838; stroke-width: 1.0;" width="10" x="362" y="214.9609"/><rect fill="#FFFFFF" filter="url(#f13z9g8lckpqzx)" height="29.1328" style="stroke: #383838; stroke-width: 1.0;" width="10" x="362" y="362.625"/><rect fill="#FFFFFF" filter="url(#f13z9g8lckpqzx)" height="14" style="stroke: #383838; stroke-width: 1.0;" width="10" x="456" y="244.0938"/><rect fill="#FFFFFF" filter="url(#f13z9g8lckpqzx)" height="29.1328" style="stroke: #383838; stroke-width: 1.0;" width="10" x="537" y="391.7578"/><path d="M13,103.2969 L86,103.2969 L86,110.2969 L76,120.2969 L13,120.2969 L13,103.2969 " fill="#EEEEEE" style="stroke: #000000; stroke-width: 1.0;"/><rect fill="none" height="191.9297" style="stroke: #000000; stroke-width: 2.0;" width="504" x="13" y="103.2969"/><text fill="#000000" font-family="sans-serif" font-size="13" font-weight="bold" lengthAdjust="spacingAndGlyphs" textLength="28" x="28" y="116.3638">予測</text><polygon fill="#383838" points="98,152.6953,88,156.6953,98,160.6953,94,156.6953" style="stroke: #383838; stroke-width: 1.0;"/><polygon fill="#383838" points="168,152.6953,178,156.6953,168,160.6953,172,156.6953" style="stroke: #383838; stroke-width: 1.0;"/><line style="stroke: #383838; stroke-width: 1.0;" x1="92" x2="174" y1="156.6953" y2="156.6953"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="74" x="104" y="136.4966">- ユーザーID</text><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="48" x="104" y="151.6294">- 商品ID</text><polygon fill="#383838" points="246.5,196.9609,256.5,200.9609,246.5,204.9609,250.5,200.9609" style="stroke: #383838; stroke-width: 1.0;"/><line style="stroke: #383838; stroke-width: 1.0;" x1="87" x2="252.5" y1="200.9609" y2="200.9609"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="74" x="94" y="180.7622">- ユーザーID</text><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="48" x="94" y="195.895">- 商品ID</text><polygon fill="#383838" points="350,210.9609,360,214.9609,350,218.9609,354,214.9609" style="stroke: #383838; stroke-width: 1.0;"/><line style="stroke: #383838; stroke-width: 1.0;" x1="268.5" x2="356" y1="214.9609" y2="214.9609"/><polygon fill="#383838" points="444,240.0938,454,244.0938,444,248.0938,448,244.0938" style="stroke: #383838; stroke-width: 1.0;"/><line style="stroke: #383838; stroke-width: 1.0;" x1="367" x2="450" y1="244.0938" y2="244.0938"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="39" x="374" y="239.0278">特徴量</text><polygon fill="#383838" points="279.5,254.0938,269.5,258.0938,279.5,262.0938,275.5,258.0938" style="stroke: #383838; stroke-width: 1.0;"/><line style="stroke: #383838; stroke-width: 1.0;" x1="273.5" x2="460" y1="258.0938" y2="258.0938"/><polygon fill="#383838" points="93,283.2266,83,287.2266,93,291.2266,89,287.2266" style="stroke: #383838; stroke-width: 1.0;"/><line style="stroke: #383838; stroke-width: 1.0;" x1="87" x2="262.5" y1="287.2266" y2="287.2266"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="52" x="99" y="282.1606">予測結果</text><path d="M152,309.2266 L267,309.2266 L267,316.2266 L257,326.2266 L152,326.2266 L152,309.2266 " fill="#EEEEEE" style="stroke: #000000; stroke-width: 1.0;"/><rect fill="none" height="119.6641" style="stroke: #000000; stroke-width: 2.0;" width="424" x="152" y="309.2266"/><text fill="#000000" font-family="sans-serif" font-size="13" font-weight="bold" lengthAdjust="spacingAndGlyphs" textLength="70" x="167" y="322.2935">学習バッチ</text><polygon fill="#383838" points="350,358.625,360,362.625,350,366.625,354,362.625" style="stroke: #383838; stroke-width: 1.0;"/><line style="stroke: #383838; stroke-width: 1.0;" x1="180" x2="356" y1="362.625" y2="362.625"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="35" x="187" y="342.4263">- ログ</text><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="87" x="187" y="357.5591">- ユーザー情報</text><polygon fill="#383838" points="525,387.7578,535,391.7578,525,395.7578,529,391.7578" style="stroke: #383838; stroke-width: 1.0;"/><line style="stroke: #383838; stroke-width: 1.0;" x1="367" x2="531" y1="391.7578" y2="391.7578"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="39" x="374" y="386.6919">特徴量</text><polygon fill="#383838" points="472,416.8906,462,420.8906,472,424.8906,468,420.8906" style="stroke: #383838; stroke-width: 1.0;"/><line style="stroke: #383838; stroke-width: 1.0;" x1="466" x2="541" y1="420.8906" y2="420.8906"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="52" x="478" y="415.8247">学習結果</text><!--MD5=[3334f9c886283c7173e16feee3af27c5] | |
@startuml | |
skinparam monochrome true | |
skinparam backgroundColor #EEEEEE | |
actor アプリケーション as A | |
database DB as D | |
actor 予測APIサーバー as P | |
control 特徴抽出器 as F | |
collections 予測モデル as M | |
control 学習器 as L | |
group 予測 | |
A <-> D: - ユーザーID\n- 商品ID | |
activate A | |
A -> P: - ユーザーID\n- 商品ID | |
activate P | |
P -> F | |
activate F | |
F -> M: 特徴量 | |
deactivate F | |
activate M | |
M -> P | |
deactivate M | |
P -> A: 予測結果 | |
deactivate P | |
deactivate A | |
end | |
group 学習バッチ | |
D -> F: - ログ\n- ユーザー情報 | |
activate F | |
F -> L: 特徴量 | |
deactivate F | |
activate L | |
L -> M: 学習結果 | |
deactivate L | |
end | |
@enduml | |
PlantUML version 1.2019.12(Sun Nov 03 10:24:54 UTC 2019) | |
(GPL source distribution) | |
Java Runtime: OpenJDK Runtime Environment | |
JVM: OpenJDK 64-Bit Server VM | |
Java Version: 1.8.0_232-heroku-b09 | |
Operating System: Linux | |
Default Encoding: UTF-8 | |
Language: en | |
Country: US | |
--></g></svg> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@startuml | |
skinparam monochrome true | |
skinparam backgroundColor #EEEEEE | |
actor アプリケーション as A | |
database DB as D | |
actor 予測APIサーバー as P | |
control 特徴抽出器 as F | |
collections 予測モデル as M | |
control 学習器 as L | |
group 予測 | |
A <-> D: - ユーザーID\n- 商品ID | |
activate A | |
A -> P: - ユーザーID\n- 商品ID | |
activate P | |
P -> F | |
activate F | |
F -> M: 特徴量 | |
deactivate F | |
activate M | |
M -> P | |
deactivate M | |
P -> A: 予測結果 | |
deactivate P | |
deactivate A | |
end | |
group 学習バッチ | |
D -> F: - ログ\n- ユーザー情報 | |
activate F | |
F -> L: 特徴量 | |
deactivate F | |
activate L | |
L -> M: 学習結果 | |
deactivate L | |
end | |
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@startuml | |
skinparam monochrome true | |
skinparam backgroundColor #EEEEEE | |
actor アプリケーション as A | |
database DB as D | |
actor 予測APIサーバー as P | |
control 特徴抽出器 as F | |
collections 予測モデル as M | |
control 学習器 as L | |
group 予測参照 | |
A <-> D | |
end | |
group 予測バッチ | |
D -> F: - ログ\n- ユーザー情報 | |
activate D | |
activate F | |
F -> M: 特徴量 | |
deactivate F | |
activate M | |
M -> D: 予測結果 | |
deactivate M | |
deactivate D | |
end | |
group 学習バッチ | |
D -> F: - ログ\n- ユーザー情報 | |
activate F | |
F -> L: 特徴量 | |
deactivate F | |
activate L | |
L -> M: 学習結果 | |
deactivate L | |
end | |
@enduml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment