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
![image](https://github.com/kefeimo/DataScienceBlog/blob/5063d0eebaf23da880222d26893c630912bc4051/1.%20PCA/partII_pca_motivation.png> |
This file has been truncated, but you can view the full file.
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
<html> | |
<head><meta charset="utf-8" /></head> | |
<body> | |
<div> | |
<script type="text/javascript">window.PlotlyConfig = {MathJaxConfig: 'local'};</script> | |
<script type="text/javascript">/** | |
* plotly.js v1.52.1 | |
* Copyright 2012-2020, Plotly, Inc. | |
* All rights reserved. |
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
""" | |
Task: Write a method that takes a string as an input and converts it to an integer. | |
Do not use any type of built in methods like int.Parse or atoi. | |
Solution: | |
Strategy: | |
1. Use regular expression to check if the input is a valid numeric string | |
2. Use decimal number definition to construct the integer (e.g., 23 = 2*10+3, 134 = (1*10+3)*10+4), -3 = -(3)) | |
""" | |
import re |
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
image test |
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
testing proofs |
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
dnp3-python github docs |
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
(dnp3-sandbox) kefei@ubuntu-22:~/project/dnp3-python$ python setup.py install | |
running install | |
/home/kefei/miniconda3/envs/dnp3-sandbox/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. | |
warnings.warn( | |
/home/kefei/miniconda3/envs/dnp3-sandbox/lib/python3.10/site-packages/setuptools/command/easy_install.py:144: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools. |
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
============================= test session starts ============================== | |
platform linux -- Python 3.10.6, pytest-6.2.5, py-1.11.0, pluggy-1.0.0 | |
rootdir: /home/kefei/project/dev-volttron-modular | |
plugins: cov-3.0.0, line-profiler-0.1.0 | |
collected 1 item | |
../volttron-lib-dnp3-driver/tests/test_driver.py /tmp/tmp2ew1sbri/volttron_home: Creating platform wrapper | |
/tmp/tmp2ew1sbri/volttron_home: Starting Platform: /tmp/tmp2ew1sbri/volttron_home | |
process environment: | |
{'DEBUG': '', |
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
anyio==3.7.0 | |
argcomplete==3.0.8 | |
argon2-cffi==21.3.0 | |
argon2-cffi-bindings==21.2.0 | |
arrow==1.2.3 | |
asttokens==2.2.1 | |
attrs==23.1.0 | |
backcall==0.2.0 | |
beautifulsoup4==4.12.2 | |
bleach==6.0.0 |