|
157 | 157 | <center> |
158 | 158 | <img src="/assets/imgs/square_r_4.png" width="100" align="left" /> |
159 | 159 | <h1> MLEnd Happiness </h1> |
160 | | -<h3>...</h3> |
| 160 | +<h3> Happiness with demographic</h3> |
161 | 161 |
|
162 | 162 | </center> |
163 | 163 | <div class="divider-10"></div> |
164 | 164 | <hr /> |
165 | 165 |
|
166 | | -<div class="alert alert-primary" role="alert"> |
| 166 | +<!-- <div class="alert alert-primary" role=alert> |
167 | 167 | <h3>Will be updated soon ...</h3> |
168 | | -</div> |
| 168 | +</div> --> |
169 | 169 | <p><img src="/assets/imgs/happiness_cover.png" width="30%" align="right" /></p> |
170 | 170 |
|
171 | 171 | <div class="section" id="projects-list"> |
172 | 172 | <div class="container"> |
173 | 173 | <h3 style="font-weight:600; font-family: sans-serif;"> About Dataset <div style="float:right"><span></span></div> |
174 | 174 | </h3> <br style="line-height:200%;" /> |
| 175 | +</div> |
| 176 | +</div> |
| 177 | + |
| 178 | +<h3 style="font-weight:600; font-family: sans-serif;"> Sample of data <div style="float:right"><span></span></div> |
| 179 | + |
| 180 | +<article class="markdown-body entry-content" itemprop="text"> |
| 181 | +<div style="font-size:70%;margin-left:-100px;"> |
| 182 | +<!-- <font size=2> --> |
| 183 | +<table border="1"> |
| 184 | + <thead> |
| 185 | + <tr style="text-align: center;"> |
| 186 | + <th>Age</th> |
| 187 | + <th>Height</th> |
| 188 | + <th>Weight</th> |
| 189 | + <th>EducationLevel</th> |
| 190 | + <th>NumberOfLanguages</th> |
| 191 | + <th>LikeVollyball</th> |
| 192 | + <th>LikeTableTennis</th> |
| 193 | + <th>FavouriteMovie</th> |
| 194 | + <th>Province</th> |
| 195 | + <th>HappinessLevel</th> |
| 196 | + </tr> |
| 197 | + </thead> |
| 198 | + <tbody> |
| 199 | + <tr> |
| 200 | + <td>48.0</td> |
| 201 | + <td>162.0</td> |
| 202 | + <td>61.0</td> |
| 203 | + <td>Undergraduate Degree (UG)</td> |
| 204 | + <td>3</td> |
| 205 | + <td>False</td> |
| 206 | + <td>True</td> |
| 207 | + <td>The Lord of the Rings</td> |
| 208 | + <td>Henan</td> |
| 209 | + <td>9.0</td> |
| 210 | + </tr> |
| 211 | + <tr> |
| 212 | + <td>48.0</td> |
| 213 | + <td>172.0</td> |
| 214 | + <td>65.0</td> |
| 215 | + <td>Postgraduate/ Master's Degree (PG)</td> |
| 216 | + <td>3</td> |
| 217 | + <td>True</td> |
| 218 | + <td>True</td> |
| 219 | + <td>Wolf Warriors</td> |
| 220 | + <td>Henan</td> |
| 221 | + <td>10.0</td> |
| 222 | + </tr> |
| 223 | + <tr> |
| 224 | + <td>19.0</td> |
| 225 | + <td>169.0</td> |
| 226 | + <td>61.0</td> |
| 227 | + <td>Undergraduate Degree (UG)</td> |
| 228 | + <td>2</td> |
| 229 | + <td>True</td> |
| 230 | + <td>False</td> |
| 231 | + <td>Guardians of the Galaxy</td> |
| 232 | + <td>Henan</td> |
| 233 | + <td>9.0</td> |
| 234 | + </tr> |
| 235 | + <tr> |
| 236 | + <td>18.0</td> |
| 237 | + <td>176.0</td> |
| 238 | + <td>95.0</td> |
| 239 | + <td>Undergraduate Degree (UG)</td> |
| 240 | + <td>2</td> |
| 241 | + <td>True</td> |
| 242 | + <td>True</td> |
| 243 | + <td>Fast & Furious</td> |
| 244 | + <td>Liaoning</td> |
| 245 | + <td>8.0</td> |
| 246 | + </tr> |
| 247 | + <tr> |
| 248 | + <td>18.0</td> |
| 249 | + <td>168.0</td> |
| 250 | + <td>52.0</td> |
| 251 | + <td>Undergraduate Degree (UG)</td> |
| 252 | + <td>2</td> |
| 253 | + <td>False</td> |
| 254 | + <td>False</td> |
| 255 | + <td>The Wandering Earth</td> |
| 256 | + <td>Tianjin</td> |
| 257 | + <td>8.0</td> |
| 258 | + </tr> |
| 259 | + </tbody> |
| 260 | +</table> |
| 261 | +<!-- </font> --> |
| 262 | +</div> |
| 263 | +</article> |
| 264 | + |
| 265 | +<hr /> |
| 266 | +<h3 style="font-weight:600; font-family: sans-serif;"> Download Data</h3> |
| 267 | + |
| 268 | +<h4 style="font-weight:600; font-family: sans-serif;"> Install mlend (>1.0.0.2)</h4> |
| 269 | + |
| 270 | +To download the Yummy dataset, first step is to install <a href="https://pypi.org/project/mlend" target="_blank"><code>mlend</code></a> library. Use pip to install library. |
| 271 | +<br /> |
| 272 | +<br /> |
| 273 | + |
| 274 | +<pre><code>pip install mlend</code></pre> |
| 275 | + |
| 276 | +<br /> |
| 277 | +<br /> |
| 278 | + |
| 279 | +<h4 style="font-weight:600; font-family: sans-serif;"> Download dataset</h4> |
| 280 | + |
| 281 | +<br /> |
| 282 | + |
| 283 | +To download happiness dataset make sure to updgrade <code>mlend</code> library to <code>version>1.0.0.2</code> |
| 284 | + |
| 285 | +<br /> |
| 286 | + |
| 287 | +<pre><code>pip install mlend --upgrade</code></pre> |
| 288 | + |
| 289 | +#### To download dataset, use following piece of code |
| 290 | + |
| 291 | +<pre><code class="python">import mlend |
| 292 | +from mlend import download_happiness, download_load_happiness, happiness_load |
| 293 | + |
| 294 | +datadir = download_happiness(save_to = '../MLEnd') |
| 295 | + |
| 296 | +</code></pre> |
| 297 | + |
| 298 | +It will download a CSV file in folder <code>../MLEnd/happiness</code> directory |
| 299 | + |
| 300 | +<br /> |
| 301 | + |
| 302 | +<br /> |
| 303 | + |
| 304 | +<h4 style="font-weight:600; font-family: sans-serif;"> Read dataset</h4> |
| 305 | + |
| 306 | +After downloading, to load dataset use following piece of code |
| 307 | + |
| 308 | +<br /> |
| 309 | + |
| 310 | +<pre><code class="python">import mlend |
| 311 | +from mlend import download_happiness, download_load_happiness, happiness_load |
| 312 | + |
| 313 | +datadir = download_happiness(save_to = '../MLEnd') |
| 314 | + |
| 315 | +D = happiness_load(datadir) |
| 316 | + |
| 317 | +</code></pre> |
| 318 | + |
| 319 | +<br /> |
| 320 | +<h4 style="font-weight:600; font-family: sans-serif;"> Download and read dataset</h4> |
| 321 | + |
| 322 | +<br /> |
| 323 | +Alternately, use following piece of code to download and load data with one line |
| 324 | + |
| 325 | +<br /> |
| 326 | +<pre><code class="python">import mlend |
| 327 | +from mlend import download_load_happiness |
| 328 | + |
| 329 | +D = download_load_happiness() |
| 330 | + |
| 331 | +D.head() |
| 332 | +</code></pre> |
| 333 | + |
| 334 | + |
| 335 | + |
| 336 | +<br /> |
| 337 | +<hr /> |
| 338 | + |
| 339 | +### MLEnd Documentation |
| 340 | + |
| 341 | +For mlend documentation use <code>help(fun)</code> in python terminal or Jupyter-notebook. Alternately, check out |
| 342 | +<h4><a href="https://mlend.readthedocs.io/" target="_blank">MLEnd Documentation</a></h4> |
175 | 343 |
|
176 | | -<h4>Todo</h4> |
| 344 | +<br /> |
177 | 345 |
|
178 | 346 |
|
179 | 347 |
|
180 | | -</div></div> |
| 348 | +</h3> |
181 | 349 |
|
182 | 350 | <!-- </article> --> |
183 | 351 | </div> |
|
0 commit comments