Saturday, September 1, 2018

Notpad++ plugin x64

[Release]
- Add Library
Property > Linker > Input > Additional Dependencies
add the library full path (include file name)

- Add preprocessor define
Property > C/C++ > Preprocessor > Preprocessor Definitions
add define word e.g., __TEST_DEF__


[Debug]
error D8016: '/Ox' and '/RTC1' command-line options are incompatible
- Property > C/C++ > Code Generation > Basic Runtime Checks
from "Both (/RTC1, equiv. to /RTCsu) (/RTC1)" to "default"


About source code
how to use zlib in C++
http://windrealm.org/tutorials/decompress-gzip-stream.php
Base64, open source in apple
https://opensource.apple.com/source/QuickTimeStreamingServer/QuickTimeStreamingServer-452/CommonUtilitiesLib/base64.c


// display string in new tab window
::SendMessage(nppData._nppHandle, NPPM_MENUCOMMAND, 0, IDM_FILE_NEW);

HWND hCurrScintilla = getCurrentScintillaHandle();
::SendMessage(hCurrScintilla, SCI_SETTEXT, 0, (LPARAM)SSRM_log);

[Change Project Name]
open editor and change file name and directory path
 - XXX.sln
 - XXX.vcxproj




Machine Learning

Russ Salakhutdinov


Russ Salakhutdinov,
 Professor at Carnegie Mellon University, Director of AI Research at Apple

http://www.cs.cmu.edu/~rsalakhu/talk_Simons_part1_pdf.pdf
http://www.cs.cmu.edu/~rsalakhu/talk_Simons_part2_pdf.pdf
http://www.cs.cmu.edu/~rsalakhu/talk_Simons_part3_pdf.pdf
http://www.cs.cmu.edu/~rsalakhu/talk_Simons_part4_pdf.pdf

Friday, August 31, 2018

Python: DataFrame2

Basic
Starting out with Python Pandas DataFrames
The Pandas DataFrame – loading, editing, and viewing data in Python

1. head(), tail()
 is it possible mid data, not head or tail?
 df.iloc[[row_start:row_end],[column_start:column_end]]
2. describe()
 separate data each type, and then use the describe() function
3. selecting column
 df.column_name
 df['column_name']
 df.iloc[:, ]
4. selecting row
 df.iloc[0:10, :] - select data first 10 rows.
 df.loc[44, :]
 df[df["Area"] == "Ireland"] – select the rows where Area value is ‘Ireland’.
5. From DataFrame to list values
 df.column_name.values
 df.column_name.tolist()
6. Some columns data
 new = old[['A', 'C', 'D']].copy()
 new = old.filter(['A', 'C', 'D'], axis=1)
 Extracting specific selected columns from a DataFrame to new DataFrame
 * remove column
 new = old.drop('B', axis=1)
7. Change, update index
 df.index = [list_value]

Visualization
Pandas DataFrame Visualization
Data Visualization & Exploration using Pandas Only: Beginner
Modern Pandas (Part 6): Visualization
Visualization with Seaborn
Visualize data with Pandas

Errorbar or box plot, Histogram
Box plot with min, max, average and standard deviation
Python Histograms, Box Plots, & Distributions

Scattering graph
draw box plot & draw all real value (point)
Matplotlib: avoiding overlapping datapoints in a “scatter/dot/beeswarm” plot

Seaborn

DataFrame plot
Understand df.plot in pandas
Data Frames and Plotting
Plotting Series and DataFrame objects

Others
Creating Pandas DataFrames from Lists and Dictionaries
Python에서 데이터 시각화하는 다양한 방법
Create multiple dataframes in loop


Thursday, August 2, 2018

Source Insight - presettings

1. background color
 - Options > Preferences > Colors > Window Background
   [Color...] select color

2. Select Font & Font setting
 - Consolas from Microsoft
   https://www.microsoft.com/en-us/download/details.aspx?id=17879
 - Options > Document Options
   [Screen Fonts...]

3. Disable display formatting
 - Options > Preferences > Basics
   check: Use only color formatting

4. Show right margin: 80 column
 - Options > Document Options > Edition Options
   check: Show right margin

5. Show line number
 - Options > Document Options > Edition Options
   check: Show line number

6. Display full file path in title bar
 - Options > Preference > Display 
    check: Trim Long Path Names With ellipses
   https://stackoverflow.com/questions/8309701/source-insight-is-not-displaying-full-path-of-a-file-in-title-bar

7. add a new keyword, such as "defined"
 - mouse right button click > Keyword List... > Add Word...

Monday, May 28, 2018

Linear Regression

1. Scaling
In the Linear Regression,
Why do it need scaler function, such as
 fit()
 transform()
 or fit_transform()
in Scikit-Learn

1.1 Compare the effect of different scalers on data with outliers
http://scikit-learn.org/stable/auto_examples/preprocessing/plot_all_scaling.html

What is the "gradient-based estimators"?

1.2 Machine Learning FAQ
https://sebastianraschka.com/faq/docs/closed-form-vs-gd.html
1.3 Types of Optimization Algorithms used in Neural Networks and Ways to Optimize Gradient Descent
https://towardsdatascience.com/types-of-optimization-algorithms-used-in-neural-networks-and-ways-to-optimize-gradient-95ae5d39529f


2. Linear Regression

2.0 A comprehensive beginners guide for Linear, Ridge and Lasso Regression
https://www.analyticsvidhya.com/blog/2017/06/a-comprehensive-guide-for-linear-ridge-and-lasso-regression/

2.1 What Is R Squared And Negative R Squared
http://www.fairlynerdy.com/what-is-r-squared/
2.2 So Why Is It Called "Regression," Anyway?
http://blog.minitab.com/blog/statistics-and-quality-data-analysis/so-why-is-it-called-regression-anyway

2.3 sklearn.linear_model.LinearRegression
http://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LinearRegression.html

2.4 Linear Regression Example
http://scikit-learn.org/stable/auto_examples/linear_model/plot_ols.html#sphx-glr-auto-examples-linear-model-plot-ols-py
2.5 How to run Linear regression in Python scikit-Learn
http://bigdata-madesimple.com/how-to-run-linear-regression-in-python-scikit-learn/
2.6 Artificial Neural Networks: Linear Regression (Part 1), ANN
http://briandolhansky.com/blog/artificial-neural-networks-linear-regression-part-1
2.7 Neural Networks A Simple Problem (Linear Regression), Gradient Descent
https://www.cs.cmu.edu/afs/cs.cmu.edu/academic/class/15381-s06/www/nn.pdf
2.8 LINEAR REGRESSION IN PYTHON USING SCIKIT-LEARN (Good example)
http://benalexkeen.com/linear-regression-in-python-using-scikit-learn/

3. Linear Rression for TensorFlow
3.1 TensorFlow를 이용한 linear regression
https://www.joinc.co.kr/w/man/12/tensorflow/linearRegression

Friday, June 30, 2017

Thursday, June 29, 2017

Notepad++ tips

17/6/29

1. Notepad++ 80 character line maker
https://superuser.com/questions/414209/notepad-80-character-line-marker

2. Notepad++ manually highlight selected text like Microsoft Word does
https://stackoverflow.com/questions/15179057/notepad-manually-highlight-selected-text-like-microsoft-word-does
Set
Settings > Shortcut mapper > Using 1st Style: Ctrl + 1, 2, 3, 4, 5
Clear
Settings > Shortcut mapper > Clear 1st Style: Ctrl + + Shift + 1, 2, 3, 4, 5