|
3 | 3 | <head> |
4 | 4 | <meta charset="utf-8"> |
5 | 5 | <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes"> |
| 6 | +<meta name="generator" content="litedown 0.7"> |
6 | 7 | <title></title> |
7 | 8 | <style type="text/css"> |
8 | | -/** |
9 | | - * Prism.s theme ported from highlight.js's xcode style |
10 | | - */ |
11 | | -pre code { |
12 | | - padding: 1em; |
13 | | -} |
14 | | -.token.comment { |
15 | | - color: #007400; |
16 | | -} |
17 | | -.token.punctuation { |
18 | | - color: #999; |
19 | | -} |
20 | | -.token.tag, |
21 | | -.token.selector { |
22 | | - color: #aa0d91; |
23 | | -} |
24 | | -.token.boolean, |
25 | | -.token.number, |
26 | | -.token.constant, |
27 | | -.token.symbol { |
28 | | - color: #1c00cf; |
29 | | -} |
30 | | -.token.property, |
31 | | -.token.attr-name, |
32 | | -.token.string, |
33 | | -.token.char, |
34 | | -.token.builtin { |
35 | | - color: #c41a16; |
36 | | -} |
37 | | -.token.inserted { |
38 | | - background-color: #ccffd8; |
39 | | -} |
40 | | -.token.deleted { |
41 | | - background-color: #ffebe9; |
42 | | -} |
43 | | -.token.operator, |
44 | | -.token.entity, |
45 | | -.token.url, |
46 | | -.language-css .token.string, |
47 | | -.style .token.string { |
48 | | - color: #9a6e3a; |
49 | | -} |
50 | | -.token.atrule, |
51 | | -.token.attr-value, |
52 | | -.token.keyword { |
53 | | - color: #836c28; |
54 | | -} |
55 | | -.token.function, |
56 | | -.token.class-name { |
57 | | - color: #DD4A68; |
58 | | -} |
59 | | -.token.regex, |
60 | | -.token.important, |
61 | | -.token.variable { |
62 | | - color: #5c2699; |
63 | | -} |
64 | | -.token.important, |
65 | | -.token.bold { |
66 | | - font-weight: bold; |
67 | | -} |
68 | | -.token.italic { |
69 | | - font-style: italic; |
70 | | -} |
71 | | -</style> |
72 | | -<style type="text/css"> |
73 | 9 | body { |
74 | 10 | font-family: sans-serif; |
75 | 11 | max-width: 800px; |
76 | 12 | margin: auto; |
77 | 13 | padding: 1em; |
78 | 14 | line-height: 1.5; |
79 | | - box-sizing: border-box; |
| 15 | + print-color-adjust: exact; |
| 16 | + -webkit-print-color-adjust: exact; |
80 | 17 | } |
81 | | -body, .footnotes, code { font-size: .9em; } |
| 18 | +body, .abstract, code, .footnotes, footer, #refs, .caption { font-size: .9em; } |
82 | 19 | li li { font-size: .95em; } |
83 | | -*, *:before, *:after { |
84 | | - box-sizing: inherit; |
85 | | -} |
| 20 | +ul:has(li > input[type="checkbox"]) { list-style: none; padding-left: 1em; } |
| 21 | +*, :before, :after { box-sizing: border-box; } |
| 22 | +a { color: steelblue; } |
86 | 23 | pre, img { max-width: 100%; } |
87 | | -pre, pre:hover { |
88 | | - white-space: pre-wrap; |
89 | | - word-break: break-all; |
90 | | -} |
91 | | -pre code { |
92 | | - display: block; |
93 | | - overflow-x: auto; |
94 | | -} |
| 24 | +pre { white-space: pre-wrap; word-break: break-word; } |
| 25 | +pre code { display: block; padding: 1em; overflow-x: auto; } |
95 | 26 | code { font-family: 'DejaVu Sans Mono', 'Droid Sans Mono', 'Lucida Console', Consolas, Monaco, monospace; } |
96 | | -:not(pre) > code, code[class] { background-color: #F8F8F8; } |
97 | | -code.language-undefined, pre > code:not([class]) { |
98 | | - background-color: inherit; |
99 | | - border: 1px solid #eee; |
100 | | -} |
| 27 | +:not(pre, th) > code, code[class], div > .caption { background: #f8f8f8; } |
| 28 | +pre > code:is(:not([class]), .language-plain, .language-none, .plain), .box, .figure, .table { background: inherit; border: 1px solid #eee; } |
| 29 | +pre > code { |
| 30 | + &.message { border-color: #9eeaf9; } |
| 31 | + &.warning { background: #fff3cd; border-color: #fff3cd; } |
| 32 | + &.error { background: #f8d7da; border-color: #f8d7da; } |
| 33 | +} |
| 34 | +.fenced-chunk { border-left: 1px solid #666; } |
| 35 | +.code-fence { |
| 36 | + opacity: .4; |
| 37 | + border: 1px dashed #666; |
| 38 | + border-left: 2px solid; |
| 39 | + &:hover { opacity: inherit; } |
| 40 | +} |
| 41 | +.box, .figure, .table, table { margin: 1em auto; } |
| 42 | +div > .caption { padding: 1px 1em; } |
| 43 | +.figure { p:has(img, svg), pre:has(svg) { text-align: center; } } |
| 44 | +.flex-col { display: flex; justify-content: space-between; } |
101 | 45 | table { |
102 | | - margin: auto; |
103 | | - border-top: 1px solid #666; |
| 46 | + &:only-child:not(.table > *) { margin: auto; } |
| 47 | + th, td { padding: 5px; font-variant-numeric: tabular-nums; } |
| 48 | + thead, tfoot, tr:nth-child(even) { background: whitesmoke; } |
| 49 | + thead th { border-bottom: 1px solid #ddd; } |
| 50 | + &:not(.datatable-table) { |
| 51 | + border-top: 1px solid #666; |
| 52 | + border-bottom: 1px solid #666; |
| 53 | + } |
104 | 54 | } |
105 | | -table thead th { border-bottom: 1px solid #ddd; } |
106 | | -th, td { padding: 5px; } |
107 | | -thead, tfoot, tr:nth-child(even) { background: #eee; } |
108 | 55 | blockquote { |
109 | 56 | color: #666; |
110 | 57 | margin: 0; |
111 | | - padding-left: 1em; |
112 | | - border-left: 0.5em solid #eee; |
| 58 | + padding: 1px 1em; |
| 59 | + border-left: .5em solid #eee; |
113 | 60 | } |
114 | 61 | hr, .footnotes::before { border: 1px dashed #ddd; } |
115 | 62 | .frontmatter { text-align: center; } |
116 | | -#TOC .numbered li { list-style: none; } |
117 | | -#TOC .numbered { padding-left: 0; } |
118 | | -#TOC .numbered ul { padding-left: 1em; } |
119 | | -table, .body h2 { border-bottom: 1px solid #666; } |
| 63 | +#TOC { |
| 64 | + a { text-decoration: none; } |
| 65 | + ul { list-style: none; padding-left: 1em; } |
| 66 | + & > ul { padding: 0; } |
| 67 | + ul ul { border-left: 1px solid lightsteelblue; } |
| 68 | +} |
| 69 | +.body h2 { border-bottom: 1px solid #666; } |
120 | 70 | .body .appendix, .appendix ~ h2 { border-bottom-style: dashed; } |
121 | | -.footnote-ref a::before { content: "["; } |
122 | | -.footnote-ref a::after { content: "]"; } |
123 | | -section.footnotes::before { |
124 | | - content: ""; |
125 | | - display: block; |
126 | | - max-width: 20em; |
| 71 | +.main-number::after { content: "."; } |
| 72 | +span[class^="ref-number-"] { font-weight: bold; } |
| 73 | +.ref-number-fig::after, .ref-number-tab::after { content: ":"; } |
| 74 | +.cross-ref-chp::before { content: "Chapter "; } |
| 75 | +.cross-ref-sec::before { content: "Section "; } |
| 76 | +.cross-ref-fig::before, .ref-number-fig::before { content: "Figure "; } |
| 77 | +.cross-ref-tab::before, .ref-number-tab::before { content: "Table "; } |
| 78 | +.cross-ref-eqn::before, .MathJax_ref:has(mjx-mtext > mjx-c + mjx-c)::before { content: "Equation "; } |
| 79 | +.abstract, #refs { |
| 80 | + &::before { display: block; margin: 1em auto; font-weight: bold; } |
| 81 | +} |
| 82 | +.abstract::before { content: "Abstract"; text-align: center; } |
| 83 | +#refs::before { content: "Bibliography"; font-size: 1.5em; } |
| 84 | +.ref-paren-open::before { content: "("; } |
| 85 | +.ref-paren-close::after { content: ")"; } |
| 86 | +.ref-semicolon::after { content: "; "; } |
| 87 | +.ref-and::after { content: " and "; } |
| 88 | +.ref-et-al::after { content: " et al."; font-style: italic; } |
| 89 | +.footnote-ref a { |
| 90 | + &::before { content: "["; } |
| 91 | + &::after { content: "]"; } |
| 92 | +} |
| 93 | +section.footnotes { |
| 94 | + margin-top: 2em; |
| 95 | + &::before { content: ""; display: block; max-width: 20em; } |
| 96 | +} |
| 97 | +.fade { |
| 98 | + background: repeating-linear-gradient(135deg, white, white 30px, #ddd 32px, #ddd 32px); |
| 99 | + opacity: 0.6; |
127 | 100 | } |
128 | 101 |
|
129 | 102 | @media print { |
130 | | - body { |
131 | | - font-size: 12pt; |
132 | | - max-width: 100%; |
133 | | - } |
134 | | - tr, img { page-break-inside: avoid; } |
| 103 | + body { max-width: 100%; } |
| 104 | + tr, img { break-inside: avoid; } |
135 | 105 | } |
136 | 106 | @media only screen and (min-width: 992px) { |
137 | | - pre { white-space: pre; } |
| 107 | + body:not(.pagesjs) pre:has(.line-numbers):not(:hover) { white-space: pre; } |
138 | 108 | } |
139 | 109 | </style> |
| 110 | +<link rel=" stylesheet" href=" https://cdn.jsdelivr.net/npm/@xiee/[email protected]/css/prism-xcode.min.css" > |
| 111 | +<script src=" https://cdn.jsdelivr.net/npm/[email protected]/components/prism-core.min.js" defer></script> |
| 112 | +<script src=" https://cdn.jsdelivr.net/npm/[email protected]/plugins/autoloader/prism-autoloader.min.js" defer></script> |
140 | 113 | </head> |
141 | 114 | <body> |
142 | 115 | <div class="frontmatter"> |
143 | | -<div class="title"><h1></h1></div> |
144 | | -<div class="author"><h2></h2></div> |
145 | | -<div class="date"><h3></h3></div> |
146 | 116 | </div> |
147 | 117 | <div class="body"> |
148 | 118 | <pre><code class="language-r">library(neuralnet) |
|
165 | 135 | </code></pre> |
166 | 136 | <pre><code class="language-r">concrete_train<-concrete[1:773,] |
167 | 137 | </code></pre> |
168 | | -<pre><code>## Error in eval(expr, envir, enclos): object 'concrete' not found |
| 138 | +<pre><code>## Error: object 'concrete' not found |
169 | 139 | </code></pre> |
170 | 140 | <pre><code class="language-r">concrete_test<-concrete[774:1030,] |
171 | 141 | </code></pre> |
172 | | -<pre><code>## Error in eval(expr, envir, enclos): object 'concrete' not found |
| 142 | +<pre><code>## Error: object 'concrete' not found |
173 | 143 | </code></pre> |
174 | 144 | <pre><code class="language-r">concrete_model<-neuralnet(strength~cement+slag+ash+water+superplastic+coarseagg+fineagg+age,data = concrete_train,hidden = 5) |
175 | 145 | </code></pre> |
|
181 | 151 | </code></pre> |
182 | 152 | <pre><code class="language-r">x=model_res$net.result |
183 | 153 | </code></pre> |
184 | | -<pre><code>## Error in eval(expr, envir, enclos): object 'model_res' not found |
| 154 | +<pre><code>## Error: object 'model_res' not found |
185 | 155 | </code></pre> |
186 | 156 | <pre><code class="language-r">y=concrete_test$strength |
187 | 157 | </code></pre> |
188 | | -<pre><code>## Error in eval(expr, envir, enclos): object 'concrete_test' not found |
| 158 | +<pre><code>## Error: object 'concrete_test' not found |
189 | 159 | </code></pre> |
190 | 160 | <pre><code class="language-r">cor(x,y) |
191 | 161 | </code></pre> |
|
196 | 166 | <pre><code>## Error in plot(concrete_model): object 'concrete_model' not found |
197 | 167 | </code></pre> |
198 | 168 | </div> |
199 | | -<script src=" https://cdn.jsdelivr.net/npm/[email protected]/components/prism-core.min.js" defer></script> |
200 | | -<script src=" https://cdn.jsdelivr.net/npm/[email protected]/plugins/autoloader/prism-autoloader.min.js" defer></script> |
201 | 169 | </body> |
202 | 170 | </html> |
0 commit comments