path
stringlengths
8
399
content_id
stringlengths
40
40
detected_licenses
sequence
license_type
stringclasses
2 values
repo_name
stringlengths
6
109
repo_url
stringlengths
25
128
star_events_count
int64
0
52.9k
fork_events_count
int64
0
7.07k
gha_license_id
stringclasses
9 values
gha_event_created_at
timestamp[us]
gha_updated_at
timestamp[us]
gha_language
stringclasses
28 values
language
stringclasses
1 value
is_generated
bool
1 class
is_vendor
bool
1 class
conversion_extension
stringclasses
17 values
size
int64
317
10.5M
script
stringlengths
245
9.7M
script_size
int64
245
9.7M
/TransferNet.ipynb
298b13fbe203aaccefdfcbd04151391487d7f482
[]
no_license
JinSuJinSu/jupyter-notebook
https://github.com/JinSuJinSu/jupyter-notebook
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
69,952
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # + import tensorflow as tf import matplotlib.pyplot as plt import numpy as np from tensorflow.keras.models import Sequential from tensorflow.keras.preprocessing.image import ImageDataGenerator from tensorflow.keras import Input, models, layers, optimizers, metrics from tensorflow.keras.layers import Dense, Flatten from tensorflow.keras.applications import VGG16 # - b_size = 5 train_datagen = ImageDataGenerator(rescale=1./255, horizontal_flip = True, # 수평 대칭 이미지를 50%확률로 만듬 width_shift_range = 0.1, # 전체 크기의 10% 범위에서 좌우로 이동 height_shift_range = 0.1, fill_mode = 'nearest') train_generator = train_datagen.flow_from_directory('train',target_size=(150,150), batch_size=b_size, class_mode='binary') test_datagen = ImageDataGenerator(rescale=1./255) test_generator = test_datagen.flow_from_directory('test',target_size=(150,150), batch_size=b_size, class_mode='binary') transfer_model = VGG16(weights='imagenet', include_top=False, input_shape=(150,150,3)) transfer_model.trainable = False transfer_model.summary() finetune_model = Sequential() finetune_model.add(transfer_model) finetune_model.add(Flatten()) finetune_model.add(Dense(64, activation='relu')) finetune_model.add(Dense(2, activation='softmax')) finetune_model.summary() # + finetune_model.compile(loss='sparse_categorical_crossentropy',optimizer=optimizers.Adam(learning_rate=0.0002),\ metrics=['accuracy']) steps_train = len(train_generator) steps_test = len(test_generator) # + history = finetune_model.fit( train_generator, steps_per_epoch=steps_train, epochs=20, validation_data=test_generator, validation_steps=steps_test ) acc = history.history['accuracy'] val_acc = history.history['val_accuracy'] y_vloss = history.history['val_loss'] y_loss = history.history['loss'] x_len = np.arange(len(y_loss)) plt.plot(x_len, acc, marker='.', c='cornflowerblue', label='Trainset_acc') plt.plot(x_len, val_acc, marker='.', c='blue', label='Testset_acc') plt.plot(x_len, y_vloss, marker='.', c='red', label='Testset_loss') plt.plot(x_len, y_loss, marker='.', c='lightcoral', label='Trainset_loss') plt.legend(loc='upper left') plt.grid() plt.xlabel('epoch') plt.ylabel('loss/acc') plt.show()
2,688
/workshop/nipype_tutorial/notebooks/resources_python_cheat_sheet.ipynb
4e9fab148d469d6fb48f2a4de3e1fb231770749f
[ "BSD-3-Clause" ]
permissive
miykael/workshop_pybrain
https://github.com/miykael/workshop_pybrain
41
28
BSD-3-Clause
2020-11-07T19:11:49
2020-11-06T22:35:56
Jupyter Notebook
Jupyter Notebook
false
false
.py
19,190
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # # Python Cheat Sheet # # The following content is taken from http://www.ias.u-psud.fr/pperso/aboucaud/python/cheatsheet.html # # This cheat sheet should serve as a short refresher to everybody who hasn't used Python for some time. # ## Pure Python # ### Types a = 2 # integer b = 5.0 # float c = 8.3e5 # exponential d = 1.5 + 0.5j # complex e = 4 > 5 # boolean f = 'word' # string # ### Lists a = ['red', 'blue', 'green'] # manually initialization b = list(range(5)) # initialization through a function c = [nu**2 for nu in b] # initialize through list comprehension d = [nu**2 for nu in b if nu < 3] # list comprehension with condition e = c[0] # access element f = c[1:2] # access a slice of the list g = ['re', 'bl'] + ['gr'] # list concatenation h = ['re'] * 5 # repeat a list ['re', 'bl'].index('re') # returns index of 're' 're' in ['re', 'bl'] # true if 're' in list sorted([3, 2, 1]) # returns sorted list z = ['red'] + ['green', 'blue'] # list concatenation # ### Dictionaries a = {'red': 'rouge', 'blue': 'bleu', 'green': 'vert'} # dictionary b = a['red'] # translate item c = [value for key, value in a.items()] # loop through contents d = a.get('yellow', 'no translation found') # return default # ### Strings a = 'red' # assignment char = a[2] # access individual characters 'red ' + 'blue' # string concatenation '1, 2, three'.split(',') # split string into list '.'.join(['1', '2', 'three']) # concatenate list into string # ### Operators a = 2 # assignment b = [2,3] # assign a list a += 1 # change and assign, try also `*=` and `/=` 3 + 2 # addition 3 / 2 # integer division (python2) or float division (python3) 3 // 2 # integer division 3 * 2 # multiplication 3 ** 2 # exponent 3 % 2 # remainder abs(-3) # absolute value 1 == 1 # equal 2 > 1 # larger 2 < 1 # smaller 1 != 2 # not equal 1 != 2 and 2 < 3 # logical AND 1 != 2 or 2 < 3 # logical OR not 1 == 2 # logical NOT a in b # test if a is in b a is b # test if objects point to the same memory (id) # ### Control Flow # + # if/elif/else a, b = 1, 2 if a + b == 3: print ('True') elif a + b == 1: print ('False') else: print ('?') # for a = ['red', 'blue', 'green'] for color in a: print (color) # while number = 1 while number < 10: print (number) number += 1 # break number = 1 while True: print (number) number += 1 if number > 10: break # continue for i in range(20): if i % 2 == 0: continue print (i) # - # ### Functions, Classes, Generators, Decorators # + # Function def myfunc(a1, a2): return a1 * a2 a1, a2 = 4, 5 x = myfunc(a1, a2) # Class class Point(object): def __init__(self, x): self.x = x def __call__(self): print (self.x) x = Point(3) # Generators def firstn(n): num = 0 while num < n: yield num num += 1 # consume the generator with list comprehension x = [i for i in firstn(10)] # Decorators class myDecorator(object): def __init__(self, f): self.f = f def __call__(self): print ("call") self.f() @myDecorator def my_funct(): print ('func') my_funct() # - # ## IPython # ### Python console # + <object>? # Information about the object <object>.<TAB> # tab completion # measure runtime of a function: # %timeit range(1000) 100000 loops, best of 3: 7.76 us per loop # run scripts and debug # %run # %run -d # run in debug mode # %run -t # measures execution time # %run -p # runs a profiler # %debug # jumps to the debugger after an exception # %pdb # run debugger automatically on exception # examine history # %history # %history ~1/1-5 # lines 1-5 of last session # run shell commands # !make # prefix command with "!" # clean namespace # %reset # - # ### Debugger commands n # execute next line # ## NumPy import numpy as np # ### array initialization np.array([2, 3, 4]) # direct initialization np.empty(20, dtype=np.float32) # single precision array with 20 entries np.zeros(200) # initialize 200 zeros np.ones((3,3), dtype=np.int32) # 3 x 3 integer matrix with ones np.eye(200) # ones on the diagonal np.zeros_like(a) # returns array with zeros and the shape of a np.linspace(0., 10., 100) # 100 points from 0 to 10 np.arange(0, 100, 2) # points from 0 to <100 with step width 2 np.logspace(-5, 2, 100) # 100 log-spaced points between 1e-5 and 1e2 a = np.array([[2, 3], [4, 5]]) np.copy(a) # copy array to new memory # ### reading/ writing files np.fromfile(fname/object, dtype=np.float32, count=5) # read binary data from file np.loadtxt(fname/object, skiprows=2, delimiter=',') # read ascii data from file # ### array properties and operations a.shape # a tuple with the lengths of each axis len(a) # length of axis 0 a.ndim # number of dimensions (axes) a.sort(axis=1) # sort array along axis a.flatten() # collapse array to one dimension a.conj() # return complex conjugate a.astype(np.int16) # cast to integer np.argmax(a, axis=0) # return index of maximum along a given axis np.cumsum(a) # return cumulative sum np.any(a) # True if any element is True np.all(a) # True if all elements are True np.argsort(a, axis=1) # return sorted index array along axis # ### indexing a = np.arange(100) # initialization with 0 - 99 a[: 3] = 0 # set the first three indices to zero a[1: 5] = 1 # set indices 1-4 to 1 start, stop, step = 10, 20, 2 a[start:stop:step] # general form of indexing/slicing a[None, :] # transform to column vector a[[1, 1, 3, 8]] # return array with values of the indices a = a.reshape(10, 10) # transform to 10 x 10 matrix a.T # return transposed view np.transpose(a, (1, 0)) # transpose array to new axis order a[a < 2] # returns array that fulfills element-wise condition # ### boolean arrays a, b = np.arange(100), 6 * np.arange(1, 101) a < 2 # returns array with boolean values np.logical_and(a < 2, b > 10) # element-wise logical and np.logical_or(a < 2, b > 10) # element-wise logical or ~a # invert boolean array np.invert(a) # invert boolean array # ### element-wise operations and math functions y, x = np.arange(10), np.arange(1, 11) a * 5 # multiplication with scalar a + 5 # addition with scalar a + b # addition with array b a / b # division with b (np.NaN for division by zero) np.exp(a) # exponential (complex and real) np.power(a,b) # a to the power b np.sin(a) # sine np.cos(a) # cosine np.arctan2(y, x) # arctan(y/x) np.arcsin(x) # arcsin np.radians(a) # degrees to radians np.degrees(a) # radians to degrees np.var(a) # variance of array np.std(a, axis=0) # standard deviation # ### inner / outer products a, b = np.array([[2, 3], [4, 5]]), np.array([[20, 30], [40, 50]]) np.dot(a, b) # inner matrix product: a_mi b_in np.einsum('ik,kl->il', a, b) # einstein summation convention np.sum(a, axis=1) # sum over axis 1 np.abs(a) # return array with absolute values a[None, :] + b[:, None] # outer sum a[None, :] * b[:, None] # outer product np.outer(a, b) # outer product np.sum(a * a.T) # matrix norm # ### interpolation, integration np.trapz(y, x=None, dx=1.0, axis=0) # integrate along axis 0 np.interp(x=2.5, xp=[1, 2, 3], fp=[3, 2, 0]) # interpolate function xp, yp at points x # ### fft np.fft.fft(y) # complex fourier transform of y freqs = np.fft.fftfreq(len(y)) # fft frequencies for a given length np.fft.fftshift(freqs) # shifts zero frequency to the middle np.fft.rfft(y) # real fourier transform of y np.fft.rfftfreq(len(y)) # real fft frequencies for a given length # ### rounding a=3.56 np.ceil(a) # rounds to nearest upper int np.floor(a) # rounds to nearest lower int np.round(a) # rounds to neares int # ### random variables np.random.normal(loc=0, scale=2, size=100) # 100 normal distributed random numbers np.random.seed(23032) # resets the seed value np.random.rand(200) # 200 random numbers in [0, 1) np.random.uniform(1, 30, 200) # 200 random numbers in [1, 30) np.random.randint(1, 15, 300) # 300 random integers between [1, 15] # ## Matplotlib import matplotlib.pyplot as plt # ### figures and axes fig = plt.figure(figsize=(5, 2), facecolor='black') # initialize figure ax = fig.add_subplot(3, 2, 2) # add second subplot in a 3 x 2 grid fig, axes = plt.subplots(5, 2, figsize=(5, 5)) # return fig and array of axes in a 5 x 2 grid ax = fig.add_axes(left=.3, bottom=.1, width=.6, height=.8) # manually add axes at a certain position # ### figures and axes properties fig.suptitle('title') # big figure title fig.subplots_adjust(bottom=0.1, right=0.8, top=0.9, wspace=0.2, hspace=0.5) # adjust subplot positions fig.tight_layout(pad=0.1, h_pad=0.5, w_pad=0.5, rect=None) # adjust subplots to fit perfectly into fig ax.set_xlabel() # set xlabel ax.set_ylabel() # set ylabel ax.set_xlim(1, 2) # sets x limits ax.set_ylim(3, 4) # sets y limits ax.set_title('blabla') # sets the axis title ax.set(xlabel='bla') # set multiple parameters at once ax.legend(loc='upper center') # activate legend ax.grid(True, which='both') # activate grid bbox = ax.get_position() # returns the axes bounding box bbox.x0 + bbox.width # bounding box parameters # ### plotting routines ax.plot(x,y, '-o', c='red', lw=2, label='bla') # plots a line ax.scatter(x,y, s=20, c=color) # scatter plot ax.pcolormesh(xx,yy,zz, shading='gouraud') # fast colormesh function ax.colormesh(xx,yy,zz, norm=norm) # slower colormesh function ax.contour(xx,yy,zz, cmap='jet') # contour line plot ax.contourf(xx,yy,zz, vmin=2, vmax=4) # filled contours plot n, bins, patch = ax.hist(x, 50) # histogram ax.imshow(matrix, origin='lower', extent=(x1, x2, y1, y2)) # show image ax.specgram(y, FS=0.1, noverlap=128, scale='linear') # plot a spectrogram
11,593
/Mini_Project_Clustering - Preston, Tom.ipynb
da795f0ec43b28e4303ddbb9b4f0d06398577b0e
[]
no_license
tom1presto/springboard_assignments
https://github.com/tom1presto/springboard_assignments
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
618,905
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # # Customer Segmentation using Clustering # *** # This mini-project is based on [this blog post](http://blog.yhat.com/posts/customer-segmentation-using-python.html) by yhat. Please feel free to refer to the post for additional information, and solutions. # + # %matplotlib inline import pandas as pd import sklearn import matplotlib.pyplot as plt import seaborn as sns # Setup Seaborn sns.set_style("whitegrid") sns.set_context("poster") # - # ## Data # # The dataset contains information on marketing newsletters/e-mail campaigns (e-mail offers sent to customers) and transaction level data from customers. The transactional data shows which offer customers responded to, and what the customer ended up buying. The data is presented as an Excel workbook containing two worksheets. Each worksheet contains a different dataset. df_offers = pd.read_excel("./WineKMC.xlsx", sheet_name=0) df_offers.columns = ["offer_id", "campaign", "varietal", "min_qty", "discount", "origin", "past_peak"] df_offers.head() # We see that the first dataset contains information about each offer such as the month it is in effect and several attributes about the wine that the offer refers to: the variety, minimum quantity, discount, country of origin and whether or not it is past peak. The second dataset in the second worksheet contains transactional data -- which offer each customer responded to. df_transactions = pd.read_excel("./WineKMC.xlsx", sheet_name=1) df_transactions.columns = ["customer_name", "offer_id"] df_transactions['n'] = 1 df_transactions.head() # ## Data wrangling # We're trying to learn more about how our customers behave, so we can use their behavior (whether or not they purchased something based on an offer) as a way to group similar minded customers together. We can then study those groups to look for patterns and trends which can help us formulate future offers. # # The first thing we need is a way to compare customers. To do this, we're going to create a matrix that contains each customer and a 0/1 indicator for whether or not they responded to a given offer. # <div class="span5 alert alert-info"> # <h3>Checkup Exercise Set I</h3> # # <p><b>Exercise:</b> Create a data frame where each row has the following columns (Use the pandas [`merge`](http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.merge.html) and [`pivot_table`](http://pandas.pydata.org/pandas-docs/stable/generated/pandas.pivot_table.html) functions for this purpose): # <ul> # <li> customer_name # <li> One column for each offer, with a 1 if the customer responded to the offer # </ul> # <p>Make sure you also deal with any weird values such as `NaN`. Read the documentation to develop your solution.</p> # </div> #your turn # join the offers and transaction tables df = pd.merge(df_offers, df_transactions) # create a pivot table providing us the number of times each customer responded to a given offer df_pivot = df.pivot_table(index=['customer_name'], columns=['offer_id'], values = 'n') # fill NA values with 0 df_pivot = df_pivot.fillna(0).reset_index() # save list of 0/1 columns for use later x_cols = df_pivot.columns[1:] print(df_pivot.head(20)) # ## K-Means Clustering # # Recall that in K-Means Clustering we want to *maximize* the distance between centroids and *minimize* the distance between data points and the respective centroid for the cluster they are in. True evaluation for unsupervised learning would require labeled data; however, we can use a variety of intuitive metrics to try to pick the number of clusters K. We will introduce two methods: the Elbow method, the Silhouette method and the gap statistic. # ### Choosing K: The Elbow Sum-of-Squares Method # # The first method looks at the sum-of-squares error in each cluster against $K$. We compute the distance from each data point to the center of the cluster (centroid) to which the data point was assigned. # # $$SS = \sum_k \sum_{x_i \in C_k} \sum_{x_j \in C_k} \left( x_i - x_j \right)^2 = \sum_k \sum_{x_i \in C_k} \left( x_i - \mu_k \right)^2$$ # # where $x_i$ is a point, $C_k$ represents cluster $k$ and $\mu_k$ is the centroid for cluster $k$. We can plot SS vs. $K$ and choose the *elbow point* in the plot as the best value for $K$. The elbow point is the point at which the plot starts descending much more slowly. # <div class="span5 alert alert-info"> # <h3>Checkup Exercise Set II</h3> # # <p><b>Exercise:</b></p> # <ul> # <li> What values of $SS$ do you believe represent better clusterings? Why? # <li> Create a numpy matrix `x_cols` with only the columns representing the offers (i.e. the 0/1 colums) # <li> Write code that applies the [`KMeans`](http://scikit-learn.org/stable/modules/generated/sklearn.cluster.KMeans.html) clustering method from scikit-learn to this matrix. # <li> Construct a plot showing $SS$ for each $K$ and pick $K$ using this plot. For simplicity, test $2 \le K \le 10$. # <li> Make a bar chart showing the number of points in each cluster for k-means under the best $K$. # <li> What challenges did you experience using the Elbow method to pick $K$? # </ul> # </div> # # your turn # The SS (sum of squares) is focused on mimimizing the distance from the centroids. The lower the value, the better. As always, the challenge is finding a suitable (typically fewer) number of centroids # and minimizing the SS for them. Having too many centroids leads to overfitting the data. # create numpy matrix import numpy as np x_cols_matrix = np.matrix(df_pivot.iloc[:,x_cols]) x_cols_matrix # + from sklearn.cluster import KMeans # test 2 <= k <= 10 k_range = range(2,11) # print a list that has the SS values for each k values kmeans_ss = [KMeans(n_clusters = k, random_state=5).fit(x_cols_matrix).inertia_ for k in k_range] # plot the graphs fig = plt.figure() ax = fig.add_subplot(111) ax.plot(k_range, kmeans_ss, 'b*-', linewidth= 1.0) ax.set_ylim((150,275)) plt.xlabel('Number of Clusters (k)') plt.ylabel('Sum of Squares Error (SS)') plt.title("Sum of Squares Errors - 2 to 10 clusters") # + # There is no clear "elbow" in the clusters above however K = 8 seems to be the closest thing to the 'elbow' for this exercise # show the number of members in each cluster best_k = 8 best_k_clusters = KMeans(n_clusters = best_k, random_state = 5) df_pivot['cluster'] = best_k_clusters.fit_predict(np.matrix(df_pivot.iloc[:,2:33])) print(df_pivot.head(20)) counts = pd.DataFrame(df_pivot.cluster.value_counts()) counts.columns = ['count'] counts['cluster'] = counts.index # plot plt.bar(list(counts['cluster']),list(counts['count'])) plt.xlabel('Clusters') plt.ylabel('Number of Members') plt.title('Membership Counts for Each Cluster (8 Total Clusters)') # - # With eight clusters and a small sample size, there does not seem to be be value in all 8 clusters. A lower number of clusters is probably better given # the suspected overfitting with the small cluster membership for cluster 4 and 6 # ### Choosing K: The Silhouette Method # # There exists another method that measures how well each datapoint $x_i$ "fits" its assigned cluster *and also* how poorly it fits into other clusters. This is a different way of looking at the same objective. Denote $a_{x_i}$ as the *average* distance from $x_i$ to all other points within its own cluster $k$. The lower the value, the better. On the other hand $b_{x_i}$ is the minimum average distance from $x_i$ to points in a different cluster, minimized over clusters. That is, compute separately for each cluster the average distance from $x_i$ to the points within that cluster, and then take the minimum. The silhouette $s(x_i)$ is defined as # # $$s(x_i) = \frac{b_{x_i} - a_{x_i}}{\max{\left( a_{x_i}, b_{x_i}\right)}}$$ # # The silhouette score is computed on *every datapoint in every cluster*. The silhouette score ranges from -1 (a poor clustering) to +1 (a very dense clustering) with 0 denoting the situation where clusters overlap. Some criteria for the silhouette coefficient is provided in the table below. # <pre> # # | Range | Interpretation | # |-------------|-----------------------------------------------| # | 0.71 - 1.0 | A strong structure has been found. | # | 0.51 - 0.7 | A reasonable structure has been found. | # | 0.26 - 0.5 | The structure is weak and could be artificial.| # | < 0.25 | No substantial structure has been found. | # # </pre> # Source: http://www.stat.berkeley.edu/~spector/s133/Clus.html # Fortunately, scikit-learn provides a function to compute this for us (phew!) called [`sklearn.metrics.silhouette_score`](http://scikit-learn.org/stable/modules/generated/sklearn.metrics.silhouette_score.html). Take a look at [this article](http://scikit-learn.org/stable/auto_examples/cluster/plot_kmeans_silhouette_analysis.html) on picking $K$ in scikit-learn, as it will help you in the next exercise set. # <div class="span5 alert alert-info"> # <h3>Checkup Exercise Set III</h3> # # <p><b>Exercise:</b> Using the documentation for the `silhouette_score` function above, construct a series of silhouette plots like the ones in the article linked above.</p> # # <p><b>Exercise:</b> Compute the average silhouette score for each $K$ and plot it. What $K$ does the plot suggest we should choose? Does it differ from what we found using the Elbow method?</p> # </div> # + # Your turn. # Your turn. from sklearn.metrics import silhouette_score, silhouette_samples import matplotlib.cm as cm # looping approach based off linked article approach #fig = plt.figure() for k in k_range: ## # build the KMeans model and obtain cluster labels ## # a random state of 5 is used for consistency with the above results clusterer = KMeans( n_clusters = k, random_state = 5 ) cluster_labels = clusterer.fit_predict(df_pivot.iloc[:,2:33]) # get silhouette score and print result slht_avg = silhouette_score(df_pivot.iloc[:,2:33], cluster_labels) print("For k = %.0f, the average silhouette score is %.4f" % (k, slht_avg)) # get silhouette scores for each observation obs_slht_vals = silhouette_samples(df_pivot.iloc[:,2:33], cluster_labels) ## # build graphs for the distances in each cluster ## # build framework for graphs fig,ax = plt.subplots(1,1) #ax = fig.add_subplot(3,3,k-1) ax.set_xlim([-0.25, 0.6]) ax.set_ylim([0, len(x_cols_matrix) + (k + 1) * 2.5]) # build graphs by building data y_lower = 2.5 # starting lower bound; will be updated as the graph is built for i in range(k): # obtain and sort data for graphing cluster_slht_vals = obs_slht_vals[cluster_labels == i] # cluster-specific silhouette values for graphing cluster_slht_vals.sort() # sort in default (ascending) order # set graph space for the cluster and a color cluster_size = cluster_slht_vals.shape[0] # find out how many obs in the cluster y_upper = y_lower + cluster_size # set an upper bound based for the individual cluster color = cm.nipy_spectral(float(i) / k) # set a color for the plot of distances in this cluster # fill graph with data ax.fill_betweenx(y = np.arange(y_lower, y_upper), x1 = 0, x2 = cluster_slht_vals, facecolor = color, edgecolor = color, alpha = 0.7) # label axes and set for next cluster ax.text(-0.05, y_lower + 0.5 * cluster_size, str(i)) # label plot areas for cluster y_lower = y_upper + 2.5 # provide space between plots for each cluster # layout griding system for the plot ax.grid(False) # remove grid lines ax.axvline(x = slht_avg, color = "red", linestyle = "--") # add a line for silhouette average ax.set_yticks([]) # remove y ticks # add figure labels ax.set_title("Silhouette Plot for Customer Data with %.0f Clusters" % k) ax.set_ylabel("Cluster label") ax.set_xlabel("Silhouette Coefficient Values") # - # ### Choosing $K$: The Gap Statistic # # There is one last method worth covering for picking $K$, the so-called Gap statistic. The computation for the gap statistic builds on the sum-of-squares established in the Elbow method discussion, and compares it to the sum-of-squares of a "null distribution," that is, a random set of points with no clustering. The estimate for the optimal number of clusters $K$ is the value for which $\log{SS}$ falls the farthest below that of the reference distribution: # # $$G_k = E_n^*\{\log SS_k\} - \log SS_k$$ # # In other words a good clustering yields a much larger difference between the reference distribution and the clustered data. The reference distribution is a Monte Carlo (randomization) procedure that constructs $B$ random distributions of points within the bounding box (limits) of the original data and then applies K-means to this synthetic distribution of data points.. $E_n^*\{\log SS_k\}$ is just the average $SS_k$ over all $B$ replicates. We then compute the standard deviation $\sigma_{SS}$ of the values of $SS_k$ computed from the $B$ replicates of the reference distribution and compute # # $$s_k = \sqrt{1+1/B}\sigma_{SS}$$ # # Finally, we choose $K=k$ such that $G_k \geq G_{k+1} - s_{k+1}$. # ### Aside: Choosing $K$ when we Have Labels # # Unsupervised learning expects that we do not have the labels. In some situations, we may wish to cluster data that is labeled. Computing the optimal number of clusters is much easier if we have access to labels. There are several methods available. We will not go into the math or details since it is rare to have access to the labels, but we provide the names and references of these measures. # # * Adjusted Rand Index # * Mutual Information # * V-Measure # * Fowlkes–Mallows index # # See [this article](http://scikit-learn.org/stable/modules/clustering.html) for more information about these metrics. # ## Visualizing Clusters using PCA # # How do we visualize clusters? If we only had two features, we could likely plot the data as is. But we have 100 data points each containing 32 features (dimensions). Principal Component Analysis (PCA) will help us reduce the dimensionality of our data from 32 to something lower. For a visualization on the coordinate plane, we will use 2 dimensions. In this exercise, we're going to use it to transform our multi-dimensional dataset into a 2 dimensional dataset. # # This is only one use of PCA for dimension reduction. We can also use PCA when we want to perform regression but we have a set of highly correlated variables. PCA untangles these correlations into a smaller number of features/predictors all of which are orthogonal (not correlated). PCA is also used to reduce a large set of variables into a much smaller one. # <div class="span5 alert alert-info"> # <h3>Checkup Exercise Set IV</h3> # # <p><b>Exercise:</b> Use PCA to plot your clusters:</p> # # <ul> # <li> Use scikit-learn's [`PCA`](http://scikit-learn.org/stable/modules/generated/sklearn.decomposition.PCA.html) function to reduce the dimensionality of your clustering data to 2 components # <li> Create a data frame with the following fields: # <ul> # <li> customer name # <li> cluster id the customer belongs to # <li> the two PCA components (label them `x` and `y`) # </ul> # <li> Plot a scatterplot of the `x` vs `y` columns # <li> Color-code points differently based on cluster ID # <li> How do the clusters look? # <li> Based on what you see, what seems to be the best value for $K$? Moreover, which method of choosing $K$ seems to have produced the optimal result visually? # </ul> # # <p><b>Exercise:</b> Now look at both the original raw data about the offers and transactions and look at the fitted clusters. Tell a story about the clusters in context of the original data. For example, do the clusters correspond to wine variants or something else interesting?</p> # </div> # + #your turn from sklearn.decomposition import PCA # + # run PCA with 2 components pca = PCA(n_components=2) wine_factors = np.matrix(pca.fit_transform(x_cols_matrix)) wine_factors_df = pd.DataFrame(wine_factors) wine_factors_df.columns = ['x','y'] # dataset build # initialize the dataset with names and factors wine_clusters = pd.DataFrame(df_pivot.iloc[:,0]) wine_clusters['x'], wine_clusters['y'] = wine_factors_df['x'], wine_factors_df['y'] # add cluster labels for k in k_range: # calc cluster lables clusterer = KMeans(n_clusters = k, random_state=5) cluster_labels = clusterer.fit_predict(wine_factors) # addpend labels to dataframe wine_clusters[str('clusters_' + str(k))] = cluster_labels wine_clusters.head() # + # Build Scatterplots x_range = np.ptp(wine_clusters['x']) x_min, x_max = np.min(wine_clusters['x']) - 0.05 * x_range, np.max(wine_clusters['x']) - 0.05 * x_range y_range = np.ptp(wine_clusters['y']) y_min, y_max = np.min(wine_clusters['y']) - 0.05 * y_range, np.max(wine_clusters['y']) - 0.05 * y_range # setup figure and fill with data fig = plt.figure(figsize=(12,12)) for k in k_range: # setup plots and axes #ax = plt.figure(figsize=(3,3)) ax = fig.add_subplot(3,3,k-1) ax.set_xlim([x_min, x_max]) ax.set_ylim([y_min, y_max]) ax.set_xticks([]) ax.set_yticks([]) # fill data in the scatterplots plt.scatter(x = wine_clusters['x'], y = wine_clusters['y'], s = 40, c = wine_clusters.iloc[:,k + 1], cmap = 'Set1') ax.set_title('Clusters for k = ' + str(k)) # - # What we've done is we've taken those columns of 0/1 indicator variables, and we've transformed them into a 2-D dataset. We took one column and arbitrarily called it `x` and then called the other `y`. Now we can throw each point into a scatterplot. We color coded each point based on it's cluster so it's easier to see them. # <div class="span5 alert alert-info"> # <h3>Exercise Set V</h3> # # <p>As we saw earlier, PCA has a lot of other uses. Since we wanted to visualize our data in 2 dimensions, restricted the number of dimensions to 2 in PCA. But what is the true optimal number of dimensions?</p> # # <p><b>Exercise:</b> Using a new PCA object shown in the next cell, plot the `explained_variance_` field and look for the elbow point, the point where the curve's rate of descent seems to slow sharply. This value is one possible value for the optimal number of dimensions. What is it?</p> # </div> # + #your turn # Initialize a new PCA model with a default number of components. #import sklearn.decomposition #pca = sklearn.decomposition.PCA() #pca.fit(X) # Do the rest on your own :) pca = PCA() factors = pca.fit(x_cols_matrix) # elbow curve fig = plt.figure(figsize=(12,12)) ax = fig.add_subplot(111) ax.plot(factors.explained_variance_, 'b*-') plt.grid(True) plt.xlabel('Number of Principal Components') plt.ylabel('Percentage of variance explained') plt.title('Variance Explained vs. Components') # - # ## Other Clustering Algorithms # # k-means is only one of a ton of clustering algorithms. Below is a brief description of several clustering algorithms, and the table provides references to the other clustering algorithms in scikit-learn. # # * **Affinity Propagation** does not require the number of clusters $K$ to be known in advance! AP uses a "message passing" paradigm to cluster points based on their similarity. # # * **Spectral Clustering** uses the eigenvalues of a similarity matrix to reduce the dimensionality of the data before clustering in a lower dimensional space. This is tangentially similar to what we did to visualize k-means clusters using PCA. The number of clusters must be known a priori. # # * **Ward's Method** applies to hierarchical clustering. Hierarchical clustering algorithms take a set of data and successively divide the observations into more and more clusters at each layer of the hierarchy. Ward's method is used to determine when two clusters in the hierarchy should be combined into one. It is basically an extension of hierarchical clustering. Hierarchical clustering is *divisive*, that is, all observations are part of the same cluster at first, and at each successive iteration, the clusters are made smaller and smaller. With hierarchical clustering, a hierarchy is constructed, and there is not really the concept of "number of clusters." The number of clusters simply determines how low or how high in the hierarchy we reference and can be determined empirically or by looking at the [dendogram](https://docs.scipy.org/doc/scipy-0.18.1/reference/generated/scipy.cluster.hierarchy.dendrogram.html). # # * **Agglomerative Clustering** is similar to hierarchical clustering but but is not divisive, it is *agglomerative*. That is, every observation is placed into its own cluster and at each iteration or level or the hierarchy, observations are merged into fewer and fewer clusters until convergence. Similar to hierarchical clustering, the constructed hierarchy contains all possible numbers of clusters and it is up to the analyst to pick the number by reviewing statistics or the dendogram. # # * **DBSCAN** is based on point density rather than distance. It groups together points with many nearby neighbors. DBSCAN is one of the most cited algorithms in the literature. It does not require knowing the number of clusters a priori, but does require specifying the neighborhood size. # ### Clustering Algorithms in Scikit-learn # <table border="1"> # <colgroup> # <col width="15%" /> # <col width="16%" /> # <col width="20%" /> # <col width="27%" /> # <col width="22%" /> # </colgroup> # <thead valign="bottom"> # <tr><th>Method name</th> # <th>Parameters</th> # <th>Scalability</th> # <th>Use Case</th> # <th>Geometry (metric used)</th> # </tr> # </thead> # <tbody valign="top"> # <tr><td>K-Means</span></a></td> # <td>number of clusters</td> # <td>Very large<span class="pre">n_samples</span>, medium <span class="pre">n_clusters</span> with # MiniBatch code</td> # <td>General-purpose, even cluster size, flat geometry, not too many clusters</td> # <td>Distances between points</td> # </tr> # <tr><td>Affinity propagation</td> # <td>damping, sample preference</td> # <td>Not scalable with n_samples</td> # <td>Many clusters, uneven cluster size, non-flat geometry</td> # <td>Graph distance (e.g. nearest-neighbor graph)</td> # </tr> # <tr><td>Mean-shift</td> # <td>bandwidth</td> # <td>Not scalable with <span class="pre">n_samples</span></td> # <td>Many clusters, uneven cluster size, non-flat geometry</td> # <td>Distances between points</td> # </tr> # <tr><td>Spectral clustering</td> # <td>number of clusters</td> # <td>Medium <span class="pre">n_samples</span>, small <span class="pre">n_clusters</span></td> # <td>Few clusters, even cluster size, non-flat geometry</td> # <td>Graph distance (e.g. nearest-neighbor graph)</td> # </tr> # <tr><td>Ward hierarchical clustering</td> # <td>number of clusters</td> # <td>Large <span class="pre">n_samples</span> and <span class="pre">n_clusters</span></td> # <td>Many clusters, possibly connectivity constraints</td> # <td>Distances between points</td> # </tr> # <tr><td>Agglomerative clustering</td> # <td>number of clusters, linkage type, distance</td> # <td>Large <span class="pre">n_samples</span> and <span class="pre">n_clusters</span></td> # <td>Many clusters, possibly connectivity constraints, non Euclidean # distances</td> # <td>Any pairwise distance</td> # </tr> # <tr><td>DBSCAN</td> # <td>neighborhood size</td> # <td>Very large <span class="pre">n_samples</span>, medium <span class="pre">n_clusters</span></td> # <td>Non-flat geometry, uneven cluster sizes</td> # <td>Distances between nearest points</td> # </tr> # <tr><td>Gaussian mixtures</td> # <td>many</td> # <td>Not scalable</td> # <td>Flat geometry, good for density estimation</td> # <td>Mahalanobis distances to centers</td> # </tr> # <tr><td>Birch</td> # <td>branching factor, threshold, optional global clusterer.</td> # <td>Large <span class="pre">n_clusters</span> and <span class="pre">n_samples</span></td> # <td>Large dataset, outlier removal, data reduction.</td> # <td>Euclidean distance between points</td> # </tr> # </tbody> # </table> # Source: http://scikit-learn.org/stable/modules/clustering.html # <div class="span5 alert alert-info"> # <h3>Exercise Set VI</h3> # # <p><b>Exercise:</b> Try clustering using the following algorithms. </p> # <ol> # <li>Affinity propagation # <li>Spectral clustering # <li>Agglomerative clustering # <li>DBSCAN # </ol> # <p>How do their results compare? Which performs the best? Tell a story why you think it performs the best.</p> # </div> # # + # Affinity Propagation # Affinity propagation allows damping setting - this will test a range of dampening settings damp_range = np.arange(0.5, 1, 0.05) print(f'Affinity Proagation Results:') for d in damp_range: # run clustering and predict labels clusterer = sklearn.cluster.AffinityPropagation(damping= d) cluster_labels = clusterer.fit_predict(x_cols_matrix) # obtain and report silhoutette scores slht_avg = silhouette_score(x_cols_matrix, cluster_labels) print(f' For d = {d:.2f}, the average silhoutte score is {slht_avg:.2f}') # + # Spectral clustering # cycle through the previously established k-range print(f'Spectral Clustering Results:') for k in k_range: clusterer = sklearn.cluster.SpectralClustering(n_clusters = k, random_state = 5) cluster_labels = clusterer.fit_predict(x_cols_matrix) # obtain and report silhoutette scores slht_avg = silhouette_score(x_cols_matrix, cluster_labels) print(f' For k = {k}, the average silhoutte score is {slht_avg:.2f}') # + # Agglomerative Clustering print(f'Agglomerative Clustering Results:') for k in k_range: clusterer = sklearn.cluster.AgglomerativeClustering(n_clusters = k) cluster_labels = clusterer.fit_predict(x_cols_matrix) # obtain and report silhoutette scores slht_avg = silhouette_score(x_cols_matrix, cluster_labels) print(f' For k = {k}, the average silhoutte score is {slht_avg:.2f}') # + # DBSCAN print(f'DBSCAN Clustering Results:') clusterer = sklearn.cluster.DBSCAN() cluster_labels = clusterer.fit_predict( x_cols_matrix ) print("Cluster labels under default setting or when min_samples >= 4: \n") print(cluster_labels) print("\n") # eps did not produce any clustering result, but rather, shows the lack of clustering structure by assigning all # data points to the same cluster min_s_range = [1,2,3] for s in min_s_range: clusterer = sklearn.cluster.DBSCAN( min_samples = s ) cluster_labels = clusterer.fit_predict( x_cols_matrix ) slht_avg = silhouette_score(x_cols_matrix, cluster_labels) print(f' For min_samples = {s}, the average silhoutte score is {slht_avg:.2f}') # - # **Results:** # **Affinity Propagation:** # # The resulting narrow silhoutte score of either .12 or .09 based on a testing damper values of .5 to .95 shows little meaningful clusters in the data # # **Spectral Clustering** # # The spectral cluster values should work well with small datasets however the results also showed no real pattern in the data # # **Agglomerative Clustering** # # Agglomerative clustering is typically for larger datasets so it was not expected to work well on this small dataset. These results showed no real pattern # # **DBSCAN** # # When minimum samples are >= 4, every data point was put in the same cluster. For minimum samples 1, the value is .19 and is not significant. The minimum # sample setting of 2 and 3 provide negative results further showing the last of clustering in the data. # # This exercise did highlight the value of the different algorithims being able to be run interchangably with minimum coding changes. # # n_iter=10, cv=5, iid=False, n_jobs=25) hs_lSVM.fit(X_train,y_train) # Projection matrix from CKA W_cka_lSVM += [hs_lSVM.best_estimator_.named_steps['Projection'].Wcka] # --------------------------------------------------------------------------------------------------------------------------- # Validation # Linear y_pred_L = hs_Lineal.best_estimator_.predict(X_test) accuracy_L[fold-1] = accuracy_score(y_test,y_pred_L) cm_temp = confusion_matrix(y_test,y_pred_L) cm_L[fold-1,:,:] = 100*cm_temp.astype('float') / cm_temp.sum(axis=1)[:, np.newaxis] plot_confusion_matrix(y_test, y_pred_L, classes=np.unique(y),normalize=True,title='ACC = %.1f %% Fold %d' % (100*accuracy_L[fold-1],fold) + '_'+ label_models[0]) plt.autoscale() save_fig(img_path,label_models[0]+'_Fold'+str(fold)) plt.show() cr_L += [classification_report(y_test,y_pred_L)] print(cr_L[-1]) # Best model storage # best_mod_L += [hs_Lineal.best_estimator_, accuracy_L,cm_L,cr_L, sel_fts_L] # best_mod_L += [hs_Lineal.best_estimator_] best_pms_L += [hs_Lineal.best_params_] joblib.dump(best_pms_L, filename + "LinealCKA" + ".pkl") # Logistic Regression y_pred_LogR = hs_LogR.best_estimator_.predict(X_test) accuracy_LogR[fold-1]= accuracy_score(y_test,y_pred_LogR) cm_temp = confusion_matrix(y_test,y_pred_LogR) cm_LogR[fold-1,:,:] = 100*cm_temp.astype('float') / cm_temp.sum(axis=1)[:, np.newaxis] plot_confusion_matrix(y_test, y_pred_LogR, classes=np.unique(y),normalize=True,title='ACC = %.1f %% Fold %d' % (100*accuracy_LogR[fold-1],fold) + '_'+ label_models[1]) plt.autoscale() save_fig(img_path,label_models[1]+'_Fold'+str(fold)) plt.show() cr_LogR += [classification_report(y_test,y_pred_LogR)] print(cr_LogR[-1]) # Best model storage # best_mod_LogR += [hs_LogR.best_estimator_, accuracy_LogR,cm_LogR,cr_LogR, sel_fts_LogR] # best_mod_LogR += [hs_LogR.best_estimator_] best_pms_LogR += [hs_LogR.best_params_] joblib.dump(best_pms_LogR, filename + "LogRCKA" + ".pkl") # Linear SVM y_pred_lSVM = hs_lSVM.best_estimator_.predict(X_test) accuracy_lSVM[fold-1]= accuracy_score(y_test,y_pred_lSVM) cm_temp = confusion_matrix(y_test,y_pred_lSVM) cm_LogR[fold-1,:,:] = 100*cm_temp.astype('float') / cm_temp.sum(axis=1)[:, np.newaxis] plot_confusion_matrix(y_test, y_pred_lSVM, classes=np.unique(y),normalize=True,title='ACC = %.1f %% Fold %d' % (100*accuracy_lSVM[fold-1],fold) + '_'+ label_models[2]) plt.autoscale() save_fig(img_path,label_models[2]+'_Fold'+str(fold)) plt.show() cr_lSVM += [classification_report(y_test,y_pred_lSVM)] print(cr_lSVM[-1]) # Best model storage # best_mod_lSVM += [hs_lSVM.best_estimator_, accuracy_lSVM,cm_lSVM,cr_lSVM, sel_fts_lSVM] # best_mod_lSVM += [hs_lSVM.best_estimator_] best_pms_lSVM += [hs_lSVM.best_params_] joblib.dump(best_pms_lSVM, filename + "lSVMCKA" + ".pkl") # Results dictionary creation L_dict = {'accuracy_L': accuracy_L, 'cm_L': cm_L, 'cr_L': cr_L, 'W_cka_L': W_cka_L, 'X_train_cka': X_train_cka, 'X_test_cka': X_test_cka, 'y_train_cka':y_train_cka, 'y_test_cka':y_test_cka} LogR_dict = {'accuracy_LogR': accuracy_LogR, 'cm_LogR': cm_LogR, 'cr_LogR': cr_LogR, 'W_cka_LogR': W_cka_LogR, 'X_train_cka': X_train_cka, 'X_test_cka': X_test_cka, 'y_train_cka':y_train_cka, 'y_test_cka':y_test_cka} lSVM_dict = {'accuracy_lSVM': accuracy_lSVM, 'cm_lSVM': cm_lSVM, 'cr_lSVM': cr_lSVM, 'W_cka_lSVM': W_cka_lSVM, 'X_train_cka': X_train_cka, 'X_test_cka': X_test_cka, 'y_train_cka':y_train_cka, 'y_test_cka':y_test_cka} Results = [L_dict, LogR_dict, lSVM_dict] joblib.dump(Results, rslt_dir + "Fold" + str(fold) + ".pkl") # + [markdown] id="wK_XCEUEbXuK" colab_type="text" # Average result printing # + id="Zy8zArEbbXuL" colab_type="code" colab={} outputId="0da9312a-0d6e-44f1-d338-9c25184da7f4" print('Linear Classifier') print(str(np.mean(np.array(Results[0]['accuracy_L']))*100) + '+/-' + str(np.std(np.array(Results[0]['accuracy_L']))*100)) print('Logistic Regression Classifier') print(str(np.mean(np.array(Results[1]['accuracy_LogR']))*100) + '+/-' + str(np.std(np.array(Results[1]['accuracy_LogR']))*100)) print('Linear SVM Classifier') print(str(np.mean(np.array(Results[2]['accuracy_lSVM']))*100) + '+/-' + str(np.std(np.array(Results[2]['accuracy_lSVM']))*100)) # + [markdown] id="0HWLNso-bXuN" colab_type="text" # Projection matrix plotting # + id="m33vHkGPbXuN" colab_type="code" colab={} outputId="e328ed1d-03ac-4061-cb3d-40c451c0005b" W = Results[1]['W_cka_LogR'][0] Xp = X_train_cka[0].dot(W) # Plotting the projection matrix plt.scatter(Xp[:,1],Xp[:,2],c = y_train_cka[0]) # + [markdown] id="uFovnQxgbXuQ" colab_type="text" # # **Step 5: Region Selection** # + [markdown] id="HYBSdOpIbXuQ" colab_type="text" # The algorithm now runs over the regions to know whose are more informative than others # + id="-DCo6cL6bXuQ" colab_type="code" colab={} outputId="f0423e3a-d752-4396-8180-f05c37a7aea3" # Declaracion de variables n_partitions = 10 test_per = 0.695 n_classes = len(np.unique(y)) f_step = 1500 ftr_vec = np.arange(f_step,int((X.shape[1]))+f_step,f_step).astype(int) fold = 0 # Arrays and lists to store at each fold train_idx = [] test_idx = [] accuracy_L = np.zeros((n_partitions,len(ftr_vec))) accuracy_LogR= np.zeros((n_partitions,len(ftr_vec))) accuracy_lSVM= np.zeros((n_partitions,len(ftr_vec))) cm_L = np.zeros((n_partitions,n_classes,n_classes)) cm_LogR = np.zeros((n_partitions,n_classes,n_classes)) cm_lSVM = np.zeros((n_partitions,n_classes,n_classes)) cr_L = [] cr_LogR = [] cr_lSVM = [] best_mod_L = [] best_mod_LogR= [] best_mod_lSVM= [] best_pms_L = [] best_pms_LogR= [] best_pms_lSVM= [] # + id="mMbxY_JibXuS" colab_type="code" colab={} # Setting the data partition scheme to work like HoldOut validation sss = StratifiedShuffleSplit(n_splits = n_partitions, test_size = test_per, random_state=42) # + id="oNmIYcKubXuU" colab_type="code" colab={} # Step declaration steps = [ [('Preprocessing', StandardScaler()), ('Classification',SGDClassifier())], # Clasificador Lineal ] # Grid declaration parameters = [ {'Classification__penalty': ['l1', 'l2', 'elasticnet'] }, ] # Model labels label_models = ['Linear'] # + id="5rIdLT3ybXuW" colab_type="code" colab={} # Directory to save results and plots rslt_dir = img_dir + '/RegionSelection/RS_BoCF/Results_RS_BoCF_Py' sys.path.append(rslt_dir) img_path = img_dir + '/RegionSelection/RS_BoCF/' sys.path.append(img_path) # + id="4TedGMHJbXuY" colab_type="code" colab={} outputId="3f217e5c-70b1-47ec-a7e1-d4f3ddc0a7c1" # Traininig/Testing loop for feature in range(0,len(ftr_vec)): # For loop over regions print("Region = ", str(feature+1) +'/'+ str(21)) fold = 0 # Initializa variables train_idx = [] test_idx = [] cm_L = np.zeros((n_partitions,n_classes,n_classes)) cr_L = [] best_mod_L = [] best_pms_L = [] for train_index, test_index in tqdm(sss.split(X,y)): # Training/testing index storage train_idx += [train_index] test_idx += [test_index] # Number of partitions flag fold = fold + 1 print("Iteration = ", str(fold) +'/'+ str(n_partitions)) # Iteration file name filename = img_path + "/Fold" + str(fold) + "Region" + str(feature+1) # Train/Test partition and matrix storing to apply CKA over them for # visualization X_train, X_test = X[train_index,0:ftr_vec[feature]], X[test_index,0:ftr_vec[feature]] y_train, y_test = y[train_index], y[test_index] # --------------------------------------------------------------------------------------------------------------------------- # Training # Linear print('Linear Model') # Using GridSearchCV hs_Lineal = GridSearchCV(Pipeline(steps[0]), parameters[0], n_jobs = 25, cv = 5, scoring = 'balanced_accuracy', verbose = 50) # Using RandomizedSearchCV # hs_Lineal = RandomizedSearchCV(Pipeline(steps[0]), param_distributions=parameters[0],n_iter=10, cv=5, iid=False, n_jobs=2) hs_Lineal.fit(X_train,y_train) # Projection matrix from CKA # W_cka_L += [hs_Lineal.best_estimator_.named_steps['Projection'].Wcka] # --------------------------------------------------------------------------------------------------------------------------- # Validation # Linear y_pred_L = hs_Lineal.best_estimator_.predict(X_test) accuracy_L[fold-1,feature] = accuracy_score(y_test,y_pred_L) cm_temp = confusion_matrix(y_test,y_pred_L) cm_L[fold-1,:,:] = 100*cm_temp.astype('float') / cm_temp.sum(axis=1)[:, np.newaxis] plot_confusion_matrix(y_test, y_pred_L, classes=np.unique(y),normalize=True,title='ACC = %.1f %% Fold %d' % (100*accuracy_L[fold-1,feature],fold) + '_'+ label_models[0]) plt.autoscale() save_fig(img_path,label_models[0]+'_Fold'+str(fold)+ "Region" + str(feature+1)) plt.show() cr_L += [classification_report(y_test,y_pred_L)] print(cr_L[-1]) # Best model storage # best_mod_L += [hs_Lineal.best_estimator_, accuracy_L,cm_L,cr_L, sel_fts_L] # best_mod_L += [hs_Lineal.best_estimator_] # best_pms_L += [hs_Lineal.best_params_,accuracy_L,cm_L,cr_L,W_cka_L] best_pms_L += [hs_Lineal.best_params_] # joblib.dump(best_pms_L, filename + "LinealCKA" + ".pkl") # Results dictionary creation L_dict = {'accuracy_L': accuracy_L, 'cm_L': cm_L, 'cr_L': cr_L, 'best_pms_L':best_pms_L} Results = [L_dict] joblib.dump(Results, rslt_dir + "Region" + str(feature+1) +".pkl") # + id="x-_yFDgdbXub" colab_type="code" colab={} outputId="4d4735ff-991c-432f-a729-be9398aab4ca" # Get mean and standard deviation vectors mean_vec_l = np.mean(Results[0]['accuracy_L'], axis = 0) std_vec_l = np.std(Results[0]['accuracy_L'], axis = 0) # mean_vec_lr = np.mean(Results[1]['accuracy_LogR'], axis = 0) # std_vec_lr = np.std(Results[1]['accuracy_LogR'], axis = 0) # mean_vec_lsvm = np.mean(Results[2]['accuracy_lSVM'], axis = 0) # std_vec_lsvm = np.std(Results[2]['accuracy_lSVM'], axis = 0) reg_vec = np.arange(1,22,1) # Plotting plt.figure() plt.plot(reg_vec,mean_vec_l) plt.fill_between(reg_vec, mean_vec_l-std_vec_l, mean_vec_l+std_vec_l, alpha=0.2) # plt.ylim(0.7,0.9) # # plt.plot(reg_vec,mean_vec_lr) # # plt.fill_between(reg_vec, mean_vec_lr-std_vec_lr, mean_vec_lr+std_vec_lr, alpha=0.2) # # plt.plot(reg_vec,mean_vec_lsvm) # # plt.fill_between(reg_vec, mean_vec_lsvm-std_vec_lsvm, mean_vec_lsvm+std_vec_lsvm, alpha=0.2) plt.xticks(reg_vec, reg_vec) # + id="6EkXi_qIbXud" colab_type="code" colab={} # Storing the data Data = np.c_[reg_vec.reshape(1,-1).T,mean_vec_l.T,std_vec_l.T] np.savetxt(img_path + '/ETH80DBRSL.dat', Data, delimiter=' ') # + id="EnZBDfXlbXuf" colab_type="code" colab={} outputId="b8061073-8bf4-4eb4-c530-a11ee68bf9c4" # Computing optimal number of regiones acording to target Results = np.loadtxt(img_path + 'ETH80DBRSL.dat') # Normalizing the number of regions Results[:,0] = Results[:,0] - min(Results[:,0]) Results[:,0] = Results[:,0]/max(Results[:,0]) # Normalizing the accuracy Results[:,1] = Results[:,1] - min(Results[:,1]) Results[:,1] = Results[:,1]/max(Results[:,1]) # Normalizing the standard deviation Results[:,2] = Results[:,2] - min(Results[:,2]) Results[:,2] = Results[:,2]/max(Results[:,2]) # Ideal result Target = np.array((0,1,0)) # Computing the minimum distance between the ideal result and our results dist = cdist(Target.reshape(1,-1),Results, 'euclidean') # Showing the optimum number of regions print('The ideal number of regions is: ' + str((np.argmin(dist)+1))) # + [markdown] id="ZRdOIobcbXui" colab_type="text" # # **Step 6: Projecting the selected regions using CKA** # + id="jhCwPgmmbXui" colab_type="code" colab={} # Selecting the regions to project X = X[:,0:7500] # + id="-M_DQLWibXuk" colab_type="code" colab={} # Variable declaration n_partitions = 80 test_per = 0.67 n_classes = len(np.unique(y)) fold = 0 train_idx = [] test_idx = [] alpha_L = [] alpha_LogR = [] alpha_lSVM = [] sel_fts_L = [] sel_fts_LogR = [] sel_fts_lSVM = [] thld_L = [] thld_LogR = [] thld_lSVM = [] sel_fts_Lt = [] sel_fts_LogRt= [] sel_fts_lSVMt= [] nfeats_L = [] nfeats_LogR = [] nfeats_lSVM = [] accuracy_L = np.zeros((n_partitions)) accuracy_LogR= np.zeros((n_partitions)) accuracy_lSVM= np.zeros((n_partitions)) cm_L = np.zeros((n_partitions,n_classes,n_classes)) cm_LogR = np.zeros((n_partitions,n_classes,n_classes)) cm_lSVM = np.zeros((n_partitions,n_classes,n_classes)) cr_L = [] cr_LogR = [] cr_lSVM = [] best_mod_L = [] best_mod_LogR= [] best_mod_lSVM= [] best_pms_L = [] best_pms_LogR= [] best_pms_lSVM= [] # + id="L333hz5ZbXum" colab_type="code" colab={} # Matrix declaration to store train/test matrices and their labels, and projection matrices from CKA X_train_cka = [] X_test_cka = [] y_train_cka = [] y_test_cka = [] W_cka_L = [] W_cka_LogR = [] W_cka_lSVM = [] # Step declaration steps = [ [('Preprocessing', StandardScaler()), ('Projection', MiniBatchCKA(Q = 0.95, batch=41)), ('Preprocessing2',StandardScaler()), ('Classification',SGDClassifier())], # Clasificador Lineal [('Preprocessing', StandardScaler()), ('Projection', MiniBatchCKA(Q = 0.95, batch=41)), ('Preprocessing2',StandardScaler()), ('Classification',LogisticRegression())], # Regresion Logistica [('Preprocessing', StandardScaler()), ('Projection', MiniBatchCKA(Q = 0.95, batch=41)), ('Preprocessing2',StandardScaler()), ('Classification',LinearSVC())], # Maquina de Vectores de Soporte ] # Grid declaration parameters = [ {'Classification__penalty': ['l1', 'l2', 'elasticnet'] }, {'Classification__C': [0.01,0.1,1,10]}, {'Classification__C': [0.1,1,10,100,1000]} ] # Model labels label_models = ['LinearCKA','LogisticRegressionCKA','LinearSVCKA'] # + id="LhX47qskbXuo" colab_type="code" colab={} # Directory to save results and plots rslt_dir = img_dir + '/RegionSelection/ReliefF_CKA_RS_BoCF/Results_ReliefF_CKA_RS_BoCF_Py' sys.path.append(rslt_dir) img_path = img_dir + '/RegionSelection/ReliefF_CKA_RS_BoCF/' sys.path.append(img_path) # + [markdown] id="DkPhd5hXbXuq" colab_type="text" # Loop to optimize CKA projection # + id="k2yqalQybXur" colab_type="code" colab={} outputId="d8ffa3e8-7536-40f8-ea26-1aa37b4c89a5" # Traininig/Testing loop implementing leave one objet out as Wand et. al. (2014) suggests it fold = 0 for i in tqdm(range(len(np.unique(lobj)))): # Number of partitions flag fold = fold + 1 print("Iteration = ", str(fold) +'/'+ str(n_partitions)) # Iteration file name filename = img_path + "/Fold" + str(fold) # Train/Test partition and matrix storing to apply CKA over them for # visualization X_train, X_test = X[lobj!=i+1], X[lobj==i+1] y_train, y_test = y[lobj!=i+1], y[lobj==i+1] X_train_cka = X_train X_test_cka = X_test y_train_cka = y_train y_test_cka = y_test # --------------------------------------------------------------------------------------------------------------------------- # Training # Linear print('Linear Model') # Using GridSearchCV # hs_Lineal = GridSearchCV(Pipeline(steps[0]), parameters[0], n_jobs = 6, cv = 5, scoring = 'balanced_accuracy', verbose = 50) # Using RandomizedSearchCV hs_Lineal = RandomizedSearchCV(Pipeline(steps[0]), param_distributions=parameters[0],n_iter=10, cv=5, iid=False, n_jobs=20) hs_Lineal.fit(X_train,y_train) # Projection matrix from CKA W_cka_L = hs_Lineal.best_estimator_.named_steps['Projection'].Wcka # Logistic Regression print('Logistic Regression Model') # Usaing GridSearchCV # hs_LogR = GridSearchCV(Pipeline(steps[1]), parameters[1], n_jobs = 6, cv = 5, scoring = 'balanced_accuracy', verbose = 50) # Using RandomizedSearchCV hs_LogR = RandomizedSearchCV(Pipeline(steps[1]), param_distributions=parameters[1],n_iter=10, cv=5, iid=False,n_jobs=20) hs_LogR.fit(X_train,y_train) # Projection matrix from CKA W_cka_LogR = hs_LogR.best_estimator_.named_steps['Projection'].Wcka # Linear SVM print('Linear SVM Model') # Using GridSearchCV #hs_lSVM = GridSearchCV(Pipeline(steps[2]), parameters[2], n_jobs = 6, cv = 5, scoring = 'balanced_accuracy', verbose = 50) # Using RandomizedSearchCV hs_lSVM = RandomizedSearchCV(Pipeline(steps[2]), param_distributions=parameters[2],n_iter=10, cv=5, iid=False, n_jobs=20) hs_lSVM.fit(X_train,y_train) # Projection matrix from CKA W_cka_lSVM = hs_lSVM.best_estimator_.named_steps['Projection'].Wcka # --------------------------------------------------------------------------------------------------------------------------- # Validation # Linear y_pred_L = hs_Lineal.best_estimator_.predict(X_test) accuracy_L[fold-1] = accuracy_score(y_test,y_pred_L) # cm_temp = confusion_matrix(y_test,y_pred_L) # cm_L[fold-1,:,:] = 100*cm_temp.astype('float') / cm_temp.sum(axis=1)[:, np.newaxis] # plot_confusion_matrix(y_test, y_pred_L, classes=np.unique(y),normalize=True,title='ACC = %.1f %% Fold %d' % (100*accuracy_L[fold-1],fold) + '_'+ label_models[0]) # plt.autoscale() # save_fig(img_path,label_models[0]+'_Fold'+str(fold)) # plt.show() cr_L += [classification_report(y_test,y_pred_L)] print(cr_L[-1]) # Best model storage # best_mod_L += [hs_Lineal.best_estimator_, accuracy_L,cm_L,cr_L, sel_fts_L] # best_mod_L += [hs_Lineal.best_estimator_] best_pms_L += [hs_Lineal.best_params_] joblib.dump(best_pms_L, filename + "LinealCKA" + ".pkl") # Logistic Regression y_pred_LogR = hs_LogR.best_estimator_.predict(X_test) accuracy_LogR[fold-1]= accuracy_score(y_test,y_pred_LogR) # cm_temp = confusion_matrix(y_test,y_pred_LogR) # cm_LogR[fold-1,:,:] = 100*cm_temp.astype('float') / cm_temp.sum(axis=1)[:, np.newaxis] # plot_confusion_matrix(y_test, y_pred_LogR, classes=np.unique(y),normalize=True,title='ACC = %.1f %% Fold %d' % (100*accuracy_LogR[fold-1],fold) + '_'+ label_models[1]) # plt.autoscale() # save_fig(img_path,label_models[1]+'_Fold'+str(fold)) # plt.show() cr_LogR += [classification_report(y_test,y_pred_LogR)] print(cr_LogR[-1]) # Best model storage # best_mod_LogR += [hs_LogR.best_estimator_, accuracy_LogR,cm_LogR,cr_LogR, sel_fts_LogR] # best_mod_LogR += [hs_LogR.best_estimator_] best_pms_LogR += [hs_LogR.best_params_] joblib.dump(best_pms_LogR, filename + "LogRCKA" + ".pkl") # Linear SVM y_pred_lSVM = hs_lSVM.best_estimator_.predict(X_test) accuracy_lSVM[fold-1]= accuracy_score(y_test,y_pred_lSVM) # cm_temp = confusion_matrix(y_test,y_pred_lSVM) # cm_LogR[fold-1,:,:] = 100*cm_temp.astype('float') / cm_temp.sum(axis=1)[:, np.newaxis] # plot_confusion_matrix(y_test, y_pred_lSVM, classes=np.unique(y),normalize=True,title='ACC = %.1f %% Fold %d' % (100*accuracy_lSVM[fold-1],fold) + '_'+ label_models[2]) # plt.autoscale() # save_fig(img_path,label_models[2]+'_Fold'+str(fold)) # plt.show() cr_lSVM += [classification_report(y_test,y_pred_lSVM)] print(cr_lSVM[-1]) # Best model storage # best_mod_lSVM += [hs_lSVM.best_estimator_, accuracy_lSVM,cm_lSVM,cr_lSVM, sel_fts_lSVM] # best_mod_lSVM += [hs_lSVM.best_estimator_] best_pms_lSVM += [hs_lSVM.best_params_] joblib.dump(best_pms_lSVM, filename + "lSVMCKA" + ".pkl") # Results dictionary creation L_dict = {'accuracy_L': accuracy_L, # 'cm_L': cm_L, 'cr_L': cr_L, 'W_cka_L': W_cka_L, 'X_train_cka': X_train_cka, 'X_test_cka': X_test_cka, 'y_train_cka':y_train_cka, 'y_test_cka':y_test_cka} LogR_dict = {'accuracy_LogR': accuracy_LogR, # 'cm_LogR': cm_LogR, 'cr_LogR': cr_LogR, 'W_cka_LogR': W_cka_LogR, 'X_train_cka': X_train_cka, 'X_test_cka': X_test_cka, 'y_train_cka':y_train_cka, 'y_test_cka':y_test_cka} lSVM_dict = {'accuracy_lSVM': accuracy_lSVM, # 'cm_lSVM': cm_lSVM, 'cr_lSVM': cr_lSVM, 'W_cka_lSVM': W_cka_lSVM, 'X_train_cka': X_train_cka, 'X_test_cka': X_test_cka, 'y_train_cka':y_train_cka, 'y_test_cka':y_test_cka} Results = [L_dict, LogR_dict, lSVM_dict] joblib.dump(Results, rslt_dir + ".pkl") # + [markdown] id="pmwznt52bXuv" colab_type="text" # Average result printing # + id="qpy3I8V3bXuv" colab_type="code" colab={} outputId="5cd1487e-0023-4c0a-fb88-117d40c2926e" print('Linear Classifier') print(str(np.mean(np.array(Results[0]['accuracy_L']))*100) + '+/-' + str(np.std(np.array(Results[0]['accuracy_L']))*100)) print('Logistic Regression Classifier') print(str(np.mean(np.array(Results[1]['accuracy_LogR']))*100) + '+/-' + str(np.std(np.array(Results[1]['accuracy_LogR']))*100)) print('Linear SVM Classifier') print(str(np.mean(np.array(Results[2]['accuracy_lSVM']))*100) + '+/-' + str(np.std(np.array(Results[2]['accuracy_lSVM']))*100)) # + [markdown] id="7y-rz7w4bXux" colab_type="text" # Projection matrix plotting # + id="Fs0ZO57zbXuy" colab_type="code" colab={} outputId="3f381de2-a905-4606-c1b9-016e00001b5d" W = Results[1]['W_cka_LogR'] Xp = X_train_cka.dot(W) # Plotting the projection matrix plt.scatter(Xp[:,1],Xp[:,2],c = y_train_cka) # + id="Z985KU9_bXu0" colab_type="code" colab={}
51,166
/code/error-handling.ipynb
0f4431ae240c8921ef7a12e9e67e0a30c05880ee
[ "MIT" ]
permissive
vicb1/python-reference
https://github.com/vicb1/python-reference
1
0
MIT
2022-06-21T23:43:38
2022-02-22T01:06:50
Jupyter Notebook
Jupyter Notebook
false
false
.py
2,394
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # # write errors to file # + import datetime import logging logger = logging.getLogger() logging.basicConfig(filename='errors_log.log', level=logging.DEBUG) logging.debug('Started run, time: ' + str(datetime.datetime.now())) logging.info('this is an info message') logging.error('test error message') logging.debug('This is a debug message') logging.warning('tbllalfhldfhd, warning.') logging.exception('Got exception on main handler, time') try: print('start running program') variable = error_variable # will error out except: logging.exception('Got exception on main handler, time: ' + str(datetime.datetime.now())) # raise # use "raise" to exit program right away, without finishing logging.debug('Finished run, time: ' + str(datetime.datetime.now())) print('rest of program') # - # # try - except - finally try: print('t') sd = 6 + 'fsdf' except: print('e') finally: print('f')
1,192
/solutions/rank-4/model2/as-meter2-no-1099-xgb-meter0-fold0.ipynb
64e382bd2ba425407ae95ee8f97b6c60e5b9f4fe
[ "MIT" ]
permissive
mattmotoki/ashrae-great-energy-predictor-3-solution-analysis
https://github.com/mattmotoki/ashrae-great-energy-predictor-3-solution-analysis
0
0
MIT
2020-05-17T09:40:58
2020-05-16T12:53:38
null
Jupyter Notebook
false
false
.py
663,500
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # + _cell_guid="b1076dfc-b9ad-4769-8c92-a6c4dae69d19" _kg_hide-input=true _kg_hide-output=true _uuid="8f2839f25d086af736a60e9eeb907d3b93b6e0e5" import gc import os from pathlib import Path import random import sys from os.path import join as pjoin from sklearn.preprocessing import LabelEncoder from tqdm import tqdm_notebook as tqdm import numpy as np # linear algebra import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv) import matplotlib.pyplot as plt import seaborn as sns from IPython.core.display import display, HTML # --- plotly --- from plotly import tools, subplots import plotly.offline as py py.init_notebook_mode(connected=True) import plotly.graph_objs as go import plotly.express as px import plotly.figure_factory as ff # --- models --- from sklearn import preprocessing from sklearn.model_selection import KFold import lightgbm as lgb import xgboost as xgb import catboost as cb # + _cell_guid="79c7e3d0-c299-4dcb-8224-4455121ee9b0" _kg_hide-input=true _kg_hide-output=true _uuid="d629ff2d2480ee46fbb7e2d37f6b5fab8052498a" RAW_DATA_DIR = os.path.join('..', 'input', 'ashrae-energy-prediction') weather_dtypes = { 'site_id': np.uint8, 'air_temperature': np.float32, 'cloud_coverage': np.float32, 'dew_temperature': np.float32, 'precip_depth_1_hr': np.float32, 'sea_level_pressure': np.float32, 'wind_direction': np.float32, 'wind_speed': np.float32, } weather_train = pd.read_csv(pjoin(RAW_DATA_DIR, 'weather_train.csv'),dtype=weather_dtypes, parse_dates=['timestamp']) weather_test = pd.read_csv(pjoin(RAW_DATA_DIR, 'weather_test.csv'),dtype=weather_dtypes, parse_dates=['timestamp']) weather = pd.concat([weather_train,weather_test],ignore_index=True) del weather_train, weather_test weather_key = ['site_id', 'timestamp'] temp_skeleton = weather[weather_key + ['air_temperature']].drop_duplicates(subset=weather_key).sort_values(by=weather_key).copy() del weather # - data_to_plot = temp_skeleton.copy() data_to_plot["hour"] = data_to_plot["timestamp"].dt.hour count = 1 plt.figure(figsize=(25, 15)) for site_id, data_by_site in data_to_plot.groupby('site_id'): by_site_by_hour = data_by_site.groupby('hour').mean() ax = plt.subplot(4, 4, count) plt.plot(by_site_by_hour.index,by_site_by_hour['air_temperature'],'xb-') ax.set_title('site: '+str(site_id)) count += 1 plt.tight_layout() plt.show() del data_to_plot # + # calculate ranks of hourly temperatures within date/site_id chunks temp_skeleton['temp_rank'] = temp_skeleton.groupby(['site_id', temp_skeleton.timestamp.dt.date])['air_temperature'].rank('average') # create a dataframe of site_ids (0-16) x mean hour rank of temperature within day (0-23) df_2d = temp_skeleton.groupby(['site_id', temp_skeleton.timestamp.dt.hour])['temp_rank'].mean().unstack(level=1) # Subtract the columnID of temperature peak by 14, getting the timestamp alignment gap. site_ids_offsets = pd.Series(df_2d.values.argmax(axis=1) - 14) site_ids_offsets.index.name = 'site_id' def timestamp_align(df): df['offset'] = df.site_id.map(site_ids_offsets) df['timestamp_aligned'] = (df.timestamp - pd.to_timedelta(df.offset, unit='H')) df['timestamp'] = df['timestamp_aligned'] del df['timestamp_aligned'] return df # + _kg_hide-input=true _kg_hide-output=true # Original code from https://www.kaggle.com/gemartin/load-data-reduce-memory-usage by @gemartin # Modified to support timestamp type, categorical type # Modified to add option to use float16 or not. feather format does not support float16. from pandas.api.types import is_datetime64_any_dtype as is_datetime from pandas.api.types import is_categorical_dtype def reduce_mem_usage(df, use_float16=False): """ iterate through all the columns of a dataframe and modify the data type to reduce memory usage. """ start_mem = df.memory_usage().sum() / 1024**2 print('Memory usage of dataframe is {:.2f} MB'.format(start_mem)) for col in df.columns: if is_datetime(df[col]) or is_categorical_dtype(df[col]): # skip datetime type or categorical type continue col_type = df[col].dtype if col_type != object: c_min = df[col].min() c_max = df[col].max() if str(col_type)[:3] == 'int': if c_min > np.iinfo(np.int8).min and c_max < np.iinfo(np.int8).max: df[col] = df[col].astype(np.int8) elif c_min > np.iinfo(np.int16).min and c_max < np.iinfo(np.int16).max: df[col] = df[col].astype(np.int16) elif c_min > np.iinfo(np.int32).min and c_max < np.iinfo(np.int32).max: df[col] = df[col].astype(np.int32) elif c_min > np.iinfo(np.int64).min and c_max < np.iinfo(np.int64).max: df[col] = df[col].astype(np.int64) else: if use_float16 and c_min > np.finfo(np.float16).min and c_max < np.finfo(np.float16).max: df[col] = df[col].astype(np.float16) elif c_min > np.finfo(np.float32).min and c_max < np.finfo(np.float32).max: df[col] = df[col].astype(np.float32) else: df[col] = df[col].astype(np.float64) else: df[col] = df[col].astype('category') end_mem = df.memory_usage().sum() / 1024**2 print('Memory usage after optimization is: {:.2f} MB'.format(end_mem)) print('Decreased by {:.1f}%'.format(100 * (start_mem - end_mem) / start_mem)) return df # + _kg_hide-input=true _kg_hide-output=true # !ls ../input # + _kg_hide-input=true _kg_hide-output=true # %%time #root = Path('../input/ashrae-feather-format-for-fast-loading') root = pjoin('..', 'output', 'ashrae-feather-format-for-fast-loading') train_df = pd.read_feather(pjoin(root, 'train.feather')) weather_train_df = pd.read_feather(pjoin(root, 'weather_train.feather')) building_meta_df = pd.read_feather(pjoin(root, 'building_metadata.feather')) print('loading...') test_df = pd.read_feather(pjoin(root, 'test.feather')) weather_test_df = pd.read_feather(pjoin(root, 'weather_test.feather')) # + _kg_hide-input=true _kg_hide-output=true building_site_dict = dict(zip(building_meta_df['building_id'], building_meta_df['site_id'])) site_meter_raw = train_df[['building_id', 'meter', 'timestamp', 'meter_reading']].copy() site_meter_raw['site_id'] = site_meter_raw.building_id.map(building_site_dict) del site_meter_raw['building_id'] site_meter_to_plot = site_meter_raw.copy() site_meter_to_plot["hour"] = site_meter_to_plot["timestamp"].dt.hour elec_to_plot = site_meter_to_plot[site_meter_to_plot.meter == 0] # + _kg_hide-input=true _kg_hide-output=false count = 1 plt.figure(figsize=(25, 50)) for site_id, data_by_site in elec_to_plot.groupby('site_id'): by_site_by_hour = data_by_site.groupby('hour').mean() ax = plt.subplot(15, 4, count) plt.plot(by_site_by_hour.index,by_site_by_hour['meter_reading'],'xb-') ax.set_title('site: '+str(site_id)) count += 1 plt.tight_layout() plt.show() del elec_to_plot, site_meter_to_plot, building_site_dict, site_meter_raw # - train_exception = pd.read_pickle(pjoin('..', 'output', 'fork-of-ashrae-eda-exception-label5', 'train_exception.pkl')) train_df['exception'] = train_exception.exception.values del train_exception gc.collect() # + ########################### Building DF merge through concat ################################################################################# # Benefits of concat: ## Faster for huge datasets (columns number) ## No dtype change for dataset ## Consume less memmory temp_df = train_df[['building_id']] temp_df = temp_df.merge(building_meta_df, on=['building_id'], how='left') del temp_df['building_id'] train_df = pd.concat([train_df, temp_df], axis=1) temp_df = test_df[['building_id']] temp_df = temp_df.merge(building_meta_df, on=['building_id'], how='left') del temp_df['building_id'] test_df = pd.concat([test_df, temp_df], axis=1) del temp_df # + ########################### Weather DF merge over concat (to not lose type) ################################################################################# # Benefits of concat: ## Faster for huge datasets (columns number) ## No dtype change for dataset ## Consume less memmory train_weather_df = timestamp_align(weather_train_df) temp_df = train_df[['site_id','timestamp']] temp_df = temp_df.merge(train_weather_df, on=['site_id','timestamp'], how='left') del temp_df['site_id'], temp_df['timestamp'] train_df = pd.concat([train_df, temp_df], axis=1) del train_weather_df, temp_df gc.collect() test_weather_df = timestamp_align(weather_test_df) test_temp_df = test_df[['site_id','timestamp']] test_temp_df = test_temp_df.merge(test_weather_df, on=['site_id','timestamp'], how='left') del test_temp_df['site_id'], test_temp_df['timestamp'] test_df = pd.concat([test_df, test_temp_df], axis=1) del test_weather_df, test_temp_df gc.collect() # + # # 添加simplefe特征 # # 最后使用,验证强一点点,测试弱一点点,可忽略不计 # ########################### Smooth readings 单用,验证强点,测试弱一点 # ################################################################################# # TARGET = 'meter_reading' # train_df['month'] = train_df["timestamp"].dt.month # test_df['month'] = test_df["timestamp"].dt.month # train_df['s_uid'] = train_df['site_id'].astype(str) +'_'+\ # train_df['month'].astype(str) +'_'+\ # train_df['meter'].astype(str) +'_'+\ # train_df['primary_use'].astype(str) # temp_df = train_df.groupby(['s_uid'])[TARGET].apply(lambda x: int(np.percentile(x,99))) # temp_df = temp_df.to_dict() # train_df['s_uid'] = train_df['s_uid'].map(temp_df) # train_df[TARGET] = np.where(train_df[TARGET]>train_df['s_uid'], train_df['s_uid'], train_df[TARGET]) # del train_df['s_uid'], temp_df # + # Building and site id for enc_col in ['building_id', 'site_id']: # 该操作有重复 temp_df = train_df.groupby([enc_col])['meter'].agg(['unique']) temp_df['unique'] = temp_df['unique'].apply(lambda x: '_'.join(str(x))).astype(str) le = LabelEncoder() temp_df['unique'] = le.fit_transform(temp_df['unique']).astype(np.int8) temp_df = temp_df['unique'].to_dict() train_df[enc_col+'_uid_enc'] = train_df[enc_col].map(temp_df) test_df[enc_col+'_uid_enc'] = test_df[enc_col].map(temp_df) # Nunique temp_dict = train_df.groupby([enc_col])['meter'].agg(['nunique'])['nunique'].to_dict() train_df[enc_col+'-m_nunique'] = train_df[enc_col].map(temp_dict).astype(np.int8) test_df[enc_col+'-m_nunique'] = test_df[enc_col].map(temp_dict).astype(np.int8) del temp_df, temp_dict # + train_df["hour"] = train_df["timestamp"].dt.hour test_df["hour"] = test_df["timestamp"].dt.hour train_df['DT_W'] = train_df['timestamp'].dt.weekofyear.astype(np.int8) test_df['DT_W'] = test_df['timestamp'].dt.weekofyear.astype(np.int8) for df in [train_df, test_df]: # for df in [train_df]: df['DT_w_hour'] = np.where((df['hour']>5)&(df['hour']<13),1,0) df['DT_w_hour'] = np.where((df['hour']>12)&(df['hour']<19),2,df['DT_w_hour']) df['DT_w_hour'] = np.where((df['hour']>18),3,df['DT_w_hour']) df['DT_w_temp'] = df.groupby(['site_id','DT_W','DT_w_hour'])['air_temperature'].transform('mean') df['DT_w_dew_temp'] = df.groupby(['site_id','DT_W','DT_w_hour'])['dew_temperature'].transform('mean') i_cols = [ 'DT_w_hour', ] for col in i_cols: # del train_df[col] del train_df[col], test_df[col] # + # new_feature = ['building_id_uid_enc', 'building_id-m_nunique', # 'site_id_uid_enc', 'site_id-m_nunique', 'DT_w_temp', # 'DT_w_dew_temp'] new_feature = ['building_id_uid_enc', 'building_id-m_nunique', 'site_id_uid_enc','DT_w_dew_temp'] # - # cut_target = np.copy(train_df.meter_reading.values) train_nf = train_df[new_feature] test_nf = test_df[new_feature] del train_df, test_df, weather_test_df, weather_train_df, building_meta_df gc.collect() # + # %%time # root = Path('../input/ashrae-feather-format-for-fast-loading') # train_df = pd.read_feather(root/'train.feather') # weather_train_df = pd.read_feather(root/'weather_train.feather') # building_meta_df = pd.read_feather(root/'building_metadata.feather') root = os.path.join('..', 'output', 'ashrae-feather-format-for-fast-loading') train_df = pd.read_feather(pjoin(root, 'train.feather')) weather_train_df = pd.read_feather(pjoin(root, 'weather_train.feather')) building_meta_df = pd.read_feather(pjoin(root, 'building_metadata.feather')) # - train_exception = pd.read_pickle(os.path.join('..', 'output', 'fork-of-ashrae-eda-exception-label5', 'train_exception.pkl')) train_df['exception'] = train_exception.exception.values del train_exception gc.collect() train_df.exception.value_counts(dropna=False) # 验证强一点,测试弱一点 train_df.loc[(train_df.building_id == 1099) & (train_df.meter == 2) & (train_df.meter_reading > 30000), 'exception'] = 4 train_df.exception.value_counts(dropna=False) train_df = pd.concat([train_df, train_nf], axis=1) # test_df = pd.concat([test_df, test_nf], axis=1) del train_nf gc.collect() # + _kg_hide-output=true def preprocess(df): df["hour"] = df["timestamp"].dt.hour df["weekend"] = df["timestamp"].dt.weekday # df["month"] = df["timestamp"].dt.month # df["dayofweek"] = df["timestamp"].dt.dayofweek # df['DT_day_month'] = df['timestamp'].dt.day.astype(np.int8) # df['DT_W'] = df['timestamp'].dt.weekofyear.astype(np.int8) def add_lag_feature(weather_df, window=3): group_df = weather_df.groupby('site_id') # cols = ['air_temperature', 'cloud_coverage', 'dew_temperature', 'precip_depth_1_hr', 'sea_level_pressure', 'wind_direction', 'wind_speed'] cols = ['air_temperature','dew_temperature'] rolled = group_df[cols].rolling(window=window, min_periods=0) lag_mean = rolled.mean().reset_index().astype(np.float16) lag_max = rolled.max().reset_index().astype(np.float16) lag_min = rolled.min().reset_index().astype(np.float16) # lag_std = rolled.std().reset_index().astype(np.float16) for col in cols: weather_df[f'{col}_mean_lag{window}'] = lag_mean[col] weather_df[f'{col}_max_lag{window}'] = lag_max[col] weather_df[f'{col}_min_lag{window}'] = lag_min[col] # weather_df[f'{col}_std_lag{window}'] = lag_std[col] train_df['date'] = train_df['timestamp'].dt.date train_df['meter_reading_log1p'] = np.log1p(train_df['meter_reading']) debug = False preprocess(train_df) # https://www.kaggle.com/ryches/simple-lgbm-solution df_group = train_df.groupby('building_id')['meter_reading_log1p'] # building_mean = df_group.mean().astype(np.float16) building_median = df_group.median().astype(np.float16) # building_min = df_group.min().astype(np.float16) # building_max = df_group.max().astype(np.float16) # building_std = df_group.std().astype(np.float16) # train_df['building_mean'] = train_df['building_id'].map(building_mean) train_df['building_median'] = train_df['building_id'].map(building_median) # train_df['building_min'] = train_df['building_id'].map(building_min) # train_df['building_max'] = train_df['building_id'].map(building_max) # train_df['building_std'] = train_df['building_id'].map(building_std) weather_train_df = timestamp_align(weather_train_df) weather_train_df = weather_train_df.groupby('site_id').apply(lambda group: group.interpolate(limit_direction='both')) add_lag_feature(weather_train_df, window=3) add_lag_feature(weather_train_df, window=72) # weather_col = ['site_id', 'timestamp', 'air_temperature', 'cloud_coverage', # 'dew_temperature', 'precip_depth_1_hr', 'sea_level_pressure', # 'wind_direction', 'wind_speed', 'offset'] weather_col = ['site_id', 'timestamp', 'air_temperature','precip_depth_1_hr'] weather_col += ['air_temperature_mean_lag72','dew_temperature_mean_lag72','air_temperature_max_lag3','air_temperature_min_lag3','dew_temperature_mean_lag3'] weather_col += ['air_temperature_mean_lag3'] weather_train_df = weather_train_df[weather_col] gc.collect() primary_use_list = building_meta_df['primary_use'].unique() primary_use_dict = {key: value for value, key in enumerate(primary_use_list)} print('primary_use_dict: ', primary_use_dict) building_meta_df['primary_use'] = building_meta_df['primary_use'].map(primary_use_dict) gc.collect() reduce_mem_usage(train_df, use_float16=True) reduce_mem_usage(building_meta_df, use_float16=True) reduce_mem_usage(weather_train_df, use_float16=True) # - building_meta_df.primary_use = building_meta_df.primary_use.astype(np.int8) train_df.columns # + category_cols = ['building_id', 'site_id', 'primary_use'] # , 'meter' feature_cols = ['square_feet', 'year_built', 'floor_count','hour','weekend','building_median','air_temperature'] # 强一点 feature_cols += ['precip_depth_1_hr'] # 有进步 feature_cols += ['air_temperature_mean_lag72','dew_temperature_mean_lag72','air_temperature_max_lag3','air_temperature_min_lag3','dew_temperature_mean_lag3'] # 添加验证弱,测试强, 这样的话,验证和测试的提升整体上就比较相关 # feature_cols += ['air_temperature_max_lag72','air_temperature_min_lag72','air_temperature_std_lag72', # 'cloud_coverage_mean_lag72','wind_speed_mean_lag3'] # 再加验证强点,测试弱点, 添加后,变为验证弱点,测试强点了 feature_cols += ['air_temperature_mean_lag3'] # 都弱一点 feature_cols += ['building_id_uid_enc'] # 验证强点,测试强多 feature_cols += ['building_id-m_nunique'] # 都弱点 feature_cols += ['site_id_uid_enc'] # 都强 feature_cols += ['DT_w_dew_temp'] # - T_RESULTS = train_df[['meter_reading']] T_RESULTS['kfold'] = 0 # + # def create_X_y(train_df, target_meter): # target_train_df = train_df[train_df['meter'] == target_meter] # target_train_df = target_train_df.merge(building_meta_df, on='building_id', how='left') # target_train_df = target_train_df.merge(weather_train_df, on=['site_id', 'timestamp'], how='left') # X_train = target_train_df[feature_cols + category_cols + ['exception']] # y_train = target_train_df['meter_reading_log1p'].values # del target_train_df # return X_train, y_train def create_X_y(train_df, target_meter): target_train_df = train_df[train_df['meter'] == target_meter] target_train_df = target_train_df.merge(building_meta_df, on='building_id', how='left') target_train_df = target_train_df.merge(weather_train_df, on=['site_id', 'timestamp'], how='left') target_train_df.index = train_df[train_df['meter'] == target_meter].index X_train = target_train_df[feature_cols + category_cols + ['exception']] y_train = target_train_df['meter_reading_log1p'] del target_train_df return X_train, y_train def fit_lgbm(train, val, devices=(-1,), seed=None, cat_features=None, num_rounds=1500, lr=0.1, bf=0.1): """Train Light GBM model""" X_train, y_train = train X_valid, y_valid = val metric = 'l2' params = {'num_leaves': 31, 'objective': 'regression', # 'max_depth': -1, 'learning_rate': lr, "boosting": "gbdt", "bagging_freq": 5, "bagging_fraction": bf, "feature_fraction": 0.9, "metric": metric, # "verbosity": -1, # 'reg_alpha': 0.1, # 'reg_lambda': 0.3 } device = devices[0] if device == -1: # use cpu pass else: # use gpu print(f'using gpu device_id {device}...') params.update({'device': 'gpu', 'gpu_device_id': device}) params['seed'] = seed early_stop = 20 verbose_eval = 20 d_train = lgb.Dataset(X_train, label=y_train, categorical_feature=cat_features) d_valid = lgb.Dataset(X_valid, label=y_valid, categorical_feature=cat_features) watchlist = [d_train, d_valid] print('training LGB:') model = lgb.train(params, train_set=d_train, num_boost_round=num_rounds, valid_sets=watchlist, verbose_eval=verbose_eval, early_stopping_rounds=early_stop) # predictions y_pred_valid = model.predict(X_valid, num_iteration=model.best_iteration) print('best_score', model.best_score) log = {'train/mae': model.best_score['training']['l2'], 'valid/mae': model.best_score['valid_1']['l2']} return model, y_pred_valid, log folds = 5 seed = 666 shuffle = False kf = KFold(n_splits=folds, shuffle=shuffle, random_state=seed) # + def fit_xgb(train, val, devices=(-1,), seed=None, cat_features=None, num_rounds=1500, lr=0.1, bf=0.1): """Train Light GBM model""" X_train, y_train = train X_valid, y_valid = val # metric = 'l2' # params = {'num_leaves': 31, # 'objective': 'regression', # # 'max_depth': -1, # 'learning_rate': lr, # "boosting": "gbdt", # "bagging_freq": 5, # "bagging_fraction": bf, # "feature_fraction": 0.9, # "metric": metric, # # "verbosity": -1, # # 'reg_alpha': 0.1, # # 'reg_lambda': 0.3 # } # device = devices[0] # if device == -1: # # use cpu # pass # else: # # use gpu # print(f'using gpu device_id {device}...') # params.update({'device': 'gpu', 'gpu_device_id': device}) # params['seed'] = seed model = xgb.XGBRegressor( n_estimators=6000, max_depth=8, # num_boost_round=500, learning_rate=lr, subsample=0.8, colsample_bytree=0.4, # missing=np.nan, objective ='reg:squarederror', tree_method='hist', seed=seed ) print('training XGB:') model.fit(X_train, y_train, eval_set=[(X_train, y_train),(X_valid, y_valid)], verbose=20, early_stopping_rounds=50) # model.fit(X_train, y_train, # eval_set=[train,val], # verbose=20, early_stopping_rounds=50) # early_stop = 20 # verbose_eval = 20 # d_train = lgb.Dataset(X_train, label=y_train, categorical_feature=cat_features) # d_valid = lgb.Dataset(X_valid, label=y_valid, categorical_feature=cat_features) # watchlist = [d_train, d_valid] # print('training LGB:') # model = lgb.train(params, # train_set=d_train, # num_boost_round=num_rounds, # valid_sets=watchlist, # verbose_eval=verbose_eval, # early_stopping_rounds=early_stop) # predictions y_pred_valid = model.predict(X_valid) # print('best_score', model.best_score) # log = {'train/mae': model.best_score['training']['l2'], # 'valid/mae': model.best_score['valid_1']['l2']} return model, y_pred_valid # + target_meter = 0 X_train, y_train = create_X_y(train_df, target_meter=target_meter) del train_df, weather_train_df gc.collect() # + ########################### Check memory usage ################################################################################# import psutil def get_memory_usage(): return np.round(psutil.Process(os.getpid()).memory_info()[0]/2.**30, 2) def sizeof_fmt(num, suffix='B'): for unit in ['','Ki','Mi','Gi','Ti','Pi','Ei','Zi']: if abs(num) < 1024.0: return "%3.1f%s%s" % (num, unit, suffix) num /= 1024.0 return "%.1f%s%s" % (num, 'Yi', suffix) for name, size in sorted(((name, sys.getsizeof(value)) for name,value in locals().items()), key= lambda x: -x[1])[:10]: print("{:>30}: {:>8}".format(name,sizeof_fmt(size))) print('Memory in Gb', get_memory_usage()) # - del df gc.collect() # + _kg_hide-output=true # target_meter = 0 # X_train, y_train = create_X_y(train_df, target_meter=target_meter) # del train_df, weather_train_df # gc.collect() # y_valid_pred_total = np.zeros(X_train.shape[0]) gc.collect() print('target_meter', target_meter, X_train.shape) cat_features = [X_train.columns.get_loc(cat_col) for cat_col in category_cols] print('cat_features', cat_features) models0 = [] for fold_, (train_idx, valid_idx) in enumerate(kf.split(X_train, y_train)): if fold_ == 0: print(f'train_{fold_}') # tr_x = X_train.iloc[train_idx,:] # vl_x = X_train.iloc[valid_idx,:] # tr_y = y_train[tr_x[(tr_x.exception != 3) & (tr_x.exception != 1)].index.values] # v_y = y_train[vl_x[(vl_x.exception != 3) & (vl_x.exception != 1)].index.values] # tr_x = tr_x[(tr_x.exception != 3) & (tr_x.exception != 1)][feature_cols + category_cols] # vl_x = vl_x[(vl_x.exception != 3) & (vl_x.exception != 1)][feature_cols + category_cols] tr_x = X_train.iloc[train_idx,:] vl_x = X_train.iloc[valid_idx,:] tr_y = y_train[tr_x[(tr_x.exception != 3) & (tr_x.exception != 1) & (tr_x.exception != 4)].index.values] v_y = y_train[vl_x[(vl_x.exception != 3) & (vl_x.exception != 1) & (vl_x.exception != 4)].index.values] tr_x = tr_x[(tr_x.exception != 3) & (tr_x.exception != 1) & (tr_x.exception != 4)][feature_cols + category_cols] vl_x = vl_x[(vl_x.exception != 3) & (vl_x.exception != 1) & (vl_x.exception != 4)][feature_cols + category_cols] train_data = tr_x, tr_y valid_data = vl_x, v_y del tr_x, tr_y, vl_x, v_y gc.collect() # train_data = X_train.iloc[train_idx,:], y_train[train_idx] # valid_data = X_train.iloc[valid_idx,:], y_train[valid_idx] print('train', len(train_idx), 'valid', len(valid_idx)) # model, y_pred_valid, log = fit_cb(train_data, valid_data, cat_features=cat_features, devices=[0,]) # model, y_pred_valid, log = fit_lgbm(train_data, valid_data, cat_features=category_cols, # num_rounds=1000, lr=0.05, bf=0.7) # y_valid_pred_total[valid_idx] = y_pred_valid model, y_pred_valid = fit_xgb(train_data, valid_data, cat_features=category_cols, num_rounds=1000, lr=0.05, bf=0.7) del train_data, valid_data gc.collect() t_prediction = model.predict(X_train.iloc[valid_idx,:][feature_cols + category_cols]) T_RESULTS.iloc[X_train.iloc[valid_idx,:].index, 1] = np.expm1(t_prediction) models0.append(model) del model gc.collect() if debug: break # sns.distplot(y_train) del X_train, y_train gc.collect() # + _kg_hide-output=false # target_meter = 1 # X_train, y_train = create_X_y(train_df, target_meter=target_meter) # # y_valid_pred_total = np.zeros(X_train.shape[0]) # gc.collect() # print('target_meter', target_meter, X_train.shape) # cat_features = [X_train.columns.get_loc(cat_col) for cat_col in category_cols] # print('cat_features', cat_features) # models1 = [] # for train_idx, valid_idx in kf.split(X_train, y_train): # # tr_x = X_train.iloc[train_idx,:] # # vl_x = X_train.iloc[valid_idx,:] # # tr_y = y_train[tr_x[(tr_x.exception != 3) & (tr_x.exception != 1)].index.values] # # v_y = y_train[vl_x[(vl_x.exception != 3) & (vl_x.exception != 1)].index.values] # # tr_x = tr_x[(tr_x.exception != 3) & (tr_x.exception != 1)][feature_cols + category_cols] # # vl_x = vl_x[(vl_x.exception != 3) & (vl_x.exception != 1)][feature_cols + category_cols] # tr_x = X_train.iloc[train_idx,:] # vl_x = X_train.iloc[valid_idx,:] # tr_y = y_train[tr_x[(tr_x.exception != 3) & (tr_x.exception != 1) & (tr_x.exception != 4)].index.values] # v_y = y_train[vl_x[(vl_x.exception != 3) & (vl_x.exception != 1) & (vl_x.exception != 4)].index.values] # tr_x = tr_x[(tr_x.exception != 3) & (tr_x.exception != 1) & (tr_x.exception != 4)][feature_cols + category_cols] # vl_x = vl_x[(vl_x.exception != 3) & (vl_x.exception != 1) & (vl_x.exception != 4)][feature_cols + category_cols] # train_data = tr_x, tr_y # valid_data = vl_x, v_y # del tr_x, tr_y, vl_x, v_y # gc.collect() # # train_data = X_train.iloc[train_idx,:], y_train[train_idx] # # valid_data = X_train.iloc[valid_idx,:], y_train[valid_idx] # print('train', len(train_idx), 'valid', len(valid_idx)) # # model, y_pred_valid, log = fit_cb(train_data, valid_data, cat_features=cat_features, devices=[0,]) # # model, y_pred_valid, log = fit_lgbm(train_data, valid_data, cat_features=category_cols, num_rounds=1000, # # lr=0.05, bf=0.5) # # y_valid_pred_total[valid_idx] = y_pred_valid # model, y_pred_valid = fit_xgb(train_data, valid_data, cat_features=category_cols, # num_rounds=1000, lr=0.05, bf=0.7) # del train_data, valid_data # gc.collect() # t_prediction = model.predict(X_train.iloc[valid_idx,:][feature_cols + category_cols]) # T_RESULTS.iloc[X_train.iloc[valid_idx,:].index, 1] = np.expm1(t_prediction) # models1.append(model) # gc.collect() # if debug: # break # sns.distplot(y_train) # del X_train, y_train # gc.collect() # + _kg_hide-output=true # target_meter = 2 # X_train, y_train = create_X_y(train_df, target_meter=target_meter) # # y_valid_pred_total = np.zeros(X_train.shape[0]) # gc.collect() # print('target_meter', target_meter, X_train.shape) # cat_features = [X_train.columns.get_loc(cat_col) for cat_col in category_cols] # print('cat_features', cat_features) # models2 = [] # for train_idx, valid_idx in kf.split(X_train, y_train): # # tr_x = X_train.iloc[train_idx,:] # # vl_x = X_train.iloc[valid_idx,:] # # tr_y = y_train[tr_x[(tr_x.exception != 3) & (tr_x.exception != 1)].index.values] # # v_y = y_train[vl_x[(vl_x.exception != 3) & (vl_x.exception != 1)].index.values] # # tr_x = tr_x[(tr_x.exception != 3) & (tr_x.exception != 1)][feature_cols + category_cols] # # vl_x = vl_x[(vl_x.exception != 3) & (vl_x.exception != 1)][feature_cols + category_cols] # tr_x = X_train.iloc[train_idx,:] # vl_x = X_train.iloc[valid_idx,:] # tr_y = y_train[tr_x[(tr_x.exception != 3) & (tr_x.exception != 1) & (tr_x.exception != 4)].index.values] # v_y = y_train[vl_x[(vl_x.exception != 3) & (vl_x.exception != 1) & (vl_x.exception != 4)].index.values] # tr_x = tr_x[(tr_x.exception != 3) & (tr_x.exception != 1) & (tr_x.exception != 4)][feature_cols + category_cols] # vl_x = vl_x[(vl_x.exception != 3) & (vl_x.exception != 1) & (vl_x.exception != 4)][feature_cols + category_cols] # train_data = tr_x, tr_y # valid_data = vl_x, v_y # del tr_x, tr_y, vl_x, v_y # gc.collect() # # train_data = X_train.iloc[train_idx,:], y_train[train_idx] # # valid_data = X_train.iloc[valid_idx,:], y_train[valid_idx] # print('train', len(train_idx), 'valid', len(valid_idx)) # # model, y_pred_valid, log = fit_cb(train_data, valid_data, cat_features=cat_features, devices=[0,]) # # model, y_pred_valid, log = fit_lgbm(train_data, valid_data, cat_features=category_cols, # # num_rounds=1000, lr=0.05, bf=0.8) # # y_valid_pred_total[valid_idx] = y_pred_valid # model, y_pred_valid = fit_xgb(train_data, valid_data, cat_features=category_cols, # num_rounds=1000, lr=0.05, bf=0.7) # del train_data, valid_data # gc.collect() # t_prediction = model.predict(X_train.iloc[valid_idx,:][feature_cols + category_cols]) # T_RESULTS.iloc[X_train.iloc[valid_idx,:].index, 1] = np.expm1(t_prediction) # models2.append(model) # gc.collect() # if debug: # break # sns.distplot(y_train) # del X_train, y_train # gc.collect() # + _kg_hide-output=true # target_meter = 3 # X_train, y_train = create_X_y(train_df, target_meter=target_meter) # # y_valid_pred_total = np.zeros(X_train.shape[0]) # gc.collect() # print('target_meter', target_meter, X_train.shape) # cat_features = [X_train.columns.get_loc(cat_col) for cat_col in category_cols] # print('cat_features', cat_features) # models3 = [] # for train_idx, valid_idx in kf.split(X_train, y_train): # # tr_x = X_train.iloc[train_idx,:] # # vl_x = X_train.iloc[valid_idx,:] # # tr_y = y_train[tr_x[(tr_x.exception != 3) & (tr_x.exception != 1)].index.values] # # v_y = y_train[vl_x[(vl_x.exception != 3) & (vl_x.exception != 1)].index.values] # # tr_x = tr_x[(tr_x.exception != 3) & (tr_x.exception != 1)][feature_cols + category_cols] # # vl_x = vl_x[(vl_x.exception != 3) & (vl_x.exception != 1)][feature_cols + category_cols] # tr_x = X_train.iloc[train_idx,:] # vl_x = X_train.iloc[valid_idx,:] # tr_y = y_train[tr_x[(tr_x.exception != 3) & (tr_x.exception != 1) & (tr_x.exception != 4)].index.values] # v_y = y_train[vl_x[(vl_x.exception != 3) & (vl_x.exception != 1) & (vl_x.exception != 4)].index.values] # tr_x = tr_x[(tr_x.exception != 3) & (tr_x.exception != 1) & (tr_x.exception != 4)][feature_cols + category_cols] # vl_x = vl_x[(vl_x.exception != 3) & (vl_x.exception != 1) & (vl_x.exception != 4)][feature_cols + category_cols] # train_data = tr_x, tr_y # valid_data = vl_x, v_y # del tr_x, tr_y, vl_x, v_y # gc.collect() # # train_data = X_train.iloc[train_idx,:], y_train[train_idx] # # valid_data = X_train.iloc[valid_idx,:], y_train[valid_idx] # print('train', len(train_idx), 'valid', len(valid_idx)) # # model, y_pred_valid, log = fit_cb(train_data, valid_data, cat_features=cat_features, devices=[0,]) # # model, y_pred_valid, log = fit_lgbm(train_data, valid_data, cat_features=category_cols, num_rounds=1000, # # lr=0.03, bf=0.9) # # y_valid_pred_total[valid_idx] = y_pred_valid # model, y_pred_valid = fit_xgb(train_data, valid_data, cat_features=category_cols, # num_rounds=1000, lr=0.03, bf=0.9) # del train_data, valid_data # gc.collect() # t_prediction = model.predict(X_train.iloc[valid_idx,:][feature_cols + category_cols]) # T_RESULTS.iloc[X_train.iloc[valid_idx,:].index, 1] = np.expm1(t_prediction) # models3.append(model) # gc.collect() # if debug: # break # sns.distplot(y_train) # del X_train, y_train # gc.collect() # - from sklearn.metrics import mean_squared_error, mean_squared_log_error TARGET = 'meter_reading' T_RESULTS['kfold'] = T_RESULTS['kfold'].clip(0,None) print('rmse score', np.sqrt(mean_squared_log_error(T_RESULTS[TARGET], T_RESULTS['kfold']))) print('#'*20) output_path = os.path.join('..', 'output', 'as-meter2-no-1099-xgb-meter0-fold0') T_RESULTS.to_pickle(os.path.join(output_path, 'T_RESULTS.pkl')) # + _kg_hide-input=true # print('rmse score', np.sqrt(mean_squared_log_error(T_RESULTS[TARGET], T_RESULTS['kfold']))) # print('------------------------------------') # cv_score_idx = train_df[train_df.exception != 1].index.values # print('1全体非异常rmse', np.sqrt(mean_squared_log_error(T_RESULTS.loc[cv_score_idx, TARGET], T_RESULTS.loc[cv_score_idx, 'kfold']))) # cv_score_idx = train_df[(train_df.exception == -1) | (train_df.exception == 1)].index.values # print('1全体异常建筑rmse', np.sqrt(mean_squared_log_error(T_RESULTS.loc[cv_score_idx, TARGET], T_RESULTS.loc[cv_score_idx, 'kfold']))) # cv_score_idx = train_df[train_df.exception == -1].index.values # print('1全体异常建筑正常部分rmse', np.sqrt(mean_squared_log_error(T_RESULTS.loc[cv_score_idx, TARGET], T_RESULTS.loc[cv_score_idx, 'kfold']))) # cv_score_idx = train_df[train_df.exception == 1].index.values # print('1全体异常建筑异常部分rmse', np.sqrt(mean_squared_log_error(T_RESULTS.loc[cv_score_idx, TARGET], T_RESULTS.loc[cv_score_idx, 'kfold']))) # cv_score_idx = train_df[(train_df.exception != 1) & (train_df.exception != -1)].index.values # print('1全体正常建筑rmse', np.sqrt(mean_squared_log_error(T_RESULTS.loc[cv_score_idx, TARGET], T_RESULTS.loc[cv_score_idx, 'kfold']))) # print('------------------------------------') # cv_score_idx = train_df[train_df.exception != 3].index.values # print('3全体非异常rmse', np.sqrt(mean_squared_log_error(T_RESULTS.loc[cv_score_idx, TARGET], T_RESULTS.loc[cv_score_idx, 'kfold']))) # cv_score_idx = train_df[(train_df.exception == -3) | (train_df.exception == 3)].index.values # print('3全体异常建筑rmse', np.sqrt(mean_squared_log_error(T_RESULTS.loc[cv_score_idx, TARGET], T_RESULTS.loc[cv_score_idx, 'kfold']))) # cv_score_idx = train_df[train_df.exception == -3].index.values # print('3全体异常建筑正常部分rmse', np.sqrt(mean_squared_log_error(T_RESULTS.loc[cv_score_idx, TARGET], T_RESULTS.loc[cv_score_idx, 'kfold']))) # cv_score_idx = train_df[train_df.exception == 3].index.values # print('3全体异常建筑异常部分rmse', np.sqrt(mean_squared_log_error(T_RESULTS.loc[cv_score_idx, TARGET], T_RESULTS.loc[cv_score_idx, 'kfold']))) # cv_score_idx = train_df[(train_df.exception != 3) & (train_df.exception != -3)].index.values # print('3全体正常建筑rmse', np.sqrt(mean_squared_log_error(T_RESULTS.loc[cv_score_idx, TARGET], T_RESULTS.loc[cv_score_idx, 'kfold']))) # print('------------------------------------') # cv_score_idx = train_df[(train_df.exception != 3) & (train_df.exception != 1)].index.values # print('13全体非异常rmse', np.sqrt(mean_squared_log_error(T_RESULTS.loc[cv_score_idx, TARGET], T_RESULTS.loc[cv_score_idx, 'kfold']))) # cv_score_idx = train_df[(train_df.exception == -3) | (train_df.exception == 3) | (train_df.exception == -1) | (train_df.exception == 1)].index.values # print('13全体异常建筑rmse', np.sqrt(mean_squared_log_error(T_RESULTS.loc[cv_score_idx, TARGET], T_RESULTS.loc[cv_score_idx, 'kfold']))) # cv_score_idx = train_df[(train_df.exception == -3) | (train_df.exception == -1)].index.values # print('13全体异常建筑正常部分rmse', np.sqrt(mean_squared_log_error(T_RESULTS.loc[cv_score_idx, TARGET], T_RESULTS.loc[cv_score_idx, 'kfold']))) # cv_score_idx = train_df[(train_df.exception == 3) | (train_df.exception == 1)].index.values # print('13全体异常建筑异常部分rmse', np.sqrt(mean_squared_log_error(T_RESULTS.loc[cv_score_idx, TARGET], T_RESULTS.loc[cv_score_idx, 'kfold']))) # cv_score_idx = train_df[(train_df.exception != 3) & (train_df.exception != -3) & (train_df.exception != 1) & (train_df.exception != -1)].index.values # print('13全体正常建筑rmse', np.sqrt(mean_squared_log_error(T_RESULTS.loc[cv_score_idx, TARGET], T_RESULTS.loc[cv_score_idx, 'kfold']))) # print('------------------------------------') # + _kg_hide-input=true weather_nan_id = [20204274, 20204275, 20204276, 20204277, 20204278, 20204279, 20204280, 20204281, 20204282, 20204283, 20204284, 20204285, 20204286, 20204287, 20204288, 20204289, 20204290, 20204291, 20204292, 20204293, 20204294, 20204295, 20204296, 20204297, 20204298, 20204299, 20204300, 20204301, 20204302, 20204303, 20204304, 20204305, 20204306, 20204307, 20204308, 20204309, 20204310, 20204311, 20204312, 20204313, 20204314, 20204315, 20204316, 20204317, 20204318, 20204319, 20204320, 20204321, 20204322, 20204323, 20204324, 20204325, 20204326, 20204327, 20204328, 20204329, 20204330, 20204331, 20204332, 20204333, 20204334, 20204335, 20204336, 20204337, 20204338, 20204339, 20204340, 20204341, 20204342, 20204343, 20204344, 20204345, 20204346, 20204347, 20204348, 20204349, 20204350, 20204351, 20204352, 20204353, 20204354, 20204355, 20204356, 20204357, 20204358, 20204359, 20204360, 20204361, 20204362, 20204363, 20204364, 20204365, 20204366, 20204367, 20204368, 20204369, 20204370, 20204371, 20204372, 20204373, 20204374, 20204375, 20204376, 20204377, 20204378, 20204379, 20204380, 20204381, 20204382, 20204383, 20204384, 20204385, 20204386, 20204387, 20204388, 20204389, 20204390, 20204391, 20204392, 20204393, 20204394, 20204395, 20204396, 20204397, 20204398, 20204399, 20204400, 20204401, 20206637, 20206638, 20206639, 20206640, 20206641, 20206642, 20206643, 20206644, 20206645, 20206646, 20206647, 20206648, 20206649, 20206650, 20206651, 20206652, 20206653, 20206654, 20206655, 20206656, 20206657, 20206658, 20206659, 20206660, 20206661, 20206662, 20206663, 20206664, 20206665, 20206666, 20206667, 20206668, 20206669, 20206670, 20206671, 20206672, 20206673, 20206674, 20206675, 20206676, 20206677, 20206678, 20206679, 20206680, 20206681, 20206682, 20206683, 20206684, 20206685, 20206686, 20206687, 20206688, 20206689, 20206690, 20206691, 20206692, 20206693, 20206694, 20206695, 20206696, 20206697, 20206698, 20206699, 20206700, 20206701, 20206702, 20206703, 20206704, 20206705, 20206706, 20206707, 20206708, 20206709, 20206710, 20206711, 20206712, 20206713, 20206714, 20206715, 20206716, 20206717, 20206718, 20206719, 20206720, 20206721, 20206722, 20206723, 20206724, 20206725, 20206726, 20206727, 20206728, 20206729, 20206730, 20206731, 20206732, 20206733, 20206734, 20206735, 20206736, 20206737, 20206738, 20206739, 20206740, 20206741, 20206742, 20206743, 20206744, 20206745, 20206746, 20206747, 20206748, 20206749, 20206750, 20206751, 20206752, 20206753, 20206754, 20206755, 20206756, 20206757, 20206758, 20206759, 20206760, 20206761, 20206762, 20206763, 20206764, 20209003, 20209004, 20209005, 20209006, 20209007, 20209008, 20209009, 20209010, 20209011, 20209012, 20209013, 20209014, 20209015, 20209016, 20209017, 20209018, 20209019, 20209020, 20209021, 20209022, 20209023, 20209024, 20209025, 20209026, 20209027, 20209028, 20209029, 20209030, 20209031, 20209032, 20209033, 20209034, 20209035, 20209036, 20209037, 20209038, 20209039, 20209040, 20209041, 20209042, 20209043, 20209044, 20209045, 20209046, 20209047, 20209048, 20209049, 20209050, 20209051, 20209052, 20209053, 20209054, 20209055, 20209056, 20209057, 20209058, 20209059, 20209060, 20209061, 20209062, 20209063, 20209064, 20209065, 20209066, 20209067, 20209068, 20209069, 20209070, 20209071, 20209072, 20209073, 20209074, 20209075, 20209076, 20209077, 20209078, 20209079, 20209080, 20209081, 20209082, 20209083, 20209084, 20209085, 20209086, 20209087, 20209088, 20209089, 20209090, 20209091, 20209092, 20209093, 20209094, 20209095, 20209096, 20209097, 20209098, 20209099, 20209100, 20209101, 20209102, 20209103, 20209104, 20209105, 20209106, 20209107, 20209108, 20209109, 20209110, 20209111, 20209112, 20209113, 20209114, 20209115, 20209116, 20209117, 20209118, 20209119, 20209120, 20209121, 20209122, 20209123, 20209124, 20209125, 20209126, 20209127, 20209128, 20209129, 20209130, 20211368, 20211369, 20211370, 20211371, 20211372, 20211373, 20211374, 20211375, 20211376, 20211377, 20211378, 20211379, 20211380, 20211381, 20211382, 20211383, 20211384, 20211385, 20211386, 20211387, 20211388, 20211389, 20211390, 20211391, 20211392, 20211393, 20211394, 20211395, 20211396, 20211397, 20211398, 20211399, 20211400, 20211401, 20211402, 20211403, 20211404, 20211405, 20211406, 20211407, 20211408, 20211409, 20211410, 20211411, 20211412, 20211413, 20211414, 20211415, 20211416, 20211417, 20211418, 20211419, 20211420, 20211421, 20211422, 20211423, 20211424, 20211425, 20211426, 20211427, 20211428, 20211429, 20211430, 20211431, 20211432, 20211433, 20211434, 20211435, 20211436, 20211437, 20211438, 20211439, 20211440, 20211441, 20211442, 20211443, 20211444, 20211445, 20211446, 20211447, 20211448, 20211449, 20211450, 20211451, 20211452, 20211453, 20211454, 20211455, 20211456, 20211457, 20211458, 20211459, 20211460, 20211461, 20211462, 20211463, 20211464, 20211465, 20211466, 20211467, 20211468, 20211469, 20211470, 20211471, 20211472, 20211473, 20211474, 20211475, 20211476, 20211477, 20211478, 20211479, 20211480, 20211481, 20211482, 20211483, 20211484, 20211485, 20211486, 20211487, 20211488, 20211489, 20211490, 20211491, 20211492, 20211493, 20211494, 20211495, 20213734, 20213735, 20213736, 20213737, 20213738, 20213739, 20213740, 20213741, 20213742, 20213743, 20213744, 20213745, 20213746, 20213747, 20213748, 20213749, 20213750, 20213751, 20213752, 20213753, 20213754, 20213755, 20213756, 20213757, 20213758, 20213759, 20213760, 20213761, 20213762, 20213763, 20213764, 20213765, 20213766, 20213767, 20213768, 20213769, 20213770, 20213771, 20213772, 20213773, 20213774, 20213775, 20213776, 20213777, 20213778, 20213779, 20213780, 20213781, 20213782, 20213783, 20213784, 20213785, 20213786, 20213787, 20213788, 20213789, 20213790, 20213791, 20213792, 20213793, 20213794, 20213795, 20213796, 20213797, 20213798, 20213799, 20213800, 20213801, 20213802, 20213803, 20213804, 20213805, 20213806, 20213807, 20213808, 20213809, 20213810, 20213811, 20213812, 20213813, 20213814, 20213815, 20213816, 20213817, 20213818, 20213819, 20213820, 20213821, 20213822, 20213823, 20213824, 20213825, 20213826, 20213827, 20213828, 20213829, 20213830, 20213831, 20213832, 20213833, 20213834, 20213835, 20213836, 20213837, 20213838, 20213839, 20213840, 20213841, 20213842, 20213843, 20213844, 20213845, 20213846, 20213847, 20213848, 20213849, 20213850, 20213851, 20213852, 20213853, 20213854, 20213855, 20213856, 20213857, 20213858, 20213859, 20213860, 20213861, 20195011, 20195012, 20195013, 20195014, 20195015, 20195016, 20195017, 20195018, 20195019, 20195020, 20195021, 20195022, 20195023, 20195024, 20195025, 20195026, 20195027, 20195028, 20195029, 20195030, 20195031, 20195032, 20195033, 20195034, 20195035, 20195036, 20195037, 20195038, 20195039, 20195040, 20195041, 20195042, 20195043, 20195044, 20195045, 20195046, 20195047, 20195048, 20195049, 20195050, 20195051, 20195052, 20195053, 20195054, 20195055, 20195056, 20195057, 20195058, 20195059, 20195060, 20195061, 20195062, 20195063, 20195064, 20195065, 20195066, 20195067, 20195068, 20195069, 20195070, 20195071, 20195072, 20195073, 20195074, 20195075, 20195076, 20195077, 20195078, 20195079, 20195080, 20195081, 20195082, 20195083, 20195084, 20195085, 20195086, 20195087, 20195088, 20195089, 20195090, 20195091, 20195092, 20195093, 20195094, 20195095, 20195096, 20195097, 20195098, 20195099, 20195100, 20195101, 20195102, 20195103, 20195104, 20195105, 20195106, 20195107, 20195108, 20195109, 20195110, 20195111, 20195112, 20195113, 20195114, 20195115, 20195116, 20195117, 20195118, 20195119, 20195120, 20195121, 20195122, 20195123, 20195124, 20195125, 20195126, 20195127, 20195128, 20195129, 20195130, 20195131, 20195132, 20195133, 20195134, 20195135, 20195136, 20195137, 20195138, 20195139, 20195140, 20195141, 20195142, 20195143, 20195144, 20195145, 20195146, 20195147, 20195148, 20195149, 20195150, 20195151, 20195152, 20195153, 20195154, 20195155, 20195156, 20195157, 20195158, 20195159, 20195160, 20195161, 20195162, 20195163, 20195164, 20195165, 20195166, 20195167, 20195168, 20195169, 20195170, 20195171, 20195172, 20195173, 20195174, 20195175, 20195176, 20195177, 20195178, 20195179, 20195180, 20195181, 20195182, 20195183, 20195184, 20195185, 20195186, 20195187, 20195188, 20195189, 20195190, 20195191, 20195192, 20195193, 20195194, 20195195, 20195196, 20195197, 20195198, 20195199, 20195200, 20195201, 20195202, 20195203, 20195204, 20195205, 20195206, 20195207, 20195208, 20195209, 20195210, 20195211, 20195212, 20195213, 20195214, 20195215, 20195216, 20195217, 20195218, 20195219, 20195220, 20195221, 20195222, 20195223, 20195224, 20195225, 20195226, 20195227, 20195228, 20195229, 20195230, 20195231, 20195232, 20195233, 20195234, 20195235, 20195236, 20195237, 20195238, 20195239, 20195240, 20195241, 20195242, 20195243, 20195244, 20195245, 20195246, 20195247, 20195248, 20195249, 20195250, 20195251, 20195252, 20195253, 20195254, 20195255, 20195256, 20195257, 20195258, 20195259, 20195260, 20195261, 20195262, 20195263, 20195264, 20195265, 20195266, 20195267, 20195268, 20195269, 20195270, 20195271, 20195272, 20195273, 20195274, 20195275, 20195276, 20195277, 20195278, 20195279, 20195280, 20195281, 20195282, 20195283, 20195284, 20195285, 20195286, 20195287, 20195288, 20195289, 20195290, 20195291, 20195292, 20195293, 20195294, 20195295, 20195296, 20195297, 20195298, 20197376, 20197377, 20197378, 20197379, 20197380, 20197381, 20197382, 20197383, 20197384, 20197385, 20197386, 20197387, 20197388, 20197389, 20197390, 20197391, 20197392, 20197393, 20197394, 20197395, 20197396, 20197397, 20197398, 20197399, 20197400, 20197401, 20197402, 20197403, 20197404, 20197405, 20197406, 20197407, 20197408, 20197409, 20197410, 20197411, 20197412, 20197413, 20197414, 20197415, 20197416, 20197417, 20197418, 20197419, 20197420, 20197421, 20197422, 20197423, 20197424, 20197425, 20197426, 20197427, 20197428, 20197429, 20197430, 20197431, 20197432, 20197433, 20197434, 20197435, 20197436, 20197437, 20197438, 20197439, 20197440, 20197441, 20197442, 20197443, 20197444, 20197445, 20197446, 20197447, 20197448, 20197449, 20197450, 20197451, 20197452, 20197453, 20197454, 20197455, 20197456, 20197457, 20197458, 20197459, 20197460, 20197461, 20197462, 20197463, 20197464, 20197465, 20197466, 20197467, 20197468, 20197469, 20197470, 20197471, 20197472, 20197473, 20197474, 20197475, 20197476, 20197477, 20197478, 20197479, 20197480, 20197481, 20197482, 20197483, 20197484, 20197485, 20197486, 20197487, 20197488, 20197489, 20197490, 20197491, 20197492, 20197493, 20197494, 20197495, 20197496, 20197497, 20197498, 20197499, 20197500, 20197501, 20197502, 20197503, 20197504, 20197505, 20197506, 20197507, 20197508, 20197509, 20197510, 20197511, 20197512, 20197513, 20197514, 20197515, 20197516, 20197517, 20197518, 20197519, 20197520, 20197521, 20197522, 20197523, 20197524, 20197525, 20197526, 20197527, 20197528, 20197529, 20197530, 20197531, 20197532, 20197533, 20197534, 20197535, 20197536, 20197537, 20197538, 20197539, 20197540, 20197541, 20197542, 20197543, 20197544, 20197545, 20197546, 20197547, 20197548, 20197549, 20197550, 20197551, 20197552, 20197553, 20197554, 20197555, 20197556, 20197557, 20197558, 20197559, 20197560, 20197561, 20197562, 20197563, 20197564, 20197565, 20197566, 20197567, 20197568, 20197569, 20197570, 20197571, 20197572, 20197573, 20197574, 20197575, 20197576, 20197577, 20197578, 20197579, 20197580, 20197581, 20197582, 20197583, 20197584, 20197585, 20197586, 20197587, 20197588, 20197589, 20197590, 20197591, 20197592, 20197593, 20197594, 20197595, 20197596, 20197597, 20197598, 20197599, 20197600, 20197601, 20197602, 20197603, 20197604, 20197605, 20197606, 20197607, 20197608, 20197609, 20197610, 20197611, 20197612, 20197613, 20197614, 20197615, 20197616, 20197617, 20197618, 20197619, 20197620, 20197621, 20197622, 20197623, 20197624, 20197625, 20197626, 20197627, 20197628, 20197629, 20197630, 20197631, 20197632, 20197633, 20197634, 20197635, 20197636, 20197637, 20197638, 20197639, 20197640, 20197641, 20197642, 20197643, 20197644, 20197645, 20197646, 20197647, 20197648, 20197649, 20197650, 20197651, 20197652, 20197653, 20197654, 20197655, 20197656, 20197657, 20197658, 20197659, 20197660, 20197661, 20197662, 20197663, 20199740, 20199741, 20199742, 20199743, 20199744, 20199745, 20199746, 20199747, 20199748, 20199749, 20199750, 20199751, 20199752, 20199753, 20199754, 20199755, 20199756, 20199757, 20199758, 20199759, 20199760, 20199761, 20199762, 20199763, 20199764, 20199765, 20199766, 20199767, 20199768, 20199769, 20199770, 20199771, 20199772, 20199773, 20199774, 20199775, 20199776, 20199777, 20199778, 20199779, 20199780, 20199781, 20199782, 20199783, 20199784, 20199785, 20199786, 20199787, 20199788, 20199789, 20199790, 20199791, 20199792, 20199793, 20199794, 20199795, 20199796, 20199797, 20199798, 20199799, 20199800, 20199801, 20199802, 20199803, 20199804, 20199805, 20199806, 20199807, 20199808, 20199809, 20199810, 20199811, 20199812, 20199813, 20199814, 20199815, 20199816, 20199817, 20199818, 20199819, 20199820, 20199821, 20199822, 20199823, 20199824, 20199825, 20199826, 20199827, 20199828, 20199829, 20199830, 20199831, 20199832, 20199833, 20199834, 20199835, 20199836, 20199837, 20199838, 20199839, 20199840, 20199841, 20199842, 20199843, 20199844, 20199845, 20199846, 20199847, 20199848, 20199849, 20199850, 20199851, 20199852, 20199853, 20199854, 20199855, 20199856, 20199857, 20199858, 20199859, 20199860, 20199861, 20199862, 20199863, 20199864, 20199865, 20199866, 20199867, 20199868, 20199869, 20199870, 20199871, 20199872, 20199873, 20199874, 20199875, 20199876, 20199877, 20199878, 20199879, 20199880, 20199881, 20199882, 20199883, 20199884, 20199885, 20199886, 20199887, 20199888, 20199889, 20199890, 20199891, 20199892, 20199893, 20199894, 20199895, 20199896, 20199897, 20199898, 20199899, 20199900, 20199901, 20199902, 20199903, 20199904, 20199905, 20199906, 20199907, 20199908, 20199909, 20199910, 20199911, 20199912, 20199913, 20199914, 20199915, 20199916, 20199917, 20199918, 20199919, 20199920, 20199921, 20199922, 20199923, 20199924, 20199925, 20199926, 20199927, 20199928, 20199929, 20199930, 20199931, 20199932, 20199933, 20199934, 20199935, 20199936, 20199937, 20199938, 20199939, 20199940, 20199941, 20199942, 20199943, 20199944, 20199945, 20199946, 20199947, 20199948, 20199949, 20199950, 20199951, 20199952, 20199953, 20199954, 20199955, 20199956, 20199957, 20199958, 20199959, 20199960, 20199961, 20199962, 20199963, 20199964, 20199965, 20199966, 20199967, 20199968, 20199969, 20199970, 20199971, 20199972, 20199973, 20199974, 20199975, 20199976, 20199977, 20199978, 20199979, 20199980, 20199981, 20199982, 20199983, 20199984, 20199985, 20199986, 20199987, 20199988, 20199989, 20199990, 20199991, 20199992, 20199993, 20199994, 20199995, 20199996, 20199997, 20199998, 20199999, 20200000, 20200001, 20200002, 20200003, 20200004, 20200005, 20200006, 20200007, 20200008, 20200009, 20200010, 20200011, 20200012, 20200013, 20200014, 20200015, 20200016, 20200017, 20200018, 20200019, 20200020, 20200021, 20200022, 20200023, 20200024, 20200025, 20200026, 20200027, 20202102, 20202103, 20202104, 20202105, 20202106, 20202107, 20202108, 20202109, 20202110, 20202111, 20202112, 20202113, 20202114, 20202115, 20202116, 20202117, 20202118, 20202119, 20202120, 20202121, 20202122, 20202123, 20202124, 20202125, 20202126, 20202127, 20202128, 20202129, 20202130, 20202131, 20202132, 20202133, 20202134, 20202135, 20202136, 20202137, 20202138, 20202139, 20202140, 20202141, 20202142, 20202143, 20202144, 20202145, 20202146, 20202147, 20202148, 20202149, 20202150, 20202151, 20202152, 20202153, 20202154, 20202155, 20202156, 20202157, 20202158, 20202159, 20202160, 20202161, 20202162, 20202163, 20202164, 20202165, 20202166, 20202167, 20202168, 20202169, 20202170, 20202171, 20202172, 20202173, 20202174, 20202175, 20202176, 20202177, 20202178, 20202179, 20202180, 20202181, 20202182, 20202183, 20202184, 20202185, 20202186, 20202187, 20202188, 20202189, 20202190, 20202191, 20202192, 20202193, 20202194, 20202195, 20202196, 20202197, 20202198, 20202199, 20202200, 20202201, 20202202, 20202203, 20202204, 20202205, 20202206, 20202207, 20202208, 20202209, 20202210, 20202211, 20202212, 20202213, 20202214, 20202215, 20202216, 20202217, 20202218, 20202219, 20202220, 20202221, 20202222, 20202223, 20202224, 20202225, 20202226, 20202227, 20202228, 20202229, 20202230, 20202231, 20202232, 20202233, 20202234, 20202235, 20202236, 20202237, 20202238, 20202239, 20202240, 20202241, 20202242, 20202243, 20202244, 20202245, 20202246, 20202247, 20202248, 20202249, 20202250, 20202251, 20202252, 20202253, 20202254, 20202255, 20202256, 20202257, 20202258, 20202259, 20202260, 20202261, 20202262, 20202263, 20202264, 20202265, 20202266, 20202267, 20202268, 20202269, 20202270, 20202271, 20202272, 20202273, 20202274, 20202275, 20202276, 20202277, 20202278, 20202279, 20202280, 20202281, 20202282, 20202283, 20202284, 20202285, 20202286, 20202287, 20202288, 20202289, 20202290, 20202291, 20202292, 20202293, 20202294, 20202295, 20202296, 20202297, 20202298, 20202299, 20202300, 20202301, 20202302, 20202303, 20202304, 20202305, 20202306, 20202307, 20202308, 20202309, 20202310, 20202311, 20202312, 20202313, 20202314, 20202315, 20202316, 20202317, 20202318, 20202319, 20202320, 20202321, 20202322, 20202323, 20202324, 20202325, 20202326, 20202327, 20202328, 20202329, 20202330, 20202331, 20202332, 20202333, 20202334, 20202335, 20202336, 20202337, 20202338, 20202339, 20202340, 20202341, 20202342, 20202343, 20202344, 20202345, 20202346, 20202347, 20202348, 20202349, 20202350, 20202351, 20202352, 20202353, 20202354, 20202355, 20202356, 20202357, 20202358, 20202359, 20202360, 20202361, 20202362, 20202363, 20202364, 20202365, 20202366, 20202367, 20202368, 20202369, 20202370, 20202371, 20202372, 20202373, 20202374, 20202375, 20202376, 20202377, 20202378, 20202379, 20202380, 20202381, 20202382, 20202383, 20202384, 20202385, 20202386, 20202387, 20202388, 20202389, 20204465, 20204466, 20204467, 20204468, 20204469, 20204470, 20204471, 20204472, 20204473, 20204474, 20204475, 20204476, 20204477, 20204478, 20204479, 20204480, 20204481, 20204482, 20204483, 20204484, 20204485, 20204486, 20204487, 20204488, 20204489, 20204490, 20204491, 20204492, 20204493, 20204494, 20204495, 20204496, 20204497, 20204498, 20204499, 20204500, 20204501, 20204502, 20204503, 20204504, 20204505, 20204506, 20204507, 20204508, 20204509, 20204510, 20204511, 20204512, 20204513, 20204514, 20204515, 20204516, 20204517, 20204518, 20204519, 20204520, 20204521, 20204522, 20204523, 20204524, 20204525, 20204526, 20204527, 20204528, 20204529, 20204530, 20204531, 20204532, 20204533, 20204534, 20204535, 20204536, 20204537, 20204538, 20204539, 20204540, 20204541, 20204542, 20204543, 20204544, 20204545, 20204546, 20204547, 20204548, 20204549, 20204550, 20204551, 20204552, 20204553, 20204554, 20204555, 20204556, 20204557, 20204558, 20204559, 20204560, 20204561, 20204562, 20204563, 20204564, 20204565, 20204566, 20204567, 20204568, 20204569, 20204570, 20204571, 20204572, 20204573, 20204574, 20204575, 20204576, 20204577, 20204578, 20204579, 20204580, 20204581, 20204582, 20204583, 20204584, 20204585, 20204586, 20204587, 20204588, 20204589, 20204590, 20204591, 20204592, 20204593, 20204594, 20204595, 20204596, 20204597, 20204598, 20204599, 20204600, 20204601, 20204602, 20204603, 20204604, 20204605, 20204606, 20204607, 20204608, 20204609, 20204610, 20204611, 20204612, 20204613, 20204614, 20204615, 20204616, 20204617, 20204618, 20204619, 20204620, 20204621, 20204622, 20204623, 20204624, 20204625, 20204626, 20204627, 20204628, 20204629, 20204630, 20204631, 20204632, 20204633, 20204634, 20204635, 20204636, 20204637, 20204638, 20204639, 20204640, 20204641, 20204642, 20204643, 20204644, 20204645, 20204646, 20204647, 20204648, 20204649, 20204650, 20204651, 20204652, 20204653, 20204654, 20204655, 20204656, 20204657, 20204658, 20204659, 20204660, 20204661, 20204662, 20204663, 20204664, 20204665, 20204666, 20204667, 20204668, 20204669, 20204670, 20204671, 20204672, 20204673, 20204674, 20204675, 20204676, 20204677, 20204678, 20204679, 20204680, 20204681, 20204682, 20204683, 20204684, 20204685, 20204686, 20204687, 20204688, 20204689, 20204690, 20204691, 20204692, 20204693, 20204694, 20204695, 20204696, 20204697, 20204698, 20204699, 20204700, 20204701, 20204702, 20204703, 20204704, 20204705, 20204706, 20204707, 20204708, 20204709, 20204710, 20204711, 20204712, 20204713, 20204714, 20204715, 20204716, 20204717, 20204718, 20204719, 20204720, 20204721, 20204722, 20204723, 20204724, 20204725, 20204726, 20204727, 20204728, 20204729, 20204730, 20204731, 20204732, 20204733, 20204734, 20204735, 20204736, 20204737, 20204738, 20204739, 20204740, 20204741, 20204742, 20204743, 20204744, 20204745, 20204746, 20204747, 20204748, 20204749, 20204750, 20204751, 20204752, 20206828, 20206829, 20206830, 20206831, 20206832, 20206833, 20206834, 20206835, 20206836, 20206837, 20206838, 20206839, 20206840, 20206841, 20206842, 20206843, 20206844, 20206845, 20206846, 20206847, 20206848, 20206849, 20206850, 20206851, 20206852, 20206853, 20206854, 20206855, 20206856, 20206857, 20206858, 20206859, 20206860, 20206861, 20206862, 20206863, 20206864, 20206865, 20206866, 20206867, 20206868, 20206869, 20206870, 20206871, 20206872, 20206873, 20206874, 20206875, 20206876, 20206877, 20206878, 20206879, 20206880, 20206881, 20206882, 20206883, 20206884, 20206885, 20206886, 20206887, 20206888, 20206889, 20206890, 20206891, 20206892, 20206893, 20206894, 20206895, 20206896, 20206897, 20206898, 20206899, 20206900, 20206901, 20206902, 20206903, 20206904, 20206905, 20206906, 20206907, 20206908, 20206909, 20206910, 20206911, 20206912, 20206913, 20206914, 20206915, 20206916, 20206917, 20206918, 20206919, 20206920, 20206921, 20206922, 20206923, 20206924, 20206925, 20206926, 20206927, 20206928, 20206929, 20206930, 20206931, 20206932, 20206933, 20206934, 20206935, 20206936, 20206937, 20206938, 20206939, 20206940, 20206941, 20206942, 20206943, 20206944, 20206945, 20206946, 20206947, 20206948, 20206949, 20206950, 20206951, 20206952, 20206953, 20206954, 20206955, 20206956, 20206957, 20206958, 20206959, 20206960, 20206961, 20206962, 20206963, 20206964, 20206965, 20206966, 20206967, 20206968, 20206969, 20206970, 20206971, 20206972, 20206973, 20206974, 20206975, 20206976, 20206977, 20206978, 20206979, 20206980, 20206981, 20206982, 20206983, 20206984, 20206985, 20206986, 20206987, 20206988, 20206989, 20206990, 20206991, 20206992, 20206993, 20206994, 20206995, 20206996, 20206997, 20206998, 20206999, 20207000, 20207001, 20207002, 20207003, 20207004, 20207005, 20207006, 20207007, 20207008, 20207009, 20207010, 20207011, 20207012, 20207013, 20207014, 20207015, 20207016, 20207017, 20207018, 20207019, 20207020, 20207021, 20207022, 20207023, 20207024, 20207025, 20207026, 20207027, 20207028, 20207029, 20207030, 20207031, 20207032, 20207033, 20207034, 20207035, 20207036, 20207037, 20207038, 20207039, 20207040, 20207041, 20207042, 20207043, 20207044, 20207045, 20207046, 20207047, 20207048, 20207049, 20207050, 20207051, 20207052, 20207053, 20207054, 20207055, 20207056, 20207057, 20207058, 20207059, 20207060, 20207061, 20207062, 20207063, 20207064, 20207065, 20207066, 20207067, 20207068, 20207069, 20207070, 20207071, 20207072, 20207073, 20207074, 20207075, 20207076, 20207077, 20207078, 20207079, 20207080, 20207081, 20207082, 20207083, 20207084, 20207085, 20207086, 20207087, 20207088, 20207089, 20207090, 20207091, 20207092, 20207093, 20207094, 20207095, 20207096, 20207097, 20207098, 20207099, 20207100, 20207101, 20207102, 20207103, 20207104, 20207105, 20207106, 20207107, 20207108, 20207109, 20207110, 20207111, 20207112, 20207113, 20207114, 20207115, 20209194, 20209195, 20209196, 20209197, 20209198, 20209199, 20209200, 20209201, 20209202, 20209203, 20209204, 20209205, 20209206, 20209207, 20209208, 20209209, 20209210, 20209211, 20209212, 20209213, 20209214, 20209215, 20209216, 20209217, 20209218, 20209219, 20209220, 20209221, 20209222, 20209223, 20209224, 20209225, 20209226, 20209227, 20209228, 20209229, 20209230, 20209231, 20209232, 20209233, 20209234, 20209235, 20209236, 20209237, 20209238, 20209239, 20209240, 20209241, 20209242, 20209243, 20209244, 20209245, 20209246, 20209247, 20209248, 20209249, 20209250, 20209251, 20209252, 20209253, 20209254, 20209255, 20209256, 20209257, 20209258, 20209259, 20209260, 20209261, 20209262, 20209263, 20209264, 20209265, 20209266, 20209267, 20209268, 20209269, 20209270, 20209271, 20209272, 20209273, 20209274, 20209275, 20209276, 20209277, 20209278, 20209279, 20209280, 20209281, 20209282, 20209283, 20209284, 20209285, 20209286, 20209287, 20209288, 20209289, 20209290, 20209291, 20209292, 20209293, 20209294, 20209295, 20209296, 20209297, 20209298, 20209299, 20209300, 20209301, 20209302, 20209303, 20209304, 20209305, 20209306, 20209307, 20209308, 20209309, 20209310, 20209311, 20209312, 20209313, 20209314, 20209315, 20209316, 20209317, 20209318, 20209319, 20209320, 20209321, 20209322, 20209323, 20209324, 20209325, 20209326, 20209327, 20209328, 20209329, 20209330, 20209331, 20209332, 20209333, 20209334, 20209335, 20209336, 20209337, 20209338, 20209339, 20209340, 20209341, 20209342, 20209343, 20209344, 20209345, 20209346, 20209347, 20209348, 20209349, 20209350, 20209351, 20209352, 20209353, 20209354, 20209355, 20209356, 20209357, 20209358, 20209359, 20209360, 20209361, 20209362, 20209363, 20209364, 20209365, 20209366, 20209367, 20209368, 20209369, 20209370, 20209371, 20209372, 20209373, 20209374, 20209375, 20209376, 20209377, 20209378, 20209379, 20209380, 20209381, 20209382, 20209383, 20209384, 20209385, 20209386, 20209387, 20209388, 20209389, 20209390, 20209391, 20209392, 20209393, 20209394, 20209395, 20209396, 20209397, 20209398, 20209399, 20209400, 20209401, 20209402, 20209403, 20209404, 20209405, 20209406, 20209407, 20209408, 20209409, 20209410, 20209411, 20209412, 20209413, 20209414, 20209415, 20209416, 20209417, 20209418, 20209419, 20209420, 20209421, 20209422, 20209423, 20209424, 20209425, 20209426, 20209427, 20209428, 20209429, 20209430, 20209431, 20209432, 20209433, 20209434, 20209435, 20209436, 20209437, 20209438, 20209439, 20209440, 20209441, 20209442, 20209443, 20209444, 20209445, 20209446, 20209447, 20209448, 20209449, 20209450, 20209451, 20209452, 20209453, 20209454, 20209455, 20209456, 20209457, 20209458, 20209459, 20209460, 20209461, 20209462, 20209463, 20209464, 20209465, 20209466, 20209467, 20209468, 20209469, 20209470, 20209471, 20209472, 20209473, 20209474, 20209475, 20209476, 20209477, 20209478, 20209479, 20209480, 20209481, 20211559, 20211560, 20211561, 20211562, 20211563, 20211564, 20211565, 20211566, 20211567, 20211568, 20211569, 20211570, 20211571, 20211572, 20211573, 20211574, 20211575, 20211576, 20211577, 20211578, 20211579, 20211580, 20211581, 20211582, 20211583, 20211584, 20211585, 20211586, 20211587, 20211588, 20211589, 20211590, 20211591, 20211592, 20211593, 20211594, 20211595, 20211596, 20211597, 20211598, 20211599, 20211600, 20211601, 20211602, 20211603, 20211604, 20211605, 20211606, 20211607, 20211608, 20211609, 20211610, 20211611, 20211612, 20211613, 20211614, 20211615, 20211616, 20211617, 20211618, 20211619, 20211620, 20211621, 20211622, 20211623, 20211624, 20211625, 20211626, 20211627, 20211628, 20211629, 20211630, 20211631, 20211632, 20211633, 20211634, 20211635, 20211636, 20211637, 20211638, 20211639, 20211640, 20211641, 20211642, 20211643, 20211644, 20211645, 20211646, 20211647, 20211648, 20211649, 20211650, 20211651, 20211652, 20211653, 20211654, 20211655, 20211656, 20211657, 20211658, 20211659, 20211660, 20211661, 20211662, 20211663, 20211664, 20211665, 20211666, 20211667, 20211668, 20211669, 20211670, 20211671, 20211672, 20211673, 20211674, 20211675, 20211676, 20211677, 20211678, 20211679, 20211680, 20211681, 20211682, 20211683, 20211684, 20211685, 20211686, 20211687, 20211688, 20211689, 20211690, 20211691, 20211692, 20211693, 20211694, 20211695, 20211696, 20211697, 20211698, 20211699, 20211700, 20211701, 20211702, 20211703, 20211704, 20211705, 20211706, 20211707, 20211708, 20211709, 20211710, 20211711, 20211712, 20211713, 20211714, 20211715, 20211716, 20211717, 20211718, 20211719, 20211720, 20211721, 20211722, 20211723, 20211724, 20211725, 20211726, 20211727, 20211728, 20211729, 20211730, 20211731, 20211732, 20211733, 20211734, 20211735, 20211736, 20211737, 20211738, 20211739, 20211740, 20211741, 20211742, 20211743, 20211744, 20211745, 20211746, 20211747, 20211748, 20211749, 20211750, 20211751, 20211752, 20211753, 20211754, 20211755, 20211756, 20211757, 20211758, 20211759, 20211760, 20211761, 20211762, 20211763, 20211764, 20211765, 20211766, 20211767, 20211768, 20211769, 20211770, 20211771, 20211772, 20211773, 20211774, 20211775, 20211776, 20211777, 20211778, 20211779, 20211780, 20211781, 20211782, 20211783, 20211784, 20211785, 20211786, 20211787, 20211788, 20211789, 20211790, 20211791, 20211792, 20211793, 20211794, 20211795, 20211796, 20211797, 20211798, 20211799, 20211800, 20211801, 20211802, 20211803, 20211804, 20211805, 20211806, 20211807, 20211808, 20211809, 20211810, 20211811, 20211812, 20211813, 20211814, 20211815, 20211816, 20211817, 20211818, 20211819, 20211820, 20211821, 20211822, 20211823, 20211824, 20211825, 20211826, 20211827, 20211828, 20211829, 20211830, 20211831, 20211832, 20211833, 20211834, 20211835, 20211836, 20211837, 20211838, 20211839, 20211840, 20211841, 20211842, 20211843, 20211844, 20211845, 20211846, 20213925, 20213926, 20213927, 20213928, 20213929, 20213930, 20213931, 20213932, 20213933, 20213934, 20213935, 20213936, 20213937, 20213938, 20213939, 20213940, 20213941, 20213942, 20213943, 20213944, 20213945, 20213946, 20213947, 20213948, 20213949, 20213950, 20213951, 20213952, 20213953, 20213954, 20213955, 20213956, 20213957, 20213958, 20213959, 20213960, 20213961, 20213962, 20213963, 20213964, 20213965, 20213966, 20213967, 20213968, 20213969, 20213970, 20213971, 20213972, 20213973, 20213974, 20213975, 20213976, 20213977, 20213978, 20213979, 20213980, 20213981, 20213982, 20213983, 20213984, 20213985, 20213986, 20213987, 20213988, 20213989, 20213990, 20213991, 20213992, 20213993, 20213994, 20213995, 20213996, 20213997, 20213998, 20213999, 20214000, 20214001, 20214002, 20214003, 20214004, 20214005, 20214006, 20214007, 20214008, 20214009, 20214010, 20214011, 20214012, 20214013, 20214014, 20214015, 20214016, 20214017, 20214018, 20214019, 20214020, 20214021, 20214022, 20214023, 20214024, 20214025, 20214026, 20214027, 20214028, 20214029, 20214030, 20214031, 20214032, 20214033, 20214034, 20214035, 20214036, 20214037, 20214038, 20214039, 20214040, 20214041, 20214042, 20214043, 20214044, 20214045, 20214046, 20214047, 20214048, 20214049, 20214050, 20214051, 20214052, 20214053, 20214054, 20214055, 20214056, 20214057, 20214058, 20214059, 20214060, 20214061, 20214062, 20214063, 20214064, 20214065, 20214066, 20214067, 20214068, 20214069, 20214070, 20214071, 20214072, 20214073, 20214074, 20214075, 20214076, 20214077, 20214078, 20214079, 20214080, 20214081, 20214082, 20214083, 20214084, 20214085, 20214086, 20214087, 20214088, 20214089, 20214090, 20214091, 20214092, 20214093, 20214094, 20214095, 20214096, 20214097, 20214098, 20214099, 20214100, 20214101, 20214102, 20214103, 20214104, 20214105, 20214106, 20214107, 20214108, 20214109, 20214110, 20214111, 20214112, 20214113, 20214114, 20214115, 20214116, 20214117, 20214118, 20214119, 20214120, 20214121, 20214122, 20214123, 20214124, 20214125, 20214126, 20214127, 20214128, 20214129, 20214130, 20214131, 20214132, 20214133, 20214134, 20214135, 20214136, 20214137, 20214138, 20214139, 20214140, 20214141, 20214142, 20214143, 20214144, 20214145, 20214146, 20214147, 20214148, 20214149, 20214150, 20214151, 20214152, 20214153, 20214154, 20214155, 20214156, 20214157, 20214158, 20214159, 20214160, 20214161, 20214162, 20214163, 20214164, 20214165, 20214166, 20214167, 20214168, 20214169, 20214170, 20214171, 20214172, 20214173, 20214174, 20214175, 20214176, 20214177, 20214178, 20214179, 20214180, 20214181, 20214182, 20214183, 20214184, 20214185, 20214186, 20214187, 20214188, 20214189, 20214190, 20214191, 20214192, 20214193, 20214194, 20214195, 20214196, 20214197, 20214198, 20214199, 20214200, 20214201, 20214202, 20214203, 20214204, 20214205, 20214206, 20214207, 20214208, 20214209, 20214210, 20214211, 20214212, 20202390, 20202391, 20202392, 20202393, 20202394, 20202395, 20202396, 20202397, 20202398, 20202399, 20202400, 20202401, 20202402, 20202403, 20202404, 20202405, 20202406, 20202407, 20202408, 20202409, 20202410, 20202411, 20202412, 20202413, 20202414, 20202415, 20202416, 20202417, 20202418, 20202419, 20202420, 20202421, 20202422, 20202423, 20202424, 20202425, 20202426, 20202427, 20202428, 20202429, 20202430, 20202431, 20202432, 20202433, 20202434, 20202435, 20202436, 20202437, 20202438, 20202439, 20202440, 20202441, 20202442, 20202443, 20202444, 20202445, 20202446, 20202447, 20202448, 20202449, 20202450, 20202451, 20202452, 20202453, 20202454, 20202455, 20202456, 20202457, 20202458, 20202459, 20202460, 20202461, 20202462, 20202463, 20202464, 20202465, 20202466, 20202467, 20202468, 20202469, 20202470, 20202471, 20202472, 20202473, 20202474, 20202475, 20202476, 20202477, 20202478, 20202479, 20202480, 20202481, 20202482, 20202483, 20202484, 20202485, 20202486, 20202487, 20202488, 20202489, 20202490, 20202491, 20202492, 20202493, 20202494, 20202495, 20202496, 20202497, 20202498, 20202499, 20202500, 20202501, 20202502, 20202503, 20202504, 20202505, 20202506, 20202507, 20202508, 20202509, 20202510, 20202511, 20202512, 20202513, 20202514, 20202515, 20202516, 20202517, 20202518, 20202519, 20202520, 20202521, 20202522, 20202523, 20202524, 20202525, 20202526, 20202527, 20202528, 20202529, 20202530, 20202531, 20202532, 20202533, 20202534, 20202535, 20202536, 20202537, 20202538, 20202539, 20202540, 20202541, 20202542, 20202543, 20202544, 20202545, 20202546, 20202547, 20202548, 20202549, 20202550, 20202551, 20202552, 20202553, 20202554, 20202555, 20202556, 20202557, 20202558, 20202559, 20202560, 20202561, 20202562, 20202563, 20202564, 20202565, 20202566, 20202567, 20202568, 20202569, 20202570, 20202571, 20202572, 20202573, 20202574, 20202575, 20202576, 20202577, 20202578, 20202579, 20202580, 20202581, 20202582, 20202583, 20202584, 20202585, 20202586, 20202587, 20202588, 20202589, 20202590, 20202591, 20202592, 20202593, 20202594, 20202595, 20202596, 20202597, 20202598, 20202599, 20202600, 20202601, 20202602, 20202603, 20202604, 20202605, 20202606, 20202607, 20202608, 20202609, 20202610, 20202611, 20202612, 20202613, 20202614, 20202615, 20202616, 20202617, 20202618, 20202619, 20202620, 20202621, 20202622, 20202623, 20202624, 20202625, 20202626, 20202627, 20202628, 20202629, 20202630, 20202631, 20202632, 20202633, 20202634, 20202635, 20202636, 20202637, 20202638, 20202639, 20202640, 20202641, 20202642, 20202643, 20202644, 20202645, 20202646, 20202647, 20202648, 20202649, 20202650, 20202651, 20202652, 20202653, 20202654, 20202655, 20202656, 20202657, 20202658, 20202659, 20202660, 20204753, 20204754, 20204755, 20204756, 20204757, 20204758, 20204759, 20204760, 20204761, 20204762, 20204763, 20204764, 20204765, 20204766, 20204767, 20204768, 20204769, 20204770, 20204771, 20204772, 20204773, 20204774, 20204775, 20204776, 20204777, 20204778, 20204779, 20204780, 20204781, 20204782, 20204783, 20204784, 20204785, 20204786, 20204787, 20204788, 20204789, 20204790, 20204791, 20204792, 20204793, 20204794, 20204795, 20204796, 20204797, 20204798, 20204799, 20204800, 20204801, 20204802, 20204803, 20204804, 20204805, 20204806, 20204807, 20204808, 20204809, 20204810, 20204811, 20204812, 20204813, 20204814, 20204815, 20204816, 20204817, 20204818, 20204819, 20204820, 20204821, 20204822, 20204823, 20204824, 20204825, 20204826, 20204827, 20204828, 20204829, 20204830, 20204831, 20204832, 20204833, 20204834, 20204835, 20204836, 20204837, 20204838, 20204839, 20204840, 20204841, 20204842, 20204843, 20204844, 20204845, 20204846, 20204847, 20204848, 20204849, 20204850, 20204851, 20204852, 20204853, 20204854, 20204855, 20204856, 20204857, 20204858, 20204859, 20204860, 20204861, 20204862, 20204863, 20204864, 20204865, 20204866, 20204867, 20204868, 20204869, 20204870, 20204871, 20204872, 20204873, 20204874, 20204875, 20204876, 20204877, 20204878, 20204879, 20204880, 20204881, 20204882, 20204883, 20204884, 20204885, 20204886, 20204887, 20204888, 20204889, 20204890, 20204891, 20204892, 20204893, 20204894, 20204895, 20204896, 20204897, 20204898, 20204899, 20204900, 20204901, 20204902, 20204903, 20204904, 20204905, 20204906, 20204907, 20204908, 20204909, 20204910, 20204911, 20204912, 20204913, 20204914, 20204915, 20204916, 20204917, 20204918, 20204919, 20204920, 20204921, 20204922, 20204923, 20204924, 20204925, 20204926, 20204927, 20204928, 20204929, 20204930, 20204931, 20204932, 20204933, 20204934, 20204935, 20204936, 20204937, 20204938, 20204939, 20204940, 20204941, 20204942, 20204943, 20204944, 20204945, 20204946, 20204947, 20204948, 20204949, 20204950, 20204951, 20204952, 20204953, 20204954, 20204955, 20204956, 20204957, 20204958, 20204959, 20204960, 20204961, 20204962, 20204963, 20204964, 20204965, 20204966, 20204967, 20204968, 20204969, 20204970, 20204971, 20204972, 20204973, 20204974, 20204975, 20204976, 20204977, 20204978, 20204979, 20204980, 20204981, 20204982, 20204983, 20204984, 20204985, 20204986, 20204987, 20204988, 20204989, 20204990, 20204991, 20204992, 20204993, 20204994, 20204995, 20204996, 20204997, 20204998, 20204999, 20205000, 20205001, 20205002, 20205003, 20205004, 20205005, 20205006, 20205007, 20205008, 20205009, 20205010, 20205011, 20205012, 20205013, 20205014, 20205015, 20205016, 20205017, 20205018, 20205019, 20205020, 20205021, 20205022, 20205023, 20207116, 20207117, 20207118, 20207119, 20207120, 20207121, 20207122, 20207123, 20207124, 20207125, 20207126, 20207127, 20207128, 20207129, 20207130, 20207131, 20207132, 20207133, 20207134, 20207135, 20207136, 20207137, 20207138, 20207139, 20207140, 20207141, 20207142, 20207143, 20207144, 20207145, 20207146, 20207147, 20207148, 20207149, 20207150, 20207151, 20207152, 20207153, 20207154, 20207155, 20207156, 20207157, 20207158, 20207159, 20207160, 20207161, 20207162, 20207163, 20207164, 20207165, 20207166, 20207167, 20207168, 20207169, 20207170, 20207171, 20207172, 20207173, 20207174, 20207175, 20207176, 20207177, 20207178, 20207179, 20207180, 20207181, 20207182, 20207183, 20207184, 20207185, 20207186, 20207187, 20207188, 20207189, 20207190, 20207191, 20207192, 20207193, 20207194, 20207195, 20207196, 20207197, 20207198, 20207199, 20207200, 20207201, 20207202, 20207203, 20207204, 20207205, 20207206, 20207207, 20207208, 20207209, 20207210, 20207211, 20207212, 20207213, 20207214, 20207215, 20207216, 20207217, 20207218, 20207219, 20207220, 20207221, 20207222, 20207223, 20207224, 20207225, 20207226, 20207227, 20207228, 20207229, 20207230, 20207231, 20207232, 20207233, 20207234, 20207235, 20207236, 20207237, 20207238, 20207239, 20207240, 20207241, 20207242, 20207243, 20207244, 20207245, 20207246, 20207247, 20207248, 20207249, 20207250, 20207251, 20207252, 20207253, 20207254, 20207255, 20207256, 20207257, 20207258, 20207259, 20207260, 20207261, 20207262, 20207263, 20207264, 20207265, 20207266, 20207267, 20207268, 20207269, 20207270, 20207271, 20207272, 20207273, 20207274, 20207275, 20207276, 20207277, 20207278, 20207279, 20207280, 20207281, 20207282, 20207283, 20207284, 20207285, 20207286, 20207287, 20207288, 20207289, 20207290, 20207291, 20207292, 20207293, 20207294, 20207295, 20207296, 20207297, 20207298, 20207299, 20207300, 20207301, 20207302, 20207303, 20207304, 20207305, 20207306, 20207307, 20207308, 20207309, 20207310, 20207311, 20207312, 20207313, 20207314, 20207315, 20207316, 20207317, 20207318, 20207319, 20207320, 20207321, 20207322, 20207323, 20207324, 20207325, 20207326, 20207327, 20207328, 20207329, 20207330, 20207331, 20207332, 20207333, 20207334, 20207335, 20207336, 20207337, 20207338, 20207339, 20207340, 20207341, 20207342, 20207343, 20207344, 20207345, 20207346, 20207347, 20207348, 20207349, 20207350, 20207351, 20207352, 20207353, 20207354, 20207355, 20207356, 20207357, 20207358, 20207359, 20207360, 20207361, 20207362, 20207363, 20207364, 20207365, 20207366, 20207367, 20207368, 20207369, 20207370, 20207371, 20207372, 20207373, 20207374, 20207375, 20207376, 20207377, 20207378, 20207379, 20207380, 20207381, 20207382, 20207383, 20207384, 20207385, 20207386, 20209482, 20209483, 20209484, 20209485, 20209486, 20209487, 20209488, 20209489, 20209490, 20209491, 20209492, 20209493, 20209494, 20209495, 20209496, 20209497, 20209498, 20209499, 20209500, 20209501, 20209502, 20209503, 20209504, 20209505, 20209506, 20209507, 20209508, 20209509, 20209510, 20209511, 20209512, 20209513, 20209514, 20209515, 20209516, 20209517, 20209518, 20209519, 20209520, 20209521, 20209522, 20209523, 20209524, 20209525, 20209526, 20209527, 20209528, 20209529, 20209530, 20209531, 20209532, 20209533, 20209534, 20209535, 20209536, 20209537, 20209538, 20209539, 20209540, 20209541, 20209542, 20209543, 20209544, 20209545, 20209546, 20209547, 20209548, 20209549, 20209550, 20209551, 20209552, 20209553, 20209554, 20209555, 20209556, 20209557, 20209558, 20209559, 20209560, 20209561, 20209562, 20209563, 20209564, 20209565, 20209566, 20209567, 20209568, 20209569, 20209570, 20209571, 20209572, 20209573, 20209574, 20209575, 20209576, 20209577, 20209578, 20209579, 20209580, 20209581, 20209582, 20209583, 20209584, 20209585, 20209586, 20209587, 20209588, 20209589, 20209590, 20209591, 20209592, 20209593, 20209594, 20209595, 20209596, 20209597, 20209598, 20209599, 20209600, 20209601, 20209602, 20209603, 20209604, 20209605, 20209606, 20209607, 20209608, 20209609, 20209610, 20209611, 20209612, 20209613, 20209614, 20209615, 20209616, 20209617, 20209618, 20209619, 20209620, 20209621, 20209622, 20209623, 20209624, 20209625, 20209626, 20209627, 20209628, 20209629, 20209630, 20209631, 20209632, 20209633, 20209634, 20209635, 20209636, 20209637, 20209638, 20209639, 20209640, 20209641, 20209642, 20209643, 20209644, 20209645, 20209646, 20209647, 20209648, 20209649, 20209650, 20209651, 20209652, 20209653, 20209654, 20209655, 20209656, 20209657, 20209658, 20209659, 20209660, 20209661, 20209662, 20209663, 20209664, 20209665, 20209666, 20209667, 20209668, 20209669, 20209670, 20209671, 20209672, 20209673, 20209674, 20209675, 20209676, 20209677, 20209678, 20209679, 20209680, 20209681, 20209682, 20209683, 20209684, 20209685, 20209686, 20209687, 20209688, 20209689, 20209690, 20209691, 20209692, 20209693, 20209694, 20209695, 20209696, 20209697, 20209698, 20209699, 20209700, 20209701, 20209702, 20209703, 20209704, 20209705, 20209706, 20209707, 20209708, 20209709, 20209710, 20209711, 20209712, 20209713, 20209714, 20209715, 20209716, 20209717, 20209718, 20209719, 20209720, 20209721, 20209722, 20209723, 20209724, 20209725, 20209726, 20209727, 20209728, 20209729, 20209730, 20209731, 20209732, 20209733, 20209734, 20209735, 20209736, 20209737, 20209738, 20209739, 20209740, 20209741, 20209742, 20209743, 20209744, 20209745, 20209746, 20209747, 20209748, 20209749, 20209750, 20209751, 20209752, 20211847, 20211848, 20211849, 20211850, 20211851, 20211852, 20211853, 20211854, 20211855, 20211856, 20211857, 20211858, 20211859, 20211860, 20211861, 20211862, 20211863, 20211864, 20211865, 20211866, 20211867, 20211868, 20211869, 20211870, 20211871, 20211872, 20211873, 20211874, 20211875, 20211876, 20211877, 20211878, 20211879, 20211880, 20211881, 20211882, 20211883, 20211884, 20211885, 20211886, 20211887, 20211888, 20211889, 20211890, 20211891, 20211892, 20211893, 20211894, 20211895, 20211896, 20211897, 20211898, 20211899, 20211900, 20211901, 20211902, 20211903, 20211904, 20211905, 20211906, 20211907, 20211908, 20211909, 20211910, 20211911, 20211912, 20211913, 20211914, 20211915, 20211916, 20211917, 20211918, 20211919, 20211920, 20211921, 20211922, 20211923, 20211924, 20211925, 20211926, 20211927, 20211928, 20211929, 20211930, 20211931, 20211932, 20211933, 20211934, 20211935, 20211936, 20211937, 20211938, 20211939, 20211940, 20211941, 20211942, 20211943, 20211944, 20211945, 20211946, 20211947, 20211948, 20211949, 20211950, 20211951, 20211952, 20211953, 20211954, 20211955, 20211956, 20211957, 20211958, 20211959, 20211960, 20211961, 20211962, 20211963, 20211964, 20211965, 20211966, 20211967, 20211968, 20211969, 20211970, 20211971, 20211972, 20211973, 20211974, 20211975, 20211976, 20211977, 20211978, 20211979, 20211980, 20211981, 20211982, 20211983, 20211984, 20211985, 20211986, 20211987, 20211988, 20211989, 20211990, 20211991, 20211992, 20211993, 20211994, 20211995, 20211996, 20211997, 20211998, 20211999, 20212000, 20212001, 20212002, 20212003, 20212004, 20212005, 20212006, 20212007, 20212008, 20212009, 20212010, 20212011, 20212012, 20212013, 20212014, 20212015, 20212016, 20212017, 20212018, 20212019, 20212020, 20212021, 20212022, 20212023, 20212024, 20212025, 20212026, 20212027, 20212028, 20212029, 20212030, 20212031, 20212032, 20212033, 20212034, 20212035, 20212036, 20212037, 20212038, 20212039, 20212040, 20212041, 20212042, 20212043, 20212044, 20212045, 20212046, 20212047, 20212048, 20212049, 20212050, 20212051, 20212052, 20212053, 20212054, 20212055, 20212056, 20212057, 20212058, 20212059, 20212060, 20212061, 20212062, 20212063, 20212064, 20212065, 20212066, 20212067, 20212068, 20212069, 20212070, 20212071, 20212072, 20212073, 20212074, 20212075, 20212076, 20212077, 20212078, 20212079, 20212080, 20212081, 20212082, 20212083, 20212084, 20212085, 20212086, 20212087, 20212088, 20212089, 20212090, 20212091, 20212092, 20212093, 20212094, 20212095, 20212096, 20212097, 20212098, 20212099, 20212100, 20212101, 20212102, 20212103, 20212104, 20212105, 20212106, 20212107, 20212108, 20212109, 20212110, 20212111, 20212112, 20212113, 20212114, 20212115, 20212116, 20212117, 20214213, 20214214, 20214215, 20214216, 20214217, 20214218, 20214219, 20214220, 20214221, 20214222, 20214223, 20214224, 20214225, 20214226, 20214227, 20214228, 20214229, 20214230, 20214231, 20214232, 20214233, 20214234, 20214235, 20214236, 20214237, 20214238, 20214239, 20214240, 20214241, 20214242, 20214243, 20214244, 20214245, 20214246, 20214247, 20214248, 20214249, 20214250, 20214251, 20214252, 20214253, 20214254, 20214255, 20214256, 20214257, 20214258, 20214259, 20214260, 20214261, 20214262, 20214263, 20214264, 20214265, 20214266, 20214267, 20214268, 20214269, 20214270, 20214271, 20214272, 20214273, 20214274, 20214275, 20214276, 20214277, 20214278, 20214279, 20214280, 20214281, 20214282, 20214283, 20214284, 20214285, 20214286, 20214287, 20214288, 20214289, 20214290, 20214291, 20214292, 20214293, 20214294, 20214295, 20214296, 20214297, 20214298, 20214299, 20214300, 20214301, 20214302, 20214303, 20214304, 20214305, 20214306, 20214307, 20214308, 20214309, 20214310, 20214311, 20214312, 20214313, 20214314, 20214315, 20214316, 20214317, 20214318, 20214319, 20214320, 20214321, 20214322, 20214323, 20214324, 20214325, 20214326, 20214327, 20214328, 20214329, 20214330, 20214331, 20214332, 20214333, 20214334, 20214335, 20214336, 20214337, 20214338, 20214339, 20214340, 20214341, 20214342, 20214343, 20214344, 20214345, 20214346, 20214347, 20214348, 20214349, 20214350, 20214351, 20214352, 20214353, 20214354, 20214355, 20214356, 20214357, 20214358, 20214359, 20214360, 20214361, 20214362, 20214363, 20214364, 20214365, 20214366, 20214367, 20214368, 20214369, 20214370, 20214371, 20214372, 20214373, 20214374, 20214375, 20214376, 20214377, 20214378, 20214379, 20214380, 20214381, 20214382, 20214383, 20214384, 20214385, 20214386, 20214387, 20214388, 20214389, 20214390, 20214391, 20214392, 20214393, 20214394, 20214395, 20214396, 20214397, 20214398, 20214399, 20214400, 20214401, 20214402, 20214403, 20214404, 20214405, 20214406, 20214407, 20214408, 20214409, 20214410, 20214411, 20214412, 20214413, 20214414, 20214415, 20214416, 20214417, 20214418, 20214419, 20214420, 20214421, 20214422, 20214423, 20214424, 20214425, 20214426, 20214427, 20214428, 20214429, 20214430, 20214431, 20214432, 20214433, 20214434, 20214435, 20214436, 20214437, 20214438, 20214439, 20214440, 20214441, 20214442, 20214443, 20214444, 20214445, 20214446, 20214447, 20214448, 20214449, 20214450, 20214451, 20214452, 20214453, 20214454, 20214455, 20214456, 20214457, 20214458, 20214459, 20214460, 20214461, 20214462, 20214463, 20214464, 20214465, 20214466, 20214467, 20214468, 20214469, 20214470, 20214471, 20214472, 20214473, 20214474, 20214475, 20214476, 20214477, 20214478, 20214479, 20214480, 20214481, 20214482, 20214483, 20197935, 20197936, 20197937, 20197938, 20197939, 20197940, 20197941, 20197942, 20197943, 20197944, 20197945, 20197946, 20197947, 20197948, 20197949, 20197950, 20197951, 20197952, 20197953, 20197954, 20197955, 20197956, 20197957, 20197958, 20197959, 20197960, 20197961, 20197962, 20197963, 20197964, 20197965, 20197966, 20197967, 20197968, 20197969, 20197970, 20197971, 20197972, 20197973, 20197974, 20197975, 20197976, 20197977, 20197978, 20197979, 20197980, 20197981, 20197982, 20197983, 20197984, 20197985, 20197986, 20197987, 20197988, 20197989, 20197990, 20197991, 20197992, 20197993, 20197994, 20197995, 20197996, 20197997, 20197998, 20197999, 20198000, 20198001, 20198002, 20198003, 20198004, 20198005, 20198006, 20198007, 20198008, 20198009, 20198010, 20198011, 20198012, 20198013, 20198014, 20198015, 20198016, 20198017, 20198018, 20198019, 20198020, 20198021, 20198022, 20198023, 20198024, 20198025, 20200299, 20200300, 20200301, 20200302, 20200303, 20200304, 20200305, 20200306, 20200307, 20200308, 20200309, 20200310, 20200311, 20200312, 20200313, 20200314, 20200315, 20200316, 20200317, 20200318, 20200319, 20200320, 20200321, 20200322, 20200323, 20200324, 20200325, 20200326, 20200327, 20200328, 20200329, 20200330, 20200331, 20200332, 20200333, 20200334, 20200335, 20200336, 20200337, 20200338, 20200339, 20200340, 20200341, 20200342, 20200343, 20200344, 20200345, 20200346, 20200347, 20200348, 20200349, 20200350, 20200351, 20200352, 20200353, 20200354, 20200355, 20200356, 20200357, 20200358, 20200359, 20200360, 20200361, 20200362, 20200363, 20200364, 20200365, 20200366, 20200367, 20200368, 20200369, 20200370, 20200371, 20200372, 20200373, 20200374, 20200375, 20200376, 20200377, 20200378, 20200379, 20200380, 20200381, 20200382, 20200383, 20200384, 20200385, 20200386, 20200387, 20200388, 20200389, 20202661, 20202662, 20202663, 20202664, 20202665, 20202666, 20202667, 20202668, 20202669, 20202670, 20202671, 20202672, 20202673, 20202674, 20202675, 20202676, 20202677, 20202678, 20202679, 20202680, 20202681, 20202682, 20202683, 20202684, 20202685, 20202686, 20202687, 20202688, 20202689, 20202690, 20202691, 20202692, 20202693, 20202694, 20202695, 20202696, 20202697, 20202698, 20202699, 20202700, 20202701, 20202702, 20202703, 20202704, 20202705, 20202706, 20202707, 20202708, 20202709, 20202710, 20202711, 20202712, 20202713, 20202714, 20202715, 20202716, 20202717, 20202718, 20202719, 20202720, 20202721, 20202722, 20202723, 20202724, 20202725, 20202726, 20202727, 20202728, 20202729, 20202730, 20202731, 20202732, 20202733, 20202734, 20202735, 20202736, 20202737, 20202738, 20202739, 20202740, 20202741, 20202742, 20202743, 20202744, 20202745, 20202746, 20202747, 20202748, 20202749, 20202750, 20202751, 20205024, 20205025, 20205026, 20205027, 20205028, 20205029, 20205030, 20205031, 20205032, 20205033, 20205034, 20205035, 20205036, 20205037, 20205038, 20205039, 20205040, 20205041, 20205042, 20205043, 20205044, 20205045, 20205046, 20205047, 20205048, 20205049, 20205050, 20205051, 20205052, 20205053, 20205054, 20205055, 20205056, 20205057, 20205058, 20205059, 20205060, 20205061, 20205062, 20205063, 20205064, 20205065, 20205066, 20205067, 20205068, 20205069, 20205070, 20205071, 20205072, 20205073, 20205074, 20205075, 20205076, 20205077, 20205078, 20205079, 20205080, 20205081, 20205082, 20205083, 20205084, 20205085, 20205086, 20205087, 20205088, 20205089, 20205090, 20205091, 20205092, 20205093, 20205094, 20205095, 20205096, 20205097, 20205098, 20205099, 20205100, 20205101, 20205102, 20205103, 20205104, 20205105, 20205106, 20205107, 20205108, 20205109, 20205110, 20205111, 20205112, 20205113, 20205114, 20207387, 20207388, 20207389, 20207390, 20207391, 20207392, 20207393, 20207394, 20207395, 20207396, 20207397, 20207398, 20207399, 20207400, 20207401, 20207402, 20207403, 20207404, 20207405, 20207406, 20207407, 20207408, 20207409, 20207410, 20207411, 20207412, 20207413, 20207414, 20207415, 20207416, 20207417, 20207418, 20207419, 20207420, 20207421, 20207422, 20207423, 20207424, 20207425, 20207426, 20207427, 20207428, 20207429, 20207430, 20207431, 20207432, 20207433, 20207434, 20207435, 20207436, 20207437, 20207438, 20207439, 20207440, 20207441, 20207442, 20207443, 20207444, 20207445, 20207446, 20207447, 20207448, 20207449, 20207450, 20207451, 20207452, 20207453, 20207454, 20207455, 20207456, 20207457, 20207458, 20207459, 20207460, 20207461, 20207462, 20207463, 20207464, 20207465, 20207466, 20207467, 20207468, 20207469, 20207470, 20207471, 20207472, 20207473, 20207474, 20207475, 20207476, 20207477, 20209753, 20209754, 20209755, 20209756, 20209757, 20209758, 20209759, 20209760, 20209761, 20209762, 20209763, 20209764, 20209765, 20209766, 20209767, 20209768, 20209769, 20209770, 20209771, 20209772, 20209773, 20209774, 20209775, 20209776, 20209777, 20209778, 20209779, 20209780, 20209781, 20209782, 20209783, 20209784, 20209785, 20209786, 20209787, 20209788, 20209789, 20209790, 20209791, 20209792, 20209793, 20209794, 20209795, 20209796, 20209797, 20209798, 20209799, 20209800, 20209801, 20209802, 20209803, 20209804, 20209805, 20209806, 20209807, 20209808, 20209809, 20209810, 20209811, 20209812, 20209813, 20209814, 20209815, 20209816, 20209817, 20209818, 20209819, 20209820, 20209821, 20209822, 20209823, 20209824, 20209825, 20209826, 20209827, 20209828, 20209829, 20209830, 20209831, 20209832, 20209833, 20209834, 20209835, 20209836, 20209837, 20209838, 20209839, 20209840, 20209841, 20209842, 20212118, 20212119, 20212120, 20212121, 20212122, 20212123, 20212124, 20212125, 20212126, 20212127, 20212128, 20212129, 20212130, 20212131, 20212132, 20212133, 20212134, 20212135, 20212136, 20212137, 20212138, 20212139, 20212140, 20212141, 20212142, 20212143, 20212144, 20212145, 20212146, 20212147, 20212148, 20212149, 20212150, 20212151, 20212152, 20212153, 20212154, 20212155, 20212156, 20212157, 20212158, 20212159, 20212160, 20212161, 20212162, 20212163, 20212164, 20212165, 20212166, 20212167, 20212168, 20212169, 20212170, 20212171, 20212172, 20212173, 20212174, 20212175, 20212176, 20212177, 20212178, 20212179, 20212180, 20212181, 20212182, 20212183, 20212184, 20212185, 20212186, 20212187, 20212188, 20212189, 20212190, 20212191, 20212192, 20212193, 20212194, 20212195, 20212196, 20212197, 20212198, 20212199, 20212200, 20212201, 20212202, 20212203, 20212204, 20212205, 20212206, 20212207, 20212208, 20214484, 20214485, 20214486, 20214487, 20214488, 20214489, 20214490, 20214491, 20214492, 20214493, 20214494, 20214495, 20214496, 20214497, 20214498, 20214499, 20214500, 20214501, 20214502, 20214503, 20214504, 20214505, 20214506, 20214507, 20214508, 20214509, 20214510, 20214511, 20214512, 20214513, 20214514, 20214515, 20214516, 20214517, 20214518, 20214519, 20214520, 20214521, 20214522, 20214523, 20214524, 20214525, 20214526, 20214527, 20214528, 20214529, 20214530, 20214531, 20214532, 20214533, 20214534, 20214535, 20214536, 20214537, 20214538, 20214539, 20214540, 20214541, 20214542, 20214543, 20214544, 20214545, 20214546, 20214547, 20214548, 20214549, 20214550, 20214551, 20214552, 20214553, 20214554, 20214555, 20214556, 20214557, 20214558, 20214559, 20214560, 20214561, 20214562, 20214563, 20214564, 20214565, 20214566, 20214567, 20214568, 20214569, 20214570, 20214571, 20214572, 20214573, 20214574, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 20202841, 20202842, 20202843, 20202844, 20202845, 20202846, 20202847, 20202848, 20202849, 20202850, 20202851, 20202852, 20202853, 20202854, 20202855, 20202856, 20202857, 20202858, 20202859, 20202860, 20202861, 20202862, 20202863, 20202864, 20202865, 20202866, 20202867, 20202868, 20202869, 20202870, 20202871, 20202872, 20202873, 20202874, 20202875, 20202876, 20202877, 20202878, 20202879, 20202880, 20202881, 20202882, 20202883, 20202884, 20202885, 20202886, 20202887, 20202888, 20202889, 20202890, 20202891, 20202892, 20202893, 20202894, 20202895, 20202896, 20202897, 20202898, 20202899, 20202900, 20202901, 20202902, 20202903, 20202904, 20202905, 20202906, 20202907, 20202908, 20202909, 20202910, 20202911, 20202912, 20202913, 20202914, 20202915, 20202916, 20202917, 20202918, 20205204, 20205205, 20205206, 20205207, 20205208, 20205209, 20205210, 20205211, 20205212, 20205213, 20205214, 20205215, 20205216, 20205217, 20205218, 20205219, 20205220, 20205221, 20205222, 20205223, 20205224, 20205225, 20205226, 20205227, 20205228, 20205229, 20205230, 20205231, 20205232, 20205233, 20205234, 20205235, 20205236, 20205237, 20205238, 20205239, 20205240, 20205241, 20205242, 20205243, 20205244, 20205245, 20205246, 20205247, 20205248, 20205249, 20205250, 20205251, 20205252, 20205253, 20205254, 20205255, 20205256, 20205257, 20205258, 20205259, 20205260, 20205261, 20205262, 20205263, 20205264, 20205265, 20205266, 20205267, 20205268, 20205269, 20205270, 20205271, 20205272, 20205273, 20205274, 20205275, 20205276, 20205277, 20205278, 20205279, 20205280, 20205281, 20205282, 20207567, 20207568, 20207569, 20207570, 20207571, 20207572, 20207573, 20207574, 20207575, 20207576, 20207577, 20207578, 20207579, 20207580, 20207581, 20207582, 20207583, 20207584, 20207585, 20207586, 20207587, 20207588, 20207589, 20207590, 20207591, 20207592, 20207593, 20207594, 20207595, 20207596, 20207597, 20207598, 20207599, 20207600, 20207601, 20207602, 20207603, 20207604, 20207605, 20207606, 20207607, 20207608, 20207609, 20207610, 20207611, 20207612, 20207613, 20207614, 20207615, 20207616, 20207617, 20207618, 20207619, 20207620, 20207621, 20207622, 20207623, 20207624, 20207625, 20207626, 20207627, 20207628, 20207629, 20207630, 20207631, 20207632, 20207633, 20207634, 20207635, 20207636, 20207637, 20207638, 20207639, 20207640, 20207641, 20207642, 20207643, 20207644, 20209932, 20209933, 20209934, 20209935, 20209936, 20209937, 20209938, 20209939, 20209940, 20209941, 20209942, 20209943, 20209944, 20209945, 20209946, 20209947, 20209948, 20209949, 20209950, 20209951, 20209952, 20209953, 20209954, 20209955, 20209956, 20209957, 20209958, 20209959, 20209960, 20209961, 20209962, 20209963, 20209964, 20209965, 20209966, 20209967, 20209968, 20209969, 20209970, 20209971, 20209972, 20209973, 20209974, 20209975, 20209976, 20209977, 20209978, 20209979, 20209980, 20209981, 20209982, 20209983, 20209984, 20209985, 20209986, 20209987, 20209988, 20209989, 20209990, 20209991, 20209992, 20209993, 20209994, 20209995, 20209996, 20209997, 20209998, 20209999, 20210000, 20210001, 20210002, 20210003, 20210004, 20210005, 20210006, 20210007, 20210008, 20210009, 20210010, 20212298, 20212299, 20212300, 20212301, 20212302, 20212303, 20212304, 20212305, 20212306, 20212307, 20212308, 20212309, 20212310, 20212311, 20212312, 20212313, 20212314, 20212315, 20212316, 20212317, 20212318, 20212319, 20212320, 20212321, 20212322, 20212323, 20212324, 20212325, 20212326, 20212327, 20212328, 20212329, 20212330, 20212331, 20212332, 20212333, 20212334, 20212335, 20212336, 20212337, 20212338, 20212339, 20212340, 20212341, 20212342, 20212343, 20212344, 20212345, 20212346, 20212347, 20212348, 20212349, 20212350, 20212351, 20212352, 20212353, 20212354, 20212355, 20212356, 20212357, 20212358, 20212359, 20212360, 20212361, 20212362, 20212363, 20212364, 20212365, 20212366, 20212367, 20212368, 20212369, 20212370, 20212371, 20212372, 20212373, 20212374, 20212375, 20212376, 20214664, 20214665, 20214666, 20214667, 20214668, 20214669, 20214670, 20214671, 20214672, 20214673, 20214674, 20214675, 20214676, 20214677, 20214678, 20214679, 20214680, 20214681, 20214682, 20214683, 20214684, 20214685, 20214686, 20214687, 20214688, 20214689, 20214690, 20214691, 20214692, 20214693, 20214694, 20214695, 20214696, 20214697, 20214698, 20214699, 20214700, 20214701, 20214702, 20214703, 20214704, 20214705, 20214706, 20214707, 20214708, 20214709, 20214710, 20214711, 20214712, 20214713, 20214714, 20214715, 20214716, 20214717, 20214718, 20214719, 20214720, 20214721, 20214722, 20214723, 20214724, 20214725, 20214726, 20214727, 20214728, 20214729, 20214730, 20214731, 20214732, 20214733, 20214734, 20214735, 20214736, 20214737, 20214738, 20214739, 20214740, 20214741, 20214742, 20202919, 20202920, 20202921, 20202922, 20202923, 20202924, 20202925, 20202926, 20202927, 20202928, 20202929, 20202930, 20202931, 20202932, 20202933, 20202934, 20202935, 20202936, 20202937, 20202938, 20202939, 20202940, 20202941, 20202942, 20202943, 20202944, 20202945, 20202946, 20202947, 20202948, 20202949, 20202950, 20202951, 20202952, 20202953, 20202954, 20202955, 20202956, 20202957, 20202958, 20202959, 20202960, 20205283, 20205284, 20205285, 20205286, 20205287, 20205288, 20205289, 20205290, 20205291, 20205292, 20205293, 20205294, 20205295, 20205296, 20205297, 20205298, 20205299, 20205300, 20205301, 20205302, 20205303, 20205304, 20205305, 20205306, 20205307, 20205308, 20205309, 20205310, 20205311, 20205312, 20205313, 20205314, 20205315, 20205316, 20205317, 20205318, 20205319, 20205320, 20205321, 20205322, 20205323, 20205324, 20207645, 20207646, 20207647, 20207648, 20207649, 20207650, 20207651, 20207652, 20207653, 20207654, 20207655, 20207656, 20207657, 20207658, 20207659, 20207660, 20207661, 20207662, 20207663, 20207664, 20207665, 20207666, 20207667, 20207668, 20207669, 20207670, 20207671, 20207672, 20207673, 20207674, 20207675, 20207676, 20207677, 20207678, 20207679, 20207680, 20207681, 20207682, 20207683, 20207684, 20207685, 20207686, 20210011, 20210012, 20210013, 20210014, 20210015, 20210016, 20210017, 20210018, 20210019, 20210020, 20210021, 20210022, 20210023, 20210024, 20210025, 20210026, 20210027, 20210028, 20210029, 20210030, 20210031, 20210032, 20210033, 20210034, 20210035, 20210036, 20210037, 20210038, 20210039, 20210040, 20210041, 20210042, 20210043, 20210044, 20210045, 20210046, 20210047, 20210048, 20210049, 20210050, 20210051, 20210052, 20212377, 20212378, 20212379, 20212380, 20212381, 20212382, 20212383, 20212384, 20212385, 20212386, 20212387, 20212388, 20212389, 20212390, 20212391, 20212392, 20212393, 20212394, 20212395, 20212396, 20212397, 20212398, 20212399, 20212400, 20212401, 20212402, 20212403, 20212404, 20212405, 20212406, 20212407, 20212408, 20212409, 20212410, 20212411, 20212412, 20212413, 20212414, 20212415, 20212416, 20212417, 20212418, 20214743, 20214744, 20214745, 20214746, 20214747, 20214748, 20214749, 20214750, 20214751, 20214752, 20214753, 20214754, 20214755, 20214756, 20214757, 20214758, 20214759, 20214760, 20214761, 20214762, 20214763, 20214764, 20214765, 20214766, 20214767, 20214768, 20214769, 20214770, 20214771, 20214772, 20214773, 20214774, 20214775, 20214776, 20214777, 20214778, 20214779, 20214780, 20214781, 20214782, 20214783, 20214784, 20205325, 20205326, 20205327, 20205328, 20205329, 20205330, 20205331, 20205332, 20205333, 20205334, 20205335, 20205336, 20205337, 20205338, 20205339, 20205340, 20205341, 20205342, 20205343, 20205344, 20205345, 20205346, 20205347, 20205348, 20205349, 20205350, 20205351, 20205352, 20205353, 20205354, 20205355, 20205356, 20205357, 20205358, 20205359, 20205360, 20205361, 20205362, 20205363, 20205364, 20205365, 20205366, 20205367, 20205368, 20205369, 20205370, 20205371, 20205372, 20205373, 20205374, 20205375, 20205376, 20205377, 20205378, 20205379, 20205380, 20205381, 20205382, 20205383, 20205384, 20205385, 20205386, 20205387, 20205388, 20205389, 20205390, 20205391, 20205392, 20205393, 20205394, 20207687, 20207688, 20207689, 20207690, 20207691, 20207692, 20207693, 20207694, 20207695, 20207696, 20207697, 20207698, 20207699, 20207700, 20207701, 20207702, 20207703, 20207704, 20207705, 20207706, 20207707, 20207708, 20207709, 20207710, 20207711, 20207712, 20207713, 20207714, 20207715, 20207716, 20207717, 20207718, 20207719, 20207720, 20207721, 20207722, 20207723, 20207724, 20207725, 20207726, 20207727, 20207728, 20207729, 20207730, 20207731, 20207732, 20207733, 20207734, 20207735, 20207736, 20207737, 20207738, 20207739, 20207740, 20207741, 20207742, 20207743, 20207744, 20207745, 20207746, 20207747, 20207748, 20207749, 20207750, 20207751, 20207752, 20207753, 20207754, 20207755, 20207756, 20210053, 20210054, 20210055, 20210056, 20210057, 20210058, 20210059, 20210060, 20210061, 20210062, 20210063, 20210064, 20210065, 20210066, 20210067, 20210068, 20210069, 20210070, 20210071, 20210072, 20210073, 20210074, 20210075, 20210076, 20210077, 20210078, 20210079, 20210080, 20210081, 20210082, 20210083, 20210084, 20210085, 20210086, 20210087, 20210088, 20210089, 20210090, 20210091, 20210092, 20210093, 20210094, 20210095, 20210096, 20210097, 20210098, 20210099, 20210100, 20210101, 20210102, 20210103, 20210104, 20210105, 20210106, 20210107, 20210108, 20210109, 20210110, 20210111, 20210112, 20210113, 20210114, 20210115, 20210116, 20210117, 20210118, 20210119, 20210120, 20210121, 20210122, 20212419, 20212420, 20212421, 20212422, 20212423, 20212424, 20212425, 20212426, 20212427, 20212428, 20212429, 20212430, 20212431, 20212432, 20212433, 20212434, 20212435, 20212436, 20212437, 20212438, 20212439, 20212440, 20212441, 20212442, 20212443, 20212444, 20212445, 20212446, 20212447, 20212448, 20212449, 20212450, 20212451, 20212452, 20212453, 20212454, 20212455, 20212456, 20212457, 20212458, 20212459, 20212460, 20212461, 20212462, 20212463, 20212464, 20212465, 20212466, 20212467, 20212468, 20212469, 20212470, 20212471, 20212472, 20212473, 20212474, 20212475, 20212476, 20212477, 20212478, 20212479, 20212480, 20212481, 20212482, 20212483, 20212484, 20212485, 20212486, 20212487, 20212488, 20214785, 20214786, 20214787, 20214788, 20214789, 20214790, 20214791, 20214792, 20214793, 20214794, 20214795, 20214796, 20214797, 20214798, 20214799, 20214800, 20214801, 20214802, 20214803, 20214804, 20214805, 20214806, 20214807, 20214808, 20214809, 20214810, 20214811, 20214812, 20214813, 20214814, 20214815, 20214816, 20214817, 20214818, 20214819, 20214820, 20214821, 20214822, 20214823, 20214824, 20214825, 20214826, 20214827, 20214828, 20214829, 20214830, 20214831, 20214832, 20214833, 20214834, 20214835, 20214836, 20214837, 20214838, 20214839, 20214840, 20214841, 20214842, 20214843, 20214844, 20214845, 20214846, 20214847, 20214848, 20214849, 20214850, 20214851, 20214852, 20214853, 20214854, 20200669, 20200670, 20200671, 20200672, 20200673, 20200674, 20200675, 20200676, 20200677, 20200678, 20200679, 20200680, 20200681, 20200682, 20200683, 20200684, 20200685, 20200686, 20200687, 20200688, 20200689, 20200690, 20200691, 20200692, 20200693, 20200694, 20200695, 20200696, 20200697, 20200698, 20200699, 20200700, 20200701, 20200702, 20200703, 20200704, 20200705, 20200706, 20200707, 20200708, 20200709, 20200710, 20200711, 20200712, 20200713, 20200714, 20200715, 20200716, 20200717, 20200718, 20200719, 20200720, 20200721, 20200722, 20200723, 20200724, 20200725, 20200726, 20200727, 20200728, 20200729, 20200730, 20200731, 20200732, 20200733, 20200734, 20200735, 20200736, 20200737, 20200738, 20200739, 20200740, 20200741, 20200742, 20200743, 20200744, 20200745, 20200746, 20200747, 20200748, 20200749, 20200750, 20200751, 20200752, 20200753, 20200754, 20200755, 20200756, 20200757, 20200758, 20200759, 20200760, 20200761, 20200762, 20200763, 20200764, 20200765, 20200766, 20200767, 20200768, 20200769, 20200770, 20200771, 20200772, 20200773, 20200774, 20200775, 20200776, 20200777, 20200778, 20200779, 20200780, 20200781, 20200782, 20200783, 20200784, 20200785, 20200786, 20200787, 20200788, 20200789, 20200790, 20200791, 20200792, 20200793, 20200794, 20200795, 20200796, 20200797, 20200798, 20200799, 20200800, 20200801, 20200802, 20200803, 20200804, 20200805, 20200806, 20200807, 20200808, 20200809, 20200810, 20200811, 20200812, 20200813, 20200814, 20200815, 20200816, 20200817, 20200818, 20200819, 20200820, 20200821, 20200822, 20200823, 20200824, 20200825, 20200826, 20200827, 20200828, 20200829, 20200830, 20200831, 20200832, 20200833, 20200834, 20200835, 20200836, 20200837, 20200838, 20200839, 20200840, 20200841, 20200842, 20200843, 20200844, 20200845, 20200846, 20200847, 20200848, 20200849, 20200850, 20200851, 20200852, 20200853, 20200854, 20200855, 20200856, 20200857, 20200858, 20200859, 20200860, 20200861, 20200862, 20200863, 20200864, 20200865, 20200866, 20200867, 20200868, 20200869, 20200870, 20200871, 20200872, 20200873, 20200874, 20200875, 20200876, 20200877, 20200878, 20200879, 20200880, 20200881, 20200882, 20200883, 20200884, 20200885, 20200886, 20200887, 20200888, 20200889, 20200890, 20200891, 20200892, 20200893, 20200894, 20200895, 20200896, 20200897, 20200898, 20200899, 20200900, 20200901, 20200902, 20200903, 20200904, 20200905, 20200906, 20200907, 20200908, 20200909, 20200910, 20200911, 20200912, 20200913, 20200914, 20200915, 20200916, 20200917, 20200918, 20200919, 20200920, 20200921, 20200922, 20200923, 20200924, 20200925, 20200926, 20200927, 20200928, 20200929, 20200930, 20200931, 20200932, 20200933, 20200934, 20200935, 20200936, 20200937, 20200938, 20200939, 20200940, 20200941, 20200942, 20200943, 20200944, 20200945, 20200946, 20200947, 20200948, 20200949, 20200950, 20200951, 20200952, 20200953, 20200954, 20200955, 20200956, 20200957, 20200958, 20200959, 20200960, 20200961, 20200962, 20200963, 20200964, 20200965, 20200966, 20200967, 20200968, 20200969, 20200970, 20200971, 20200972, 20200973, 20203031, 20203032, 20203033, 20203034, 20203035, 20203036, 20203037, 20203038, 20203039, 20203040, 20203041, 20203042, 20203043, 20203044, 20203045, 20203046, 20203047, 20203048, 20203049, 20203050, 20203051, 20203052, 20203053, 20203054, 20203055, 20203056, 20203057, 20203058, 20203059, 20203060, 20203061, 20203062, 20203063, 20203064, 20203065, 20203066, 20203067, 20203068, 20203069, 20203070, 20203071, 20203072, 20203073, 20203074, 20203075, 20203076, 20203077, 20203078, 20203079, 20203080, 20203081, 20203082, 20203083, 20203084, 20203085, 20203086, 20203087, 20203088, 20203089, 20203090, 20203091, 20203092, 20203093, 20203094, 20203095, 20203096, 20203097, 20203098, 20203099, 20203100, 20203101, 20203102, 20203103, 20203104, 20203105, 20203106, 20203107, 20203108, 20203109, 20203110, 20203111, 20203112, 20203113, 20203114, 20203115, 20203116, 20203117, 20203118, 20203119, 20203120, 20203121, 20203122, 20203123, 20203124, 20203125, 20203126, 20203127, 20203128, 20203129, 20203130, 20203131, 20203132, 20203133, 20203134, 20203135, 20203136, 20203137, 20203138, 20203139, 20203140, 20203141, 20203142, 20203143, 20203144, 20203145, 20203146, 20203147, 20203148, 20203149, 20203150, 20203151, 20203152, 20203153, 20203154, 20203155, 20203156, 20203157, 20203158, 20203159, 20203160, 20203161, 20203162, 20203163, 20203164, 20203165, 20203166, 20203167, 20203168, 20203169, 20203170, 20203171, 20203172, 20203173, 20203174, 20203175, 20203176, 20203177, 20203178, 20203179, 20203180, 20203181, 20203182, 20203183, 20203184, 20203185, 20203186, 20203187, 20203188, 20203189, 20203190, 20203191, 20203192, 20203193, 20203194, 20203195, 20203196, 20203197, 20203198, 20203199, 20203200, 20203201, 20203202, 20203203, 20203204, 20203205, 20203206, 20203207, 20203208, 20203209, 20203210, 20203211, 20203212, 20203213, 20203214, 20203215, 20203216, 20203217, 20203218, 20203219, 20203220, 20203221, 20203222, 20203223, 20203224, 20203225, 20203226, 20203227, 20203228, 20203229, 20203230, 20203231, 20203232, 20203233, 20203234, 20203235, 20203236, 20203237, 20203238, 20203239, 20203240, 20203241, 20203242, 20203243, 20203244, 20203245, 20203246, 20203247, 20203248, 20203249, 20203250, 20203251, 20203252, 20203253, 20203254, 20203255, 20203256, 20203257, 20203258, 20203259, 20203260, 20203261, 20203262, 20203263, 20203264, 20203265, 20203266, 20203267, 20203268, 20203269, 20203270, 20203271, 20203272, 20203273, 20203274, 20203275, 20203276, 20203277, 20203278, 20203279, 20203280, 20203281, 20203282, 20203283, 20203284, 20203285, 20203286, 20203287, 20203288, 20203289, 20203290, 20203291, 20203292, 20203293, 20203294, 20203295, 20203296, 20203297, 20203298, 20203299, 20203300, 20203301, 20203302, 20203303, 20203304, 20203305, 20203306, 20203307, 20203308, 20203309, 20203310, 20203311, 20203312, 20203313, 20203314, 20203315, 20203316, 20203317, 20203318, 20203319, 20203320, 20203321, 20203322, 20203323, 20203324, 20203325, 20203326, 20203327, 20203328, 20203329, 20203330, 20203331, 20203332, 20203333, 20203334, 20203335, 20203336, 20205395, 20205396, 20205397, 20205398, 20205399, 20205400, 20205401, 20205402, 20205403, 20205404, 20205405, 20205406, 20205407, 20205408, 20205409, 20205410, 20205411, 20205412, 20205413, 20205414, 20205415, 20205416, 20205417, 20205418, 20205419, 20205420, 20205421, 20205422, 20205423, 20205424, 20205425, 20205426, 20205427, 20205428, 20205429, 20205430, 20205431, 20205432, 20205433, 20205434, 20205435, 20205436, 20205437, 20205438, 20205439, 20205440, 20205441, 20205442, 20205443, 20205444, 20205445, 20205446, 20205447, 20205448, 20205449, 20205450, 20205451, 20205452, 20205453, 20205454, 20205455, 20205456, 20205457, 20205458, 20205459, 20205460, 20205461, 20205462, 20205463, 20205464, 20205465, 20205466, 20205467, 20205468, 20205469, 20205470, 20205471, 20205472, 20205473, 20205474, 20205475, 20205476, 20205477, 20205478, 20205479, 20205480, 20205481, 20205482, 20205483, 20205484, 20205485, 20205486, 20205487, 20205488, 20205489, 20205490, 20205491, 20205492, 20205493, 20205494, 20205495, 20205496, 20205497, 20205498, 20205499, 20205500, 20205501, 20205502, 20205503, 20205504, 20205505, 20205506, 20205507, 20205508, 20205509, 20205510, 20205511, 20205512, 20205513, 20205514, 20205515, 20205516, 20205517, 20205518, 20205519, 20205520, 20205521, 20205522, 20205523, 20205524, 20205525, 20205526, 20205527, 20205528, 20205529, 20205530, 20205531, 20205532, 20205533, 20205534, 20205535, 20205536, 20205537, 20205538, 20205539, 20205540, 20205541, 20205542, 20205543, 20205544, 20205545, 20205546, 20205547, 20205548, 20205549, 20205550, 20205551, 20205552, 20205553, 20205554, 20205555, 20205556, 20205557, 20205558, 20205559, 20205560, 20205561, 20205562, 20205563, 20205564, 20205565, 20205566, 20205567, 20205568, 20205569, 20205570, 20205571, 20205572, 20205573, 20205574, 20205575, 20205576, 20205577, 20205578, 20205579, 20205580, 20205581, 20205582, 20205583, 20205584, 20205585, 20205586, 20205587, 20205588, 20205589, 20205590, 20205591, 20205592, 20205593, 20205594, 20205595, 20205596, 20205597, 20205598, 20205599, 20205600, 20205601, 20205602, 20205603, 20205604, 20205605, 20205606, 20205607, 20205608, 20205609, 20205610, 20205611, 20205612, 20205613, 20205614, 20205615, 20205616, 20205617, 20205618, 20205619, 20205620, 20205621, 20205622, 20205623, 20205624, 20205625, 20205626, 20205627, 20205628, 20205629, 20205630, 20205631, 20205632, 20205633, 20205634, 20205635, 20205636, 20205637, 20205638, 20205639, 20205640, 20205641, 20205642, 20205643, 20205644, 20205645, 20205646, 20205647, 20205648, 20205649, 20205650, 20205651, 20205652, 20205653, 20205654, 20205655, 20205656, 20205657, 20205658, 20205659, 20205660, 20205661, 20205662, 20205663, 20205664, 20205665, 20205666, 20205667, 20205668, 20205669, 20205670, 20205671, 20205672, 20205673, 20205674, 20205675, 20205676, 20205677, 20205678, 20205679, 20205680, 20205681, 20205682, 20205683, 20205684, 20205685, 20205686, 20205687, 20205688, 20205689, 20205690, 20205691, 20205692, 20205693, 20205694, 20205695, 20205696, 20205697, 20205698, 20205699, 20207757, 20207758, 20207759, 20207760, 20207761, 20207762, 20207763, 20207764, 20207765, 20207766, 20207767, 20207768, 20207769, 20207770, 20207771, 20207772, 20207773, 20207774, 20207775, 20207776, 20207777, 20207778, 20207779, 20207780, 20207781, 20207782, 20207783, 20207784, 20207785, 20207786, 20207787, 20207788, 20207789, 20207790, 20207791, 20207792, 20207793, 20207794, 20207795, 20207796, 20207797, 20207798, 20207799, 20207800, 20207801, 20207802, 20207803, 20207804, 20207805, 20207806, 20207807, 20207808, 20207809, 20207810, 20207811, 20207812, 20207813, 20207814, 20207815, 20207816, 20207817, 20207818, 20207819, 20207820, 20207821, 20207822, 20207823, 20207824, 20207825, 20207826, 20207827, 20207828, 20207829, 20207830, 20207831, 20207832, 20207833, 20207834, 20207835, 20207836, 20207837, 20207838, 20207839, 20207840, 20207841, 20207842, 20207843, 20207844, 20207845, 20207846, 20207847, 20207848, 20207849, 20207850, 20207851, 20207852, 20207853, 20207854, 20207855, 20207856, 20207857, 20207858, 20207859, 20207860, 20207861, 20207862, 20207863, 20207864, 20207865, 20207866, 20207867, 20207868, 20207869, 20207870, 20207871, 20207872, 20207873, 20207874, 20207875, 20207876, 20207877, 20207878, 20207879, 20207880, 20207881, 20207882, 20207883, 20207884, 20207885, 20207886, 20207887, 20207888, 20207889, 20207890, 20207891, 20207892, 20207893, 20207894, 20207895, 20207896, 20207897, 20207898, 20207899, 20207900, 20207901, 20207902, 20207903, 20207904, 20207905, 20207906, 20207907, 20207908, 20207909, 20207910, 20207911, 20207912, 20207913, 20207914, 20207915, 20207916, 20207917, 20207918, 20207919, 20207920, 20207921, 20207922, 20207923, 20207924, 20207925, 20207926, 20207927, 20207928, 20207929, 20207930, 20207931, 20207932, 20207933, 20207934, 20207935, 20207936, 20207937, 20207938, 20207939, 20207940, 20207941, 20207942, 20207943, 20207944, 20207945, 20207946, 20207947, 20207948, 20207949, 20207950, 20207951, 20207952, 20207953, 20207954, 20207955, 20207956, 20207957, 20207958, 20207959, 20207960, 20207961, 20207962, 20207963, 20207964, 20207965, 20207966, 20207967, 20207968, 20207969, 20207970, 20207971, 20207972, 20207973, 20207974, 20207975, 20207976, 20207977, 20207978, 20207979, 20207980, 20207981, 20207982, 20207983, 20207984, 20207985, 20207986, 20207987, 20207988, 20207989, 20207990, 20207991, 20207992, 20207993, 20207994, 20207995, 20207996, 20207997, 20207998, 20207999, 20208000, 20208001, 20208002, 20208003, 20208004, 20208005, 20208006, 20208007, 20208008, 20208009, 20208010, 20208011, 20208012, 20208013, 20208014, 20208015, 20208016, 20208017, 20208018, 20208019, 20208020, 20208021, 20208022, 20208023, 20208024, 20208025, 20208026, 20208027, 20208028, 20208029, 20208030, 20208031, 20208032, 20208033, 20208034, 20208035, 20208036, 20208037, 20208038, 20208039, 20208040, 20208041, 20208042, 20208043, 20208044, 20208045, 20208046, 20208047, 20208048, 20208049, 20208050, 20208051, 20208052, 20208053, 20208054, 20208055, 20208056, 20208057, 20208058, 20208059, 20208060, 20208061, 20208062, 20210123, 20210124, 20210125, 20210126, 20210127, 20210128, 20210129, 20210130, 20210131, 20210132, 20210133, 20210134, 20210135, 20210136, 20210137, 20210138, 20210139, 20210140, 20210141, 20210142, 20210143, 20210144, 20210145, 20210146, 20210147, 20210148, 20210149, 20210150, 20210151, 20210152, 20210153, 20210154, 20210155, 20210156, 20210157, 20210158, 20210159, 20210160, 20210161, 20210162, 20210163, 20210164, 20210165, 20210166, 20210167, 20210168, 20210169, 20210170, 20210171, 20210172, 20210173, 20210174, 20210175, 20210176, 20210177, 20210178, 20210179, 20210180, 20210181, 20210182, 20210183, 20210184, 20210185, 20210186, 20210187, 20210188, 20210189, 20210190, 20210191, 20210192, 20210193, 20210194, 20210195, 20210196, 20210197, 20210198, 20210199, 20210200, 20210201, 20210202, 20210203, 20210204, 20210205, 20210206, 20210207, 20210208, 20210209, 20210210, 20210211, 20210212, 20210213, 20210214, 20210215, 20210216, 20210217, 20210218, 20210219, 20210220, 20210221, 20210222, 20210223, 20210224, 20210225, 20210226, 20210227, 20210228, 20210229, 20210230, 20210231, 20210232, 20210233, 20210234, 20210235, 20210236, 20210237, 20210238, 20210239, 20210240, 20210241, 20210242, 20210243, 20210244, 20210245, 20210246, 20210247, 20210248, 20210249, 20210250, 20210251, 20210252, 20210253, 20210254, 20210255, 20210256, 20210257, 20210258, 20210259, 20210260, 20210261, 20210262, 20210263, 20210264, 20210265, 20210266, 20210267, 20210268, 20210269, 20210270, 20210271, 20210272, 20210273, 20210274, 20210275, 20210276, 20210277, 20210278, 20210279, 20210280, 20210281, 20210282, 20210283, 20210284, 20210285, 20210286, 20210287, 20210288, 20210289, 20210290, 20210291, 20210292, 20210293, 20210294, 20210295, 20210296, 20210297, 20210298, 20210299, 20210300, 20210301, 20210302, 20210303, 20210304, 20210305, 20210306, 20210307, 20210308, 20210309, 20210310, 20210311, 20210312, 20210313, 20210314, 20210315, 20210316, 20210317, 20210318, 20210319, 20210320, 20210321, 20210322, 20210323, 20210324, 20210325, 20210326, 20210327, 20210328, 20210329, 20210330, 20210331, 20210332, 20210333, 20210334, 20210335, 20210336, 20210337, 20210338, 20210339, 20210340, 20210341, 20210342, 20210343, 20210344, 20210345, 20210346, 20210347, 20210348, 20210349, 20210350, 20210351, 20210352, 20210353, 20210354, 20210355, 20210356, 20210357, 20210358, 20210359, 20210360, 20210361, 20210362, 20210363, 20210364, 20210365, 20210366, 20210367, 20210368, 20210369, 20210370, 20210371, 20210372, 20210373, 20210374, 20210375, 20210376, 20210377, 20210378, 20210379, 20210380, 20210381, 20210382, 20210383, 20210384, 20210385, 20210386, 20210387, 20210388, 20210389, 20210390, 20210391, 20210392, 20210393, 20210394, 20210395, 20210396, 20210397, 20210398, 20210399, 20210400, 20210401, 20210402, 20210403, 20210404, 20210405, 20210406, 20210407, 20210408, 20210409, 20210410, 20210411, 20210412, 20210413, 20210414, 20210415, 20210416, 20210417, 20210418, 20210419, 20210420, 20210421, 20210422, 20210423, 20210424, 20210425, 20210426, 20210427, 20212489, 20212490, 20212491, 20212492, 20212493, 20212494, 20212495, 20212496, 20212497, 20212498, 20212499, 20212500, 20212501, 20212502, 20212503, 20212504, 20212505, 20212506, 20212507, 20212508, 20212509, 20212510, 20212511, 20212512, 20212513, 20212514, 20212515, 20212516, 20212517, 20212518, 20212519, 20212520, 20212521, 20212522, 20212523, 20212524, 20212525, 20212526, 20212527, 20212528, 20212529, 20212530, 20212531, 20212532, 20212533, 20212534, 20212535, 20212536, 20212537, 20212538, 20212539, 20212540, 20212541, 20212542, 20212543, 20212544, 20212545, 20212546, 20212547, 20212548, 20212549, 20212550, 20212551, 20212552, 20212553, 20212554, 20212555, 20212556, 20212557, 20212558, 20212559, 20212560, 20212561, 20212562, 20212563, 20212564, 20212565, 20212566, 20212567, 20212568, 20212569, 20212570, 20212571, 20212572, 20212573, 20212574, 20212575, 20212576, 20212577, 20212578, 20212579, 20212580, 20212581, 20212582, 20212583, 20212584, 20212585, 20212586, 20212587, 20212588, 20212589, 20212590, 20212591, 20212592, 20212593, 20212594, 20212595, 20212596, 20212597, 20212598, 20212599, 20212600, 20212601, 20212602, 20212603, 20212604, 20212605, 20212606, 20212607, 20212608, 20212609, 20212610, 20212611, 20212612, 20212613, 20212614, 20212615, 20212616, 20212617, 20212618, 20212619, 20212620, 20212621, 20212622, 20212623, 20212624, 20212625, 20212626, 20212627, 20212628, 20212629, 20212630, 20212631, 20212632, 20212633, 20212634, 20212635, 20212636, 20212637, 20212638, 20212639, 20212640, 20212641, 20212642, 20212643, 20212644, 20212645, 20212646, 20212647, 20212648, 20212649, 20212650, 20212651, 20212652, 20212653, 20212654, 20212655, 20212656, 20212657, 20212658, 20212659, 20212660, 20212661, 20212662, 20212663, 20212664, 20212665, 20212666, 20212667, 20212668, 20212669, 20212670, 20212671, 20212672, 20212673, 20212674, 20212675, 20212676, 20212677, 20212678, 20212679, 20212680, 20212681, 20212682, 20212683, 20212684, 20212685, 20212686, 20212687, 20212688, 20212689, 20212690, 20212691, 20212692, 20212693, 20212694, 20212695, 20212696, 20212697, 20212698, 20212699, 20212700, 20212701, 20212702, 20212703, 20212704, 20212705, 20212706, 20212707, 20212708, 20212709, 20212710, 20212711, 20212712, 20212713, 20212714, 20212715, 20212716, 20212717, 20212718, 20212719, 20212720, 20212721, 20212722, 20212723, 20212724, 20212725, 20212726, 20212727, 20212728, 20212729, 20212730, 20212731, 20212732, 20212733, 20212734, 20212735, 20212736, 20212737, 20212738, 20212739, 20212740, 20212741, 20212742, 20212743, 20212744, 20212745, 20212746, 20212747, 20212748, 20212749, 20212750, 20212751, 20212752, 20212753, 20212754, 20212755, 20212756, 20212757, 20212758, 20212759, 20212760, 20212761, 20212762, 20212763, 20212764, 20212765, 20212766, 20212767, 20212768, 20212769, 20212770, 20212771, 20212772, 20212773, 20212774, 20212775, 20212776, 20212777, 20212778, 20212779, 20212780, 20212781, 20212782, 20212783, 20212784, 20212785, 20212786, 20212787, 20212788, 20212789, 20212790, 20212791, 20212792, 20212793, 20212794, 20214855, 20214856, 20214857, 20214858, 20214859, 20214860, 20214861, 20214862, 20214863, 20214864, 20214865, 20214866, 20214867, 20214868, 20214869, 20214870, 20214871, 20214872, 20214873, 20214874, 20214875, 20214876, 20214877, 20214878, 20214879, 20214880, 20214881, 20214882, 20214883, 20214884, 20214885, 20214886, 20214887, 20214888, 20214889, 20214890, 20214891, 20214892, 20214893, 20214894, 20214895, 20214896, 20214897, 20214898, 20214899, 20214900, 20214901, 20214902, 20214903, 20214904, 20214905, 20214906, 20214907, 20214908, 20214909, 20214910, 20214911, 20214912, 20214913, 20214914, 20214915, 20214916, 20214917, 20214918, 20214919, 20214920, 20214921, 20214922, 20214923, 20214924, 20214925, 20214926, 20214927, 20214928, 20214929, 20214930, 20214931, 20214932, 20214933, 20214934, 20214935, 20214936, 20214937, 20214938, 20214939, 20214940, 20214941, 20214942, 20214943, 20214944, 20214945, 20214946, 20214947, 20214948, 20214949, 20214950, 20214951, 20214952, 20214953, 20214954, 20214955, 20214956, 20214957, 20214958, 20214959, 20214960, 20214961, 20214962, 20214963, 20214964, 20214965, 20214966, 20214967, 20214968, 20214969, 20214970, 20214971, 20214972, 20214973, 20214974, 20214975, 20214976, 20214977, 20214978, 20214979, 20214980, 20214981, 20214982, 20214983, 20214984, 20214985, 20214986, 20214987, 20214988, 20214989, 20214990, 20214991, 20214992, 20214993, 20214994, 20214995, 20214996, 20214997, 20214998, 20214999, 20215000, 20215001, 20215002, 20215003, 20215004, 20215005, 20215006, 20215007, 20215008, 20215009, 20215010, 20215011, 20215012, 20215013, 20215014, 20215015, 20215016, 20215017, 20215018, 20215019, 20215020, 20215021, 20215022, 20215023, 20215024, 20215025, 20215026, 20215027, 20215028, 20215029, 20215030, 20215031, 20215032, 20215033, 20215034, 20215035, 20215036, 20215037, 20215038, 20215039, 20215040, 20215041, 20215042, 20215043, 20215044, 20215045, 20215046, 20215047, 20215048, 20215049, 20215050, 20215051, 20215052, 20215053, 20215054, 20215055, 20215056, 20215057, 20215058, 20215059, 20215060, 20215061, 20215062, 20215063, 20215064, 20215065, 20215066, 20215067, 20215068, 20215069, 20215070, 20215071, 20215072, 20215073, 20215074, 20215075, 20215076, 20215077, 20215078, 20215079, 20215080, 20215081, 20215082, 20215083, 20215084, 20215085, 20215086, 20215087, 20215088, 20215089, 20215090, 20215091, 20215092, 20215093, 20215094, 20215095, 20215096, 20215097, 20215098, 20215099, 20215100, 20215101, 20215102, 20215103, 20215104, 20215105, 20215106, 20215107, 20215108, 20215109, 20215110, 20215111, 20215112, 20215113, 20215114, 20215115, 20215116, 20215117, 20215118, 20215119, 20215120, 20215121, 20215122, 20215123, 20215124, 20215125, 20215126, 20215127, 20215128, 20215129, 20215130, 20215131, 20215132, 20215133, 20215134, 20215135, 20215136, 20215137, 20215138, 20215139, 20215140, 20215141, 20215142, 20215143, 20215144, 20215145, 20215146, 20215147, 20215148, 20215149, 20215150, 20215151, 20215152, 20215153, 20215154, 20215155, 20215156, 20215157, 20215158, 20215159, 20198610, 20198611, 20198612, 20198613, 20198614, 20198615, 20198616, 20198617, 20198618, 20198619, 20198620, 20198621, 20198622, 20198623, 20198624, 20198625, 20198626, 20198627, 20198628, 20198629, 20198630, 20198631, 20198632, 20198633, 20198634, 20198635, 20198636, 20198637, 20198638, 20198639, 20198640, 20198641, 20198642, 20198643, 20198644, 20198645, 20198646, 20198647, 20198648, 20198649, 20198650, 20198651, 20198652, 20198653, 20198654, 20200974, 20200975, 20200976, 20200977, 20200978, 20200979, 20200980, 20200981, 20200982, 20200983, 20200984, 20200985, 20200986, 20200987, 20200988, 20200989, 20200990, 20200991, 20200992, 20200993, 20200994, 20200995, 20200996, 20200997, 20200998, 20200999, 20201000, 20201001, 20201002, 20201003, 20201004, 20201005, 20201006, 20201007, 20201008, 20201009, 20201010, 20201011, 20201012, 20201013, 20201014, 20201015, 20201016, 20201017, 20201018, 20201019, 20203337, 20203338, 20203339, 20203340, 20203341, 20203342, 20203343, 20203344, 20203345, 20203346, 20203347, 20203348, 20203349, 20203350, 20203351, 20203352, 20203353, 20203354, 20203355, 20203356, 20203357, 20203358, 20203359, 20203360, 20203361, 20203362, 20203363, 20203364, 20203365, 20203366, 20203367, 20203368, 20203369, 20203370, 20203371, 20203372, 20203373, 20203374, 20203375, 20203376, 20203377, 20203378, 20203379, 20203380, 20203381, 20203382, 20205700, 20205701, 20205702, 20205703, 20205704, 20205705, 20205706, 20205707, 20205708, 20205709, 20205710, 20205711, 20205712, 20205713, 20205714, 20205715, 20205716, 20205717, 20205718, 20205719, 20205720, 20205721, 20205722, 20205723, 20205724, 20205725, 20205726, 20205727, 20205728, 20205729, 20205730, 20205731, 20205732, 20205733, 20205734, 20205735, 20205736, 20205737, 20205738, 20205739, 20205740, 20205741, 20205742, 20205743, 20205744, 20205745, 20208063, 20208064, 20208065, 20208066, 20208067, 20208068, 20208069, 20208070, 20208071, 20208072, 20208073, 20208074, 20208075, 20208076, 20208077, 20208078, 20208079, 20208080, 20208081, 20208082, 20208083, 20208084, 20208085, 20208086, 20208087, 20208088, 20208089, 20208090, 20208091, 20208092, 20208093, 20208094, 20208095, 20208096, 20208097, 20208098, 20208099, 20208100, 20208101, 20208102, 20208103, 20208104, 20208105, 20208106, 20208107, 20208108, 20210428, 20210429, 20210430, 20210431, 20210432, 20210433, 20210434, 20210435, 20210436, 20210437, 20210438, 20210439, 20210440, 20210441, 20210442, 20210443, 20210444, 20210445, 20210446, 20210447, 20210448, 20210449, 20210450, 20210451, 20210452, 20210453, 20210454, 20210455, 20210456, 20210457, 20210458, 20210459, 20210460, 20210461, 20210462, 20210463, 20210464, 20210465, 20210466, 20210467, 20210468, 20210469, 20210470, 20210471, 20210472, 20210473, 20212795, 20212796, 20212797, 20212798, 20212799, 20212800, 20212801, 20212802, 20212803, 20212804, 20212805, 20212806, 20212807, 20212808, 20212809, 20212810, 20212811, 20212812, 20212813, 20212814, 20212815, 20212816, 20212817, 20212818, 20212819, 20212820, 20212821, 20212822, 20212823, 20212824, 20212825, 20212826, 20212827, 20212828, 20212829, 20212830, 20212831, 20212832, 20212833, 20212834, 20212835, 20212836, 20212837, 20212838, 20212839, 20212840, 20215160, 20215161, 20215162, 20215163, 20215164, 20215165, 20215166, 20215167, 20215168, 20215169, 20215170, 20215171, 20215172, 20215173, 20215174, 20215175, 20215176, 20215177, 20215178, 20215179, 20215180, 20215181, 20215182, 20215183, 20215184, 20215185, 20215186, 20215187, 20215188, 20215189, 20215190, 20215191, 20215192, 20215193, 20215194, 20215195, 20215196, 20215197, 20215198, 20215199, 20215200, 20215201, 20215202, 20215203, 20215204, 20215205, 20203383, 20203384, 20203385, 20203386, 20203387, 20203388, 20203389, 20203390, 20203391, 20203392, 20203393, 20203394, 20203395, 20203396, 20205746, 20205747, 20205748, 20205749, 20205750, 20205751, 20205752, 20205753, 20205754, 20205755, 20205756, 20205757, 20205758, 20205759, 20208109, 20208110, 20208111, 20208112, 20208113, 20208114, 20208115, 20208116, 20208117, 20208118, 20208119, 20208120, 20208121, 20208122, 20210474, 20210475, 20210476, 20210477, 20210478, 20210479, 20210480, 20210481, 20210482, 20210483, 20210484, 20210485, 20210486, 20210487, 20212841, 20212842, 20212843, 20212844, 20212845, 20212846, 20212847, 20212848, 20212849, 20212850, 20212851, 20212852, 20212853, 20212854, 20215206, 20215207, 20215208, 20215209, 20215210, 20215211, 20215212, 20215213, 20215214, 20215215, 20215216, 20215217, 20215218, 20215219, 20201070, 20201071, 20201072, 20201073, 20201074, 20201075, 20201076, 20201077, 20201078, 20201079, 20201080, 20201081, 20201082, 20201083, 20201084, 20201085, 20201086, 20201087, 20201088, 20201089, 20201090, 20201091, 20201092, 20201093, 20201094, 20201095, 20201096, 20201097, 20201098, 20201099, 20201100, 20201101, 20201102, 20201103, 20201104, 20201105, 20201106, 20201107, 20201108, 20201109, 20201110, 20201111, 20201112, 20201113, 20201114, 20201115, 20201116, 20201117, 20201118, 20201119, 20201120, 20201121, 20201122, 20201123, 20201124, 20201125, 20201126, 20201127, 20201128, 20201129, 20201130, 20201131, 20201132, 20201133, 20201134, 20201135, 20201136, 20201137, 20201138, 20201139, 20201140, 20201141, 20201142, 20201143, 20201144, 20201145, 20201146, 20201147, 20201148, 20201149, 20201150, 20201151, 20201152, 20201153, 20201154, 20201155, 20201156, 20201157, 20201158, 20201159, 20201160, 20201161, 20201162, 20201163, 20201164, 20201165, 20201166, 20201167, 20201168, 20201169, 20201170, 20201171, 20201172, 20201173, 20201174, 20201175, 20201176, 20201177, 20201178, 20201179, 20201180, 20201181, 20201182, 20201183, 20201184, 20201185, 20201186, 20201187, 20201188, 20201189, 20201190, 20201191, 20201192, 20201193, 20201194, 20201195, 20201196, 20201197, 20201198, 20201199, 20201200, 20201201, 20201202, 20201203, 20201204, 20201205, 20201206, 20201207, 20201208, 20201209, 20201210, 20201211, 20201212, 20201213, 20201214, 20201215, 20201216, 20201217, 20201218, 20201219, 20201220, 20201221, 20201222, 20201223, 20201224, 20201225, 20201226, 20201227, 20201228, 20201229, 20201230, 20201231, 20201232, 20201233, 20201234, 20201235, 20201236, 20201237, 20201238, 20201239, 20201240, 20201241, 20201242, 20201243, 20201244, 20201245, 20201246, 20201247, 20201248, 20201249, 20201250, 20201251, 20201252, 20201253, 20201254, 20201255, 20201256, 20201257, 20201258, 20201259, 20201260, 20201261, 20201262, 20201263, 20201264, 20201265, 20201266, 20201267, 20201268, 20201269, 20201270, 20201271, 20201272, 20201273, 20201274, 20201275, 20201276, 20201277, 20201278, 20201279, 20201280, 20201281, 20201282, 20201283, 20201284, 20201285, 20201286, 20201287, 20201288, 20201289, 20201290, 20201291, 20201292, 20201293, 20201294, 20201295, 20201296, 20201297, 20201298, 20201299, 20201300, 20201301, 20201302, 20201303, 20201304, 20201305, 20201306, 20201307, 20201308, 20201309, 20201310, 20201311, 20201312, 20201313, 20201314, 20201315, 20201316, 20201317, 20201318, 20201319, 20201320, 20201321, 20201322, 20201323, 20201324, 20201325, 20201326, 20201327, 20201328, 20201329, 20201330, 20201331, 20201332, 20201333, 20201334, 20201335, 20201336, 20201337, 20201338, 20201339, 20201340, 20201341, 20201342, 20201343, 20201344, 20201345, 20201346, 20201347, 20201348, 20201349, 20201350, 20201351, 20201352, 20201353, 20201354, 20201355, 20201356, 20201357, 20201358, 20201359, 20201360, 20201361, 20201362, 20201363, 20201364, 20201365, 20201366, 20201367, 20201368, 20201369, 20201370, 20201371, 20201372, 20201373, 20201374, 20201375, 20201376, 20201377, 20201378, 20203433, 20203434, 20203435, 20203436, 20203437, 20203438, 20203439, 20203440, 20203441, 20203442, 20203443, 20203444, 20203445, 20203446, 20203447, 20203448, 20203449, 20203450, 20203451, 20203452, 20203453, 20203454, 20203455, 20203456, 20203457, 20203458, 20203459, 20203460, 20203461, 20203462, 20203463, 20203464, 20203465, 20203466, 20203467, 20203468, 20203469, 20203470, 20203471, 20203472, 20203473, 20203474, 20203475, 20203476, 20203477, 20203478, 20203479, 20203480, 20203481, 20203482, 20203483, 20203484, 20203485, 20203486, 20203487, 20203488, 20203489, 20203490, 20203491, 20203492, 20203493, 20203494, 20203495, 20203496, 20203497, 20203498, 20203499, 20203500, 20203501, 20203502, 20203503, 20203504, 20203505, 20203506, 20203507, 20203508, 20203509, 20203510, 20203511, 20203512, 20203513, 20203514, 20203515, 20203516, 20203517, 20203518, 20203519, 20203520, 20203521, 20203522, 20203523, 20203524, 20203525, 20203526, 20203527, 20203528, 20203529, 20203530, 20203531, 20203532, 20203533, 20203534, 20203535, 20203536, 20203537, 20203538, 20203539, 20203540, 20203541, 20203542, 20203543, 20203544, 20203545, 20203546, 20203547, 20203548, 20203549, 20203550, 20203551, 20203552, 20203553, 20203554, 20203555, 20203556, 20203557, 20203558, 20203559, 20203560, 20203561, 20203562, 20203563, 20203564, 20203565, 20203566, 20203567, 20203568, 20203569, 20203570, 20203571, 20203572, 20203573, 20203574, 20203575, 20203576, 20203577, 20203578, 20203579, 20203580, 20203581, 20203582, 20203583, 20203584, 20203585, 20203586, 20203587, 20203588, 20203589, 20203590, 20203591, 20203592, 20203593, 20203594, 20203595, 20203596, 20203597, 20203598, 20203599, 20203600, 20203601, 20203602, 20203603, 20203604, 20203605, 20203606, 20203607, 20203608, 20203609, 20203610, 20203611, 20203612, 20203613, 20203614, 20203615, 20203616, 20203617, 20203618, 20203619, 20203620, 20203621, 20203622, 20203623, 20203624, 20203625, 20203626, 20203627, 20203628, 20203629, 20203630, 20203631, 20203632, 20203633, 20203634, 20203635, 20203636, 20203637, 20203638, 20203639, 20203640, 20203641, 20203642, 20203643, 20203644, 20203645, 20203646, 20203647, 20203648, 20203649, 20203650, 20203651, 20203652, 20203653, 20203654, 20203655, 20203656, 20203657, 20203658, 20203659, 20203660, 20203661, 20203662, 20203663, 20203664, 20203665, 20203666, 20203667, 20203668, 20203669, 20203670, 20203671, 20203672, 20203673, 20203674, 20203675, 20203676, 20203677, 20203678, 20203679, 20203680, 20203681, 20203682, 20203683, 20203684, 20203685, 20203686, 20203687, 20203688, 20203689, 20203690, 20203691, 20203692, 20203693, 20203694, 20203695, 20203696, 20203697, 20203698, 20203699, 20203700, 20203701, 20203702, 20203703, 20203704, 20203705, 20203706, 20203707, 20203708, 20203709, 20203710, 20203711, 20203712, 20203713, 20203714, 20203715, 20203716, 20203717, 20203718, 20203719, 20203720, 20203721, 20203722, 20203723, 20203724, 20203725, 20203726, 20203727, 20203728, 20203729, 20203730, 20203731, 20203732, 20203733, 20203734, 20203735, 20203736, 20203737, 20203738, 20203739, 20203740, 20203741, 20205796, 20205797, 20205798, 20205799, 20205800, 20205801, 20205802, 20205803, 20205804, 20205805, 20205806, 20205807, 20205808, 20205809, 20205810, 20205811, 20205812, 20205813, 20205814, 20205815, 20205816, 20205817, 20205818, 20205819, 20205820, 20205821, 20205822, 20205823, 20205824, 20205825, 20205826, 20205827, 20205828, 20205829, 20205830, 20205831, 20205832, 20205833, 20205834, 20205835, 20205836, 20205837, 20205838, 20205839, 20205840, 20205841, 20205842, 20205843, 20205844, 20205845, 20205846, 20205847, 20205848, 20205849, 20205850, 20205851, 20205852, 20205853, 20205854, 20205855, 20205856, 20205857, 20205858, 20205859, 20205860, 20205861, 20205862, 20205863, 20205864, 20205865, 20205866, 20205867, 20205868, 20205869, 20205870, 20205871, 20205872, 20205873, 20205874, 20205875, 20205876, 20205877, 20205878, 20205879, 20205880, 20205881, 20205882, 20205883, 20205884, 20205885, 20205886, 20205887, 20205888, 20205889, 20205890, 20205891, 20205892, 20205893, 20205894, 20205895, 20205896, 20205897, 20205898, 20205899, 20205900, 20205901, 20205902, 20205903, 20205904, 20205905, 20205906, 20205907, 20205908, 20205909, 20205910, 20205911, 20205912, 20205913, 20205914, 20205915, 20205916, 20205917, 20205918, 20205919, 20205920, 20205921, 20205922, 20205923, 20205924, 20205925, 20205926, 20205927, 20205928, 20205929, 20205930, 20205931, 20205932, 20205933, 20205934, 20205935, 20205936, 20205937, 20205938, 20205939, 20205940, 20205941, 20205942, 20205943, 20205944, 20205945, 20205946, 20205947, 20205948, 20205949, 20205950, 20205951, 20205952, 20205953, 20205954, 20205955, 20205956, 20205957, 20205958, 20205959, 20205960, 20205961, 20205962, 20205963, 20205964, 20205965, 20205966, 20205967, 20205968, 20205969, 20205970, 20205971, 20205972, 20205973, 20205974, 20205975, 20205976, 20205977, 20205978, 20205979, 20205980, 20205981, 20205982, 20205983, 20205984, 20205985, 20205986, 20205987, 20205988, 20205989, 20205990, 20205991, 20205992, 20205993, 20205994, 20205995, 20205996, 20205997, 20205998, 20205999, 20206000, 20206001, 20206002, 20206003, 20206004, 20206005, 20206006, 20206007, 20206008, 20206009, 20206010, 20206011, 20206012, 20206013, 20206014, 20206015, 20206016, 20206017, 20206018, 20206019, 20206020, 20206021, 20206022, 20206023, 20206024, 20206025, 20206026, 20206027, 20206028, 20206029, 20206030, 20206031, 20206032, 20206033, 20206034, 20206035, 20206036, 20206037, 20206038, 20206039, 20206040, 20206041, 20206042, 20206043, 20206044, 20206045, 20206046, 20206047, 20206048, 20206049, 20206050, 20206051, 20206052, 20206053, 20206054, 20206055, 20206056, 20206057, 20206058, 20206059, 20206060, 20206061, 20206062, 20206063, 20206064, 20206065, 20206066, 20206067, 20206068, 20206069, 20206070, 20206071, 20206072, 20206073, 20206074, 20206075, 20206076, 20206077, 20206078, 20206079, 20206080, 20206081, 20206082, 20206083, 20206084, 20206085, 20206086, 20206087, 20206088, 20206089, 20206090, 20206091, 20206092, 20206093, 20206094, 20206095, 20206096, 20206097, 20206098, 20206099, 20206100, 20206101, 20206102, 20206103, 20206104, 20208159, 20208160, 20208161, 20208162, 20208163, 20208164, 20208165, 20208166, 20208167, 20208168, 20208169, 20208170, 20208171, 20208172, 20208173, 20208174, 20208175, 20208176, 20208177, 20208178, 20208179, 20208180, 20208181, 20208182, 20208183, 20208184, 20208185, 20208186, 20208187, 20208188, 20208189, 20208190, 20208191, 20208192, 20208193, 20208194, 20208195, 20208196, 20208197, 20208198, 20208199, 20208200, 20208201, 20208202, 20208203, 20208204, 20208205, 20208206, 20208207, 20208208, 20208209, 20208210, 20208211, 20208212, 20208213, 20208214, 20208215, 20208216, 20208217, 20208218, 20208219, 20208220, 20208221, 20208222, 20208223, 20208224, 20208225, 20208226, 20208227, 20208228, 20208229, 20208230, 20208231, 20208232, 20208233, 20208234, 20208235, 20208236, 20208237, 20208238, 20208239, 20208240, 20208241, 20208242, 20208243, 20208244, 20208245, 20208246, 20208247, 20208248, 20208249, 20208250, 20208251, 20208252, 20208253, 20208254, 20208255, 20208256, 20208257, 20208258, 20208259, 20208260, 20208261, 20208262, 20208263, 20208264, 20208265, 20208266, 20208267, 20208268, 20208269, 20208270, 20208271, 20208272, 20208273, 20208274, 20208275, 20208276, 20208277, 20208278, 20208279, 20208280, 20208281, 20208282, 20208283, 20208284, 20208285, 20208286, 20208287, 20208288, 20208289, 20208290, 20208291, 20208292, 20208293, 20208294, 20208295, 20208296, 20208297, 20208298, 20208299, 20208300, 20208301, 20208302, 20208303, 20208304, 20208305, 20208306, 20208307, 20208308, 20208309, 20208310, 20208311, 20208312, 20208313, 20208314, 20208315, 20208316, 20208317, 20208318, 20208319, 20208320, 20208321, 20208322, 20208323, 20208324, 20208325, 20208326, 20208327, 20208328, 20208329, 20208330, 20208331, 20208332, 20208333, 20208334, 20208335, 20208336, 20208337, 20208338, 20208339, 20208340, 20208341, 20208342, 20208343, 20208344, 20208345, 20208346, 20208347, 20208348, 20208349, 20208350, 20208351, 20208352, 20208353, 20208354, 20208355, 20208356, 20208357, 20208358, 20208359, 20208360, 20208361, 20208362, 20208363, 20208364, 20208365, 20208366, 20208367, 20208368, 20208369, 20208370, 20208371, 20208372, 20208373, 20208374, 20208375, 20208376, 20208377, 20208378, 20208379, 20208380, 20208381, 20208382, 20208383, 20208384, 20208385, 20208386, 20208387, 20208388, 20208389, 20208390, 20208391, 20208392, 20208393, 20208394, 20208395, 20208396, 20208397, 20208398, 20208399, 20208400, 20208401, 20208402, 20208403, 20208404, 20208405, 20208406, 20208407, 20208408, 20208409, 20208410, 20208411, 20208412, 20208413, 20208414, 20208415, 20208416, 20208417, 20208418, 20208419, 20208420, 20208421, 20208422, 20208423, 20208424, 20208425, 20208426, 20208427, 20208428, 20208429, 20208430, 20208431, 20208432, 20208433, 20208434, 20208435, 20208436, 20208437, 20208438, 20208439, 20208440, 20208441, 20208442, 20208443, 20208444, 20208445, 20208446, 20208447, 20208448, 20208449, 20208450, 20208451, 20208452, 20208453, 20208454, 20208455, 20208456, 20208457, 20208458, 20208459, 20208460, 20208461, 20208462, 20208463, 20208464, 20208465, 20208466, 20208467, 20210524, 20210525, 20210526, 20210527, 20210528, 20210529, 20210530, 20210531, 20210532, 20210533, 20210534, 20210535, 20210536, 20210537, 20210538, 20210539, 20210540, 20210541, 20210542, 20210543, 20210544, 20210545, 20210546, 20210547, 20210548, 20210549, 20210550, 20210551, 20210552, 20210553, 20210554, 20210555, 20210556, 20210557, 20210558, 20210559, 20210560, 20210561, 20210562, 20210563, 20210564, 20210565, 20210566, 20210567, 20210568, 20210569, 20210570, 20210571, 20210572, 20210573, 20210574, 20210575, 20210576, 20210577, 20210578, 20210579, 20210580, 20210581, 20210582, 20210583, 20210584, 20210585, 20210586, 20210587, 20210588, 20210589, 20210590, 20210591, 20210592, 20210593, 20210594, 20210595, 20210596, 20210597, 20210598, 20210599, 20210600, 20210601, 20210602, 20210603, 20210604, 20210605, 20210606, 20210607, 20210608, 20210609, 20210610, 20210611, 20210612, 20210613, 20210614, 20210615, 20210616, 20210617, 20210618, 20210619, 20210620, 20210621, 20210622, 20210623, 20210624, 20210625, 20210626, 20210627, 20210628, 20210629, 20210630, 20210631, 20210632, 20210633, 20210634, 20210635, 20210636, 20210637, 20210638, 20210639, 20210640, 20210641, 20210642, 20210643, 20210644, 20210645, 20210646, 20210647, 20210648, 20210649, 20210650, 20210651, 20210652, 20210653, 20210654, 20210655, 20210656, 20210657, 20210658, 20210659, 20210660, 20210661, 20210662, 20210663, 20210664, 20210665, 20210666, 20210667, 20210668, 20210669, 20210670, 20210671, 20210672, 20210673, 20210674, 20210675, 20210676, 20210677, 20210678, 20210679, 20210680, 20210681, 20210682, 20210683, 20210684, 20210685, 20210686, 20210687, 20210688, 20210689, 20210690, 20210691, 20210692, 20210693, 20210694, 20210695, 20210696, 20210697, 20210698, 20210699, 20210700, 20210701, 20210702, 20210703, 20210704, 20210705, 20210706, 20210707, 20210708, 20210709, 20210710, 20210711, 20210712, 20210713, 20210714, 20210715, 20210716, 20210717, 20210718, 20210719, 20210720, 20210721, 20210722, 20210723, 20210724, 20210725, 20210726, 20210727, 20210728, 20210729, 20210730, 20210731, 20210732, 20210733, 20210734, 20210735, 20210736, 20210737, 20210738, 20210739, 20210740, 20210741, 20210742, 20210743, 20210744, 20210745, 20210746, 20210747, 20210748, 20210749, 20210750, 20210751, 20210752, 20210753, 20210754, 20210755, 20210756, 20210757, 20210758, 20210759, 20210760, 20210761, 20210762, 20210763, 20210764, 20210765, 20210766, 20210767, 20210768, 20210769, 20210770, 20210771, 20210772, 20210773, 20210774, 20210775, 20210776, 20210777, 20210778, 20210779, 20210780, 20210781, 20210782, 20210783, 20210784, 20210785, 20210786, 20210787, 20210788, 20210789, 20210790, 20210791, 20210792, 20210793, 20210794, 20210795, 20210796, 20210797, 20210798, 20210799, 20210800, 20210801, 20210802, 20210803, 20210804, 20210805, 20210806, 20210807, 20210808, 20210809, 20210810, 20210811, 20210812, 20210813, 20210814, 20210815, 20210816, 20210817, 20210818, 20210819, 20210820, 20210821, 20210822, 20210823, 20210824, 20210825, 20210826, 20210827, 20210828, 20210829, 20210830, 20210831, 20210832, 20212891, 20212892, 20212893, 20212894, 20212895, 20212896, 20212897, 20212898, 20212899, 20212900, 20212901, 20212902, 20212903, 20212904, 20212905, 20212906, 20212907, 20212908, 20212909, 20212910, 20212911, 20212912, 20212913, 20212914, 20212915, 20212916, 20212917, 20212918, 20212919, 20212920, 20212921, 20212922, 20212923, 20212924, 20212925, 20212926, 20212927, 20212928, 20212929, 20212930, 20212931, 20212932, 20212933, 20212934, 20212935, 20212936, 20212937, 20212938, 20212939, 20212940, 20212941, 20212942, 20212943, 20212944, 20212945, 20212946, 20212947, 20212948, 20212949, 20212950, 20212951, 20212952, 20212953, 20212954, 20212955, 20212956, 20212957, 20212958, 20212959, 20212960, 20212961, 20212962, 20212963, 20212964, 20212965, 20212966, 20212967, 20212968, 20212969, 20212970, 20212971, 20212972, 20212973, 20212974, 20212975, 20212976, 20212977, 20212978, 20212979, 20212980, 20212981, 20212982, 20212983, 20212984, 20212985, 20212986, 20212987, 20212988, 20212989, 20212990, 20212991, 20212992, 20212993, 20212994, 20212995, 20212996, 20212997, 20212998, 20212999, 20213000, 20213001, 20213002, 20213003, 20213004, 20213005, 20213006, 20213007, 20213008, 20213009, 20213010, 20213011, 20213012, 20213013, 20213014, 20213015, 20213016, 20213017, 20213018, 20213019, 20213020, 20213021, 20213022, 20213023, 20213024, 20213025, 20213026, 20213027, 20213028, 20213029, 20213030, 20213031, 20213032, 20213033, 20213034, 20213035, 20213036, 20213037, 20213038, 20213039, 20213040, 20213041, 20213042, 20213043, 20213044, 20213045, 20213046, 20213047, 20213048, 20213049, 20213050, 20213051, 20213052, 20213053, 20213054, 20213055, 20213056, 20213057, 20213058, 20213059, 20213060, 20213061, 20213062, 20213063, 20213064, 20213065, 20213066, 20213067, 20213068, 20213069, 20213070, 20213071, 20213072, 20213073, 20213074, 20213075, 20213076, 20213077, 20213078, 20213079, 20213080, 20213081, 20213082, 20213083, 20213084, 20213085, 20213086, 20213087, 20213088, 20213089, 20213090, 20213091, 20213092, 20213093, 20213094, 20213095, 20213096, 20213097, 20213098, 20213099, 20213100, 20213101, 20213102, 20213103, 20213104, 20213105, 20213106, 20213107, 20213108, 20213109, 20213110, 20213111, 20213112, 20213113, 20213114, 20213115, 20213116, 20213117, 20213118, 20213119, 20213120, 20213121, 20213122, 20213123, 20213124, 20213125, 20213126, 20213127, 20213128, 20213129, 20213130, 20213131, 20213132, 20213133, 20213134, 20213135, 20213136, 20213137, 20213138, 20213139, 20213140, 20213141, 20213142, 20213143, 20213144, 20213145, 20213146, 20213147, 20213148, 20213149, 20213150, 20213151, 20213152, 20213153, 20213154, 20213155, 20213156, 20213157, 20213158, 20213159, 20213160, 20213161, 20213162, 20213163, 20213164, 20213165, 20213166, 20213167, 20213168, 20213169, 20213170, 20213171, 20213172, 20213173, 20213174, 20213175, 20213176, 20213177, 20213178, 20213179, 20213180, 20213181, 20213182, 20213183, 20213184, 20213185, 20213186, 20213187, 20213188, 20213189, 20213190, 20213191, 20213192, 20213193, 20213194, 20213195, 20213196, 20213197, 20213198, 20213199, 20215256, 20215257, 20215258, 20215259, 20215260, 20215261, 20215262, 20215263, 20215264, 20215265, 20215266, 20215267, 20215268, 20215269, 20215270, 20215271, 20215272, 20215273, 20215274, 20215275, 20215276, 20215277, 20215278, 20215279, 20215280, 20215281, 20215282, 20215283, 20215284, 20215285, 20215286, 20215287, 20215288, 20215289, 20215290, 20215291, 20215292, 20215293, 20215294, 20215295, 20215296, 20215297, 20215298, 20215299, 20215300, 20215301, 20215302, 20215303, 20215304, 20215305, 20215306, 20215307, 20215308, 20215309, 20215310, 20215311, 20215312, 20215313, 20215314, 20215315, 20215316, 20215317, 20215318, 20215319, 20215320, 20215321, 20215322, 20215323, 20215324, 20215325, 20215326, 20215327, 20215328, 20215329, 20215330, 20215331, 20215332, 20215333, 20215334, 20215335, 20215336, 20215337, 20215338, 20215339, 20215340, 20215341, 20215342, 20215343, 20215344, 20215345, 20215346, 20215347, 20215348, 20215349, 20215350, 20215351, 20215352, 20215353, 20215354, 20215355, 20215356, 20215357, 20215358, 20215359, 20215360, 20215361, 20215362, 20215363, 20215364, 20215365, 20215366, 20215367, 20215368, 20215369, 20215370, 20215371, 20215372, 20215373, 20215374, 20215375, 20215376, 20215377, 20215378, 20215379, 20215380, 20215381, 20215382, 20215383, 20215384, 20215385, 20215386, 20215387, 20215388, 20215389, 20215390, 20215391, 20215392, 20215393, 20215394, 20215395, 20215396, 20215397, 20215398, 20215399, 20215400, 20215401, 20215402, 20215403, 20215404, 20215405, 20215406, 20215407, 20215408, 20215409, 20215410, 20215411, 20215412, 20215413, 20215414, 20215415, 20215416, 20215417, 20215418, 20215419, 20215420, 20215421, 20215422, 20215423, 20215424, 20215425, 20215426, 20215427, 20215428, 20215429, 20215430, 20215431, 20215432, 20215433, 20215434, 20215435, 20215436, 20215437, 20215438, 20215439, 20215440, 20215441, 20215442, 20215443, 20215444, 20215445, 20215446, 20215447, 20215448, 20215449, 20215450, 20215451, 20215452, 20215453, 20215454, 20215455, 20215456, 20215457, 20215458, 20215459, 20215460, 20215461, 20215462, 20215463, 20215464, 20215465, 20215466, 20215467, 20215468, 20215469, 20215470, 20215471, 20215472, 20215473, 20215474, 20215475, 20215476, 20215477, 20215478, 20215479, 20215480, 20215481, 20215482, 20215483, 20215484, 20215485, 20215486, 20215487, 20215488, 20215489, 20215490, 20215491, 20215492, 20215493, 20215494, 20215495, 20215496, 20215497, 20215498, 20215499, 20215500, 20215501, 20215502, 20215503, 20215504, 20215505, 20215506, 20215507, 20215508, 20215509, 20215510, 20215511, 20215512, 20215513, 20215514, 20215515, 20215516, 20215517, 20215518, 20215519, 20215520, 20215521, 20215522, 20215523, 20215524, 20215525, 20215526, 20215527, 20215528, 20215529, 20215530, 20215531, 20215532, 20215533, 20215534, 20215535, 20215536, 20215537, 20215538, 20215539, 20215540, 20215541, 20215542, 20215543, 20215544, 20215545, 20215546, 20215547, 20215548, 20215549, 20215550, 20215551, 20215552, 20215553, 20215554, 20215555, 20215556, 20215557, 20215558, 20215559, 20215560, 20215561, 20215562, 20215563, 20215564, 20203742, 20203743, 20203744, 20203745, 20203746, 20203747, 20203748, 20203749, 20203750, 20203751, 20203752, 20203753, 20203754, 20203755, 20203756, 20203757, 20203758, 20203759, 20203760, 20203761, 20203762, 20203763, 20203764, 20203765, 20203766, 20203767, 20203768, 20203769, 20203770, 20203771, 20203772, 20203773, 20203774, 20203775, 20203776, 20203777, 20203778, 20203779, 20203780, 20203781, 20203782, 20203783, 20203784, 20203785, 20203786, 20203787, 20203788, 20203789, 20203790, 20203791, 20203792, 20203793, 20203794, 20203795, 20203796, 20203797, 20203798, 20203799, 20203800, 20203801, 20203802, 20203803, 20203804, 20203805, 20203806, 20203807, 20203808, 20203809, 20203810, 20203811, 20203812, 20203813, 20203814, 20203815, 20203816, 20203817, 20203818, 20203819, 20203820, 20203821, 20203822, 20203823, 20203824, 20203825, 20203826, 20203827, 20203828, 20203829, 20203830, 20203831, 20203832, 20203833, 20203834, 20203835, 20203836, 20203837, 20203838, 20203839, 20203840, 20203841, 20203842, 20203843, 20203844, 20203845, 20203846, 20203847, 20203848, 20203849, 20203850, 20203851, 20203852, 20203853, 20203854, 20203855, 20203856, 20203857, 20203858, 20203859, 20203860, 20203861, 20203862, 20203863, 20203864, 20203865, 20203866, 20203867, 20203868, 20203869, 20203870, 20203871, 20203872, 20203873, 20203874, 20203875, 20203876, 20203877, 20203878, 20203879, 20203880, 20203881, 20203882, 20203883, 20203884, 20203885, 20203886, 20203887, 20203888, 20203889, 20203890, 20203891, 20203892, 20203893, 20203894, 20203895, 20203896, 20203897, 20203898, 20203899, 20203900, 20203901, 20203902, 20203903, 20203904, 20203905, 20203906, 20203907, 20203908, 20203909, 20203910, 20203911, 20203912, 20203913, 20203914, 20203915, 20203916, 20203917, 20203918, 20203919, 20203920, 20203921, 20203922, 20203923, 20203924, 20203925, 20203926, 20203927, 20203928, 20203929, 20203930, 20203931, 20203932, 20203933, 20203934, 20203935, 20203936, 20203937, 20203938, 20203939, 20203940, 20203941, 20203942, 20203943, 20203944, 20203945, 20203946, 20203947, 20203948, 20203949, 20203950, 20203951, 20203952, 20203953, 20203954, 20203955, 20203956, 20203957, 20203958, 20203959, 20203960, 20203961, 20203962, 20203963, 20203964, 20203965, 20203966, 20203967, 20203968, 20203969, 20203970, 20203971, 20203972, 20203973, 20203974, 20203975, 20203976, 20203977, 20203978, 20203979, 20203980, 20203981, 20203982, 20203983, 20203984, 20203985, 20203986, 20203987, 20203988, 20203989, 20203990, 20203991, 20203992, 20203993, 20203994, 20203995, 20203996, 20203997, 20203998, 20203999, 20204000, 20204001, 20204002, 20204003, 20204004, 20204005, 20204006, 20204007, 20204008, 20204009, 20204010, 20204011, 20204012, 20204013, 20204014, 20204015, 20204016, 20204017, 20204018, 20204019, 20204020, 20204021, 20204022, 20204023, 20204024, 20206105, 20206106, 20206107, 20206108, 20206109, 20206110, 20206111, 20206112, 20206113, 20206114, 20206115, 20206116, 20206117, 20206118, 20206119, 20206120, 20206121, 20206122, 20206123, 20206124, 20206125, 20206126, 20206127, 20206128, 20206129, 20206130, 20206131, 20206132, 20206133, 20206134, 20206135, 20206136, 20206137, 20206138, 20206139, 20206140, 20206141, 20206142, 20206143, 20206144, 20206145, 20206146, 20206147, 20206148, 20206149, 20206150, 20206151, 20206152, 20206153, 20206154, 20206155, 20206156, 20206157, 20206158, 20206159, 20206160, 20206161, 20206162, 20206163, 20206164, 20206165, 20206166, 20206167, 20206168, 20206169, 20206170, 20206171, 20206172, 20206173, 20206174, 20206175, 20206176, 20206177, 20206178, 20206179, 20206180, 20206181, 20206182, 20206183, 20206184, 20206185, 20206186, 20206187, 20206188, 20206189, 20206190, 20206191, 20206192, 20206193, 20206194, 20206195, 20206196, 20206197, 20206198, 20206199, 20206200, 20206201, 20206202, 20206203, 20206204, 20206205, 20206206, 20206207, 20206208, 20206209, 20206210, 20206211, 20206212, 20206213, 20206214, 20206215, 20206216, 20206217, 20206218, 20206219, 20206220, 20206221, 20206222, 20206223, 20206224, 20206225, 20206226, 20206227, 20206228, 20206229, 20206230, 20206231, 20206232, 20206233, 20206234, 20206235, 20206236, 20206237, 20206238, 20206239, 20206240, 20206241, 20206242, 20206243, 20206244, 20206245, 20206246, 20206247, 20206248, 20206249, 20206250, 20206251, 20206252, 20206253, 20206254, 20206255, 20206256, 20206257, 20206258, 20206259, 20206260, 20206261, 20206262, 20206263, 20206264, 20206265, 20206266, 20206267, 20206268, 20206269, 20206270, 20206271, 20206272, 20206273, 20206274, 20206275, 20206276, 20206277, 20206278, 20206279, 20206280, 20206281, 20206282, 20206283, 20206284, 20206285, 20206286, 20206287, 20206288, 20206289, 20206290, 20206291, 20206292, 20206293, 20206294, 20206295, 20206296, 20206297, 20206298, 20206299, 20206300, 20206301, 20206302, 20206303, 20206304, 20206305, 20206306, 20206307, 20206308, 20206309, 20206310, 20206311, 20206312, 20206313, 20206314, 20206315, 20206316, 20206317, 20206318, 20206319, 20206320, 20206321, 20206322, 20206323, 20206324, 20206325, 20206326, 20206327, 20206328, 20206329, 20206330, 20206331, 20206332, 20206333, 20206334, 20206335, 20206336, 20206337, 20206338, 20206339, 20206340, 20206341, 20206342, 20206343, 20206344, 20206345, 20206346, 20206347, 20206348, 20206349, 20206350, 20206351, 20206352, 20206353, 20206354, 20206355, 20206356, 20206357, 20206358, 20206359, 20206360, 20206361, 20206362, 20206363, 20206364, 20206365, 20206366, 20206367, 20206368, 20206369, 20206370, 20206371, 20206372, 20206373, 20206374, 20206375, 20206376, 20206377, 20206378, 20206379, 20206380, 20206381, 20206382, 20206383, 20206384, 20206385, 20206386, 20206387, 20208468, 20208469, 20208470, 20208471, 20208472, 20208473, 20208474, 20208475, 20208476, 20208477, 20208478, 20208479, 20208480, 20208481, 20208482, 20208483, 20208484, 20208485, 20208486, 20208487, 20208488, 20208489, 20208490, 20208491, 20208492, 20208493, 20208494, 20208495, 20208496, 20208497, 20208498, 20208499, 20208500, 20208501, 20208502, 20208503, 20208504, 20208505, 20208506, 20208507, 20208508, 20208509, 20208510, 20208511, 20208512, 20208513, 20208514, 20208515, 20208516, 20208517, 20208518, 20208519, 20208520, 20208521, 20208522, 20208523, 20208524, 20208525, 20208526, 20208527, 20208528, 20208529, 20208530, 20208531, 20208532, 20208533, 20208534, 20208535, 20208536, 20208537, 20208538, 20208539, 20208540, 20208541, 20208542, 20208543, 20208544, 20208545, 20208546, 20208547, 20208548, 20208549, 20208550, 20208551, 20208552, 20208553, 20208554, 20208555, 20208556, 20208557, 20208558, 20208559, 20208560, 20208561, 20208562, 20208563, 20208564, 20208565, 20208566, 20208567, 20208568, 20208569, 20208570, 20208571, 20208572, 20208573, 20208574, 20208575, 20208576, 20208577, 20208578, 20208579, 20208580, 20208581, 20208582, 20208583, 20208584, 20208585, 20208586, 20208587, 20208588, 20208589, 20208590, 20208591, 20208592, 20208593, 20208594, 20208595, 20208596, 20208597, 20208598, 20208599, 20208600, 20208601, 20208602, 20208603, 20208604, 20208605, 20208606, 20208607, 20208608, 20208609, 20208610, 20208611, 20208612, 20208613, 20208614, 20208615, 20208616, 20208617, 20208618, 20208619, 20208620, 20208621, 20208622, 20208623, 20208624, 20208625, 20208626, 20208627, 20208628, 20208629, 20208630, 20208631, 20208632, 20208633, 20208634, 20208635, 20208636, 20208637, 20208638, 20208639, 20208640, 20208641, 20208642, 20208643, 20208644, 20208645, 20208646, 20208647, 20208648, 20208649, 20208650, 20208651, 20208652, 20208653, 20208654, 20208655, 20208656, 20208657, 20208658, 20208659, 20208660, 20208661, 20208662, 20208663, 20208664, 20208665, 20208666, 20208667, 20208668, 20208669, 20208670, 20208671, 20208672, 20208673, 20208674, 20208675, 20208676, 20208677, 20208678, 20208679, 20208680, 20208681, 20208682, 20208683, 20208684, 20208685, 20208686, 20208687, 20208688, 20208689, 20208690, 20208691, 20208692, 20208693, 20208694, 20208695, 20208696, 20208697, 20208698, 20208699, 20208700, 20208701, 20208702, 20208703, 20208704, 20208705, 20208706, 20208707, 20208708, 20208709, 20208710, 20208711, 20208712, 20208713, 20208714, 20208715, 20208716, 20208717, 20208718, 20208719, 20208720, 20208721, 20208722, 20208723, 20208724, 20208725, 20208726, 20208727, 20208728, 20208729, 20208730, 20208731, 20208732, 20208733, 20208734, 20208735, 20208736, 20208737, 20208738, 20208739, 20208740, 20208741, 20208742, 20208743, 20208744, 20208745, 20208746, 20208747, 20208748, 20208749, 20208750, 20208751, 20208752, 20208753, 20210833, 20210834, 20210835, 20210836, 20210837, 20210838, 20210839, 20210840, 20210841, 20210842, 20210843, 20210844, 20210845, 20210846, 20210847, 20210848, 20210849, 20210850, 20210851, 20210852, 20210853, 20210854, 20210855, 20210856, 20210857, 20210858, 20210859, 20210860, 20210861, 20210862, 20210863, 20210864, 20210865, 20210866, 20210867, 20210868, 20210869, 20210870, 20210871, 20210872, 20210873, 20210874, 20210875, 20210876, 20210877, 20210878, 20210879, 20210880, 20210881, 20210882, 20210883, 20210884, 20210885, 20210886, 20210887, 20210888, 20210889, 20210890, 20210891, 20210892, 20210893, 20210894, 20210895, 20210896, 20210897, 20210898, 20210899, 20210900, 20210901, 20210902, 20210903, 20210904, 20210905, 20210906, 20210907, 20210908, 20210909, 20210910, 20210911, 20210912, 20210913, 20210914, 20210915, 20210916, 20210917, 20210918, 20210919, 20210920, 20210921, 20210922, 20210923, 20210924, 20210925, 20210926, 20210927, 20210928, 20210929, 20210930, 20210931, 20210932, 20210933, 20210934, 20210935, 20210936, 20210937, 20210938, 20210939, 20210940, 20210941, 20210942, 20210943, 20210944, 20210945, 20210946, 20210947, 20210948, 20210949, 20210950, 20210951, 20210952, 20210953, 20210954, 20210955, 20210956, 20210957, 20210958, 20210959, 20210960, 20210961, 20210962, 20210963, 20210964, 20210965, 20210966, 20210967, 20210968, 20210969, 20210970, 20210971, 20210972, 20210973, 20210974, 20210975, 20210976, 20210977, 20210978, 20210979, 20210980, 20210981, 20210982, 20210983, 20210984, 20210985, 20210986, 20210987, 20210988, 20210989, 20210990, 20210991, 20210992, 20210993, 20210994, 20210995, 20210996, 20210997, 20210998, 20210999, 20211000, 20211001, 20211002, 20211003, 20211004, 20211005, 20211006, 20211007, 20211008, 20211009, 20211010, 20211011, 20211012, 20211013, 20211014, 20211015, 20211016, 20211017, 20211018, 20211019, 20211020, 20211021, 20211022, 20211023, 20211024, 20211025, 20211026, 20211027, 20211028, 20211029, 20211030, 20211031, 20211032, 20211033, 20211034, 20211035, 20211036, 20211037, 20211038, 20211039, 20211040, 20211041, 20211042, 20211043, 20211044, 20211045, 20211046, 20211047, 20211048, 20211049, 20211050, 20211051, 20211052, 20211053, 20211054, 20211055, 20211056, 20211057, 20211058, 20211059, 20211060, 20211061, 20211062, 20211063, 20211064, 20211065, 20211066, 20211067, 20211068, 20211069, 20211070, 20211071, 20211072, 20211073, 20211074, 20211075, 20211076, 20211077, 20211078, 20211079, 20211080, 20211081, 20211082, 20211083, 20211084, 20211085, 20211086, 20211087, 20211088, 20211089, 20211090, 20211091, 20211092, 20211093, 20211094, 20211095, 20211096, 20211097, 20211098, 20211099, 20211100, 20211101, 20211102, 20211103, 20211104, 20211105, 20211106, 20211107, 20211108, 20211109, 20211110, 20211111, 20211112, 20211113, 20211114, 20211115, 20211116, 20211117, 20211118, 20213200, 20213201, 20213202, 20213203, 20213204, 20213205, 20213206, 20213207, 20213208, 20213209, 20213210, 20213211, 20213212, 20213213, 20213214, 20213215, 20213216, 20213217, 20213218, 20213219, 20213220, 20213221, 20213222, 20213223, 20213224, 20213225, 20213226, 20213227, 20213228, 20213229, 20213230, 20213231, 20213232, 20213233, 20213234, 20213235, 20213236, 20213237, 20213238, 20213239, 20213240, 20213241, 20213242, 20213243, 20213244, 20213245, 20213246, 20213247, 20213248, 20213249, 20213250, 20213251, 20213252, 20213253, 20213254, 20213255, 20213256, 20213257, 20213258, 20213259, 20213260, 20213261, 20213262, 20213263, 20213264, 20213265, 20213266, 20213267, 20213268, 20213269, 20213270, 20213271, 20213272, 20213273, 20213274, 20213275, 20213276, 20213277, 20213278, 20213279, 20213280, 20213281, 20213282, 20213283, 20213284, 20213285, 20213286, 20213287, 20213288, 20213289, 20213290, 20213291, 20213292, 20213293, 20213294, 20213295, 20213296, 20213297, 20213298, 20213299, 20213300, 20213301, 20213302, 20213303, 20213304, 20213305, 20213306, 20213307, 20213308, 20213309, 20213310, 20213311, 20213312, 20213313, 20213314, 20213315, 20213316, 20213317, 20213318, 20213319, 20213320, 20213321, 20213322, 20213323, 20213324, 20213325, 20213326, 20213327, 20213328, 20213329, 20213330, 20213331, 20213332, 20213333, 20213334, 20213335, 20213336, 20213337, 20213338, 20213339, 20213340, 20213341, 20213342, 20213343, 20213344, 20213345, 20213346, 20213347, 20213348, 20213349, 20213350, 20213351, 20213352, 20213353, 20213354, 20213355, 20213356, 20213357, 20213358, 20213359, 20213360, 20213361, 20213362, 20213363, 20213364, 20213365, 20213366, 20213367, 20213368, 20213369, 20213370, 20213371, 20213372, 20213373, 20213374, 20213375, 20213376, 20213377, 20213378, 20213379, 20213380, 20213381, 20213382, 20213383, 20213384, 20213385, 20213386, 20213387, 20213388, 20213389, 20213390, 20213391, 20213392, 20213393, 20213394, 20213395, 20213396, 20213397, 20213398, 20213399, 20213400, 20213401, 20213402, 20213403, 20213404, 20213405, 20213406, 20213407, 20213408, 20213409, 20213410, 20213411, 20213412, 20213413, 20213414, 20213415, 20213416, 20213417, 20213418, 20213419, 20213420, 20213421, 20213422, 20213423, 20213424, 20213425, 20213426, 20213427, 20213428, 20213429, 20213430, 20213431, 20213432, 20213433, 20213434, 20213435, 20213436, 20213437, 20213438, 20213439, 20213440, 20213441, 20213442, 20213443, 20213444, 20213445, 20213446, 20213447, 20213448, 20213449, 20213450, 20213451, 20213452, 20213453, 20213454, 20213455, 20213456, 20213457, 20213458, 20213459, 20213460, 20213461, 20213462, 20213463, 20213464, 20213465, 20213466, 20213467, 20213468, 20213469, 20213470, 20213471, 20213472, 20213473, 20213474, 20213475, 20213476, 20213477, 20213478, 20213479, 20213480, 20213481, 20213482, 20213483, 20213484, 20215565, 20215566, 20215567, 20215568, 20215569, 20215570, 20215571, 20215572, 20215573, 20215574, 20215575, 20215576, 20215577, 20215578, 20215579, 20215580, 20215581, 20215582, 20215583, 20215584, 20215585, 20215586, 20215587, 20215588, 20215589, 20215590, 20215591, 20215592, 20215593, 20215594, 20215595, 20215596, 20215597, 20215598, 20215599, 20215600, 20215601, 20215602, 20215603, 20215604, 20215605, 20215606, 20215607, 20215608, 20215609, 20215610, 20215611, 20215612, 20215613, 20215614, 20215615, 20215616, 20215617, 20215618, 20215619, 20215620, 20215621, 20215622, 20215623, 20215624, 20215625, 20215626, 20215627, 20215628, 20215629, 20215630, 20215631, 20215632, 20215633, 20215634, 20215635, 20215636, 20215637, 20215638, 20215639, 20215640, 20215641, 20215642, 20215643, 20215644, 20215645, 20215646, 20215647, 20215648, 20215649, 20215650, 20215651, 20215652, 20215653, 20215654, 20215655, 20215656, 20215657, 20215658, 20215659, 20215660, 20215661, 20215662, 20215663, 20215664, 20215665, 20215666, 20215667, 20215668, 20215669, 20215670, 20215671, 20215672, 20215673, 20215674, 20215675, 20215676, 20215677, 20215678, 20215679, 20215680, 20215681, 20215682, 20215683, 20215684, 20215685, 20215686, 20215687, 20215688, 20215689, 20215690, 20215691, 20215692, 20215693, 20215694, 20215695, 20215696, 20215697, 20215698, 20215699, 20215700, 20215701, 20215702, 20215703, 20215704, 20215705, 20215706, 20215707, 20215708, 20215709, 20215710, 20215711, 20215712, 20215713, 20215714, 20215715, 20215716, 20215717, 20215718, 20215719, 20215720, 20215721, 20215722, 20215723, 20215724, 20215725, 20215726, 20215727, 20215728, 20215729, 20215730, 20215731, 20215732, 20215733, 20215734, 20215735, 20215736, 20215737, 20215738, 20215739, 20215740, 20215741, 20215742, 20215743, 20215744, 20215745, 20215746, 20215747, 20215748, 20215749, 20215750, 20215751, 20215752, 20215753, 20215754, 20215755, 20215756, 20215757, 20215758, 20215759, 20215760, 20215761, 20215762, 20215763, 20215764, 20215765, 20215766, 20215767, 20215768, 20215769, 20215770, 20215771, 20215772, 20215773, 20215774, 20215775, 20215776, 20215777, 20215778, 20215779, 20215780, 20215781, 20215782, 20215783, 20215784, 20215785, 20215786, 20215787, 20215788, 20215789, 20215790, 20215791, 20215792, 20215793, 20215794, 20215795, 20215796, 20215797, 20215798, 20215799, 20215800, 20215801, 20215802, 20215803, 20215804, 20215805, 20215806, 20215807, 20215808, 20215809, 20215810, 20215811, 20215812, 20215813, 20215814, 20215815, 20215816, 20215817, 20215818, 20215819, 20215820, 20215821, 20215822, 20215823, 20215824, 20215825, 20215826, 20215827, 20215828, 20215829, 20215830, 20215831, 20215832, 20215833, 20215834, 20215835, 20215836, 20215837, 20215838, 20215839, 20215840, 20215841, 20215842, 20215843, 20215844, 20215845, 20215846, 20215847, 20215848, 20215849, 20215850, 20204025, 20204026, 20204027, 20204028, 20204029, 20204030, 20204031, 20204032, 20204033, 20204034, 20204035, 20204036, 20204037, 20204038, 20204039, 20204040, 20204041, 20204042, 20204043, 20204044, 20204045, 20204046, 20204047, 20204048, 20204049, 20204050, 20204051, 20204052, 20204053, 20204054, 20204055, 20204056, 20204057, 20204058, 20204059, 20204060, 20204061, 20204062, 20204063, 20204064, 20204065, 20204066, 20204067, 20204068, 20204069, 20204070, 20204071, 20204072, 20204073, 20204074, 20204075, 20204076, 20204077, 20204078, 20204079, 20204080, 20204081, 20204082, 20204083, 20204084, 20204085, 20204086, 20204087, 20204088, 20204089, 20204090, 20204091, 20204092, 20204093, 20204094, 20204095, 20204096, 20204097, 20204098, 20204099, 20204100, 20204101, 20204102, 20204103, 20204104, 20204105, 20204106, 20204107, 20204108, 20204109, 20204110, 20204111, 20204112, 20204113, 20204114, 20204115, 20204116, 20204117, 20204118, 20204119, 20204120, 20204121, 20204122, 20204123, 20204124, 20204125, 20204126, 20204127, 20204128, 20204129, 20204130, 20204131, 20204132, 20204133, 20204134, 20204135, 20204136, 20204137, 20204138, 20204139, 20204140, 20204141, 20204142, 20204143, 20204144, 20204145, 20204146, 20204147, 20204148, 20204149, 20204150, 20204151, 20204152, 20204153, 20204154, 20204155, 20204156, 20204157, 20204158, 20204159, 20204160, 20204161, 20204162, 20204163, 20204164, 20204165, 20204166, 20204167, 20204168, 20204169, 20204170, 20204171, 20204172, 20204173, 20204174, 20204175, 20204176, 20204177, 20204178, 20204179, 20204180, 20204181, 20204182, 20204183, 20204184, 20204185, 20204186, 20204187, 20204188, 20204189, 20204190, 20204191, 20204192, 20204193, 20204194, 20204195, 20204196, 20204197, 20204198, 20204199, 20204200, 20204201, 20204202, 20204203, 20204204, 20204205, 20204206, 20204207, 20204208, 20204209, 20204210, 20204211, 20204212, 20204213, 20204214, 20204215, 20204216, 20204217, 20204218, 20204219, 20204220, 20204221, 20204222, 20204223, 20204224, 20204225, 20204226, 20204227, 20204228, 20204229, 20204230, 20204231, 20204232, 20204233, 20204234, 20204235, 20204236, 20204237, 20204238, 20204239, 20204240, 20204241, 20204242, 20204243, 20204244, 20204245, 20204246, 20204247, 20204248, 20204249, 20204250, 20204251, 20204252, 20204253, 20204254, 20204255, 20204256, 20204257, 20204258, 20204259, 20204260, 20204261, 20204262, 20204263, 20204264, 20204265, 20204266, 20204267, 20204268, 20204269, 20204270, 20204271, 20204272, 20204273, 20206388, 20206389, 20206390, 20206391, 20206392, 20206393, 20206394, 20206395, 20206396, 20206397, 20206398, 20206399, 20206400, 20206401, 20206402, 20206403, 20206404, 20206405, 20206406, 20206407, 20206408, 20206409, 20206410, 20206411, 20206412, 20206413, 20206414, 20206415, 20206416, 20206417, 20206418, 20206419, 20206420, 20206421, 20206422, 20206423, 20206424, 20206425, 20206426, 20206427, 20206428, 20206429, 20206430, 20206431, 20206432, 20206433, 20206434, 20206435, 20206436, 20206437, 20206438, 20206439, 20206440, 20206441, 20206442, 20206443, 20206444, 20206445, 20206446, 20206447, 20206448, 20206449, 20206450, 20206451, 20206452, 20206453, 20206454, 20206455, 20206456, 20206457, 20206458, 20206459, 20206460, 20206461, 20206462, 20206463, 20206464, 20206465, 20206466, 20206467, 20206468, 20206469, 20206470, 20206471, 20206472, 20206473, 20206474, 20206475, 20206476, 20206477, 20206478, 20206479, 20206480, 20206481, 20206482, 20206483, 20206484, 20206485, 20206486, 20206487, 20206488, 20206489, 20206490, 20206491, 20206492, 20206493, 20206494, 20206495, 20206496, 20206497, 20206498, 20206499, 20206500, 20206501, 20206502, 20206503, 20206504, 20206505, 20206506, 20206507, 20206508, 20206509, 20206510, 20206511, 20206512, 20206513, 20206514, 20206515, 20206516, 20206517, 20206518, 20206519, 20206520, 20206521, 20206522, 20206523, 20206524, 20206525, 20206526, 20206527, 20206528, 20206529, 20206530, 20206531, 20206532, 20206533, 20206534, 20206535, 20206536, 20206537, 20206538, 20206539, 20206540, 20206541, 20206542, 20206543, 20206544, 20206545, 20206546, 20206547, 20206548, 20206549, 20206550, 20206551, 20206552, 20206553, 20206554, 20206555, 20206556, 20206557, 20206558, 20206559, 20206560, 20206561, 20206562, 20206563, 20206564, 20206565, 20206566, 20206567, 20206568, 20206569, 20206570, 20206571, 20206572, 20206573, 20206574, 20206575, 20206576, 20206577, 20206578, 20206579, 20206580, 20206581, 20206582, 20206583, 20206584, 20206585, 20206586, 20206587, 20206588, 20206589, 20206590, 20206591, 20206592, 20206593, 20206594, 20206595, 20206596, 20206597, 20206598, 20206599, 20206600, 20206601, 20206602, 20206603, 20206604, 20206605, 20206606, 20206607, 20206608, 20206609, 20206610, 20206611, 20206612, 20206613, 20206614, 20206615, 20206616, 20206617, 20206618, 20206619, 20206620, 20206621, 20206622, 20206623, 20206624, 20206625, 20206626, 20206627, 20206628, 20206629, 20206630, 20206631, 20206632, 20206633, 20206634, 20206635, 20206636, 20208754, 20208755, 20208756, 20208757, 20208758, 20208759, 20208760, 20208761, 20208762, 20208763, 20208764, 20208765, 20208766, 20208767, 20208768, 20208769, 20208770, 20208771, 20208772, 20208773, 20208774, 20208775, 20208776, 20208777, 20208778, 20208779, 20208780, 20208781, 20208782, 20208783, 20208784, 20208785, 20208786, 20208787, 20208788, 20208789, 20208790, 20208791, 20208792, 20208793, 20208794, 20208795, 20208796, 20208797, 20208798, 20208799, 20208800, 20208801, 20208802, 20208803, 20208804, 20208805, 20208806, 20208807, 20208808, 20208809, 20208810, 20208811, 20208812, 20208813, 20208814, 20208815, 20208816, 20208817, 20208818, 20208819, 20208820, 20208821, 20208822, 20208823, 20208824, 20208825, 20208826, 20208827, 20208828, 20208829, 20208830, 20208831, 20208832, 20208833, 20208834, 20208835, 20208836, 20208837, 20208838, 20208839, 20208840, 20208841, 20208842, 20208843, 20208844, 20208845, 20208846, 20208847, 20208848, 20208849, 20208850, 20208851, 20208852, 20208853, 20208854, 20208855, 20208856, 20208857, 20208858, 20208859, 20208860, 20208861, 20208862, 20208863, 20208864, 20208865, 20208866, 20208867, 20208868, 20208869, 20208870, 20208871, 20208872, 20208873, 20208874, 20208875, 20208876, 20208877, 20208878, 20208879, 20208880, 20208881, 20208882, 20208883, 20208884, 20208885, 20208886, 20208887, 20208888, 20208889, 20208890, 20208891, 20208892, 20208893, 20208894, 20208895, 20208896, 20208897, 20208898, 20208899, 20208900, 20208901, 20208902, 20208903, 20208904, 20208905, 20208906, 20208907, 20208908, 20208909, 20208910, 20208911, 20208912, 20208913, 20208914, 20208915, 20208916, 20208917, 20208918, 20208919, 20208920, 20208921, 20208922, 20208923, 20208924, 20208925, 20208926, 20208927, 20208928, 20208929, 20208930, 20208931, 20208932, 20208933, 20208934, 20208935, 20208936, 20208937, 20208938, 20208939, 20208940, 20208941, 20208942, 20208943, 20208944, 20208945, 20208946, 20208947, 20208948, 20208949, 20208950, 20208951, 20208952, 20208953, 20208954, 20208955, 20208956, 20208957, 20208958, 20208959, 20208960, 20208961, 20208962, 20208963, 20208964, 20208965, 20208966, 20208967, 20208968, 20208969, 20208970, 20208971, 20208972, 20208973, 20208974, 20208975, 20208976, 20208977, 20208978, 20208979, 20208980, 20208981, 20208982, 20208983, 20208984, 20208985, 20208986, 20208987, 20208988, 20208989, 20208990, 20208991, 20208992, 20208993, 20208994, 20208995, 20208996, 20208997, 20208998, 20208999, 20209000, 20209001, 20209002, 20211119, 20211120, 20211121, 20211122, 20211123, 20211124, 20211125, 20211126, 20211127, 20211128, 20211129, 20211130, 20211131, 20211132, 20211133, 20211134, 20211135, 20211136, 20211137, 20211138, 20211139, 20211140, 20211141, 20211142, 20211143, 20211144, 20211145, 20211146, 20211147, 20211148, 20211149, 20211150, 20211151, 20211152, 20211153, 20211154, 20211155, 20211156, 20211157, 20211158, 20211159, 20211160, 20211161, 20211162, 20211163, 20211164, 20211165, 20211166, 20211167, 20211168, 20211169, 20211170, 20211171, 20211172, 20211173, 20211174, 20211175, 20211176, 20211177, 20211178, 20211179, 20211180, 20211181, 20211182, 20211183, 20211184, 20211185, 20211186, 20211187, 20211188, 20211189, 20211190, 20211191, 20211192, 20211193, 20211194, 20211195, 20211196, 20211197, 20211198, 20211199, 20211200, 20211201, 20211202, 20211203, 20211204, 20211205, 20211206, 20211207, 20211208, 20211209, 20211210, 20211211, 20211212, 20211213, 20211214, 20211215, 20211216, 20211217, 20211218, 20211219, 20211220, 20211221, 20211222, 20211223, 20211224, 20211225, 20211226, 20211227, 20211228, 20211229, 20211230, 20211231, 20211232, 20211233, 20211234, 20211235, 20211236, 20211237, 20211238, 20211239, 20211240, 20211241, 20211242, 20211243, 20211244, 20211245, 20211246, 20211247, 20211248, 20211249, 20211250, 20211251, 20211252, 20211253, 20211254, 20211255, 20211256, 20211257, 20211258, 20211259, 20211260, 20211261, 20211262, 20211263, 20211264, 20211265, 20211266, 20211267, 20211268, 20211269, 20211270, 20211271, 20211272, 20211273, 20211274, 20211275, 20211276, 20211277, 20211278, 20211279, 20211280, 20211281, 20211282, 20211283, 20211284, 20211285, 20211286, 20211287, 20211288, 20211289, 20211290, 20211291, 20211292, 20211293, 20211294, 20211295, 20211296, 20211297, 20211298, 20211299, 20211300, 20211301, 20211302, 20211303, 20211304, 20211305, 20211306, 20211307, 20211308, 20211309, 20211310, 20211311, 20211312, 20211313, 20211314, 20211315, 20211316, 20211317, 20211318, 20211319, 20211320, 20211321, 20211322, 20211323, 20211324, 20211325, 20211326, 20211327, 20211328, 20211329, 20211330, 20211331, 20211332, 20211333, 20211334, 20211335, 20211336, 20211337, 20211338, 20211339, 20211340, 20211341, 20211342, 20211343, 20211344, 20211345, 20211346, 20211347, 20211348, 20211349, 20211350, 20211351, 20211352, 20211353, 20211354, 20211355, 20211356, 20211357, 20211358, 20211359, 20211360, 20211361, 20211362, 20211363, 20211364, 20211365, 20211366, 20211367, 20213485, 20213486, 20213487, 20213488, 20213489, 20213490, 20213491, 20213492, 20213493, 20213494, 20213495, 20213496, 20213497, 20213498, 20213499, 20213500, 20213501, 20213502, 20213503, 20213504, 20213505, 20213506, 20213507, 20213508, 20213509, 20213510, 20213511, 20213512, 20213513, 20213514, 20213515, 20213516, 20213517, 20213518, 20213519, 20213520, 20213521, 20213522, 20213523, 20213524, 20213525, 20213526, 20213527, 20213528, 20213529, 20213530, 20213531, 20213532, 20213533, 20213534, 20213535, 20213536, 20213537, 20213538, 20213539, 20213540, 20213541, 20213542, 20213543, 20213544, 20213545, 20213546, 20213547, 20213548, 20213549, 20213550, 20213551, 20213552, 20213553, 20213554, 20213555, 20213556, 20213557, 20213558, 20213559, 20213560, 20213561, 20213562, 20213563, 20213564, 20213565, 20213566, 20213567, 20213568, 20213569, 20213570, 20213571, 20213572, 20213573, 20213574, 20213575, 20213576, 20213577, 20213578, 20213579, 20213580, 20213581, 20213582, 20213583, 20213584, 20213585, 20213586, 20213587, 20213588, 20213589, 20213590, 20213591, 20213592, 20213593, 20213594, 20213595, 20213596, 20213597, 20213598, 20213599, 20213600, 20213601, 20213602, 20213603, 20213604, 20213605, 20213606, 20213607, 20213608, 20213609, 20213610, 20213611, 20213612, 20213613, 20213614, 20213615, 20213616, 20213617, 20213618, 20213619, 20213620, 20213621, 20213622, 20213623, 20213624, 20213625, 20213626, 20213627, 20213628, 20213629, 20213630, 20213631, 20213632, 20213633, 20213634, 20213635, 20213636, 20213637, 20213638, 20213639, 20213640, 20213641, 20213642, 20213643, 20213644, 20213645, 20213646, 20213647, 20213648, 20213649, 20213650, 20213651, 20213652, 20213653, 20213654, 20213655, 20213656, 20213657, 20213658, 20213659, 20213660, 20213661, 20213662, 20213663, 20213664, 20213665, 20213666, 20213667, 20213668, 20213669, 20213670, 20213671, 20213672, 20213673, 20213674, 20213675, 20213676, 20213677, 20213678, 20213679, 20213680, 20213681, 20213682, 20213683, 20213684, 20213685, 20213686, 20213687, 20213688, 20213689, 20213690, 20213691, 20213692, 20213693, 20213694, 20213695, 20213696, 20213697, 20213698, 20213699, 20213700, 20213701, 20213702, 20213703, 20213704, 20213705, 20213706, 20213707, 20213708, 20213709, 20213710, 20213711, 20213712, 20213713, 20213714, 20213715, 20213716, 20213717, 20213718, 20213719, 20213720, 20213721, 20213722, 20213723, 20213724, 20213725, 20213726, 20213727, 20213728, 20213729, 20213730, 20213731, 20213732, 20213733, 20215851, 20215852, 20215853, 20215854, 20215855, 20215856, 20215857, 20215858, 20215859, 20215860, 20215861, 20215862, 20215863, 20215864, 20215865, 20215866, 20215867, 20215868, 20215869, 20215870, 20215871, 20215872, 20215873, 20215874, 20215875, 20215876, 20215877, 20215878, 20215879, 20215880, 20215881, 20215882, 20215883, 20215884, 20215885, 20215886, 20215887, 20215888, 20215889, 20215890, 20215891, 20215892, 20215893, 20215894, 20215895, 20215896, 20215897, 20215898, 20215899, 20215900, 20215901, 20215902, 20215903, 20215904, 20215905, 20215906, 20215907, 20215908, 20215909, 20215910, 20215911, 20215912, 20215913, 20215914, 20215915, 20215916, 20215917, 20215918, 20215919, 20215920, 20215921, 20215922, 20215923, 20215924, 20215925, 20215926, 20215927, 20215928, 20215929, 20215930, 20215931, 20215932, 20215933, 20215934, 20215935, 20215936, 20215937, 20215938, 20215939, 20215940, 20215941, 20215942, 20215943, 20215944, 20215945, 20215946, 20215947, 20215948, 20215949, 20215950, 20215951, 20215952, 20215953, 20215954, 20215955, 20215956, 20215957, 20215958, 20215959, 20215960, 20215961, 20215962, 20215963, 20215964, 20215965, 20215966, 20215967, 20215968, 20215969, 20215970, 20215971, 20215972, 20215973, 20215974, 20215975, 20215976, 20215977, 20215978, 20215979, 20215980, 20215981, 20215982, 20215983, 20215984, 20215985, 20215986, 20215987, 20215988, 20215989, 20215990, 20215991, 20215992, 20215993, 20215994, 20215995, 20215996, 20215997, 20215998, 20215999, 20216000, 20216001, 20216002, 20216003, 20216004, 20216005, 20216006, 20216007, 20216008, 20216009, 20216010, 20216011, 20216012, 20216013, 20216014, 20216015, 20216016, 20216017, 20216018, 20216019, 20216020, 20216021, 20216022, 20216023, 20216024, 20216025, 20216026, 20216027, 20216028, 20216029, 20216030, 20216031, 20216032, 20216033, 20216034, 20216035, 20216036, 20216037, 20216038, 20216039, 20216040, 20216041, 20216042, 20216043, 20216044, 20216045, 20216046, 20216047, 20216048, 20216049, 20216050, 20216051, 20216052, 20216053, 20216054, 20216055, 20216056, 20216057, 20216058, 20216059, 20216060, 20216061, 20216062, 20216063, 20216064, 20216065, 20216066, 20216067, 20216068, 20216069, 20216070, 20216071, 20216072, 20216073, 20216074, 20216075, 20216076, 20216077, 20216078, 20216079, 20216080, 20216081, 20216082, 20216083, 20216084, 20216085, 20216086, 20216087, 20216088, 20216089, 20216090, 20216091, 20216092, 20216093, 20216094, 20216095, 20216096, 20216097, 20216098, 20216099] # + _kg_hide-input=true # (train_df[(train_df.timestamp > '2016-12-31 18:00:00') & (train_df.site_id == 0)].index.tolist() + # train_df[(train_df.timestamp > '2016-12-31 14:00:00') & (train_df.site_id == 2)].index.tolist() + # train_df[(train_df.timestamp > '2016-12-31 17:00:00') & (train_df.site_id == 3)].index.tolist() + # train_df[(train_df.timestamp > '2016-12-31 15:00:00') & (train_df.site_id == 4)].index.tolist() + # train_df[(train_df.timestamp < '2016-01-01 01:00:00') & (train_df.site_id == 5)].index.tolist() + # train_df[(train_df.timestamp > '2016-12-31 17:00:00') & (train_df.site_id == 6)].index.tolist() + # train_df[(train_df.timestamp > '2016-12-31 17:00:00') & (train_df.site_id == 7)].index.tolist() + # train_df[(train_df.timestamp > '2016-12-31 18:00:00') & (train_df.site_id == 8)].index.tolist() + # train_df[(train_df.timestamp > '2016-12-31 16:00:00') & (train_df.site_id == 9)].index.tolist() + # train_df[(train_df.timestamp > '2016-12-31 15:00:00') & (train_df.site_id == 10)].index.tolist() + # train_df[(train_df.timestamp > '2016-12-31 17:00:00') & (train_df.site_id == 11)].index.tolist() + # train_df[(train_df.timestamp > '2016-12-31 16:00:00') & (train_df.site_id == 13)].index.tolist() + # train_df[(train_df.timestamp > '2016-12-31 17:00:00') & (train_df.site_id == 14)].index.tolist() + # train_df[(train_df.timestamp > '2016-12-31 17:00:00') & (train_df.site_id == 15)].index.tolist() # ) print('经过时间调整变为nan的rmse', np.sqrt(mean_squared_log_error(T_RESULTS.loc[weather_nan_id, TARGET], T_RESULTS.loc[weather_nan_id, 'kfold']))) # - del T_RESULTS gc.collect() # + # del train_df, weather_train_df # gc.collect() # train_df = pd.read_feather(root/'train.feather') print('loading...') test_df = pd.read_feather(pjoin(root, 'test.feather')) weather_test_df = pd.read_feather(pjoin(root, 'weather_test.feather')) # - # train_df = pd.concat([train_df, train_nf], axis=1) test_df = pd.concat([test_df, test_nf], axis=1) del test_nf gc.collect() # + print('preprocessing building...') test_df['date'] = test_df['timestamp'].dt.date preprocess(test_df) # test_df['building_mean'] = test_df['building_id'].map(building_mean) test_df['building_median'] = test_df['building_id'].map(building_median) # test_df['building_min'] = test_df['building_id'].map(building_min) # test_df['building_max'] = test_df['building_id'].map(building_max) # test_df['building_std'] = test_df['building_id'].map(building_std) print('preprocessing weather...') weather_test_df = timestamp_align(weather_test_df) weather_test_df = weather_test_df.groupby('site_id').apply(lambda group: group.interpolate(limit_direction='both')) weather_test_df.groupby('site_id').apply(lambda group: group.isna().sum()) add_lag_feature(weather_test_df, window=3) add_lag_feature(weather_test_df, window=72) weather_test_df = weather_test_df[weather_col] gc.collect() print('reduce mem usage...') reduce_mem_usage(test_df, use_float16=True) reduce_mem_usage(weather_test_df, use_float16=True) gc.collect() # - test_df.columns sample_submission = pd.read_feather(pjoin(root, 'sample_submission.feather')) reduce_mem_usage(sample_submission) def create_X(test_df, target_meter): target_test_df = test_df[test_df['meter'] == target_meter] target_test_df = target_test_df.merge(building_meta_df, on='building_id', how='left') target_test_df = target_test_df.merge(weather_test_df, on=['site_id', 'timestamp'], how='left') X_test = target_test_df[feature_cols + category_cols] gc.collect() return X_test def pred(X_test, models, batch_size=1000000): iterations = (X_test.shape[0] + batch_size -1) // batch_size print('iterations', iterations) y_test_pred_total = np.zeros(X_test.shape[0]) for i, model in enumerate(models): print(f'predicting {i}-th model') for k in tqdm(range(iterations)): # y_pred_test = model.predict(X_test[k*batch_size:(k+1)*batch_size], num_iteration=model.best_iteration) y_pred_test = model.predict(X_test[k*batch_size:(k+1)*batch_size]) y_test_pred_total[k*batch_size:(k+1)*batch_size] += y_pred_test y_test_pred_total /= len(models) return y_test_pred_total X_test = create_X(test_df, target_meter=0) del test_df gc.collect() for name, size in sorted(((name, sys.getsizeof(value)) for name,value in locals().items()), key= lambda x: -x[1])[:10]: print("{:>30}: {:>8}".format(name,sizeof_fmt(size))) print('Memory in Gb', get_memory_usage()) # + # %%time # X_test = create_X(test_df, target_meter=0) # gc.collect() print('开始') y_test0 = pred(X_test, models0, batch_size=500000) sns.distplot(y_test0) del X_test gc.collect() # + # # %%time # X_test = create_X(test_df, target_meter=1) # gc.collect() # y_test1 = pred(X_test, models1) # sns.distplot(y_test1) # del X_test # gc.collect() # + # # %%time # X_test = create_X(test_df, target_meter=2) # gc.collect() # y_test2 = pred(X_test, models2) # sns.distplot(y_test2) # del X_test # gc.collect() # + # X_test = create_X(test_df, target_meter=3) # gc.collect() # y_test3 = pred(X_test, models3) # sns.distplot(y_test3) # del X_test # gc.collect() # - test_df = pd.read_feather(os.path.join(root, 'test.feather')) # + # sample_submission.loc[test_df['meter'] == 0, 'meter_reading'] = np.expm1(y_test0) sample_submission.loc[test_df['meter'] == 0, 'meter_reading'] = y_test0 # sample_submission.loc[test_df['meter'] == 1, 'meter_reading'] = np.expm1(y_test1) # sample_submission.loc[test_df['meter'] == 2, 'meter_reading'] = np.expm1(y_test2) # sample_submission.loc[test_df['meter'] == 3, 'meter_reading'] = np.expm1(y_test3) # + # sample_submission['meter_reading'] = sample_submission['meter_reading'].clip(0,None) # - sample_submission # sample_submission.to_csv('submission.csv', index=False, float_format='%.4f') output_path = os.path.join('..', 'output', 'as-meter2-no-1099-xgb-meter0-fold0') sample_submission.to_csv(os.path.join(output_path, 'submission.csv'), index=False) sample_submission.head() # + # np.log1p(sample_submission['meter_reading']).hist()
191,815
/Analyses/alex-genetics-data/.ipynb_checkpoints/Alex_data-checkpoint.ipynb
962a604df0aa09e48593a14b3d86e4fc5f7ffb66
[]
no_license
loftusa/General-Projects-And-Scripts
https://github.com/loftusa/General-Projects-And-Scripts
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
91,233
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: py3 # language: python # name: py3 # --- # # Messing with alex mccoy's genetics data # + # TODO # - import pandas as pd import numpy as np import os import matplotlib.pyplot as plt pd.set_option('display.max_rows', 1000) # ## Get data, open as dataframe # - short list of genes that changed 3-fold higher or lower # - organize by treatment group df = pd.read_csv('Lodge-rna-seq-24hr-after-ketJ-L6.csv').iloc[:, [0, 1, 2, 4, 5]] df.head() # ## Filter dataframe # ### The first five ketamine vs vehicle fold change greater than 2 or less than 2 (49 total) len(df[(df.iloc[:, 1] > 2) | (df.iloc[:, 1] < -2)]) df[(df.iloc[:, 1] > 2) | (df.iloc[:, 1] < -2)] # ### all ketamine vs vehicle fold change greater than 3 df[(df.iloc[:, 1] > 3) | (df.iloc[:, 1] < -3)] # ### the first five l655 fold change greater than 2 (there are 114 total) len(df[(df.iloc[:, 3] > 2) | (df.iloc[:, 3] < -2)]) df[(df.iloc[:, 3] > 2) | (df.iloc[:, 3] < -2)] # ### all l655 fold change greater than 3 df[(df.iloc[:, 3] > 3) | (df.iloc[:, 3] < -3)]
1,253
/2_2012136111.ipynb
2696219c25457ad5ad9c860e1eb8c2d5a517fea9
[]
no_license
Wonjuny0804/18FW-Python
https://github.com/Wonjuny0804/18FW-Python
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
11,362
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # 문제1번.(미래의 요일 맞추기) 사용자가 오늘의 요일을 정수로 입력하는 프로그램을 작성하시오. # 문제에 대한 설명. 숫자를 0~6까지 사용한다면 0-일요일, 1-월요일 ....6-토요일 이라고하자. 일주일은 총 7일이다. 그러므로 오늘이 예를 들어 오늘이 1-월요일이면 일주일 뒤 1+7=8 이므로 8은 월요일이다. 이때 8은 7로 나눴을 때 나머지가 1이므로 나머지로 요일을 확인할 수 있다. 이렇게하면 일요일은 나머지가 0인 날이고 즉 7의 배수가 되는 날들 그리고 월요일은 나머지가 1, 화요일은 2, 수요일은 3...토요일은 6이된다. # # 경과일수를 요일에 더하고 7로 나눠서 나온 나머지로 경과한 날의 요일을 맞출 수 있다. # + print("****요일별 날짜****") print("0-일요일 1-월요일 2-화요일 3-수요일 4-목요일 5-금요일 6-토요일") day = input("오늘의 요일을 입력하세요:") #오늘의 요일을 day에 저장 day = eval(day) #오늘의 요일 값을 숫자로 바꿔준다. daypass = input("오늘부터 경과한 일수를 입력하세요:") #경과한 일수를 daypass에 저장 daypass = eval(daypass) #daypass의 값을 숫자로 저장 future = day + daypass #future에 미래의 요일의 숫자값을 저장 date = future % 7 #date에 7로 나눈 나머지 값을 저장 if date==0: future = '일요일' elif date==1: future = '월요일' elif date==2: future = '화요일' elif date==3: future = '수요일' elif date==4: future = '목요일' elif date==5: future = '금요일' else: future = '토요일' #나머지를 가지고 날짜를 future에 저장하는 조건문 if day==0: today = '일요일' elif day==1: today = '월요일' elif daty==2: today = '화요일' elif day==3: today = '수요일' elif day==4: today = '목요일' elif day==5: today = '금요일' else: today = '토요일' #오늘의 요일을 today에 문자로 저장하는 조건문 print("오늘은 ",today,"이고 미래의 요일은 ",future,"입니다.") #최종 출력문 # - # 문제 2번.(숫자 검사하기) 사용자로부터 하나의 정수를 입력받고, 그 정수가 5와 6 모두 나누어지는지, 5 또는 6으로 나누어지는지, 혹은 두 정수 모두로는 나누어지지 않지만 둘 중에 하나로만 나누어지는지를 검사하는 프로그램을 작성하시오 # 문제에 대한 설명. 5와 6으로 모두 나누어 떨어지면 입력 받은 수는 5와6의 공배수이다. 즉 30의 배수. 5또는 6으로 나누어 떨어지면 30의 배수에 5와 6의 배수가 포함된 것이다. 전자의 경우에는 30으로 나눠서 나머지가 0인지만 확인해 주면 되는데 후자의 경우에는 5와 6으로 나눠서 각각 나머지가 0인지 확인해주는 조건문이 필요하다. 그리고 그 나머지 값이 0이되는지 0이 아닌지에 따라서 질문 세 가지에 답할수 있는 조건문을 작성해줘야한다. # + number = eval(input("하나의 정수를 입력하세요:")) #number에 입력받은 수를 숫자값으로 저장 mod5 = number % 5 #mod5에는 5로 나눠떨어지는 확인하기 위한 나머지 값을 저장 mod6 = number % 6 #mod6에는 6으로 나눠떨어지는 확인하기 위한 나머지 값을 저장 if(mod5==0)and(mod6==0): #5와 6의 공통된 배수인지 확인하는 조건문 print(number,"은/는 5와 6으로 나누어집니까? True") else: print(number,"은/는 5와 6으로 나누어집니까? False") if(mod5==0)or(mod6==0): #5또는 6의 공통된 배수인지 확인하는 조건문 print(number,"은/는 5 혹은 6으로 나누어집니까? True") else: print(number,"은/는 5 혹은 6으로 나누어집니까? False") if(mod5==0)and(mod6==0): #5또는 6의 배수이지만 30의 배수가 아닌것 print(number,"은/는 5와 6으로 나누어지지만, 둘 모두로는 나누어지지 않습니까? False") #을 확인하는 조건문 elif(mod5==0)or(mod6==0): print(number,"은/는 5와 6으로 나누어지지만, 둘 모두로는 나누어지지 않습니까? True") else: print(number,"은/는 5와 6으로 나누어지지만, 둘 모두로는 나누어지지 않습니까? False") # - # 문제3번. 도시의 인구가 현재 30,000명이고 매년 3%비율로 늘어나고 있다. 100,000명의 인구가 될 때까지 얼마나 많은 해가 소요되는지를 계산하는 프로그램을 작성하시오. # 문제 설명. # # 1. 현재 인구는 30000명이다. # 2. 매년 증가하는 비율은 3%이므로 1.03씩 증가하고 있다. ex) 1년뒤-> 3만x1.06 = 31800 # 3. 10만명이 될때까지 얼마나 많은 해가 소요되는지 계산한다면 먼저 계속적으로 증가되는 값을 따로 저장한다.ex)future # 4. 반복문을 통해서 1.06을 곱해주는데 곱해준 수 만큼 날짜가 지난 것이므로 반복해서 돌린 i가 소요된 해가 된다. # + present = eval(input("현재의 인구수를 입력하세요:")) #현재의 인구수를 present에 저장한다. print("매년 인구 증가율은 3%입니다.") future = 1 #미래의 인구 값을 저장할 변수 count = 1 #얼마나 많은 해가 지났는지 count해줄 변수 while present < 100000: present *= 1.06 count = count+1 print(count,"년 후에 인구 10만명을 넘어섭니다.") # - # 문제4번. 양수와 음수 개수 세기 및 평균 계산하기. 불특정 개수의 정수를 읽은 후, 양수와 음수가 몇 개씩 읽혔는지 겨정하고, 입력값의 개수와 평균을 계산하는 프로그램을 작성하시오(0은 세지 않는다).프로그램은 입력값 0으로 종료된다. 평균갑을 부동소수점 숫자로 출력한다. # 문제 설명. 양수와 음수를 입력하면 그것들을 계속 읽어들이고 다른 변수에 저장해야한다. 반복문으로 계속 읽어들이면 된다. 반복문을 통해서 계속 입력을 받아들이면 그것들을 각각 양수와 음수로 구분하는 조건문이 있고 그것으로 양수와 음수의 개수를 각각 저장한다. 그리고 모든 수를 각각 더하면 총합이 나오고 받아들인 수의 개수를 총합으로 나누면 평균값이 나온다. # + num = 1 #종료키가 된는 변수 positive = 0 #양수의 개수를 저장할 변수 negative = 0 #음수의 개수를 저장할 변수 count = 0 #입력된 숫자의 개수를 저장하는 변수 total = 0 #총 입력된 숫자를 계속적으로 더해서 저장하는 변수 while num!=0: num = eval(input("정수를 입력하세요. 입력값이 0이면 종료됩니다:")) if num>0: positive += 1 count += 1 elif num<0: negative += 1 count += 1 else: break total += num #while문이 돌아가는 동안 계속적으로 저장한다. print("양수의 개수는 ",positive,"개 입니다.") print("음수의 개수는 ",negative,"개 입니다.") print("총합은",total,"입니다.") print("평균은",total/count,"입니다.") # - # 문제 5번. (최대공약수 계산하기) 예제 코드 lec05/GreatestCommonDivisor.py 에서 최대공약수를 구하는 방법을 알아보았다. 두 정수 n1 과 n2의 최대공약 수를 찾는 또 다른 해결방법은 다음과 같다. 우선, n1 과 n2 중 작은 수를 d 라고 한 후, d, d-1, d-2, …, 2, 1 의 순서로 각각 d 가 n1 과 n2 의 공약수 인지 검사한다. 첫 번째로 나타난 공약수가 두 수 n1 과 n2 의 최대공약수이 다. 이 방법으로 최대공약수를 구하는 프로그램을 작성하시오 # 문제설명. # 1. 먼저 두개의 정수를 입력 받는다 # 2. 두 개의 정수를 입력 받으면 n1, n2에 저장한다. # 3. 두 개의 정수 중에 작은 수를 d라는 변수에 저장한다. # 4. d를 n1 또는 n2로 나누어서 나누어떨어지면 d가 최대 공약수가 되겠지만 그렇지 않다면 즉 %로 나눠서 나머지가 0이 아니면 d-1,d-2..로 계속 나눈다. # 5. 나누다가 나머지가 0이 되는 값이 두 수 n1, n2의 최대공약수이다. # + n1 = eval(input("첫 번째 정수를 입력하세요:")) #n1에 첫번쨰 정수를 저장 n2 = eval(input("두 번째 정수를 입력하세요:")) #n2에 두번째 정수를 저장 d=0 #n1,n2중 작은 값을 저장할 변수 b=0 #n1,n2중 큰 값을 저장할 변수 mod=1 #mod에는 나머지 값을 저장한다. if n1 > n2: d = n2 b = n1 else: d = n1 b = n2 while mod!= 0: #mod가 0일때까지는 계속 돌아간다. mod = b % d #나눈 나머지를 mod에 저장한다. d = d-1 #나눠떨어지지 않으면 d를 계속 1씩 줄여나간다. print("최대공약수는",d+1,"입니다.") # - # 문제6번. (윤년 출력하기) 21 세기(2001 년부터 2100 년까지)의 모든 윤년 을 한 행에 10 개씩 출력하는 프로그램을 작성하시오. 연도는 단 공백 한 개 로 구분된다. # 윤년은 윤달이나 윤날이 드는 해라고 해서 2월 29일이 있는 날이다. 4년마다 한 번씩 찾아온다. 우리나라에서는 2000년이 윤년이였다. 2000->2004->2008...->2020...>2100이다. # # 1. 2000년부터 시작이므로 2000에 계속 4를 더한다. # 2. 한 행에 10개씩 출력해야되므로 count를 0부터 9까지 돌린다 # 3. count가 9가 되면 행을 바꾸고 count를 9로 초기화한다 # 4. leap(윤년 변수)가 2100을 넘어서면 더 이상 출력하지 않고 break한다. # + count = 0 #10개 씩 출력하기 위한 변수 leap = 2000 #leap는 윤년의 정보를 저장하는 변수 while leap < 2100: leap += 4 print(leap,end=' ') #줄바꾸지 않게하는 end=' ' if leap > 2100: break else: count += 1 if count == 10: print(" ") #줄바꿔주는print(" ") count = 0 #이중 조건문을 사용해서 count를 10가 되면 0으로 초기화한다. # -
6,660
/programming/.ipynb_checkpoints/Uso de Variáveis-checkpoint.ipynb
0bce7b887a22db4cb4ffadf9d52326a8e2cdb0ac
[]
no_license
ThiagoVsky/courses
https://github.com/ThiagoVsky/courses
0
0
null
2018-03-15T13:11:04
2018-03-14T15:32:11
null
Jupyter Notebook
false
false
.py
14,974
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # # Variáveis # ___ # ## Introdução # Considere a seguinte tabela de salários: # # | Funcionário | Salário Atual | # |:---:|:---:| # | A | 1000 | # | B | 1200 | # | C | 1500 | # # Foi solicitado ao analista que seja desenvolvido um programa para cálculo dos novos salários. Supondo que os salários tiveram um aumento de 20% no último mês, considere o seguinte código para cálculo dos novos salários: # + # Salário 1 print("O novo salário do funcionário 1 é:",(1000 * 1.20)) # Salário 2 print("O novo salário do funcionário 2 é:",(1200 * 1.20)) # Salário 3 print("O novo salário do funcionário 3 é:",(1500 * 1.20)) # - # No ano seguinte, a alíquota de aumento dos salários foi de 12%. Qual seria o procedimento a ser adotado para refletir essa alteração? No caso do código acima, cada linha deveria ser alterada: # + # Salário 1 print("O novo salário do funcionário 1 é:",(1000 * 1.12)) # Salário 2 print("O novo salário do funcionário 2 é:",(1200 * 1.12)) # Salário 3 print("O novo salário do funcionário 3 é:",(1500 * 1.12)) # - # O mais correto seria usar um elemento que armazenasse o percentual de aumento e usá-lo no código: # + # elemento que armazenará o percentual de aumento (12% somado a 1.00) aumento = 1.12 # Salário 1 print("O novo salário do funcionário 1 é:",(1000 * aumento)) # Salário 2 print("O novo salário do funcionário 2 é:",(1200 * aumento)) # Salário 3 print("O novo salário do funcionário 3 é:",(1500 * aumento)) # - # Note que, caso haja uma alíquota diferente no outro ano, basta alterar uma linha de código e não três, como nas células anteriores. Esse elemento, que armazena valores para serem usados ao longo do código, é conhecido como **variável**. # ## Definições # Uma variável nada mais é que uma espécie de *container* que armazenará um valor em memória. Algumas características importantes sobre variáveis: # # - Uma variável contém o nome e o valor que armazena em determinado momento # - O valor pode ser alterado # - Variáveis podem ser de diferentes tipos (texto, número, data, etc) # - Uma variável pode ser usada em diferentes partes do código # - O valor de uma variável pode ser copiado para outra, sobrescrevendo o valor anterior # ## Nomes de Variáveis # | Exemplo | Pode? | Por que? | # |:---:|:---:|:---:| # | nome do professor | NÃO | Não se usa espaço | # | nome_do_professor | SIM | Pode usar underscore | # | nome-do-professor | NÃO | Não pode usar hífen | # | 1nome | NÃO | Não pode usar número no início do nome da variável | # | nome1 | SIM | Com exceção do início, pode-se usar números no meio ou fim | # | \$nome | NÃO | O único caracter possível é _ # # Experimente na célula abaixo criar uma variável para cada exemplo acima e verifique as mensagens de erro: # # + # teste os exemplos de nomes de variáveis aqui # - # Python, assim como Java, é *case sensitive*, ou seja, diferencia letras maiúsculas de minúsculas: # + nome = "Fernando" Nome = "Python" # O que será impresso? Fernando ou Python? print(Nome) # - # ## Atribuição # A operação de armazenar um valor em uma variável é chamada de **atribuição** e é feita com o operador de igual (=). Atenção para o fato de que boa parte das linguagens de programação a operação de atribuição é feita com = e a operação de comparação de igualdade é feita com ==. # + i = 3 # lê-se: a variável i recebe o valor 3 # verificando o valor de i print(i) # armazena na variável comparação (i==3), que no caso seria verdadeiro comparacao = (i==3) # verificando o valor de comparacao print(comparacao) # - # Implemente na célula abaixo uma variável que receba a sua idade. Na linha seguinte faça a impressão: # + # crie uma variável chamada minhaIdade e atribua a sua idade a essa variável # implemente abaixo a instrução para imprimir o valor dessa variável # - # Em Python, podem ser feitas atribuições em lote, ou seja, uma atribuição para três variáveis diferentes: # + i = j = k = 1 print(i) print(j) print(k) # - # ## Exemplos # Considere o código abaixo: i = 3 j = 5 print(i+j) # Teria outra forma de melhorar o código acima? E se a soma de i e j fosse ser usada em outro lugar no código. Não seria o caso de se criar uma outra variável apenas para o resultado? i = 3 j = 5 soma = i + j print(soma) # Note que, embora o código tenha aumentado em uma linha, o valor da soma de i e j pode ser usado em outras partes do código. Agora considere o código abaixo: # + i = 3 j = 5 soma = i + j print("O resultado é:", soma) produto = i * j print("O resultado é:", produto) # - # Note que os valores de i e j foram usados em diferentes partes do código, para as operações de soma e multiplicação. No entanto, ainda há possibilidades de melhorar esse código com o uso de variáveis. Como você faria? Implemente na célula abaixo: # + # implemente aqui # - # Agora considere a seguinte sequência de instruções: # + i = 4 j = 5 soma = i + j k = 3 soma = k print(soma) # - # Qual será o valor final da variável soma? Execute o código acima para responder a questão. # A instrução # ```python # print(soma) # ``` # irá imprimir o valor 3 pois, embora a variável soma tenha recebido o valor da soma de i e j, logo após dessa instrução a variável soma recebe uma cópia do valor que está na variável k, através da instrução: # # ```python # soma = k # ``` # A instrução acima basicamente executa o seguinte *copie o valor da variável k dentro da variável soma*. Isso quer dizer que tanto a variável *soma* quanto a variável *k* terão o valor *3* após o final da execução desse trecho de código. Para entender melhor, verifique o estado de cada uma ao longo da execução do código: # | | Instrução | i | j | soma | k | # |:---:| :---:| :---: | :---: | :---: | :---: | # | 1 | i = 4| 4 | - | - | - | # | 2 | j = 5| 4 | 5 | - | - | # | 3 | soma = i + j| 4 | 5 | 9 | - | # | 4 | k = 3| 4 | 5 | 9 | 3 | # | 5 | soma = k| 4 | 9 | 3 | 3 | # # Note que, ao final da execução da linha 5, o valor da variável soma muda de 9 para 3. Além disso, o fato do valor da variável k ser copiado para a variável soma, não implica que o valor k perderá o seu valor, continuando com o valor 3 ao final da execução da linha. # ## Tipos # + i = 3 j = 6 soma = i + j print("A soma é:", soma) i = "Python" print("Você está programando em:", i) # - # O que aconteceu com a variável i? Por que ela armazenou os valores 3 e "Python" sem dar erro, já que 3 é do tipo int e "Python" é do tipo String? # Ao contrário de linguagens como Java, não há necessidade de definir o tipo da variável de forma antecipada. Python irá inferir o tipo de acordo com o valor que está dentro dela: i = 3 # int i = "Python" # string i = False # boolean i = 3.0 # float i = 0XF # hexadecimal i = 0B10 # binário # ## Exercícios # ** Ex 1: Crie um programa que some dois números, usando uma variável para cada valor manipulado no cálculo. ** # + # implemente aqui # - # ** Ex 2: Implemente um programa que, dado o nome do usuário, imprima uma mensagem ("Bom dia"/"Boa noite"). Use tantas variáveis quanto forem necessárias.** # + # implemente aqui # - # ** Ex 3: Modifique o programa abaixo, de modo que se troque os números por variáveis.** # + media = (6 + 8)/2 if (media>=6): print("Aluno aprovado") else: print("Aluno reprovado") # - # ** Ex 4: Qual o valor final da variável z?** x = 1 y = x + 1 z = y + x print(z) # ** Ex 5: Use a função type() para descobrir o tipo de cada uma das variáveis abaixo. ** i = 3.0 j = 4 k = 0xAF l = "Python" m = (4 == 6) print("i ",type(i)) print("j ",type(j)) n = False print('k ',type(k),k) print('l ',type(l)) print('m ',type(m)) print('n ',type(n)) print('t ',type(type(k)))
7,921
/PythonLab_2/code/Linear regression.ipynb
79a60126cfa0ddae8d5b27d2935cc1fb532d1f2f
[]
no_license
Jakkula134/PythonICPs
https://github.com/Jakkula134/PythonICPs
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
5,324,210
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # name: python3 # --- # + id="HQAUhoXIUNYp" colab_type="code" outputId="c144fd79-7bf2-4e0a-80f9-c381a25f0289" executionInfo={"status": "ok", "timestamp": 1589095484869, "user_tz": 300, "elapsed": 9407, "user": {"displayName": "Sai Tejaswi K", "photoUrl": "https://lh3.googleusercontent.com/a-/AOh14GjazYsScRsH1gybaeda9DLBjRoDYSbZRSrtb_hL=s64", "userId": "03908401170557800418"}} colab={"base_uri": "https://localhost:8080/", "height": 1000} import numpy import pandas from keras.models import Sequential from keras.layers import Dense, Dropout from keras.wrappers.scikit_learn import KerasRegressor from sklearn.model_selection import cross_val_score from sklearn.model_selection import KFold from sklearn.preprocessing import StandardScaler from sklearn.pipeline import Pipeline import pandas as pd from keras.optimizers import SGD, Adam, Adamax from sklearn.model_selection import train_test_split from keras.callbacks import TensorBoard from sklearn.preprocessing import LabelEncoder from keras import metrics import matplotlib.pyplot as plt dataset=pd.read_csv('/content/drive/My Drive/Colab Notebooks/insurance.csv') le = LabelEncoder() dataset['region'] = le.fit_transform(dataset['region'].astype('str')) dataset['sex'] = le.fit_transform(dataset['sex'].astype('str')) dataset['smoker'] = le.fit_transform(dataset['smoker'].astype('str')) print(dataset.head()) # dataset = dataset.values # split into input (X) and output (Y) variables X = dataset.iloc[:,0:6] Y = dataset.iloc[:,6] X_train, X_test, Y_train, Y_test = train_test_split(X, Y, test_size=0.25, random_state=100) # HyperParameters2 activation_function="tanh" learning_rate=0.1 epochs=50 b_size=32 decay_rate= learning_rate / epochs adam= Adam(lr=learning_rate, decay=decay_rate) #Define the model model = Sequential() model.add(Dense(50, input_dim = 6, activation=activation_function)) model.add(Dropout(0.1)) model.add(Dense(20, activation=activation_function)) model.add(Dense(10, activation=activation_function)) model.add(Dense(1,input_dim = 6, activation=activation_function)) model.compile(optimizer = "Adamax", loss = 'mean_squared_error', metrics = [metrics.mae]) tbCallBack = TensorBoard(log_dir='./Graph1', histogram_freq=0, write_graph=True, write_images=True) hist = model.fit(X_train, Y_train, validation_data=(X_test, Y_test), epochs=epochs, batch_size=b_size,callbacks=[tbCallBack]) # Final evaluation of the model mae, loss= model.evaluate(X_test, Y_test, verbose=0) print(mae, loss) # accuracy history plt.plot(hist.history['mean_absolute_error']) plt.plot(hist.history['val_mean_absolute_error']) plt.title('model mae') plt.ylabel('mae') plt.xlabel('epoch') plt.legend(['train', 'test'], loc='upper left') plt.show() # loss plt.plot(hist.history['loss']) plt.plot(hist.history['val_loss']) plt.title('model loss') plt.ylabel('loss') plt.xlabel('epoch') plt.legend(['train', 'test'], loc='upper left') plt.show() # + id="jXFQGAMuVDAj" colab_type="code" outputId="a329f9b4-5f4e-45ae-dc37-50b7fdab892f" executionInfo={"status": "ok", "timestamp": 1589009265366, "user_tz": 300, "elapsed": 3859, "user": {"displayName": "Sai Tejaswi K", "photoUrl": "https://lh3.googleusercontent.com/a-/AOh14GjazYsScRsH1gybaeda9DLBjRoDYSbZRSrtb_hL=s64", "userId": "03908401170557800418"}} colab={"resources": {"https://localhost:6006/": {"data": "PCFkb2N0eXBlIGh0bWw+PCEtLQpAbGljZW5zZQpDb3B5cmlnaHQgMjAxNiBUaGUgVGVuc29yRmxvdyBBdXRob3JzLiBBbGwgUmlnaHRzIFJlc2VydmVkLgoKTGljZW5zZWQgdW5kZXIgdGhlIEFwYWNoZSBMaWNlbnNlLCBWZXJzaW9uIDIuMCAodGhlICJMaWNlbnNlIik7CnlvdSBtYXkgbm90IHVzZSB0aGlzIGZpbGUgZXhjZXB0IGluIGNvbXBsaWFuY2Ugd2l0aCB0aGUgTGljZW5zZS4KWW91IG1heSBvYnRhaW4gYSBjb3B5IG9mIHRoZSBMaWNlbnNlIGF0CgogICAgaHR0cDovL3d3dy5hcGFjaGUub3JnL2xp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g7CiAgICAgICAgZGlzcGxheTogLXdlYmtpdC1mbGV4OwogICAgICAgIGRpc3BsYXk6IGZsZXg7CiAgICAgIH07CgogICAgICAtLWxheW91dC1pbmxpbmU6IHsKICAgICAgICBkaXNwbGF5OiAtbXMtaW5saW5lLWZsZXhib3g7CiAgICAgICAgZGlzcGxheTogLXdlYmtpdC1pbmxpbmUtZmxleDsKICAgICAgICBkaXNwbGF5OiBpbmxpbmUtZmxleDsKICAgICAgfTsKCiAgICAgIC0tbGF5b3V0LWhvcml6b250YWw6IHsKICAgICAgICBAYXBwbHkgLS1sYXlvdXQ7CgogICAgICAgIC1tcy1mbGV4LWRpcmVjdGlvbjogcm93OwogICAgICAgIC13ZWJraXQtZmxleC1kaXJlY3Rpb246IHJvdzsKICAgICAgICBmbGV4LWRpcmVjdGlvbjogcm93OwogICAgICB9OwoKICAgICAgLS1sYXlvdXQtaG9yaXpvbnRhbC1yZXZlcnNlOiB7CiAgICAgICAgQGFwcGx5IC0tbGF5b3V0OwoKICAgICAgICAtbXMtZmxleC1kaXJlY3Rpb246IHJvdy1yZXZlcnNlOwogICAgICAgIC13ZWJraXQtZmxleC1kaXJlY3Rpb246IHJvdy1yZXZlcnNlOwogICAgICAgIGZsZXgtZGlyZWN0aW9uOiByb3ctcmV2ZXJzZTsKICAgICAgfTsKCiAgICAgIC0tbGF5b3V0LXZlcnRpY2FsOiB7CiAgICAgICAgQGFwcGx5IC0tbGF5b3V0OwoKICAgICAgICAtbXMtZmxleC1kaXJlY3Rpb246IGNvbHVtbjsKICAgICAgICAtd2Via2l0LWZsZXgtZGlyZWN0aW9uOiBjb2x1bW47CiAgICAgICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjsKICAgICAgfTsKCiAgICAgIC0tbGF5b3V0LXZlcnRpY2FsLXJldmVyc2U6IHsKICAgICAgICBAYXBwbHkgLS1sYXlvdXQ7CgogICAgICAgIC1tcy1mbGV4LWRpcmVjdGlvbjogY29sdW1uLXJldmVyc2U7CiAgICAgICAgLXdlYmtpdC1mbGV4LWRpcmVjdGlvbjogY29sdW1uLXJldmVyc2U7CiAgICAgICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbi1yZXZlcnNlOwogICAgICB9OwoKICAgICAgLS1sYXlvdXQtd3JhcDogewogICAgICAgIC1tcy1mbGV4LXdyYXA6IHdyYXA7CiAgICAgICAgLXdlYmtpdC1mbGV4LXdyYXA6IHdyYXA7CiAgICAgICAgZmxleC13cmFwOiB3cmFwOwogICAgICB9OwoKICAgICAgLS1sYXlvdXQtd3JhcC1yZXZlcnNlOiB7CiAgICAgICAgLW1zLWZsZXgtd3JhcDogd3JhcC1yZXZlcnNlOwogICAgICAgIC13ZWJraXQtZmxleC13cmFwOiB3cmFwLXJldmVyc2U7CiAgICAgICAgZmxleC13cmFwOiB3cmFwLXJldmVyc2U7CiAgICAgIH07CgogICAgICAtLWxheW91dC1mbGV4LWF1dG86IHsKICAgICAgICAtbXMtZmxleDogMSAxIGF1dG87CiAgICAgICAgLXdlYmtpdC1mbGV4OiAxIDEgYXV0bzsKICAgICAgICBmbGV4OiAxIDEgYXV0bzsKICAgICAgfTsKCiAgICAgIC0tbGF5b3V0LWZsZXgtbm9uZTogewogICAgICAgIC1tcy1mbGV4OiBub25lOwogICAgICAgIC13ZWJraXQtZmxleDogbm9uZTsKICAgICAgICBmbGV4OiBub25lOwogICAgICB9OwoKICAgICAgLS1sYXlvdXQtZmxleDogewogICAgICAgIC1tcy1mbGV4OiAxIDEgMC4wMDAwMDAwMDFweDsKICAgICAgICAtd2Via2l0LWZsZXg6IDE7CiAgICAgICAgZmxleDogMTsKICAgICAgICAtd2Via2l0LWZsZXgtYmFzaXM6IDAuMDAwMDAwMDAxcHg7CiAgICAgICAgZmxleC1iYXNpczogMC4wMDAwMDAwMDFweDsKICAgICAgfTsKCiAgICAgIC0tbGF5b3V0LWZsZXgtMjogewogICAgICAgIC1tcy1mbGV4OiAyOwogICAgICAgIC13ZWJraXQtZmxleDogMjsKICAgICAgICBmbGV4OiAyOwogICAgICB9OwoKICAgICAgLS1sYXlvdXQtZmxleC0zOiB7CiAgICAgICAgLW1zLWZsZXg6IDM7CiAgICAgICAgLXdlYmtpdC1mbGV4OiAzOwogICAgICAgIGZsZXg6IDM7CiAgICAgIH07CgogICAgICAtLWxheW91dC1mbGV4LTQ6IHsKICAgICAgICAtbXMtZmxleDogNDsKICAgICAgICAtd2Via2l0LWZsZXg6IDQ7CiAgICAgICAgZmxleDogNDsKICAgICAgfTsKCiAgICAgIC0tbGF5b3V0LWZsZXgtNTogewogICAgICAgIC1tcy1mbGV4OiA1OwogICAgICAgIC13ZWJraXQtZmxleDogNTsKICAgICAgICBmbGV4OiA1OwogICAgICB9OwoKICAgICAgLS1sYXlvdXQtZmxleC02OiB7CiAgICAgICAgLW1zLWZsZXg6IDY7CiAgICAgICAgLXdlYmtpdC1mbGV4OiA2OwogICAgICAgIGZsZXg6IDY7CiAgICAgIH07CgogICAgICAtLWxheW91dC1mbGV4LTc6IHsKICAgICAgICAtbXMtZmxleDogNzsKICAgICAgICAtd2Via2l0LWZsZXg6IDc7CiAgICAgICAgZmxleDogNzsKICAgICAgfTsKCiAgICAgIC0tbGF5b3V0LWZsZXgtODogewogICAgICAgIC1tcy1mbGV4OiA4OwogICAgICAgIC13ZWJraXQtZmxleDogODsKICAgICAgICBmbGV4OiA4OwogICAgICB9OwoKICAgICAgLS1sYXlvdXQtZmxleC05OiB7CiAgICAgICAgLW1zLWZsZXg6IDk7CiAgICAgICAgLXdlYmtpdC1mbGV4OiA5OwogICAgICAgIGZsZXg6IDk7CiAgICAgIH07CgogICAgICAtLWxheW91dC1mbGV4LTEwOiB7CiAgICAgICAgLW1zLWZsZXg6IDEwOwogICAgICAgIC13ZWJraXQtZmxleDogMTA7CiAgICAgICAgZmxleDogMTA7CiAgICAgIH07CgogICAgICAtLWxheW91dC1mbGV4LTExOiB7CiAgICAgICAgLW1zLWZsZXg6IDExOwogICAgICAgIC13ZWJraXQtZmxleDogMTE7CiAgICAgICAgZmxleDogMTE7CiAgICAgIH07CgogICAgICAtLWxheW91dC1mbGV4LTEyOiB7CiAgICAgICAgLW1zLWZsZXg6IDEyOwogICAgICAgIC13ZWJraXQtZmxleDogMTI7CiAgICAgICAgZmxleDogMTI7CiAgICAgIH07CgogICAgICAvKiBhbGlnbm1lbnQgaW4gY3Jvc3MgYXhpcyAqLwoKICAgICAgLS1sYXlvdXQtc3RhcnQ6IHsKICAgICAgICAtbXMtZmxleC1hbGlnbjogc3RhcnQ7CiAgICAgICAgLXdlYmtpdC1hbGlnbi1pdGVtczogZmxleC1zdGFydDsKICAgICAgICBhbGlnbi1pdGVtczogZmxleC1zdGFydDsKICAgICAgfTsKCiAgICAgIC0tbGF5b3V0LWNlbnRlcjogewogICAgICAgIC1tcy1mbGV4LWFsaWduOiBjZW50ZXI7CiAgICAgICAgLXdlYmtpdC1hbGlnbi1pdGVtczogY2VudGVyOwogICAgICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7CiAgICAgIH07CgogICAgICAtLWxheW91dC1lbmQ6IHsKICAgICAgICAtbXMtZmxleC1hbGlnbjogZW5kOwogICAgICAgIC13ZWJraXQtYWxpZ24taXRlbXM6IGZsZXgtZW5kOwogICAgICAgIGFsaWduLWl0ZW1zOiBmbGV4LWVuZDsKICAgICAgfTsKCiAgICAgIC0tbGF5b3V0LWJhc2VsaW5lOiB7CiAgICAgICAgLW1zLWZsZXgtYWxpZ246IGJhc2VsaW5lOwogICAgICAgIC13ZWJraXQtYWxpZ24taXRlbXM6IGJhc2VsaW5lOwogICAgICAgIGFsaWduLWl0ZW1zOiBiYXNlbGluZTsKICAgICAgfTsKCiAgICAgIC8qIGFsaWdubWVudCBpbiBtYWluIGF4aXMgKi8KCiAgICAgIC0tbGF5b3V0LXN0YXJ0LWp1c3RpZmllZDogewogICAgICAgIC1tcy1mbGV4LXBhY2s6IHN0YXJ0OwogICAgICAgIC13ZWJraXQtanVzdGlmeS1jb250ZW50OiBmbGV4LXN0YXJ0OwogICAgICAgIGp1c3RpZnktY29udGVudDogZmxleC1zdGFydDsKICAgICAgfTsKCiAgICAgIC0tbGF5b3V0LWNlbnRlci1qdXN0aWZpZWQ6IHsKICAgICAgICAtbXMtZmxleC1wYWNrOiBjZW50ZXI7CiAgICAgICAgLXdlYmtpdC1qdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjsKICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjsKICAgICAgfTsKCiAgICAgIC0tbGF5b3V0LWVuZC1qdXN0aWZpZWQ6IHsKICAgICAgICAtbXMtZmxleC1wYWNrOiBlbmQ7CiAgICAgICAgLXdlYmtpdC1qdXN0aWZ5LWNvbnRlbnQ6IGZsZXgtZW5kOwogICAgICAgIGp1c3RpZnktY29udGVudDogZmxleC1lbmQ7CiAgICAgIH07CgogICAgICAtLWxheW91dC1hcm91bmQtanVzdGlmaWVkOiB7CiAgICAgICAgLW1zLWZsZXgtcGFjazogZGlzdHJpYnV0ZTsKICAgICAgICAtd2Via2l0LWp1c3RpZnktY29udGVudDogc3BhY2UtYXJvdW5kOwogICAgICAgIGp1c3RpZnktY29udGVudDogc3BhY2UtYXJvdW5kOwogICAgICB9OwoKICAgICAgLS1sYXlvdXQtanVzdGlmaWVkOiB7CiAgICAgICAgLW1zLWZsZXgtcGFjazoganVzdGlmeTsKICAgICAgICAtd2Via2l0LWp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2VlbjsKICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47CiAgICAgIH07CgogICAgICAtLWxheW91dC1jZW50ZXItY2VudGVyOiB7CiAgICAgICAgQGFwcGx5IC0tbGF5b3V0LWNlbnRlcjsKICAgICAgICBAYXBwbHkgLS1sYXlvdXQtY2VudGVyLWp1c3RpZmllZDsKICAgICAgfTsKCiAgICAgIC8qIHNlbGYgYWxpZ25tZW50ICovCgogICAgICAtLWxheW91dC1zZWxmLXN0YXJ0OiB7CiAgICAgICAgLW1zLWFsaWduLXNlbGY6IGZsZXgtc3RhcnQ7CiAgICAgICAgLXdlYmtpdC1hbGlnbi1zZWxmOiBmbGV4LXN0YXJ0OwogICAgICAgIGFsaWduLXNlbGY6IGZsZXgtc3RhcnQ7CiAgICAgIH07CgogICAgICAtLWxheW91dC1zZWxmLWNlbnRlcjogewogICAgICAgIC1tcy1hbGlnbi1zZWxmOiBjZW50ZXI7CiAgICAgICAgLXdlYmtpdC1hbGlnbi1zZWxmOiBjZW50ZXI7CiAgICAgICAgYWxpZ24tc2VsZjogY2VudGVyOwogICAgICB9OwoKICAgICAgLS1sYXlvdXQtc2VsZi1lbmQ6IHsKICAgICAgICAtbXMtYWxpZ24tc2VsZjogZmxleC1lbmQ7CiAgICAgICAgLXdlYmtpdC1hbGlnbi1zZWxmOiBmbGV4LWVuZDsKICAgICAgICBhbGlnbi1zZWxmOiBmbGV4LWVuZDsKICAgICAgfTsKCiAgICAgIC0tbGF5b3V0LXNlbGYtc3RyZXRjaDogewogICAgICAgIC1tcy1hbGlnbi1zZWxmOiBzdHJldGNoOwogICAgICAgIC13ZWJraXQtYWxpZ24tc2VsZjogc3RyZXRjaDsKICAgICAgICBhbGlnbi1zZWxmOiBzdHJldGNoOwogICAgICB9OwoKICAgICAgLS1sYXlvdXQtc2VsZi1iYXNlbGluZTogewogICAgICAgIC1tcy1hbGlnbi1zZWxmOiBiYXNlbGluZTsKICAgICAgICAtd2Via2l0LWFsaWduLXNlbGY6IGJhc2VsaW5lOwogICAgICAgIGFsaWduLXNlbGY6IGJhc2VsaW5lOwogICAgICB9OwoKICAgICAgLyogbXVsdGktbGluZSBhbGlnbm1lbnQgaW4gbWFpbiBheGlzICovCgogICAgICAtLWxheW91dC1zdGFydC1hbGlnbmVkOiB7CiAgICAgICAgLW1zLWZsZXgtbGluZS1wYWNrOiBzdGFydDsgIC8qIElFMTAgKi8KICAgICAgICAtbXMtYWxpZ24tY29udGVudDogZmxleC1zdGFydDsKICAgICAgICAtd2Via2l0LWFsaWduLWNvbnRlbnQ6IGZsZXgtc3RhcnQ7CiAgICAgICAgYWxpZ24tY29udGVudDogZmxleC1zdGFydDsKICAgICAgfTsKCiAgICAgIC0tbGF5b3V0LWVuZC1hbGlnbmVkOiB7CiAgICAgICAgLW1zLWZsZXgtbGluZS1wYWNrOiBlbmQ7ICAvKiBJRTEwICovCiAgICAgICAgLW1zLWFsaWduLWNvbnRlbnQ6IGZsZXgtZW5kOwogICAgICAgIC13ZWJraXQtYWxpZ24tY29udGVudDogZmxleC1lbmQ7CiAgICAgICAgYWxpZ24tY29udGVudDogZmxleC1lbmQ7CiAgICAgIH07CgogICAgICAtLWxheW91dC1jZW50ZXItYWxpZ25lZDogewogICAgICAgIC1tcy1mbGV4LWxpbmUtcGFjazogY2VudGVyOyAgLyogSUUxMCAqLwogICAgICAgIC1tcy1hbGlnbi1jb250ZW50OiBjZW50ZXI7CiAgICAgICAgLXdlYmtpdC1hbGlnbi1jb250ZW50OiBjZW50ZXI7CiAgICAgICAgYWxpZ24tY29udGVudDogY2VudGVyOwogICAgICB9OwoKICAgICAgLS1sYXlvdXQtYmV0d2Vlbi1hbGlnbmVkOiB7CiAgICAgICAgLW1zLWZsZXgtbGluZS1wYWNrOiBqdXN0aWZ5OyAgLyogSUUxMCAqLwogICAgICAgIC1tcy1hbGlnbi1jb250ZW50OiBzcGFjZS1iZXR3ZWVuOwogICAgICAgIC13ZWJraXQtYWxpZ24tY29udGVudDogc3BhY2UtYmV0d2VlbjsKICAgICAgICBhbGlnbi1jb250ZW50OiBzcGFjZS1iZXR3ZWVuOwogICAgICB9OwoKICAgICAgLS1sYXlvdXQtYXJvdW5kLWFsaWduZWQ6IHsKICAgICAgICAtbXMtZmxleC1saW5lLXBhY2s6IGRpc3RyaWJ1dGU7ICAvKiBJRTEwICovCiAgICAgICAgLW1zLWFsaWduLWNvbnRlbnQ6IHNwYWNlLWFyb3VuZDsKICAgICAgICAtd2Via2l0LWFsaWduLWNvbnRlbnQ6IHNwYWNlLWFyb3VuZDsKICAgICAgICBhbGlnbi1jb250ZW50OiBzcGFjZS1hcm91bmQ7CiAgICAgIH07CgogICAgICAvKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKgogICAgICAgICAgICAgICAgT3RoZXIgTGF5b3V0CiAgICAgICoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiovCgogICAgICAtLWxheW91dC1ibG9jazogewogICAgICAgIGRpc3BsYXk6IGJsb2NrOwogICAgICB9OwoKICAgICAgLS1sYXlvdXQtaW52aXNpYmxlOiB7CiAgICAgICAgdmlzaWJpbGl0eTogaGlkZGVuICFpbXBvcnRhbnQ7CiAgICAgIH07CgogICAgICAtLWxheW91dC1yZWxhdGl2ZTogewogICAgICAgIHBvc2l0aW9uOiByZWxhdGl2ZTsKICAgICAgfTsKCiAgICAgIC0tbGF5b3V0LWZpdDogewogICAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTsKICAgICAgICB0b3A6IDA7CiAgICAgICAgcmlnaHQ6IDA7CiAgICAgICAgYm90dG9tOiAwOwogICAgICAgIGxlZnQ6IDA7CiAgICAgIH07CgogICAgICAtLWxheW91dC1zY3JvbGw6IHsKICAgICAgICAtd2Via2l0LW92ZXJmbG93LXNjcm9sbGluZzogdG91Y2g7CiAgICAgICAgb3ZlcmZsb3c6IGF1dG87CiAgICAgIH07CgogICAgICAtLWxheW91dC1mdWxsYmxlZWQ6IHsKICAgICAgICBtYXJnaW46IDA7CiAgICAgICAgaGVpZ2h0OiAxMDB2aDsKICAgICAgfTsKCiAgICAgIC8qIGZpeGVkIHBvc2l0aW9uICovCgogICAgICAtLWxheW91dC1maXhlZC10b3A6IHsKICAgICAgICBwb3NpdGlvbjogZml4ZWQ7CiAgICAgICAgdG9wOiAwOwogICAgICAgIGxlZnQ6IDA7CiAgICAgICAgcmlnaHQ6IDA7CiAgICAgIH07CgogICAgICAtLWxheW91dC1maXhlZC1yaWdodDogewogICAgICAgIHBvc2l0aW9uOiBmaXhlZDsKICAgICAgICB0b3A6IDA7CiAgICAgICAgcmlnaHQ6IDA7CiAgICAgICAgYm90dG9tOiAwOwogICAgICB9OwoKICAgICAgLS1sYXlvdXQtZml4ZWQtYm90dG9tOiB7CiAgICAgICAgcG9zaXRpb246IGZpeGVkOwogICAgICAgIHJpZ2h0OiAwOwogICAgICAgIGJvdHRvbTogMDsKICAgICAgICBsZWZ0OiAwOwogICAgICB9OwoKICAgICAgLS1sYXlvdXQtZml4ZWQtbGVmdDogewogICAgICAgIHBvc2l0aW9uOiBmaXhlZDsKICAgICAgICB0b3A6IDA7CiAgICAgICAgYm90dG9tOiAwOwogICAgICAgIGxlZnQ6IDA7CiAgICAgIH07CgogICAgfQogIDwvc3R5bGU+CjwvY3VzdG9tLXN0eWxlPgoKCgoKCgoKCgoKCgoKCgoKCgoKCgo8ZG9tLW1vZHVsZSBpZD0icGFwZXItcmlwcGxlIj4KCiAgPHRlbXBsYXRlPgogICAgPHN0eWxlPgogICAgICA6aG9zdCB7CiAgICAgICAgZGlzcGxheTogYmxvY2s7CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgIGJvcmRlci1yYWRpdXM6IGluaGVyaXQ7CiAgICAgICAgb3ZlcmZsb3c6IGhpZGRlbjsKICAgICAgICB0b3A6IDA7CiAgICAgICAgbGVmdDogMDsKICAgICAgICByaWdodDogMDsKICAgICAgICBib3R0b206IDA7CgogICAgICAgIC8qIFNlZSBQb2x5bWVyRWxlbWVudHMvcGFwZXItYmVoYXZpb3JzL2lzc3Vlcy8zNC4gT24gbm9uLUNocm9tZSBicm93c2VycywKICAgICAgICAgKiBjcmVhdGluZyBhIG5vZGUgKHdpdGggYSBwb3NpdGlvbjphYnNvbHV0ZSkgaW4gdGhlIG1pZGRsZSBvZiBhbiBldmVudAogICAgICAgICAqIGhhbmRsZXIgImludGVycnVwdHMiIHRoYXQgZXZlbnQgaGFuZGxlciAod2hpY2ggaGFwcGVucyB3aGVuIHRoZQogICAgICAgICAqIHJpcHBsZSBpcyBjcmVhdGVkIG9uIGRlbWFuZCkgKi8KICAgICAgICBwb2ludGVyLWV2ZW50czogbm9uZTsKICAgICAgfQoKICAgICAgOmhvc3QoW2FuaW1hdGluZ10pIHsKICAgICAgICAvKiBUaGlzIHJlc29sdmVzIGEgcmVuZGVyaW5nIGlzc3VlIGluIENocm9tZSAoYXMgb2YgNDApIHdoZXJlIHRoZQogICAgICAgICAgIHJpcHBsZSBpcyBub3QgcHJvcGVybHkgY2xpcHBlZCBieSBpdHMgcGFyZW50ICh3aGljaCBtYXkgaGF2ZQogICAgICAgICAgIHJvdW5kZWQgY29ybmVycykuIFNlZTogaHR0cDovL2pzYmluLmNvbS90ZW1leGEvNAoKICAgICAgICAgICBOb3RlOiBXZSBvbmx5IGFwcGx5IHRoaXMgc3R5bGUgY29uZGl0aW9uYWxseS4gT3RoZXJ3aXNlLCB0aGUgYnJvd3NlcgogICAgICAgICAgIHdpbGwgY3JlYXRlIGEgbmV3IGNvbXBvc2l0aW5nIGxheWVyIGZvciBldmVyeSByaXBwbGUgZWxlbWVudCBvbiB0aGUKICAgICAgICAgICBwYWdlLCBhbmQgdGhhdCB3b3VsZCBiZSBiYWQuICovCiAgICAgICAgLXdlYmtpdC10cmFuc2Zvcm06IHRyYW5zbGF0ZSgwLCAwKTsKICAgICAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZTNkKDAsIDAsIDApOwogICAgICB9CgogICAgICAjYmFja2dyb3VuZCwKICAgICAgI3dhdmVzLAogICAgICAud2F2ZS1jb250YWluZXIsCiAgICAgIC53YXZlIHsKICAgICAgICBwb2ludGVyLWV2ZW50czogbm9uZTsKICAgICAgICBwb3NpdGlvbjogYWJzb2x1dGU7CiAgICAgICAgdG9wOiAwOwogICAgICAgIGxlZnQ6IDA7CiAgICAgICAgd2lkdGg6IDEwMCU7CiAgICAgICAgaGVpZ2h0OiAxMDAlOwogICAgICB9CgogICAgICAjYmFja2dyb3VuZCwKICAgICAgLndhdmUgewogICAgICAgIG9wYWNpdHk6IDA7CiAgICAgIH0KCiAgICAgICN3YXZlcywKICAgICAgLndhdmUgewogICAgICAgIG92ZXJmbG93OiBoaWRkZW47CiAgICAgIH0KCiAgICAgIC53YXZlLWNvbnRhaW5lciwKICAgICAgLndhdmUgewogICAgICAgIGJvcmRlci1yYWRpdXM6IDUwJTsKICAgICAgfQoKICAgICAgOmhvc3QoLmNpcmNsZSkgI2JhY2tncm91bmQsCiAgICAgIDpob3N0KC5jaXJjbGUpICN3YXZlcyB7CiAgICAgICAgYm9yZGVyLXJhZGl1czogNTAlOwogICAgICB9CgogICAgICA6aG9zdCguY2lyY2xlKSAud2F2ZS1jb250YWluZXIgewogICAgICAgIG92ZXJmbG93OiBoaWRkZW47CiAgICAgIH0KICAgIDwvc3R5bGU+CgogICAgPGRpdiBpZD0iYmFja2dyb3VuZCI+PC9kaXY+CiAgICA8ZGl2IGlkPSJ3YXZlcyI+PC9kaXY+CiAgPC90ZW1wbGF0ZT4KPC9kb20tbW9kdWxlPgoKCgoKCgoKCgoKCjxjdXN0b20tc3R5bGU+CiAgPHN0eWxlIGlzPSJjdXN0b20tc3R5bGUiPgogICAgaHRtbCB7CgogICAgICAtLXNoYWRvdy10cmFuc2l0aW9uOiB7CiAgICAgICAgdHJhbnNpdGlvbjogYm94LXNoYWRvdyAwLjI4cyBjdWJpYy1iZXppZXIoMC40LCAwLCAwLjIsIDEpOwogICAgICB9OwoKICAgICAgLS1zaGFkb3ctbm9uZTogewogICAgICAgIGJveC1zaGFkb3c6IG5vbmU7CiAgICAgIH07CgogICAgICAvKiBmcm9tIGh0dHA6Ly9jb2RlcGVuLmlvL3NoeW5kbWFuL3Blbi9jNTM5NGRkZjJlOGIyYTVjOTE4NTkwNGI1NzQyMWNkYiAqLwoKICAgICAgLS1zaGFkb3ctZWxldmF0aW9uLTJkcDogewogICAgICAgIGJveC1zaGFkb3c6IDAgMnB4IDJweCAwIHJnYmEoMCwgMCwgMCwgMC4xNCksCiAgICAgICAgICAgICAgICAgICAgMCAxcHggNXB4IDAgcmdiYSgwLCAwLCAwLCAwLjEyKSwKICAgICAgICAgICAgICAgICAgICAwIDNweCAxcHggLTJweCByZ2JhKDAsIDAsIDAsIDAuMik7CiAgICAgIH07CgogICAgICAtLXNoYWRvdy1lbGV2YXRpb24tM2RwOiB7CiAgICAgICAgYm94LXNoYWRvdzogMCAzcHggNHB4IDAgcmdiYSgwLCAwLCAwLCAwLjE0KSwKICAgICAgICAgICAgICAgICAgICAwIDFweCA4cHggMCByZ2JhKDAsIDAsIDAsIDAuMTIpLAogICAgICAgICAgICAgICAgICAgIDAgM3B4IDNweCAtMnB4IHJnYmEoMCwgMCwgMCwgMC40KTsKICAgICAgfTsKCiAgICAgIC0tc2hhZG93LWVsZXZhdGlvbi00ZHA6IHsKICAgICAgICBib3gtc2hhZG93OiAwIDRweCA1cHggMCByZ2JhKDAsIDAsIDAsIDAuMTQpLAogICAgICAgICAgICAgICAgICAgIDAgMXB4IDEwcHggMCByZ2JhKDAsIDAsIDAsIDAuMTIpLAogICAgICAgICAgICAgICAgICAgIDAgMnB4IDRweCAtMXB4IHJnYmEoMCwgMCwgMCwgMC40KTsKICAgICAgfTsKCiAgICAgIC0tc2hhZG93LWVsZXZhdGlvbi02ZHA6IHsKICAgICAgICBib3gtc2hhZG93OiAwIDZweCAxMHB4IDAgcmdiYSgwLCAwLCAwLCAwLjE0KSwKICAgICAgICAgICAgICAgICAgICAwIDFweCAxOHB4IDAgcmdiYSgwLCAwLCAwLCAwLjEyKSwKICAgICAgICAgICAgICAgICAgICAwIDNweCA1cHggLTFweCByZ2JhKDAsIDAsIDAsIDAuNCk7CiAgICAgIH07CgogICAgICAtLXNoYWRvdy1lbGV2YXRpb24tOGRwOiB7CiAgICAgICAgYm94LXNoYWRvdzogMCA4cHggMTBweCAxcHggcmdiYSgwLCAwLCAwLCAwLjE0KSwKICAgICAgICAgICAgICAgICAgICAwIDNweCAxNHB4IDJweCByZ2JhKDAsIDAsIDAsIDAuMTIpLAogICAgICAgICAgICAgICAgICAgIDAgNXB4IDVweCAtM3B4IHJnYmEoMCwgMCwgMCwgMC40KTsKICAgICAgfTsKCiAgICAgIC0tc2hhZG93LWVsZXZhdGlvbi0xMmRwOiB7CiAgICAgICAgYm94LXNoYWRvdzogMCAxMnB4IDE2cHggMXB4IHJnYmEoMCwgMCwgMCwgMC4xNCksCiAgICAgICAgICAgICAgICAgICAgMCA0cHggMjJweCAzcHggcmdiYSgwLCAwLCAwLCAwLjEyKSwKICAgICAgICAgICAgICAgICAgICAwIDZweCA3cHggLTRweCByZ2JhKDAsIDAsIDAsIDAuNCk7CiAgICAgIH07CgogICAgICAtLXNoYWRvdy1lbGV2YXRpb24tMTZkcDogewogICAgICAgIGJveC1zaGFkb3c6IDAgMTZweCAyNHB4IDJweCByZ2JhKDAsIDAsIDAsIDAuMTQpLAogICAgICAgICAgICAgICAgICAgIDAgIDZweCAzMHB4IDVweCByZ2JhKDAsIDAsIDAsIDAuMTIpLAogICAgICAgICAgICAgICAgICAgIDAgIDhweCAxMHB4IC01cHggcmdiYSgwLCAwLCAwLCAwLjQpOwogICAgICB9OwoKICAgICAgLS1zaGFkb3ctZWxldmF0aW9uLTI0ZHA6IHsKICAgICAgICBib3gtc2hhZG93OiAwIDI0cHggMzhweCAzcHggcmdiYSgwLCAwLCAwLCAwLjE0KSwKICAgICAgICAgICAgICAgICAgICAwIDlweCA0NnB4IDhweCByZ2JhKDAsIDAsIDAsIDAuMTIpLAogICAgICAgICAgICAgICAgICAgIDAgMTFweCAxNXB4IC03cHggcmdiYSgwLCAwLCAwLCAwLjQpOwogICAgICB9OwogICAgfQogIDwvc3R5bGU+CjwvY3VzdG9tLXN0eWxlPgoKCgoKPGRvbS1tb2R1bGUgaWQ9InBhcGVyLW1hdGVyaWFsLXN0eWxlcyI+CiAgPHRlbXBsYXRlPgogICAgPHN0eWxlPgogICAgICA6aG9zdCwgaHRtbCB7CiAgICAgICAgLS1wYXBlci1tYXRlcmlhbDogewogICAgICAgIC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ZXZhdGlvbj0iNCJdKSB7CiAgICAgICAgQGFwcGx5IC0tcGFwZXItbWF0ZXJpYWwtZWxldmF0aW9uLTQ7CiAgICAgIH0KCiAgICAgIDpob3N0KFtlbGV2YXRpb249IjUiXSkgewogICAgICAgIEBhcHBseSAtLXBhcGVyLW1hdGVyaWFsLWVsZXZhdGlvbi01OwogICAgICB9CgogICAgICA6aG9zdChbaGlkZGVuXSkgewogICAgICAgIGRpc3BsYXk6IG5vbmUgIWltcG9ydGFudDsKICAgICAgfQoKICAgICAgOmhvc3QoW3JhaXNlZF0ua2V5Ym9hcmQtZm9jdXMpIHsKICAgICAgICBmb250LXdlaWdodDogYm9sZDsKICAgICAgICBAYXBwbHkgLS1wYXBlci1idXR0b24tcmFpc2VkLWtleWJvYXJkLWZvY3VzOwogICAgICB9CgogICAgICA6aG9zdCg6bm90KFtyYWlzZWRdKS5rZXlib2FyZC1mb2N1cykgewogICAgICAgIGZvbnQtd2VpZ2h0OiBib2xkOwogICAgICAgIEBhcHBseSAtLXBhcGVyLWJ1dHRvbi1mbGF0LWtleWJvYXJkLWZvY3VzOwogICAgICB9CgogICAgICA6aG9zdChbZGlzYWJsZWRdKSB7CiAgICAgICAgYmFja2dyb3VuZDogI2VhZWFlYTsKICAgICAgICBjb2xvcjogI2E4YThhODsKICAgICAgICBjdXJzb3I6IGF1dG87CiAgICAgICAgcG9pbnRlci1ldmVudHM6IG5vbmU7CgogICAgICAgIEBhcHBseSAtLXBhcGVyLWJ1dHRvbi1kaXNhYmxlZDsKICAgICAgfQoKICAgICAgOmhvc3QoW2FuaW1hdGVkXSkgewogICAgICAgIEBhcHBseSAtLXNoYWRvdy10cmFuc2l0aW9uOwogICAgICB9CgogICAgICBwYXBlci1yaXBwbGUgewogICAgICAgIGNvbG9yOiB2YXIoLS1wYXBlci1idXR0b24taW5rLWNvbG9yKTsKICAgICAgfQogICAgPC9zdHlsZT4KCiAgICA8c2xvdD48L3Nsb3Q+CiAgPC90ZW1wbGF0ZT4K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Y2hlY2tib3gtaW5rLXNpemUpIC0gdmFyKC0tY2FsY3VsYXRlZC1wYXBlci1jaGVja2JveC1zaXplKSkgLyAyKTsKICAgICAgICBsZWZ0OiBjYWxjKDBweCAtICh2YXIoLS1jYWxjdWxhdGVkLXBhcGVyLWNoZWNrYm94LWluay1zaXplKSAtIHZhcigtLWNhbGN1bGF0ZWQtcGFwZXItY2hlY2tib3gtc2l6ZSkpIC8gMik7CiAgICAgICAgd2lkdGg6IHZhcigtLWNhbGN1bGF0ZWQtcGFwZXItY2hlY2tib3gtaW5rLXNpemUpOwogICAgICAgIGhlaWdodDogdmFyKC0tY2FsY3VsYXRlZC1wYXBlci1jaGVja2JveC1pbmstc2l6ZSk7CiAgICAgICAgY29sb3I6IHZhcigtLXBhcGVyLWNoZWNrYm94LXVuY2hlY2tlZC1pbmstY29sb3IsIHZhcigtLXByaW1hcnktdGV4dC1jb2xvcikpOwogICAgICAgIG9wYWNpdHk6IDAuNjsKICAgICAgICBwb2ludGVyLWV2ZW50czogbm9uZTsKICAgICAgfQoKICAgICAgI2luazpkaXIocnRsKSB7CiAgICAgICAgcmlnaHQ6IGNhbGMoMHB4IC0gKHZhcigtLWNhbGN1bGF0ZWQtcGFwZXItY2hlY2tib3gtaW5rLXNpemUpIC0gdmFyKC0tY2FsY3VsYXRlZC1wYXBlci1jaGVja2JveC1zaXplKSkgLyAyKTsKICAgICAgICBsZWZ0OiBhdXRvOwogICAgICB9CgogICAgICAjaW5rW2NoZWNrZWRdIHsKICAgICAgICBjb2xvcjogdmFyKC0tcGFwZXItY2hlY2tib3gtY2hlY2tlZC1pbmstY29sb3IsIHZhcigtLXByaW1hcnktY29sb3IpKTsKICAgICAgfQoKICAgICAgI2NoZWNrYm94IHsKICAgICAgICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgICAgICAgYm94LXNpemluZzogYm9yZGVyLWJveDsKICAgICAgICBoZWlnaHQ6IDEwMCU7CiAgICAgICAgYm9yZGVyOiBzb2xpZCAycHg7CiAgICAgICAgYm9yZGVyLWNvbG9yOiB2YXIoLS1wYXBlci1jaGVja2JveC11bmNoZWNrZWQtY29sb3IsIHZhcigtLXByaW1hcnktdGV4dC1jb2xvcikpOwogICAgICAgIGJvcmRlci1yYWRpdXM6IDJweDsKICAgICAgICBwb2ludGVyLWV2ZW50czogbm9uZTsKICAgICAgICAtd2Via2l0LXRyYW5zaXRpb246IGJhY2tncm91bmQtY29sb3IgMTQwbXMsIGJvcmRlci1jb2xvciAxNDBtczsKICAgICAgICB0cmFuc2l0aW9uOiBiYWNrZ3JvdW5kLWNvbG9yIDE0MG1zLCBib3JkZXItY29sb3IgMTQwbXM7CiAgICAgIH0KCiAgICAgIC8qIGNoZWNrYm94IGNoZWNrZWQgYW5pbWF0aW9ucyAqLwogICAgICAjY2hlY2tib3guY2hlY2tlZCAjY2hlY2ttYXJrIHsKICAgICAgICAtd2Via2l0LWFuaW1hdGlvbjogY2hlY2ttYXJrLWV4cGFuZCAxNDBtcyBlYXNlLW91dCBmb3J3YXJkczsKICAgICAgICBhbmltYXRpb246IGNoZWNrbWFyay1leHBhbmQgMTQwbXMgZWFzZS1vdXQgZm9yd2FyZHM7CiAgICAgIH0KCiAgICAgIEAtd2Via2l0LWtleWZyYW1lcyBjaGVja21hcmstZXhwYW5kIHsKICAgICAgICAwJSB7CiAgICAgICAgICAtd2Via2l0LXRyYW5zZm9ybTogc2NhbGUoMCwgMCkgcm90YXRlKDQ1ZGVnKTsKICAgICAgICB9CiAgICAgICAgMTAwJSB7CiAgICAgICAgICAtd2Via2l0LXRyYW5zZm9ybTogc2NhbGUoMSwgMSkgcm90YXRlKDQ1ZGVnKTsKICAgICAgICB9CiAgICAgIH0KCiAgICAgIEBrZXlmcmFtZXMgY2hlY2ttYXJrLWV4cGFuZCB7CiAgICAgICAgMCUgewogICAgICAgICAgdHJhbnNmb3JtOiBzY2FsZSgwLCAwKSByb3RhdGUoNDVkZWcpOwogICAgICAgIH0KICAgICAgICAxMDAlIHsKICAgICA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azpkaXIocnRsKSB7CiAgICAgICAgLXdlYmtpdC10cmFuc2Zvcm0tb3JpZ2luOiA1MCUgMTQlOwogICAgICAgIHRyYW5zZm9ybS1vcmlnaW46IDUwJSAxNCU7CiAgICAgIH0KCiAgICAgIC8qIGxhYmVsICovCiAgICAgICNjaGVja2JveExhYmVsIHsKICAgICAgICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgICAgICAgZGlzcGxheTogaW5saW5lLWJsb2NrOwogICAgICAgIHZlcnRpY2FsLWFsaWduOiBtaWRkbGU7CiAgICAgICAgcGFkZGluZy1sZWZ0OiB2YXIoLS1wYXBlci1jaGVja2JveC1sYWJlbC1zcGFjaW5nLCA4cHgpOwogICAgICAgIHdoaXRlLXNwYWNlOiBub3JtYWw7CiAgICAgICAgbGluZS1oZWlnaHQ6IG5vcm1hbDsKICAgICAgICBjb2xvcjogdmFyKC0tcGFwZXItY2hlY2tib3gtbGFiZWwtY29sb3IsIHZhcigtLXByaW1hcnktdGV4dC1jb2xvcikpOwogICAgICAgIEBhcHBseSAtLXBhcGVyLWNoZWNrYm94LWxhYmVsOwogICAgICB9CgogICAgICA6aG9zdChbY2hlY2tlZF0pICNjaGVja2JveExhYmVsIHsKICAgICAgICBjb2xvcjogdmFyKC0tcGFwZXItY2hlY2tib3gtbGFiZWwtY2hlY2tlZC1jb2xvciwgdmFyKC0tcGFwZXItY2hlY2tib3gtbGFiZWwtY29sb3IsIHZhcigtLXByaW1hcnktdGV4dC1jb2xvcikpKTsKICAgICAgICBAYXBwbHkgLS1wYXBlci1jaGVja2JveC1sYWJlbC1jaGVja2VkOwogICAgICB9CgogICAgICAjY2hlY2tib3hMYWJlbDpkaXIocnRsKSB7CiAgICAgICAgcGFkZGluZy1yaWdodDogdmFyKC0tcGFwZXItY2hlY2tib3gtbGFiZWwtc3BhY2luZywgOHB4KTsKICAgICAgICBwYWRkaW5nLWxlZnQ6IDA7CiAgICAgIH0KCiAgICAgICNjaGVja2JveExhYmVsW2hpZGRlbl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kZGVuOwogICAgICAgIHRleHQtb3ZlcmZsb3c6IGVsbGlwc2lzOwogICAgICB9OwoKICAgICAgLyogTWF0ZXJpYWwgRm9udCBTdHlsZXMgKi8KCiAgICAgIC0tcGFwZXItZm9udC1kaXNwbGF5NDogewogICAgICAgIEBhcHBseSAtLXBhcGVyLWZvbnQtY29tbW9uLWJhc2U7CiAgICAgICAgQGFwcGx5IC0tcGFwZXItZm9udC1jb21tb24tbm93cmFwOwoKICAgICAgICBmb250LXNpemU6IDExMnB4OwogICAgICAgIGZvbnQtd2VpZ2h0OiAzMDA7CiAgICAgICAgbGV0dGVyLXNwYWNpbmc6IC0uMDQ0ZW07CiAgICAgICAgbGluZS1oZWlnaHQ6IDEyMHB4OwogICAgICB9OwoKICAgICAgLS1wYXBlci1mb250LWRpc3BsYXkzOiB7CiAgICAgICAgQGFwcGx5IC0tcGFwZXItZm9udC1jb21tb24tYmFzZTsKICAgICAgICBAYXBwbHkgLS1wYXBlci1mb250LWNvbW1vbi1ub3dyYXA7CgogICAgICAgIGZvbnQtc2l6ZTogNTZweDsKICAgICAgICBmb250LXdlaWdodDogNDAwOwogICAgICAgIGxldHRlci1zcGFjaW5nOiAtLjAyNmVtOwogICAgICAgIGxpbmUtaGVpZ2h0OiA2MHB4OwogICAgICB9OwoKICAgICAgLS1wYXBlci1mb250LWRpc3BsYXkyOiB7CiAgICAgICAgQGFwcGx5IC0tcGFwZXItZm9udC1jb21tb24tYmFzZTsKCiAgICAgICAgZm9udC1zaXplOiA0NXB4OwogICAgICAgIGZvbnQtd2VpZ2h0OiA0MDA7CiAgICAgICAgbGV0dGVyLXNwYWNpbmc6IC0uMDE4ZW07CiAgICAgICAgbGluZS1oZWlnaHQ6IDQ4cHg7CiAgICAgIH07CgogICAgICAtLXBhcGVyLWZvbnQtZGlzcGxheTE6IHsKICAgICAgICBAYXBwbHkgLS1wYXBlci1mb250LWNvbW1vbi1iYXNlOwoKICAgICAgICBmb250LXNpemU6IDM0cHg7CiAgICAgICAgZm9udC13ZWlnaHQ6IDQwMDsKICAgICAgICBsZXR0ZXItc3BhY2luZzogLS4wMWVtOwogICAgICAgIGxpbmUtaGVpZ2h0OiA0MHB4OwogICAgICB9OwoKICAgICAgLS1wYXBlci1mb250LWhlYWRsaW5lOiB7CiAgICAgICAgQGFwcGx5IC0tcGFwZXItZm9udC1jb21tb24tYmFzZTsKCiAgICAgICAgZm9udC1zaXplOiAyNHB4OwogICAgICAgIGZvbnQtd2VpZ2h0OiA0MDA7CiAgICAgICAgbGV0dGVyLXNwYWNpbmc6IC0uMDEyZW07CiAgICAgICAgbGluZS1oZWlnaHQ6IDMycHg7CiAgICAgIH07CgogICAgICAtLXBhcGVyLWZvbnQtdGl0bGU6IHsKICAgICAgICBAYXBwbHkgLS1wYXBlci1mb250LWNvbW1vbi1iYXNlOwogICAgICAgIEBhcHBseSAtLXBhcGVyLWZvbnQtY29tbW9uLW5vd3JhcDsKCiAgICAgICAgZm9udC1zaXplOiAyMHB4OwogICAgICAgIGZvbnQtd2VpZ2h0OiA1MDA7CiAgICAgICAgbGluZS1oZWlnaHQ6IDI4cHg7CiAgICAgIH07CgogICAgICAtLXBhcGVyLWZvbnQtc3ViaGVhZDogewogICAgICAgIEBhcHBseSAtLXBhcGVyLWZvbnQtY29tbW9uLWJhc2U7CgogICAgICAgIGZvbnQtc2l6ZTogMTZweDsKICAgICAgICBmb250LXdlaWdodDogNDAwOwogICAgICAgIGxpbmUtaGVpZ2h0OiAyNHB4OwogICAgICB9OwoKICAgICAgLS1wYXBlci1mb250LWJvZHkyOiB7CiAgICAgICAgQGFwcGx5IC0tcGFwZXItZm9udC1jb21tb24tYmFzZTsKCiAgICAgICAgZm9udC1zaXplOiAxNHB4OwogICAgICAgIGZvbnQtd2VpZ2h0OiA1MDA7CiAgICAgICAgbGluZS1oZWlnaHQ6IDI0cHg7CiAgICAgIH07CgogICAgICAtLXBhcGVyLWZvbnQtYm9keTE6IHsKICAgICAgICBAYXBwbHkgLS1wYXBlci1mb250LWNvbW1vbi1iYXNlOwoKICAgICAgICBmb250LXNpemU6IDE0cHg7CiAgICAgICAgZm9udC13ZWlnaHQ6IDQwMDsKICAgICAgICBsaW5lLWhlaWdodDogMjBweDsKICAgICAgfTsKCiAgICAgIC0tcGFwZXItZm9udC1jYXB0aW9uOiB7CiAgICAgICAgQGFwcGx5IC0tcGFwZXItZm9udC1jb21tb24tYmFzZTsKICAgICAgICBAYXBwbHkgLS1wYXBlci1mb250LWNvbW1vbi1ub3dyYXA7CgogICAgICAgIGZvbnQtc2l6ZTogMTJweDsKICAgICAgICBmb250LXdlaWdodDogNDAwOwogICAgICAgIGxldHRlci1zcGFjaW5nOiAwLjAxMWVtOwogICAgICAgIGxpbmUtaGVpZ2h0OiAyMHB4OwogICAgICB9OwoKICAgICAgLS1wYXBlci1mb250LW1lbnU6IHsKICAgICAgICBAYXBwbHkgLS1wYXBlci1mb250LWNvbW1vbi1iYXNlOwogICAgICAgIEBhcHBseSAtLXBhcGVyLWZvbnQtY29tbW9uLW5vd3JhcDsKCiAgICAgICAgZm9udC1zaXplOiAxM3B4OwogICAgICAgIGZvbnQtd2VpZ2h0OiA1MDA7CiAgICAgICAgbGluZS1oZWlnaHQ6IDI0cHg7CiAgICAgIH07CgogICAgICAtLXBhcGVyLWZvbnQtYnV0dG9uOiB7CiAgICAgICAgQGFwcGx5IC0tcGFwZXItZm9udC1jb21tb24tYmFzZTsKICAgICAgICBAYXBwbHkgLS1wYXBlci1mb250LWNvbW1vbi1ub3dyYXA7CgogICAgICAgIGZvbnQtc2l6ZTogMTRweDsKICAgICAgICBmb250LXdlaWdodDogNTAwOwogICAgICAgIGxldHRlci1zcGFjaW5nOiAwLjAxOGVtOwogICAgICAgIGxpbmUtaGVpZ2h0OiAyNHB4OwogICAgICAgIHRleHQtdHJhbnNmb3JtOiB1cHBlcmNhc2U7CiAgICAgIH07CgogICAgICAtLXBhcGVyLWZvbnQtY29kZTI6IHsKICAgICAgICBAYXBwbHkgLS1wYXBlci1mb250LWNvbW1vbi1jb2RlOwoKICAgICAgICBmb250LXNpemU6IDE0cHg7CiAgICAgICAgZm9udC13ZWlnaHQ6IDcwMDsKICAgICAgICBsaW5lLWhlaWdodDogMjBweDsKICAgICAgfTsKCiAgICAgIC0tcGFwZXItZm9udC1jb2RlMTogewogICAgICAgIEBhcHBseSAtLXBhcGVyLWZvbnQtY29tbW9uLWNvZGU7CgogICAgICAgIGZvbnQtc2l6ZTogMTRweDsKICAgICAgICBmb250LXdlaWdodDogNTAwOwogICAgICAgIGxpbmUtaGVpZ2h0OiAyMHB4OwogICAgICB9OwoKICAgIH0KCiAgPC9zdHlsZT4KPC9jdXN0b20tc3R5bGU+CgoKCgoKCgoKPGRvbS1tb2R1bGUgaWQ9InBhcGVyLWlucHV0LWNoYXItY291bnRlciI+CiAgPHRlbXBsYXRlPgogICAgPHN0eWxlPgogICAgICA6aG9zdCB7CiAgICAgICAgZGlzcGxheTogaW5saW5lLWJsb2NrOwogICAgICAgIGZsb2F0OiByaWdodDsKCiAgICAgICAgQGFwcGx5IC0tcGFwZXItZm9udC1jYXB0aW9uOwogICAgICAgIEBhcHBseSAtLXBhcGVyLWlucHV0LWNoYXItY291bnRlcjsKICAgICAgfQoKICAgICAgOmhvc3QoW2hpZGRlbl0pIHsKICAgICAgICBkaXNwbGF5OiBub25lICFpbXBvcnRhbnQ7CiAgICAgIH0KCiAgICAgIDpob3N0KDpkaXIocnRsKSkgewogICAgICAgIGZsb2F0OiBsZWZ0OwogICAgICB9CiAgICA8L3N0eWxlPgoKICAgIDxzcGFuPltbX2NoYXJDb3VudGVyU3RyXV08L3NwYW4+CiAgPC90ZW1wbGF0ZT4KPC9kb20tbW9kdWxlPgoKCgoKCgoKCgoKPGN1c3RvbS1zdHlsZT4KICA8c3R5bGUgaXM9ImN1c3RvbS1zdHlsZSI+CiAgICBodG1sIHsKICAgICAgLS1wYXBlci1pbnB1dC1jb250YWluZXItc2hhcmVkLWlucHV0LXN0eWxlOiB7CiAgICAgICAgcG9zaXRpb246IHJlbGF0aXZlOyAvKiB0byBtYWtlIGEgc3RhY2tpbmcgY29udGV4dCAqLwogICAgICAgIG91dGxpbmU6IG5vbmU7CiAgICAgICAgYm94LXNoYWRvdzogbm9uZTsKICAgICAgICBwYWRkaW5nOiAwOwogICAgICAgIG1hcmdpbjogMDsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgICBtYXgtd2lkdGg6IDEwMCU7CiAgICAgICAgYmFja2dyb3VuZDogdHJhbnNwYXJlbnQ7CiAgICAgICAgYm9yZGVyOiBub25lOwogICAgICAgIGNvbG9yOiB2YXIoLS1wYXBlci1pbnB1dC1jb250YWluZXItaW5wdXQtY29sb3IsIHZhcigtLXByaW1hcnktdGV4dC1jb2xvcikpOwogICAgICAgIC13ZWJraXQtYXBwZWFyYW5jZTogbm9uZTsKICAgICAgICB0ZXh0LWFsaWduOiBpbmhlcml0OwogICAgICAgIHZlcnRpY2FsLWFsaWduOiBib3R0b207CgogICAgICAgIEBhcHBseSAtLXBhcGVyLWZvbnQtc3ViaGVhZDsKICAgICAgfTsKICAgIH0KICA8L3N0eWxlPgo8L2N1c3RvbS1zdHlsZT4KCjxkb20tbW9kdWxlIGlkPSJwYXBlci1pbnB1dC1jb250YWluZXIiPgogIDx0ZW1wbGF0ZT4KICAgIDxzdHlsZT4KICAgICAgOmhvc3QgewogICAgICAgIGRpc3BsYXk6IGJsb2NrOwogICAgICAgIHBhZGRpbmc6IDhweCAwOwogICAgICAgIEBhcHBseSAtLXBhcGVyLWlucHV0LWNvbnRhaW5lcjsKICAgICAgfQoKICAgICAgOmhvc3QoW2lubGluZV0pIHsKICAgICAgICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7CiAgICAgIH0KCiAgICAgIDpob3N0KFtkaXNhYmxlZF0pIHsKICAgICAgICBwb2ludGVyLWV2ZW50czogbm9uZTsKICAgICAgICBvcGFjaXR5OiAwLjMzOwoKICAgICAgICBAYXBwbHkgLS1wYXBlci1pbnB1dC1jb250YWluZXItZGlzYWJsZWQ7CiAgICAgIH0KCiAgICAgIDpob3N0KFtoaWRkZW5dKSB7CiAgICAgICAgZGlzcGxheTogbm9uZSAhaW1wb3J0YW50OwogICAgICB9CgogICAgICBbaGlkZGVuXSB7CiAgICAgICAgZGlzcGxheTogbm9uZSAhaW1wb3J0YW50OwogICAgICB9CgogICAgICAuZmxvYXRlZC1sYWJlbC1wbGFjZWhvbGRlciB7CiAgICAgICAgQGFwcGx5IC0tcGFwZXItZm9udC1jYXB0aW9uOwogICAgICB9CgogICAgICAudW5kZXJsaW5lIHsKICAgICAgICBoZWlnaHQ6IDJweDsKICAgICAgICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgICAgIH0KCiAgICAgIC5mb2N1c2VkLWxpbmUgewogICAgICAgIEBhcHBseSAtLWxheW91dC1maXQ7CiAgICAgICAgYm9yZGVyLWJvdHRvbTogMnB4IHNvbGlkIHZhcigtLXBhcGVyLWlucHV0LWNvbnRhaW5lci1mb2N1cy1jb2xvciwgdmFyKC0tcHJpbWFyeS1jb2xvcikpOwoKICAgICAgICAtd2Via2l0LXRyYW5zZm9ybS1vcmlnaW46IGNlbnRlciBjZW50ZXI7CiAgICAgICAgdHJhbnNmb3JtLW9yaWdpbjogY2VudGVyIGNlbnRlcjsKICAgICAgICAtd2Via2l0LXRyYW5zZm9ybTogc2NhbGUzZCgwLDEsMSk7CiAgICAgICAgdHJhbnNmb3JtOiBzY2FsZTNkKDAsMSwxKTsKCiAgICAgICAgQGFwcGx5IC0tcGFwZXItaW5wdXQtY29udGFpbmVyLXVuZGVybGluZS1mb2N1czsKICAgICAgfQoKICAgICAgLnVuZGVybGluZS5pcy1oaWdobGlnaHRlZCAuZm9jdXNlZC1saW5lIHsKICAgICAgICAtd2Via2l0LXRyYW5zZm9ybTogbm9uZTsKICAgICAgICB0cmFuc2Zvcm06IG5vbmU7CiAgICAgICAgLXdlYmtpdC10cmFuc2l0aW9uOiAtd2Via2l0LXRyYW5zZm9ybSAwLjI1czsKICAgICAgICB0cmFuc2l0aW9uOiB0cmFuc2Zvcm0gMC4yNXM7CgogICAgICAgIEBhcHBseSAtLXBhcGVyLXRyYW5zaXRpb24tZWFzaW5nOwogICAgICB9CgogICAgICAudW5kZXJsaW5lLmlzLWludmFsaWQgLmZvY3VzZWQtbGluZSB7CiAgICAgICAgYm9yZGVyLWNvbG9yOiB2YXIoLS1wYXBlci1pbnB1dC1jb250YWluZXItaW52YWxpZC1jb2xvciwgdmFyKC0tZXJyb3ItY29sb3IpKTsKICAgICAgICAtd2Via2l0LXRyYW5zZm9ybTogbm9uZTsKICAgICAgICB0cmFuc2Zvcm06IG5vbmU7CiAgICAgICAgLXdlYmtpdC10cmFuc2l0aW9uOiAtd2Via2l0LXRyYW5zZm9ybSAwLjI1czsKICAgICAgICB0cmFuc2l0aW9uOiB0cmFuc2Zvcm0gMC4yNXM7CgogICAgICAgIEBhcHBseSAtLXBhcGVyLXRyYW5zaXRpb24tZWFzaW5nOwogICAgICB9CgogICAgICAudW5mb2N1c2VkLWxpbmUgewogICAgICAgIEBhcHBseSAtLWxheW91dC1maXQ7CiAgICAgICAgYm9yZGVyLWJvdHRvbTogMXB4IHNvbGlkIHZhcigtLXBhcGVyLWlucHV0LWNvbnRhaW5lci1jb2xvciwgdmFyKC0tc2Vjb25kYXJ5LXRleHQtY29sb3IpKTsKICAgICAgICBAYXBwbHkgLS1wYXBlci1pbnB1dC1jb250YWluZXItdW5kZXJsaW5lOwogICAgICB9CgogICAgICA6aG9zdChbZGlzYWJsZWRdKSAudW5mb2N1c2VkLWxpbmUgewogICAgICAgIGJvcmRlci1ib3R0b206IDFweCBkYXNoZWQ7CiAgICAgICAgYm9yZGVyLWNvbG9yOiB2YXIoLS1wYXBlci1pbnB1dC1jb250YWluZXItY29sb3IsIHZhcigtLXNlY29uZGFyeS10ZXh0LWNvbG9yKSk7CiAgICAgICAgQGFwcGx5IC0tcGFwZXItaW5wdXQtY29udGFpbmVyLXVuZGVybGluZS1kaXNhYmxlZDsKICAgICAgfQoKICAgICAgLmlucHV0LXdyYXBwZXIgewogICAgICAgIEBhcHBseSAtLWxheW91dC1ob3Jpem9udGFsOwogICAgICAgIEBhcHBseSAtLWxheW91dC1jZW50ZXI7CiAgICAgICAgcG9zaXRpb246IHJlbGF0aXZlOwogICAgICB9CgogICAgICAuaW5wdXQtY29udGVudCB7CiAgICAgICAgQGFwcGx5IC0tbGF5b3V0LWZsZXgtYXV0bzsKICAgICAgICBAYXBwbHkgLS1sYXlvdXQtcmVsYXRpdmU7CiAgICAgICAgbWF4LXdpZHRoOiAxMDAlOwogICAgICB9CgogICAgICAuaW5wdXQtY29udGVudCA6OnNsb3R0ZWQobGFiZWwpLAogICAgICAuaW5wdXQtY29udGVudCA6OnNsb3R0ZWQoLnBhcGVyLWlucHV0LWxhYmVsKSB7CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgIHRvcDogMDsKICAgICAgICBsZWZ0OiAwOwogICAgICAgIHdpZHRoOiAxMDAlOwogICAgICAgIGZvbnQ6IGluaGVyaXQ7CiAgICAgICAgY29sb3I6IHZhcigtLXBhcGVyLWlucHV0LWNvbnRhaW5lci1jb2xvciwgdmFyKC0tc2Vjb25kYXJ5LXRleHQtY29sb3IpKTsKICAgICAgICAtd2Via2l0LXRyYW5zaXRpb246IC13ZWJraXQtdHJhbnNmb3JtIDAuMjVzLCB3aWR0aCAwLjI1czsKICAgICAgICB0cmFuc2l0aW9uOiB0cmFuc2Zvcm0gMC4yNXMsIHdpZHRoIDAuMjVzOwogICAgICAgIC13ZWJraXQtdHJhbnNmb3JtLW9yaWdpbjogbGVmdCB0b3A7CiAgICAgICAgdHJhbnNmb3JtLW9yaWdpbjogbGVmdCB0b3A7CiAgICAgICAgLyogRml4IGZvciBzYWZhcmkgbm90IGZvY3VzaW5nIDAtaGVpZ2h0IGRhdGUvdGltZSBpbnB1dHMgd2l0aCAtd2Via2l0LWFwcGVyYW5jZTogbm9uZTsgKi8KICAgICAgICBta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ZiB0aGUgbmF0aXZlIGlucHV0J3MgcHJvcGVydGllcyB0byBpbmhlcml0IChmcm9tIHRoZSBpcm9uLWlucHV0KSAqLwogICAgICBpcm9uLWlucHV0ID4gaW5wdXQgewogICAgICAgIEBhcHBseSAtLXBhcGVyLWlucHV0LWNvbnRhaW5lci1zaGFyZWQtaW5wdXQtc3R5bGU7CiAgICAgICAgZm9udC1mYW1pbHk6IGluaGVyaXQ7CiAgICAgICAgZm9udC13ZWlnaHQ6IGluaGVyaXQ7CiAgICAgICAgZm9udC1zaXplOiBpbmhlcml0OwogICAgICAgIGxldHRlci1zcGFjaW5nOiBpbmhlcml0OwogICAgICAgIHdvcmQtc3BhY2luZzogaW5oZXJpdDsKICAgICAgICBsaW5lLWhlaWdodDogaW5oZXJpdDsKICAgICAgICB0ZXh0LXNoYWRvdzogaW5oZXJpdDsKICAgICAgICBjb2xvcjogaW5oZXJpdDsKICAgICAgICBjdXJzb3I6IGluaGVyaXQ7CiAgICAgIH0KCiAgICAgIGlucHV0OmRpc2FibGVkIHsKICAgICAgICBAYXBwbHkgLS1wYXBlci1pbnB1dC1jb250YWluZXItaW5wdXQtZGlzYWJsZWQ7CiAgICAgIH0KCiAgICAgIGlucHV0Ojotd2Via2l0LW91dGVyLXNwaW4tYnV0dG9uLAogICAgICBpbnB1dDo6LXdlYmtpdC1pbm5lci1zcGluLWJ1dHRvbiB7CiAgICAgICAgQGFwcGx5IC0tcGFwZXItaW5wdXQtY29udGFpbmVyLWlucHV0LXdlYmtpdC1zcGlubmVyOwogICAgICB9CgogICAgICBpbnB1dDo6LXdlYmtpdC1jbGVhci1idXR0b24gewogICAgICAgIEBhcHBseSAtLXBhcGVyLWlucHV0LWNvbnRhaW5lci1pbnB1dC13ZWJraXQtY2xlYXI7CiAgICAgIH0KCiAgICAgIGlucHV0Ojotd2Via2l0LWNhbGVuZGFyLXBpY2tlci1pbmRpY2F0b3IgewogICAgICAgIEBhcHBseSAtLXBhcGVyLWlucHV0LWNvbnRhaW5lci1pbnB1dC13ZWJraXQtY2FsZW5kYXItcGlja2VyLWluZGljYXRvcjsKICAgICAgfQoKICAgICAgaW5wdXQ6Oi13ZWJraXQtaW5wdXQtcGxhY2Vob2xkZXIgewogICAgICAgIGNvbG9yOiB2YXIoLS1wYXBlci1pbnB1dC1jb250YWluZXItY29sb3IsIHZhcigtLXNlY29uZGFyeS10ZXh0LWNvbG9yKSk7CiAgICAgIH0KCiAgICAgIGlucHV0Oi1tb3otcGxhY2Vob2xkZXIgewogICAgICAgIGNvbG9yOiB2YXIoLS1wYXBlci1pbnB1dC1jb250YWluZXItY29sb3IsIHZhcigtLXNlY29uZGFyeS10ZXh0LWNvbG9yKSk7CiAgICAgIH0KCiAgICAgIGlucHV0OjotbW96LXBsYWNlaG9sZGVyIHsKICAgICAgICBjb2xvcjogdmFyKC0tcGFwZXItaW5wdXQtY29udGFpbmVyLWNvbG9yLCB2YXIoLS1zZWNvbmRhcnktdGV4dC1jb2xvcikpOwogICAgICB9CgogICAgICBpbnB1dDo6LW1zLWNsZWFyIHsKICAgICAgICBAYXBwbHkgLS1wYXBlci1pbnB1dC1jb250YWluZXItbXMtY2xlYXI7CiAgICAgIH0KCiAgICAgIGlucHV0OjotbXMtcmV2ZWFsIHsKICAgICAgICBAYXBwbHkgLS1wYXBlci1pbnB1dC1jb250YWluZXItbXMtcmV2ZWFsOwogICAgICB9CgogICAgICBpbnB1dDotbXMtaW5wdXQtcGxhY2Vob2xkZXIgewogICAgICAgIGNvbG9yOiB2YXIoLS1wYXBlci1pbnB1dC1jb250YWluZXItY29sb3IsIHZhcigtLXNlY29uZGFyeS10ZXh0LWNvbG9yKSk7CiAgICAgIH0KCiAgICAgIGxhYmVsIHsKICAgICAgICBwb2ludGVyLWV2ZW50czogbm9uZTsKICAgICAgfQogICAgPC9zdHlsZT4KCiAgICA8cGFwZXItaW5wdXQtY29udGFpbmVyIGlkPSJjb250YWluZXIiIG5vLWxhYmVsLWZsb2F0PSJbW25vTGFiZWxGbG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G91dGxpbmU6IG5vbmU7CgogICAgICAgIEBhcHBseSAtLXBhcGVyLW1lbnUtYnV0dG9uOwogICAgICB9CgogICAgICA6aG9zdChbZGlzYWJsZWRdKSB7CiAgICAgICAgY3Vyc29yOiBhdXRvOwogICAgICAgIGNvbG9yOiB2YXIoLS1kaXNhYmxlZC10ZXh0LWNvbG9yKTsKCiAgICAgICAgQGFwcGx5IC0tcGFwZXItbWVudS1idXR0b24tZGlzYWJsZWQ7CiAgICAgIH0KCiAgICAgIGlyb24tZHJvcGRvd24gewogICAgICAgIEBhcHBseSAtLXBhcGVyLW1lbnUtYnV0dG9uLWRyb3Bkb3duOwogICAgICB9CgogICAgICAuZHJvcGRvd24tY29udGVudCB7CiAgICAgICAgQGFwcGx5IC0tc2hhZG93LWVsZXZhdGlvbi0yZHA7CgogICAgICAgIHBvc2l0aW9uOiByZWxhdGl2ZTsKICAgICAgICBib3JkZXItcmFkaXVzOiAycHg7CiAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogdmFyKC0tcGFwZXItbWVudS1idXR0b24tZHJvcGRvd24tYmFja2dyb3VuZCwgdmFyKC0tcHJpbWFyeS1iYWNrZ3JvdW5kLWNvbG9yKSk7CgogICAgICAgIEBhcHBseSAtLXBhcGVyLW1lbnUtYnV0dG9uLWNvbnRlbnQ7CiAgICAgIH0KCiAgICAgIDpob3N0KFt2ZXJ0aWNhbC1hbGlnbj0idG9wIl0pIC5kcm9wZG93bi1jb250ZW50IHsKICAgICAgICBtYXJnaW4tYm90dG9tOiAyMHB4OwogICAgICAgIG1hcmdpbi10b3A6IC0xMHB4OwogICAgICAgIHRvcDogMTBweDsKICAgICAgfQoKICAgICAgOmhvc3QoW3ZlcnRpY2FsLWFsaWduPSJib3R0b20iXSkgLmRyb3Bkb3duLWNvbnRlbnQgewogICAgICAgIGJvdHRvbTogMTBweDsKICAgICAgICBtYXJnaW4tYm90dG9tOiAtMTBweDsKICAgICAgICBtYXJnaW4tdG9wOiAyMHB4OwogICAgICB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iAgICAgICAgICBtYXgtd2lkdGg6IDEwMCU7CiAgICAgICAgICBib3gtc2l6aW5nOiBib3JkZXItYm94OwogICAgICAgICAgY3Vyc29yOiBwb2ludGVyOwogICAgICAgIH07CgogICAgICAgIEBhcHBseSAtLXBhcGVyLWRyb3Bkb3duLW1lbnU7CiAgICAgIH0KCiAgICAgIDpob3N0KFtkaXNhYmxlZF0pIHsKICAgICAgICBAYXBwbHkgLS1wYXBlci1kcm9wZG93bi1tZW51LWRpc2FibGVkOwogICAgICB9CgogICAgICA6aG9zdChbbm9pbmtdKSBwYXBlci1yaXBwbGUgewogICAgICAgIGRpc3BsYXk6IG5vbmU7CiAgICAgIH0KCiAgICAgIDpob3N0KFtuby1sYWJlbC1mbG9hdF0pIHBhcGVyLXJpcHBsZSB7CiAgICAgICAgdG9wOiA4cHg7CiAgICAgIH0KCiAgICAgIHBhcGVyLXJpcHBsZSB7CiAgICAgICAgdG9wOiAxMnB4OwogICAgICAgIGxlZnQ6IDBweDsKICAgICAgICBib3R0b206IDhweDsKICAgICAgICByaWdodDogMHB4OwoKICAgICAgICBAYXBwbHkgLS1wYXBlci1kcm9wZG93bi1tZW51LXJpcHBsZTsKICAgICAgfQoKICAgICAgcGFwZXItbWVudS1idXR0b24gewogICAgICAgIGRpc3BsYXk6IGJsb2NrOwogICAgICAgIHBhZGRpbmc6IDA7CgogICAgICAgIEBhcHBseSAtLXBhcGVyLWRyb3Bkb3duLW1lbnUtYnV0dG9uOwogICAgICB9CgogICAgICBwYXBlci1pbnB1dCB7CiAgICAgICAgQGFwcGx5IC0tcGFwZXItZHJvcGRvd24tbWVudS1pbnB1dDsKICAgICAgfQoKICAgICAgaXJvbi1pY29uIHsKICAgICAgICBjb2xvcjogdmFyKC0tZGlzYWJsZWQtdGV4dC1jb2xvcik7CgogICAgICAgIEBhcHBseSAtLXBhcGVyLWRyb3Bkb3duLW1lbnUtaWNvbjsKICAgICAgfQogICAgPC9zdHlsZT4KICA8L3RlbXBsYXRlPgo8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3BsYXk6IC1tcy1pbmxpbmUtZmxleGJveDsKICAgICAgICBkaXNwbGF5OiAtd2Via2l0LWlubGluZS1mbGV4OwogICAgICAgIGRpc3BsYXk6IGlubGluZS1mbGV4OwogICAgICB9CgogICAgICAubGF5b3V0Lmhvcml6b250YWwgewogICAgICAgIC1tcy1mbGV4LWRpcmVjdGlvbjogcm93OwogICAgICAgIC13ZWJraXQtZmxleC1kaXJlY3Rpb246IHJvdzsKICAgICAgICBmbGV4LWRpcmVjdGlvbjogcm93OwogICAgICB9CgogICAgICAubGF5b3V0LnZlcnRpY2FsIHsKICAgICAgICAtbXMtZmxleC1kaXJlY3Rpb246IGNvbHVtbjsKICAgICAgICAtd2Via2l0LWZsZXgtZGlyZWN0aW9uOiBjb2x1bW47CiAgICAgICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjsKICAgICAgfQoKICAgICAgLmxheW91dC53cmFwIHsKICAgICAgICAtbXMtZmxleC13cmFwOiB3cmFwOwogICAgICAgIC13ZWJraXQtZmxleC13cmFwOiB3cmFwOwogICAgICAgIGZsZXgtd3JhcDogd3JhcDsKICAgICAgfQoKICAgICAgLmxheW91dC5uby13cmFwIHsKICAgICAgICAtbXMtZmxleC13cmFwOiBub3dyYXA7CiAgICAgICAgLXdlYmtpdC1mbGV4LXdyYXA6IG5vd3JhcDsKICAgICAgICBmbGV4LXdyYXA6IG5vd3JhcDsKICAgICAgfQoKICAgICAgLmxheW91dC5jZW50ZXIsCiAgICAgIC5sYXlvdXQuY2VudGVyLWNlbnRlciB7CiAgICAgICAgLW1zLWZsZXgtYWxpZ246IGNlbnRlcjsKICAgICAgICAtd2Via2l0LWFsaWduLWl0ZW1zOiBjZW50ZXI7CiAgICAgICAgYWxpZ24taXRlbXM6IGNlbnRlcjsKICAgICAgfQoKICAgICAgLmxheW91dC5jZW50ZXItanVzdGlmaWVkLAogICAgICAubGF5b3V0LmNlbnRlci1jZW50ZXIgewogICAgICAgIC1tcy1mbGV4LXBhY2s6IGNlbnRlcjsKICAgICAgICAtd2Via2l0LWp1c3RpZnktY29udGVudDogY2VudGVyOwogICAgICAgIGp1c3RpZnktY29udGVudDogY2VudGVyOwogICAgICB9CgogICAgICAuZmxleCB7CiAgICAgICAgLW1zLWZsZXg6IDEgMSAwLjAwMDAwMDAwMXB4OwogICAgICAgIC13ZWJraXQtZmxleDogMTsKICAgICAgICBmbGV4OiAxOwogICAgICAgIC13ZWJraXQtZmxleC1iYXNpczogMC4wMDAwMDAwMDFweDsKICAgICAgICBmbGV4LWJhc2lzOiAwLjAwMDAwMDAwMXB4OwogICAgICB9CgogICAgICAuZmxleC1hdXRvIHsKICAgICAgICAtbXMtZmxleDogMSAxIGF1dG87CiAgICAgICAgLXdlYmtpdC1mbGV4OiAxIDEgYXV0bzsKICAgICAgICBmbGV4OiAxIDEgYXV0bzsKICAgICAgfQoKICAgICAgLmZsZXgtbm9uZSB7CiAgICAgICAgLW1zLWZsZXg6IG5vbmU7CiAgICAgICAgLXdlYmtpdC1mbGV4OiBub25lOwogICAgICAgIGZsZXg6IG5vbmU7CiAgICAgIH0KICAgIDwvc3R5bGU+CiAgPC90ZW1wbGF0ZT4KPC9kb20tbW9kdWxlPgoKCjxkb20tbW9kdWxlIGlkPSJpcm9uLWZsZXgtcmV2ZXJzZSI+CiAgPHRlbXBsYXRlPgogICAgPHN0eWxlPgogICAgICAubGF5b3V0Lmhvcml6b250YWwtcmV2ZXJzZSwKICAgICAgLmxheW91dC52ZXJ0aWNhbC1yZXZlcnNlIHsKICAgICAgICBkaXNwbGF5OiAtbXMtZmxleGJveDsKICAgICAgICBkaXNwbGF5OiAtd2Via2l0LWZsZXg7CiAgICAgICAgZGlzcGxheTogZmxleDsKICAgICAgfQoKICAgICAgLmxheW91dC5ob3Jpem9udGFsLXJldmVyc2UgewogICAgICAgIC1tcy1mbGV4LWRpcmVjdGlvbjogcm93LXJldmVyc2U7CiAgICAgICAgLXdlYmtpdC1mbGV4LWRpcmVjdGlvbjogcm93LXJldmVyc2U7CiAgICAgICAgZmxleC1kaXJlY3Rpb246IHJvdy1yZXZlcnNlOwogICAgICB9CgogICAgICAubGF5b3V0LnZlcnRpY2FsLXJldmVyc2UgewogICAgICAgIC1tcy1mbGV4LWRpcmVjdGlvbjogY29sdW1uLXJldmVyc2U7CiAgICAgICAgLXdlYmtpdC1mbGV4LWRpcmVjdGlvbjogY29sdW1uLXJldmVyc2U7CiAgICAgICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbi1yZXZlcnNlOwogICAgICB9CgogICAgICAubGF5b3V0LndyYXAtcmV2ZXJzZSB7CiAgICAgICAgLW1zLWZsZXgtd3JhcDogd3JhcC1yZXZlcnNlOwogICAgICAgIC13ZWJraXQtZmxleC13cmFwOiB3cmFwLXJldmVyc2U7CiAgICAgICAgZmxleC13cmFwOiB3cmFwLXJldmVyc2U7CiAgICAgIH0KICAgIDwvc3R5bGU+CiAgPC90ZW1wbGF0ZT4KPC9kb20tbW9kdWxlPgoKCjxkb20tbW9kdWxlIGlkPSJpcm9uLWZsZXgtYWxpZ25tZW50Ij4KICA8dGVtcGxhdGU+CiAgICA8c3R5bGU+CiAgICAgIC8qKgogICAgICAgKiBBbGlnbm1lbnQgaW4gY3Jvc3MgYXhpcy4KICAgICAgICovCiAgICAgIC5sYXlvdXQuc3RhcnQgewogICAgICAgIC1tcy1mbGV4LWFsaWduOiBzdGFydDsKICAgICAgICAtd2Via2l0LWFsaWduLWl0ZW1zOiBmbGV4LXN0YXJ0OwogICAgICAgIGFsaWduLWl0ZW1zOiBmbGV4LXN0YXJ0OwogICAgICB9CgogICAgICAubGF5b3V0LmNlbnRlciwKICAgICAgLmxheW91dC5jZW50ZXItY2VudGVyIHsKICAgICAgICAtbXMtZmxleC1hbGlnbjogY2VudGVyOwogICAgICAgIC13ZWJraXQtYWxpZ24taXRlbXM6IGNlbnRlcjsKICAgICAgICBhbGlnbi1pdGVtczogY2VudGVyOwogICAgICB9CgogICAgICAubGF5b3V0LmVuZCB7CiAgICAgICAgLW1zLWZsZXgtYWxpZ246IGVuZDsKICAgICAgICAtd2Via2l0LWFsaWduLWl0ZW1zOiBmbGV4LWVuZDsKICAgICAgICBhbGlnbi1pdGVtczogZmxleC1lbmQ7CiAgICAgIH0KCiAgICAgIC5sYXlvdXQuYmFzZWxpbmUgewogICAgICAgIC1tcy1mbGV4LWFsaWduOiBiYXNlbGluZTsKICAgICAgICAtd2Via2l0LWFsaWduLWl0ZW1zOiBiYXNlbGluZTsKICAgICAgICBhbGlnbi1pdGVtczogYmFzZWxpbmU7CiAgICAgIH0KCiAgICAgIC8qKgogICAgICAgKiBBbGlnbm1lbnQgaW4gbWFpbiBheGlzLgogICAgICAgKi8KICAgICAgLmxheW91dC5zdGFydC1qdXN0aWZpZWQgewogICAgICAgIC1tcy1mbGV4LXBhY2s6IHN0YXJ0OwogICAgICAgIC13ZWJraXQtanVzdGlmeS1jb250ZW50OiBmbGV4LXN0YXJ0OwogICAgICAgIGp1c3RpZnktY29udGVudDogZmxleC1zdGFydDsKICAgICAgfQoKICAgICAgLmxheW91dC5jZW50ZXItanVzdGlmaWVkLAogICAgICAubGF5b3V0LmNlbnRlci1jZW50ZXIgewogICAgICAgIC1tcy1mbGV4LXBhY2s6IGNlbnRlcjsKICAgICAgICAtd2Via2l0LWp1c3RpZnktY29udGVudDogY2VudGVyOwogICAgICAgIGp1c3RpZnktY29udGVudDogY2VudGVyOwogICAgICB9CgogICAgICAubGF5b3V0LmVuZC1qdXN0aWZpZWQgewogICAgICAgIC1tcy1mbGV4LXBhY2s6IGVuZDsKICAgICAgICAtd2Via2l0LWp1c3RpZnktY29udGVudDogZmxleC1lbmQ7CiAgICAgICAganVzdGlmeS1jb250ZW50OiBmbGV4LWVuZDsKICAgICAgfQoKICAgICAgLmxheW91dC5hcm91bmQtanVzdGlmaWVkIHsKICAgICAgICAtbXMtZmxleC1wYWNrOiBkaXN0cmlidXRlOwogICAgICAgIC13ZWJraXQtanVzdGlmeS1jb250ZW50OiBzcGFjZS1hcm91bmQ7CiAgICAgICAganVzdGlmeS1jb250ZW50OiBzcGFjZS1hcm91bmQ7CiAgICAgIH0KCiAgICAgIC5sYXlvdXQuanVzdGlmaWVkIHsKICAgICAgICAtbXMtZmxleC1wYWNrOiBqdXN0aWZ5OwogICAgICAgIC13ZWJraXQtanVzdGlmeS1jb250ZW50OiBzcGFjZS1iZXR3ZWVuOwogICAgICAgIGp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2VlbjsKICAgICAgfQoKICAgICAgLyoqCiAgICAgICAqIFNlbGYgYWxpZ25tZW50LgogICAgICAgKi8KICAgICAgLnNlbGYtc3RhcnQgewogICAgICAgIC1tcy1hbGlnbi1zZWxmOiBmbGV4LXN0YXJ0OwogICAgICAgIC13ZWJraXQtYWxpZ24tc2VsZjogZmxleC1zdGFydDsKICAgICAgICBhbGlnbi1zZWxmOiBmbGV4LXN0YXJ0OwogICAgICB9CgogICAgICAuc2VsZi1jZW50ZXIgewogICAgICAgIC1tcy1hbGlnbi1zZWxmOiBjZW50ZXI7CiAgICAgICAgLXdlYmtpdC1hbGlnbi1zZWxmOiBjZW50ZXI7CiAgICAgICAgYWxpZ24tc2VsZjogY2VudGVyOwogICAgICB9CgogICAgICAuc2VsZi1lbmQgewogICAgICAgIC1tcy1hbGlnbi1zZWxmOiBmbGV4LWVuZDsKICAgICAgICAtd2Via2l0LWFsaWduLXNlbGY6IGZsZXgtZW5kOwogICAgICAgIGFsaWduLXNlbGY6IGZsZXgtZW5kOwogICAgICB9CgogICAgICAuc2VsZi1zdHJldGNoIHsKICAgICAgICAtbXMtYWxpZ24tc2VsZjogc3RyZXRjaDsKICAgICAgICAtd2Via2l0LWFsaWduLXNlbGY6IHN0cmV0Y2g7CiAgICAgICAgYWxpZ24tc2VsZjogc3RyZXRjaDsKICAgICAgfQoKICAgICAgLnNlbGYtYmFzZWxpbmUgewogICAgICAgIC1tcy1hbGlnbi1zZWxmOiBiYXNlbGluZTsKICAgICAgICAtd2Via2l0LWFsaWduLXNlbGY6IGJhc2VsaW5lOwogICAgICAgIGFsaWduLXNlbGY6IGJhc2VsaW5lOwogICAgICB9CgogICAgICAvKioKICAgICAgICogbXVsdGktbGluZSBhbGlnbm1lbnQgaW4gbWFpbiBheGlzLgogICAgICAgKi8KICAgICAgLmxheW91dC5zdGFydC1hbGlnbmVkIHsKICAgICAgICAtbXMtZmxleC1saW5lLXBhY2s6IHN0YXJ0OyAgLyogSUUxMCAqLwogICAgICAgIC1tcy1hbGlnbi1jb250ZW50OiBmbGV4LXN0YXJ0OwogICAgICAgIC13ZWJraXQtYWxpZ24tY29udGVudDogZmxleC1zdGFydDsKICAgICAgICBhbGlnbi1jb250ZW50OiBmbGV4LXN0YXJ0OwogICAgICB9CgogICAgICAubGF5b3V0LmVuZC1hbGlnbmVkIHsKICAgICAgICAtbXMtZmxleC1saW5lLXBhY2s6IGVuZDsgIC8qIElFMTAgKi8KICAgICAgICAtbXMtYWxpZ24tY29udGVudDogZmxleC1lbmQ7CiAgICAgICAgLXdlYmtpdC1hbGlnbi1jb250ZW50OiBmbGV4LWVuZDsKICAgICAgICBhbGlnbi1jb250ZW50OiBmbGV4LWVuZDsKICAgICAgfQoKICAgICAgLmxheW91dC5jZW50ZXItYWxpZ25lZCB7CiAgICAgICAgLW1zLWZsZXgtbGluZS1wYWNrOiBjZW50ZXI7ICAvKiBJRTEwICovCiAgICAgICAgLW1zLWFsaWduLWNvbnRlbnQ6IGNlbnRlcjsKICAgICAgICAtd2Via2l0LWFsaWduLWNvbnRlbnQ6IGNlbnRlcjsKICAgICAgICBhbGlnbi1jb250ZW50OiBjZW50ZXI7CiAgICAgIH0KCiAgICAgIC5sYXlvdXQuYmV0d2Vlbi1hbGlnbmVkIHsKICAgICAgICAtbXMtZmxleC1saW5lLXBhY2s6IGp1c3RpZnk7ICAvKiBJRTEwICovCiAgICAgICAgLW1zLWFsaWduLWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47CiAgICAgICAgLXdlYmtpdC1hbGlnbi1jb250ZW50OiBzcGFjZS1iZXR3ZWVuOwogICAgICAgIGFsaWduLWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47CiAgICAgIH0KCiAgICAgIC5sYXlvdXQuYXJvdW5kLWFsaWduZWQgewogICAgICAgIC1tcy1mbGV4LWxpbmUtcGFjazogZGlzdHJpYnV0ZTsgIC8qIElFMTAgKi8KICAgICAgICAtbXMtYWxpZ24tY29udGVudDogc3BhY2UtYXJvdW5kOwogICAgICAgIC13ZWJraXQtYWxpZ24tY29udGVudDogc3BhY2UtYXJvdW5kOwogICAgICAgIGFsaWduLWNvbnRlbnQ6IHNwYWNlLWFyb3VuZDsKICAgICAgfQogICAgPC9zdHlsZT4KICA8L3RlbXBsYXRlPgo8L2RvbS1tb2R1bGU+Cgo8ZG9tLW1vZHVsZSBpZD0iaXJvbi1mbGV4LWZhY3RvcnMiPgogIDx0ZW1wbGF0ZT4KICAgIDxzdHlsZT4KICAgICAgLmZsZXgsCiAgICAgIC5mbGV4LTEgewogICAgICAgIC1tcy1mbGV4OiAxIDEgMC4wMDAwMDAwMDFweDsKICAgICAgICAtd2Via2l0LWZsZXg6IDE7CiAgICAgICAgZmxleDogMTsKICAgICAgICAtd2Via2l0LWZsZXgtYmFzaXM6IDAuMDAwMDAwMDAxcHg7CiAgICAgICAgZmxleC1iYXNpczogMC4wMDAwMDAwMDFweDsKICAgICAgfQoKICAgICAgLmZsZXgtMiB7CiAgICAgICAgLW1zLWZsZXg6IDI7CiAgICAgICAgLXdlYmtpdC1mbGV4OiAyOwogICAgICAgIGZsZXg6IDI7CiAgICAgIH0KCiAgICAgIC5mbGV4LTMgewogICAgICAgIC1tcy1mbGV4OiAzOwogICAgICAgIC13ZWJraXQtZmxleDogMzsKICAgICAgICBmbGV4OiAzOwogICAgICB9CgogICAgICAuZmxleC00IHsKICAgICAgICAtbXMtZmxleDogNDsKICAgICAgICAtd2Via2l0LWZsZXg6IDQ7CiAgICAgICAgZmxleDogNDsKICAgICAgfQoKICAgICAgLmZsZXgtNSB7CiAgICAgICAgLW1zLWZsZXg6IDU7CiAgICAgICAgLXdlYmtpdC1mbGV4OiA1OwogICAgICAgIGZsZXg6IDU7CiAgICAgIH0KCiAgICAgIC5mbGV4LTYgewogICAgICAgIC1tcy1mbGV4OiA2OwogICAgICAgIC13ZWJraXQtZmxleDogNjsKICAgICAgICBmbGV4OiA2OwogICAgICB9CgogICAgICAuZmxleC03IHsKICAgICAgICAtbXMtZmxleDogNzsKICAgICAgICAtd2Via2l0LWZsZXg6IDc7CiAgICAgICAgZmxleDogNzsKICAgICAgfQoKICAgICAgLmZsZXgtOCB7CiAgICAgICAgLW1zLWZsZXg6IDg7CiAgICAgICAgLXdlYmtpdC1mbGV4OiA4OwogICAgICAgIGZsZXg6IDg7CiAgICAgIH0KCiAgICAgIC5mbGV4LTkgewogICAgICAgIC1tcy1mbGV4OiA5OwogICAgICAgIC13ZWJraXQtZmxleDogOTsKICAgICAgICBmbGV4OiA5OwogICAgICB9CgogICAgICAuZmxleC0xMCB7CiAgICAgICAgLW1zLWZsZXg6IDEwOwogICAgICAgIC13ZWJraXQtZmxleDogMTA7CiAgICAgICAgZmxleDogMTA7CiAgICAgIH0KCiAgICAgIC5mbGV4LTExIHsKICAgICAgICAtbXMtZmxleDogMTE7CiAgICAgICAgLXdlYmtpdC1mbGV4OiAxMTsKICAgICAgICBmbGV4OiAxMTsKICAgICAgfQoKICAgICAgLmZsZXgtMTIgewogICAgICAgIC1tcy1mbGV4OiAxMjsKICAgICAgICAtd2Via2l0LWZsZXg6IDEyOwogICAgICAgIGZsZXg6IDEyOwogICAgICB9CiAgICA8L3N0eWxlPgogIDwvdGVtcGxhdGU+CjwvZG9tLW1vZHVsZT4KCgo8ZG9tLW1vZHVsZSBpZD0iaXJvbi1wb3NpdGlvbmluZyI+CiAgPHRlbXBsYXRlPgogICAgPHN0eWxlPgogICAgICAuYmxvY2sgewogICAgICAgIGRpc3BsYXk6IGJsb2NrOwogICAgICB9CgogICAgICBbaGlkZGVuXSB7CiAgICAgICAgZGlzcGxheTogbm9uZSAhaW1wb3J0YW50OwogICAgICB9CgogICAgICAuaW52aXNpYmxlIHsKICAgICAgICB2aXNpYmlsaXR5OiBoaWRkZW4gIWltcG9ydGFudDsKICAgICAgfQoKICAgICAgLnJlbGF0aXZlIHsKICAgICAgICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgICAgIH0KCiAgICAgIC5maXQgewogICAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTsKICAgICAgICB0b3A6IDA7CiAgICAgICAgcmlnaHQ6IDA7CiAgICAgICAgYm90dG9tOiAwOwogICAgICAgIGxlZnQ6IDA7CiAgICAgIH0KCiAgICAgIGJvZHkuZnVsbGJsZWVkIHsKICAgICAgICBtYXJnaW46IDA7CiAgICAgICAgaGVpZ2h0OiAxMDB2aDsKICAgICAgfQoKICAgICAgLnNjcm9sbCB7CiAgICAgICAgLXdlYmtpdC1vdmVyZmxvdy1zY3JvbGxpbmc6IHRvdWNoOwogICAgICAgIG92ZXJmbG93OiBhdXRvOwogICAgICB9CgogICAgICAvKiBmaXhlZCBwb3NpdGlvbiAqLwogICAgICAuZml4ZWQtYm90dG9tLAogICAgICAuZml4ZWQtbGVmdCwKICAgICAgLmZpeGVkLXJpZ2h0LAogICAgICAuZml4ZWQtdG9wIHsKICAgICAgICBwb3NpdGlvbjogZml4ZWQ7CiAgICAgIH0KCiAgICAgIC5maXhlZC10b3AgewogICAgICAgIHRvcDogMDsKICAgICAgICBsZWZ0OiAwOwogICAgICAgIHJpZ2h0OiAwOwogICAgICB9CgogICAgICAuZml4ZWQtcmlnaHQgewogICAgICAgIHRvcDogMDsKICAgICAgICByaWdodDogMDsKICAgICAgICBib3R0b206IDA7CiAgICAgIH0KCiAgICAgIC5maXhlZC1ib3R0b20gewogICAgICAgIHJpZ2h0OiAwOwogICAgICAgIGJvdHRvbTogMDsKICAgICAgICBsZWZ0OiAwOwogICAgICB9CgogICAgICAuZml4ZWQtbGVmdCB7CiAgICAgIC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gIHRleHQtb3ZlcmZsb3c6IGVsbGlwc2lzOwogICAgICB9CgogICAgICB0Zi1ydW5zLXNlbGVjdG9yIHsKICAgICAgICBmbGV4LWdyb3c6IDE7CiAgICAgICAgZmxleC1zaHJpbms6IDE7CiAgICAgICAgbGVmdDogdmFyKC0tc2lkZWJhci1sZWZ0LXBhZGRpbmcpOwogICAgICAgIG1heC1oZWlnaHQ6IGNhbGMoMTAwJSAtIHZhcigtLXNpZGViYXItdmVydGljYWwtcGFkZGluZykgKiAyKTsKICAgICAgICBvdmVyZmxvdzogaGlkZGVuOwogICAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTsKICAgICAgICByaWdodDogMDsKICAgICAgfQoKICAgICAgLnNlYXJjaC1pbnB1dCB7CiAgICAgICAgbWFyZ2luOiAxMHB4IDVweCAwIDEwcHg7CiAgICAgIH0KCiAgICAgIC5zaWRlYmFyLXNlY3Rpb24gewogICAgICAgIGJvcmRlci10b3A6IHNvbGlkIDFweCByZ2JhKDAsIDAsIDAsIDAuMTIpOwogICAgICAgIHBhZGRpbmc6IHZhcigtLXNpZGViYXItdmVydGljYWwtcGFkZGluZykgMAogICAgICAgICAgdmFyKC0tc2lkZWJhci12ZXJ0aWNhbC1wYWRkaW5nKSB2YXIoLS1zaWRlYmFyLWxlZnQtcGFkZGluZyk7CiAgICAgICAgcG9zaXRpb246IHJlbGF0aXZlOwogICAgICB9CgogICAgICAuc2lkZWJhci1zZWN0aW9uOmZpcnN0LW9mLXR5cGUgewogICAgICAgIGJvcmRlcjogbm9uZTsKICAgICAgfQoKICAgICAgLnNpZGViYXItc2VjdGlvbjpsYXN0LW9mLXR5cGUgewogICAgICAgIGZsZXgtZ3JvdzogMTsKICAgICAgICBkaXNwbGF5OiBmbGV4OwogICAgICB9CgogICAgICAuc2lkZWJhci1zZWN0aW9uIHBhcGVyLWJ1dHRvbiB7CiAgICAgICAgbWFyZ2luOiA1cHg7CiAgICAgIH0KCiAgICAgIC5zaWRlYmFyLXNlY3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AgZGlzcGxheTogZmxleDsKICAgICAgICBmbGV4LWRpcmVjdGlvbjogcm93OwogICAgICAgIGhlaWdodDogMTAwJTsKICAgICAgfQoKICAgICAgI3NpZGViYXIgewogICAgICAgIGZsZXg6IDAgMCB2YXIoLS10Zi1kYXNoYm9hcmQtbGF5b3V0LXNpZGViYXItYmFzaXMsIDI1JSk7CiAgICAgICAgaGVpZ2h0OiAxMDAlOwogICAgICAgIG1heC13aWR0aDogdmFyKC0tdGYtZGFzaGJvYXJkLWxheW91dC1zaWRlYmFyLW1heC13aWR0aCwgMzUwcHgpOwogICAgICAgIG1pbi13aWR0aDogdmFyKC0tdGYtZGFzaGJvYXJkLWxheW91dC1zaWRlYmFyLW1pbi13aWR0aCwgMjcwcHgpOwogICAgICAgIG92ZXJmbG93LXk6IGF1dG87CiAgICAgICAgdGV4dC1vdmVyZmxvdzogZWxsaXBzaXM7CiAgICAgIH0KCiAgICAgICNjZW50ZXIgewogICAgICAgIGZsZXgtZ3JvdzogMTsKICAgICAgICBmbGV4LXNocmluazogMTsKICAgICAgICBoZWlnaHQ6IDEwMCU7CiAgICAgICAgb3ZlcmZsb3c6IGhpZGRlbjsKICAgICAgfQoKICAgICAgOjpzbG90dGVkKFtzbG90PSdjZW50ZXInXSkgewogICAgICAgIGhlaWdodDogMTAwJTsKICAgICAgICBvdmVyZmxvdy14OiBoaWRkZW47CiAgICAgICAgb3ZlcmZsb3cteTogYXV0bzsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgICB3aWxsLWNoYW5nZTogdHJhbnNmb3JtOwogICAgICB9CgogICAgICAudGYtZ3JhcGgtZGFzaGJvYXJkICNjZW50ZXIgewogICAgICAgIGJhY2tncm91bmQ6ICNmZmY7CiAgICAgIH0KICAgIDwvc3R5bGU+CiAgPC90ZW1wbGF0ZT4KICAKPC9kb20tbW9kdWxlPgoKCgoKCjxkb20tbW9kdWxlIGlkPSJ0Zi1vcHRpb24tc2VsZWN0b3IiPgogIDx0ZW1wbGF0ZT4KICAgIDxkaXYgaWQ9IndyYXAiPgogICAgICA8aDM+W1tuYW1lXV08L2gzPgogICAgICA8ZGl2IGNsYXNzPSJjb250ZW50LXdyYXBwZXIiPjxzbG90Pjwvc2xvdD48L2Rpdj4KICAgIDwvZGl2PgogICAgPHN0eWxlPgogICAgICAuY29udGVudC13cmFwcGVyIDo6c2xvdHRlZCgqKSB7CiAgICAgICAgYmFja2dyb3VuZDogbm9uZTsKICAgICAgICBjb2xvcjogdmFyKC0tdGItdWktZGFyay1hY2NlbnQpOwogICAgICAgIGZvbnQtc2l6ZTogMTNweDsKICAgICAgICBtYXJnaW4tdG9wOiAxMHB4OwogICAgICB9CgogICAgICAuY29udGVudC13cmFwcGVyIDo6c2xvdHRlZCgqKSB7CiAgICAgICAgYmFja2dyb3VuZDogbm9uZTsKICAgICAgICBjb2xvcjogdmFyKC0tdGItdWktZGFyay1hY2NlbnQpOwogICAgICAgIGZvbnQtc2l6ZTogMTNweDsKICAgICAgICBtYXJnaW4tdG9wOiAxMHB4OwogICAgICB9CgogICAgICAuY29udGVudC13cmFwcGVyIDo6c2xvdHRlZCguc2VsZWN0ZWQpIHsKICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoLS10Yi11aS1kYXJrLWFjY2VudCk7CiAgICAgICAgY29sb3I6IHdoaXRlICFpbXBvcnRhbnQ7CiAgICAgIH0KCiAgICAgIGgzIHsKICAgICAgICBjb2xvcjogdmFyKC0tcGFwZXItZ3JleS04MDApOwogICAgICAgIGRpc3BsYXk6IGJsb2NrOwogICAgICAgIGZvbnQtc2l6ZTogMTRweDsKICAgICAgICBmb250LXdlaWdodDogbm9ybWFsOwogICAgICAgIG1hcmdpbjogMCAwIDVweDsKICAgICAgICBwb2ludGVyLWV2ZW50czogbm9uZTsKICAgICAgfQogICAgPC9zdHlsZT4KICA8L3RlbXBsYXRlPgogIAo8L2RvbS1tb2R1bGU+CgoKCgoKCgoKCjxkb20tbW9kdWxlIGlkPSJpcm9uLWNv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9uZTsKICAgICAgICBjdXJzb3I6IHBvaW50ZXI7CiAgICAgICAgd2lkdGg6IDEwMCU7CiAgICAgICAgZm9udC1zaXplOiAxNXB4OwogICAgICAgIGxpbmUtaGVpZ2h0OiAxOwogICAgICAgIGJveC1zaGFkb3c6IDAgMXB4IDVweCByZ2JhKDAsIDAsIDAsIDAuMik7CiAgICAgICAgcGFkZGluZzogMTBweCAxNXB4OwogICAgICAgIGRpc3BsYXk6IGZsZXg7CiAgICAgICAgYWxpZ24taXRlbXM6IGNlbnRlcjsKICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47CiAgICAgIH0KCiAgICAgIC5oZWFkaW5nOjotbW96LWZvY3VzLWlubmVyIHsKICAgICAgICBwYWRkaW5nOiAxMHB4IDE1cHg7CiAgICAgIH0KCiAgICAgIFtvcGVuLWJ1dHRvbl0gewogICAgICAgIGJvcmRlci1ib3R0b20tbGVmdC1yYWRpdXM6IDAgIWltcG9ydGFudDsKICAgICAgICBib3JkZXItYm90dG9tLXJpZ2h0LXJhZGl1czogMCAhaW1wb3J0YW50OwogICAgICB9CgogICAgICBbb3Blbi1idXR0b25dIC5leHBhbmQtYXJyb3cgewogICAgICAgIHRyYW5zZm9ybTogcm90YXRlWigxODBkZWcpOwogICAgICB9CgogICAgICAubmFtZSB7CiAgICAgICAgZGlzcGxheTogaW5saW5lLWZsZXg7CiAgICAgICAgb3ZlcmZsb3c6IGhpZGRlbjsKICAgICAgfQoKICAgICAgLmxpZ2h0IHsKICAgICAgICBjb2xvcjogdmFyKC0tcGFwZXItZ3JleS01MDApOwogICAgICB9CgogICAgICAuY2F0ZWdvcnktbmFtZSB7CiAgICAgICAgd2hpdGUtc3BhY2U6IHByZTsKICAgICAgICBvdmVyZmxvdzogaGlkZGVuOwogICAgICAgIHRleHQtb3ZlcmZsb3c6IGVsbGlwc2lzOwogICAgICAgIHBhZGRpbmc6IDJweCAwOwogICAgICB9CgogICAgICAuY291bnQgewogICAgICAgIG1hcmdpbjogMCA1cHg7CiAgICAgICAgZm9udC1zaXplOiAxMnB4OwogICAgICAgIGNvbG9yOiB2YXIoLS1wYXBlci1ncmV5LTUwMCk7CiAgICAgICAgZGlzcGxheTogZmxleDsKICAgICAgICBhbGlnbi1pdGVtczogY2VudGVyOwogICAgICAgIGZsZXg6IG5vbmU7CiAgICAgIH0KCiAgICAgIC5oZWFkaW5nOjotbW96LWZvY3VzLWlubmVyIHsKICAgICAgICBwYWRkaW5nOiAxMHB4IDE1cHg7CiAgICAgIH0KCiAgICAgIC5jb250ZW50IHsKICAgICAgICBkaXNwbGF5OiBmbGV4OwogICAgICAgIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW47CiAgICAgICAgYmFja2dyb3VuZDogd2hpdGU7CiAgICAgICAgYm9yZGVyLWJvdHRvbS1sZWZ0LXJhZGl1czogMnB4OwogICAgICAgIGJvcmRlci1ib3R0b20tcmlnaHQtcmFkaXVzOiAycHg7CiAgICAgICAgYm9yZGVyLXRvcDogbm9uZTsKICAgICAgICBib3JkZXI6IDFweCBzb2xpZCAjZGVkZWRlOwogICAgICAgIHBhZGRpbmc6IDE1cHg7CiAgICAgIH0KCiAgICAgIC5saWdodCB7CiAgICAgICAgY29sb3I6IHZhcigtLXBhcGVyLWdyZXktNTAwKTsKICAgICAgfQoKICAgICAgI2NvbnRyb2xzLWNvbnRhaW5lciB7CiAgICAgICAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7CiAgICAgICAgZGlzcGxheTogZmxleDsKICAgICAgICBmbGV4LWRpcmVjdGlvbjogcm93OwogICAgICAgIGZsZXgtZ3JvdzogMDsKICAgICAgICBmbGV4LXNocmluazogMDsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgfQoKICAgICAgI2NvbnRyb2xzLWNvbnRhaW5lciBwYXBlci1idXR0b24gewogICAgICAgIGRpc3BsYXk6IGlubGluZS1ibG9jazsKICAgICAgfQoKICAgICAgLmJpZy1wYWdlLWJ1dHRvbnMgewog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ICNpbmsgewogICAgICAgIGNvbG9yOiB2YXIoLS1wYXBlci1pY29uLWJ1dHRvbi1pbmstY29sb3IsIHZhcigtLXByaW1hcnktdGV4dC1jb2xvcikpOwogICAgICAgIG9wYWNpdHk6IDAuNjsKICAgICAgfQoKICAgICAgOmhvc3QoW2Rpc2FibGVkXSkgewogICAgICAgIGNvbG9yOiB2YXIoLS1wYXBlci1pY29uLWJ1dHRvbi1kaXNhYmxlZC10ZXh0LCB2YXIoLS1kaXNhYmxlZC10ZXh0LWNvbG9yKSk7CiAgICAgICAgcG9pbnRlci1ldmVudHM6IG5vbmU7CiAgICAgICAgY3Vyc29yOiBhdXRvOwoKICAgICAgICBAYXBwbHkgLS1wYXBlci1pY29uLWJ1dHRvbi1kaXNhYmxlZDsKICAgICAgfQoKICAgICAgOmhvc3QoW2hpZGRlbl0pIHsKICAgICAgICBkaXNwbGF5OiBub25lICFpbXBvcnRhbnQ7CiAgICAgIH0KCiAgICAgIDpob3N0KDpob3ZlcikgewogICAgICAgIEBhcHBseSAtLXBhcGVyLWljb24tYnV0dG9uLWhvdmVyOwogICAgICB9CgogICAgICBpcm9uLWljb24gewogICAgICAgIC0taXJvbi1pY29uLXdpZHRoOiAxMDAlOwogICAgICAgIC0taXJvbi1pY29uLWhlaWdodDogMTAwJTsKICAgICAgfQogICAgPC9zdHlsZT4KCiAgICA8aXJvbi1pY29uIGlkPSJpY29uIiBzcmM9Iltbc3JjXV0iIGljb249IltbaWNvbl1dIiBhbHQkPSJbW2FsdF1dIj48L2lyb24taWNvbj4KICA8L3RlbXBsYXRlPgoKICAKPC9kb20tbW9kdWxlPgoKCgoKCgoKCjxkb20tbW9kdWxlIGlkPSJydW4tY29sb3Itc3R5bGUiPgogIDx0ZW1wbGF0ZT4KICAgIDxzdHlsZT4KICAgICAgW2NvbG9yLWNsYXNzPSdsaWdodC1ibHVlJ10gcGFwZXItY2hlY2tib3ggewogICAgICAgIC0tcGFwZXItY2hlY2tib3gtY2hlY2tlZC1jb2xvcjogdmFyKC0tcGFwZXItbGlnaHQtYmx1ZS01MDApOwogICAgICAgIC0tcGFwZXItY2hlY2tib3gtY2hlY2tlZC1pbmstY29sb3I6IHZhcigtLXBhcGVyLWxpZ2h0LWJsdWUtNTAwKTsKICAgICAgICAtLXBhcGVyLWNoZWNrYm94LXVuY2hlY2tlZC1jb2xvcjogdmFyKC0tcGFwZXItbGlnaHQtYmx1ZS05MDApOwogICAgICAgIC0tcGFwZXItY2hlY2tib3gtdW5jaGVja2VkLWluay1jb2xvcjogdmFyKC0tcGFwZXItbGlnaHQtYmx1ZS05MDApOwogICAgICB9CiAgICAgIFtjb2xvci1jbGFzcz0ncmVkJ10gcGFwZXItY2hlY2tib3ggewogICAgICAgIC0tcGFwZXItY2hlY2tib3gtY2hlY2tlZC1jb2xvcjogdmFyKC0tcGFwZXItcmVkLTUwMCk7CiAgICAgICAgLS1wYXBlci1jaGVja2JveC1jaGVja2VkLWluay1jb2xvcjogdmFyKC0tcGFwZXItcmVkLTUwMCk7CiAgICAgICAgLS1wYXBlci1jaGVja2JveC11bmNoZWNrZWQtY29sb3I6IHZhcigtLXBhcGVyLXJlZC05MDApOwogICAgICAgIC0tcGFwZXItY2hlY2tib3gtdW5jaGVja2VkLWluay1jb2xvcjogdmFyKC0tcGFwZXItcmVkLTkwMCk7CiAgICAgIH0KICAgICAgW2NvbG9yLWNsYXNzPSdncmVlbiddIHBhcGVyLWNoZWNrYm94IHsKICAgICAgICAtLXBhcGVyLWNoZWNrYm94LWNoZWNrZWQtY29sb3I6IHZhcigtLXBhcGVyLWdyZWVuLTUwMCk7CiAgICAgICAgLS1wYXBlci1jaGVja2JveC1jaGVja2VkLWluay1jb2xvcjogdmFyKC0tcGFwZXItZ3JlZW4tNTAwKTsKICAgICAgICAtLXBhcGVyLWNoZWNrYm94LXVuY2hlY2tlZC1jb2xvcjogdmFyKC0tcGFwZXItZ3JlZW4tOTAwKTsKICAgICAgICAtLXBhcGVyLWNoZWNrYm94LXVuY2hlY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tLXBhcGVyLXBpbmstNTAwKTsKICAgICAgICAtLXBhcGVyLWNoZWNrYm94LXVuY2hlY2tlZC1jb2xvcjogdmFyKC0tcGFwZXItcGluay05MDApOwogICAgICAgIC0tcGFwZXItY2hlY2tib3gtdW5jaGVja2VkLWluay1jb2xvcjogdmFyKC0tcGFwZXItcGluay05MDApOwogICAgICB9CiAgICAgIFtjb2xvci1jbGFzcz0nb3JhbmdlJ10gcGFwZXItY2hlY2tib3ggewogICAgICAgIC0tcGFwZXItY2hlY2tib3gtY2hlY2tlZC1jb2xvcjogdmFyKC0tcGFwZXItb3JhbmdlLTUwMCk7CiAgICAgICAgLS1wYXBlci1jaGVja2JveC1jaGVja2VkLWluay1jb2xvcjogdmFyKC0tcGFwZXItb3JhbmdlLTUwMCk7CiAgICAgICAgLS1wYXBlci1jaGVja2JveC11bmNoZWNrZWQtY29sb3I6IHZhcigtLXBhcGVyLW9yYW5nZS05MDApOwogICAgICAgIC0tcGFwZXItY2hlY2tib3gtdW5jaGVja2VkLWluay1jb2xvcjogdmFyKC0tcGFwZXItb3JhbmdlLTkwMCk7CiAgICAgIH0KICAgICAgW2NvbG9yLWNsYXNzPSdicm93biddIHBhcGVyLWNoZWNrYm94IHsKICAgICAgICAtLXBhcGVyLWNoZWNrYm94LWNoZWNrZWQtY29sb3I6IHZhcigtLXBhcGVyLWJyb3duLTUwMCk7CiAgICAgICAgLS1wYXBlci1jaGVja2JveC1jaGVja2VkLWluay1jb2xvcjogdmFyKC0tcGFwZXItYnJvd24tNTAwKTsKICAgICAgICAtLXBhcGVyLWNoZWNrYm94LXVuY2hlY2tlZC1jb2xvcjogdmFyKC0tcGFwZXItYnJvd24tOTAwKTsKICAgICAgICAtLXBhcGVyLWNoZWNrYm94LXVuY2hlY2tlZC1pbmstY29sb3I6IHZhcigtLXBhcGVyLWJyb3duLTkwMCk7CiAgICAgIH0KICAgICAgW2NvbG9yLWNsYXNzPSdpbmRpZ28nXSBwYXBlci1jaGVja2JveCB7CiAg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ZXItaW5wdXQ6IHsKICAgICAgICAgIGZvbnQtc2l6ZTogMTRweDsKICAgICAgICB9CiAgICAgICAgLS1wYXBlci1pbnB1dC1jb250YWluZXItbGFiZWw6IHsKICAgICAgICAgIGZvbnQtc2l6ZTogMTRweDsKICAgICAgICB9CiAgICAgIH0KICAgICAgOmhvc3QgewogICAgICAgIGRpc3BsYXk6IGZsZXg7CiAgICAgICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjsKICAgICAgICBoZWlnaHQ6IDEwMCU7CiAgICAgICAgb3ZlcmZsb3c6IGhpZGRlbjsKICAgICAgfQogICAgICAjb3V0ZXItY29udGFpbmVyIHsKICAgICAgICBvdmVyZmxvdy15OiBhdXRvOwogICAgICAgIG92ZXJmbG93LXg6IGhpZGRlbjsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgICBmbGV4LWdyb3c6IDE7CiAgICAgICAgZmxleC1zaHJpbms6IDE7CiAgICAgICAgd29yZC13cmFwOiBicmVhay13b3JkOwogICAgICB9CiAgICAgIC5uYW1lLXJvdyB7CiAgICAgICAgcGFkZGluZy10b3A6IDVweDsKICAgICAgICBwYWRkaW5nLWJvdHRvbTogNXB4OwogICAgICAgIGRpc3BsYXk6IGZsZXg7CiAgICAgICAgZmxleC1kaXJlY3Rpb246IHJvdzsKICAgICAgICBmb250LXNpemU6IDEzcHg7CiAgICAgICAgd29yZC1icmVhazogYnJlYWstYWxsOyAvKiBtYWtlcyB3cmFwcGluZyBvZiBoeXBlcnBhcmFtIHN0cmluZ3MgYmV0dGVyICovCiAgICAgIH0KICAgICAgLmljb24tY29udGFpbmVyIHsKICAgICAgICBmbGV4LWdyb3c6IDA7CiAgICAgICAgZmxleC1zaHJpbms6IDA7CiAgICAgICAgcGFkZGluZy1sZWZ0OiAycHg7CiAgICAgIH0KICAgICAgLmNoZWNrYm94IHsKICAgICAgICBwYWRkaW5nLWxlZnQ6IDJweDsKICAgICAgICB3aWR0aDogMThweDsKICAgICAgICBoZWlnaHQ6IDE4cHg7CiAgICAgIH0KICAgICAgLmlzb2xhdG9yIHsKICAgICAgICB3aWR0aDogMThweDsKICAgICAgICBoZWlnaHQ6IDE4cHg7CiAgICAgICAgcGFkZGluZzogMHB4OwogICAgICB9CiAgICAgIC5pc29sYXRvci1jb250YWluZXIgewogICAgICAgIHBhZGRpbmctbGVmdDogNnB4OwogICAgICAgIHBhZGRpbmctcmlnaHQ6IDNweDsKICAgICAgfQogICAgICAuY2hlY2tib3gtY29udGFpbmVyIHsKICAgICAgICBwYWRkaW5nLWxlZnQ6IDJweDsKICAgICAgfQogICAgICAuaXRlbS1sYWJlbC1jb250YWluZXIgewogICAgICAgIHBhZGRpbmctbGVmdDogNXB4OwogICAgICAgIGZsZXgtZ3JvdzogMTsKICAgICAgICBmbGV4LXNocmluazogMTsKICAgICAgICB3aWR0aDogMHB4OyAvKiBoYWNrIHRvIGdldCB0aGUgZmxleC1ncm93IHRvIHdvcmsgcHJvcGVybHkgKi8KICAgICAgfQogICAgICAudG9vbHRpcC12YWx1ZS1jb250YWluZXIgewogICAgICAgIGRpc3BsYXk6IGZsZXg7CiAgICAgICAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7CiAgICAgICAgZmxleC1ncm93OiAwOwogICAgICAgIGZsZXgtc2hyaW5rOiAwOwogICAgICAgIHRleHQtYWxpZ246IHJpZ2h0OwogICAgICAgIHBhZGRpbmctbGVmdDogMnB4OwogICAgICB9CiAgICAgIC52ZXJ0aWNhbC1hbGlnbi1jb250YWluZXIgewogICAgICAgIGRpc3BsYXk6IGZsZXg7CiAgICAgICAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7CiAgICAgIH0KICAgICAgLnZlcnRpY2FsLWFsaWduLWNvbnRhaW5lciAudmVydGljYWwtYWxpZ24tY2VudGVyIHsKICAgICAgICBhbGlnbi1zZWxmOiBjZW50ZXI7CiAgICAgIH0KICAgICAgLnZlcnRpY2FsLWFsaWduLWNvbnRhaW5lciAudmVydGljYWwtYWxpZ24tdG9w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mbGV4LXNocmluazogMTsKICAgICAgICBvdmVyZmxvdzogaGlkZGVuOwogICAgICB9CiAgICAgIC54LWJ1dHRvbiB7CiAgICAgICAgZm9udC1zaXplOiAxM3B4OwogICAgICAgIGJhY2tncm91bmQtY29sb3I6IHZhcigtLXRiLXVpLWxpZ2h0LWFjY2VudCk7CiAgICAgICAgY29sb3I6IHZhcigtLXRiLXVpLWRhcmstYWNjZW50KTsKICAgICAgfQogICAgICAjdG9vbHRpcC1oZWxwIHsKICAgICAgICBjb2xvcjogdmFyKC0tcGFwZXItZ3JleS04MDApOwogICAgICAgIG1hcmdpbjogMDsKICAgICAgICBmb250LXdlaWdodDogbm9ybWFsOwogICAgICAgIGZvbnQtc2l6ZTogMTRweDsKICAgICAgICBtYXJnaW4tYm90dG9tOiA1cHg7CiAgICAgIH0KICAgICAgcGFwZXItYnV0dG9uIHsKICAgICAgICBtYXJnaW4tbGVmdDogMDsKICAgICAgfQogICAgICAjZGF0YS1sb2NhdGlvbiB7CiAgICAgICAgY29sb3I6IHZhcigtLXRiLXVpLWRhcmstYWNjZW50KTsKICAgICAgICBmb250LXNpemU6IDEzcHg7CiAgICAgICAgbWFyZ2luOiA1cHggMCAwIDA7CiAgICAgICAgbWF4LXdpZHRoOiAyODhweDsKICAgICAgfQogICAgPC9zdHlsZT4KICA8L3RlbXBsYXRlPgogIAo8L2RvbS1tb2R1bGU+CgoKCgoKCgoKCgoKCgoKCgoKCgoKPGRvbS1tb2R1bGUgaWQ9InBhcGVyLXNwaW5uZXItc3R5bGVzIj4KICA8dGVtcGxhdGU+CiAgICA8c3R5bGU+CiAgICAgIC8qCiAgICAgIC8qKioqKioqKioqKioqKioqKioqKioqKioqKi8KICAgICAgLyogU1RZTEVTIEZPUiBUSEUgU1BJTk5FUiAqLwogICAgICAvKioqKioqKioqKioqKioqKioqKioqKioqKiovCgogICAgICAvKgogICAgICAgKiBDb25zdGFudHM6CiAgICAgICAqICAgICAgQVJDU0laRSAgICAgPSAyNzAgZGVncmVlcyAoYW1vdW50IG9mIGNpcmNsZSB0aGUgYXJjIHRha2VzIHVwKQogICAgICAgKiAgICAgIEFSQ1RJTUUgICAgID0gMTMzM21zICh0aW1lIGl0IHRha2VzIHRvIGV4cGFuZCBhbmQgY29udHJhY3QgYXJjKQogICAgICAgKiAgICAgIEFSQ1NUQVJUUk9UID0gMjE2IGRlZ3JlZXMgKGhvdyBtdWNoIHRoZSBzdGFydCBsb2NhdGlvbiBvZiB0aGUgYXJjCiAgICAgICAqICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzaG91bGQgcm90YXRlIGVhY2ggdGltZSwgMjE2IGdpdmVzIHVzIGEKICAgICAgICogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDUgcG9pbnRlZCBzdGFyIHNoYXBlIChpdCdzIDM2MC81ICogMykuCiAgICAgICAqICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBGb3IgYSA3IHBvaW50ZWQgc3Rhciwgd2UgbWlnaHQgZG8KICAgICAgICogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDM2MC83ICogMyA9IDE1NC4yODYpCiAgICAgICAqICAgICAgU0hSSU5LX1RJTUUgPSA0MDBtcwogICAgICAgKi8KCiAgICAgIDpob3N0IHsKICAgICAgICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7CiAgICAgICAgcG9zaXRpb246IHJlbGF0aXZlOwogICAgICAgIHdpZHRoOiAyOHB4OwogICAgICAgIGhlaWdodDogMjhweDsKCiAgICAgICAgLyogMzYwICogQVJDVElNRSAvIChBUkNTVEFSVFJPVCArICgzNjAtQVJDU0laRSkpICovCiAgICAgICAgLS1wYXBlci1zcGlubmVyLWNvbnRhaW5lci1yb3RhdGlvbi1kdXJhdGlvbjogMTU2OG1zOwoKICAgICAgICAvKiBBUkNUSU1FICovCiAgICAgICAgLS1wYXBlci1zcGlubmVyLWV4cGFuZC1jb250cmFjdC1kdXJhdGlvbjogMTMzM21zOwoKICAgICAgICAvKiA0ICogQVJDVElNRSAqLwogICAgICAgIC0tcGFwZXItc3Bpbm5lci1mdWxsLWN5Y2xlLWR1cmF0aW9uOiA1MzMybXM7CgogICAgICAgIC8qIFNIUklOS19USU1FICovCiAgICAgICAgLS1wYXBlci1zcGlubmVyLWNvb2xkb3duLWR1cmF0aW9uOiA0MDBtczsKICAgICAgfQoKICAgICAgI3NwaW5uZXJDb250YWluZXIgewogICAgICAgIHdpZHRoOiAxMDAlOwogICAgICAgIGhlaWdodDogMTAwJTsKCiAgICAgICAgLyogVGhlIHNwaW5uZXIgZG9lcyBub3QgaGF2ZSBhbnkgY29udGVudHMgdGhhdCB3b3VsZCBoYXZlIHRvIGJlCiAgICAgICAgICogZmxpcHBlZCBpZiB0aGUgZGlyZWN0aW9uIGNoYW5nZXMuIEFsd2F5cyB1c2UgbHRyIHNvIHRoYXQgdGhlCiAgICAgICAgICogc3R5bGUgd29ya3Mgb3V0IGNvcnJlY3RseSBpbiBib3RoIGNhc2VzLiAqLwogICAgICAgIGRpcmVjdGlvbjogbHRyOwogICAgICB9CgogICAgICAjc3Bpbm5lckNvbnRhaW5lci5hY3RpdmUgewogICAgICAgIC13ZWJraXQtYW5pbWF0aW9uOiBjb250YWluZXItcm90YXRlIHZhcigtLXBhcGVyLXNwaW5uZXItY29udGFpbmVyLXJvdGF0aW9uLWR1cmF0aW9uKSBsaW5lYXIgaW5maW5pdGU7CiAgICAgICAgYW5pbWF0aW9uOiBjb250YWluZXItcm90YXRlIHZhcigtLXBhcGVyLXNwaW5uZXItY29udGFpbmVyLXJvdGF0aW9uLWR1cmF0aW9uKSBsaW5lYXIgaW5maW5pdGU7CiAgICAgIH0KCiAgICAgIEAtd2Via2l0LWtleWZyYW1lcyBjb250YWluZXItcm90YXRlIHsKICAgICAgICB0byB7IC13ZWJraXQtdHJhbnNmb3JtOiByb3RhdGUoMzYwZGVnKSB9CiAgICAgIH0KCiAgICAgIEBrZXlmcmFtZXMgY29udGFpbmVyLXJvdGF0ZSB7CiAgICAg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Hk6IDAgfQogICAgICB9CgogICAgICBAa2V5ZnJhbWVzIGxheWVyLTItZmFkZS1pbi1vdXQgewogICAgICAgIDAlIHsgb3BhY2l0eTogMCB9CiAgICAgICAgMTUlIHsgb3BhY2l0eTogMCB9CiAgICAgICAgMjUlIHsgb3BhY2l0eTogMSB9CiAgICAgICAgNTAlIHsgb3BhY2l0eTogMSB9CiAgICAgICAgNTElIHsgb3BhY2l0eTogMCB9CiAgICAgICAgdG8geyBvcGFjaXR5OiAwIH0KICAgICAgfQoKICAgICAgQC13ZWJraXQta2V5ZnJhbWVzIGxheWVyLTMtZmFkZS1pbi1vdXQgewogICAgICAgIDAlIHsgb3BhY2l0eTogMCB9CiAgICAgICAgNDAlIHsgb3BhY2l0eTogMCB9CiAgICAgICAgNTAlIHsgb3BhY2l0eTogMSB9CiAgICAgICAgNzUlIHsgb3BhY2l0eTogMSB9CiAgICAgICAgNzYlIHsgb3BhY2l0eTogMCB9CiAgICAgICAgdG8geyBvcGFjaXR5OiAwIH0KICAgICAgfQoKICAgICAgQGtleWZyYW1lcyBsYXllci0zLWZhZGUtaW4tb3V0IHsKICAgICAgICAwJSB7IG9wYWNpdHk6IDAgfQogICAgICAgIDQwJSB7IG9wYWNpdHk6IDAgfQogICAgICAgIDUwJSB7IG9wYWNpdHk6IDEgfQogICAgICAgIDc1JSB7IG9wYWNpdHk6IDEgfQogICAgICAgIDc2JSB7IG9wYWNpdHk6IDAgfQogICAgICAgIHRvIHsgb3BhY2l0eTogMCB9CiAgICAgIH0KCiAgICAgIEAtd2Via2l0LWtleWZyYW1lcyBsYXllci00LWZhZGUtaW4tb3V0IHsKICAgICAgICAwJSB7IG9wYWNpdHk6IDAgfQogICAgICAgIDY1JSB7IG9wYWNpdHk6IDAgfQogICAgICAgIDc1JSB7IG9wYWNpdHk6IDEgfQogICAgICAgIDkwJSB7IG9wYWNpdHk6IDEgfQogICAgICAgIHRvIHsgb3BhY2l0eTogMCB9CiAgICAgIH0KCiAgICAgIEBrZX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cD4KICAgIDxzdHlsZSBpbmNsdWRlPSJwbG90dGFibGUtc3R5bGUiPjwvc3R5bGU+CiAgICA8c3R5bGUgaW5jbHVkZT0idnotcGFuLXpvb20tc3R5bGUiPjwvc3R5bGU+CiAgICA8c3R5bGU+CiAgICAgIDpob3N0IHsKICAgICAgICAtbW96LXVzZXItc2VsZWN0OiBub25lOwogICAgICAgIC13ZWJraXQtdXNlci1zZWxlY3Q6IG5vbmU7CiAgICAgICAgZGlzcGxheTogZmxleDsKICAgICAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uOwogICAgICAgIGZsZXgtZ3JvdzogMTsKICAgICAgICBmbGV4LXNocmluazogMTsKICAgICAgICBvdXRsaW5lOiBub25lOwogICAgICAgIHBvc2l0aW9uOiByZWxhdGl2ZTsKICAgICAgICB3aGl0ZS1zcGFjZTogbm93cmFwOwogICAgICB9CiAgICAgIGRpdiB7CiAgICAgICAgLXdlYmtpdC11c2VyLXNlbGVjdDogbm9uZTsKICAgICAgICAtbW96LXVzZXItc2VsZWN0OiBub25lOwogICAgICAgIGZsZXgtZ3JvdzogMTsKICAgICAgICBmbGV4LXNocmluazogMTsKICAgICAgfQoKICAgICAgI2NoYXJ0ZGl2IC5tYWluIHsKICAgICAgICBjdXJzb3I6IGNyb3NzaGFpcjsKICAgICAgfQoKICAgICAgOmhvc3QoLnBhbmtleSkgI2NoYXJ0ZGl2IDpub3QoLmRyYWctem9vbWluZykgLm1haW4gewogICAgICAgIGN1cnNvcjogLXdlYmtpdC1ncmFiOwogICAgICAgIGN1cnNvcjogZ3JhYjsKICAgICAgfQoKICAgICAgOmhvc3QoLm1vdXNlZG93bikgI2NoYXJ0ZGl2IC5wYW5uaW5nIC5tYWluIHsKICAgICAgICBjdXJzb3I6IC13ZWJraXQtZ3JhYmJpbmc7CiAgICAgICAgY3Vyc29yOiBncmFiYmluZzsKICAgICAgfQoKICAgICAgI2NoYXJ0ZGl2IGxpbmUuZ3VpZGUtbGluZSB7CiAgICAgICAgc3Ryb2tlOiAjOTk5OwogICAgICAgIHN0cm9rZS13aWR0aDogMS41cHg7CiAgICAgIH0KICAgICAgI2NoYXJ0ZGl2OmhvdmVyIHsKICAgICAgICB3aWxsLWNoYW5nZTogdHJhbnNmb3JtOwogICAgICB9CgogICAgICAuZ2hvc3QgewogICAgICAgIG9wYWNpdHk6IDAuMjsKICAgICAgICBzdHJva2Utd2lkdGg6IDFweDsKICAgICAgfQogICAgPC9zdHlsZT4KICA8L3RlbXBsYXRlPgogIAogIAogIAogIAogIAo8L2RvbS1tb2R1bGU+Cgo8ZG9tLW1vZHVsZSBpZD0idnotbGluZS1jaGFydC10b29sdGlwIj4KICA8dGVtcGxhdGU+CiAgICA8ZGl2IGNsYXNzPSJjb250ZW50Ij4KICAgICAgPHRhYmxlPgogICAgICAgIDx0aGVhZD48L3RoZWFkPgogICAgICAgIDx0Ym9keT48L3Rib2R5PgogICAgICA8L3RhYmxlPgogICAgPC9kaXY+CiAgICA8c3R5bGU+CiAgICAgIDpob3N0IHsKICAgICAgICBwb2ludGVyLWV2ZW50czogbm9uZTsKICAgICAgfQoKICAgICAgLmNvbnRlbnQgewogICAgICAgIGJhY2tncm91bmQ6IHJnYmEoMCwgMCwgMCwgMC44KTsKICAgICAgICBib3JkZXItcmFkaXVzOiA0cHg7CiAgICAgICAgY29sb3I6ICNmZmY7CiAgICAgICAgb3ZlcmZsb3c6IGhpZGRlbjsKICAgICAgICBwb2ludGVyLWV2ZW50czogbm9uZTsKICAgICAgfQoKICAgICAgdGFibGUgewogICAgICAgIGZvbnQtc2l6ZTogMTNweDsKICAgICAgICBsaW5lLWhlaWdodDogMS40ZW07CiAgICAgICAgbWFyZ2luLXRvcDogMTBweDsKICAgICAgICBwYWRkaW5nOiA4cHg7CiAgICAgIH0KCiAgICAgIHRoZWFkIHsKICAgICAgICBmb250LXNpemU6IDE0cHg7CiAgICAgIH0KCiAgICAgIHRib2R5IHsKICAgICAgICBmb250LXNpemU6IDEzcHg7CiAgICAgICAg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cmVkLWluLWJhZC1zdGF0ZV0pIHZ6LWxpbmUtY2hhcnQgewogICAgICAgIHZpc2liaWxpdHk6IGhpZGRlbjsKICAgICAgfQoKICAgICAgI2NoYXJ0LWFuZC1zcGlubmVyLWNvbnRhaW5lciB7CiAgICAgICAgZGlzcGxheTogZmxleDsKICAgICAgICBmbGV4LWdyb3c6IDE7CiAgICAgICAgcG9zaXRpb246IHJlbGF0aXZlOwogICAgICB9CgogICAgICAjbG9hZGluZy1zcGlubmVyLWNvbnRhaW5lciB7CiAgICAgICAgYWxpZ24taXRlbXM6IGNlbnRlcjsKICAgICAgICBib3R0b206IDA7CiAgICAgICAgZGlzcGxheTogZmxleDsKICAgICAgICBkaXNwbGF5OiBmbGV4OwogICAgICAgIGp1c3RpZnktY29udGVudDogY2VudGVyOwogICAgICAgIGxlZnQ6IDA7CiAgICAgICAgcG9pbnRlci1ldmVudHM6IG5vbmU7CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgIHJpZ2h0OiAwOwogICAgICAgIHRvcDogMDsKICAgICAgfQoKICAgICAgdnotbGluZS1jaGFydDIgewogICAgICAgIC13ZWJraXQtdXNlci1zZWxlY3Q6IG5vbmU7CiAgICAgICAgLW1vei11c2VyLXNlbGVjdDogbm9uZTsKICAgICAgfQoKICAgICAgdnotbGluZS1jaGFydDJbZGF0YS1sb2FkaW5nXSB7CiAgICAgICAgb3BhY2l0eTogMC4zOwogICAgICB9CiAgICA8L3N0eWxlPgogIDwvdGVtcGxhdGU+CiAgCiAgCjwvZG9tLW1vZHVsZT4KCgoKCgoKCgoKCjxkb20tbW9kdWxlIGlkPSJwYXBlci1kaWFsb2ctc2Nyb2xsYWJsZSI+CgogIDx0ZW1wbGF0ZT4KICAgIDxzdHlsZT4KCiAgICAgIDpob3N0IHsKICAgICAgICBkaXNwbGF5OiBibG9jazsKICAgICAgICBAYXBwbHkgLS1sYXlvdXQtcmVsYXRpdmU7CiAgICAgIH0KCiAgICAgIDpob3N0KC5p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IHRoIHsKICAgICAgICBmb250LXdlaWdodDogNjAwOwogICAgICB9CiAgICAgICNtYXJrZG93biB0YWJsZSB0aCwKICAgICAgI21hcmtkb3duIHRhYmxlIHRkIHsKICAgICAgICBwYWRkaW5nOiA2cHggMTNweDsKICAgICAgICBib3JkZXI6IDFweCBzb2xpZCAjZGZlMmU1OwogICAgICB9CiAgICAgICNtYXJrZG93biB0YWJsZSB0ciB7CiAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZjsKICAgICAgICBib3JkZXItdG9wOiAxcHggc29saWQgI2M2Y2JkMTsKICAgICAgfQogICAgPC9zdHlsZT4KICA8L3RlbXBsYXRlPgogIAo8L2RvbS1tb2R1bGU+Cgo8ZG9tLW1vZHVsZSBpZD0idGYtY2FyZC1oZWFkaW5nLXN0eWxlIj4KICA8dGVtcGxhdGU+CiAgICA8c3R5bGU+CiAgICAgIGZpZ2NhcHRpb24gewogICAgICAgIHdpZHRoOiAxMDAlOwogICAgICB9CgogICAgICAvKiogSG9yaXpvbnRhbCBsaW5lIG9mIGxhYmVscy4gKi8KICAgICAgLmhlYWRpbmctcm93IHsKICAgICAgICBtYXJnaW4tdG9wOiAtNHB4OwogICAgICAgIGRpc3BsYXk6IGZsZXg7CiAgICAgICAgZmxleC1kaXJlY3Rpb246IHJvdzsKICAgICAgICBmbGV4LXdyYXA6IHdyYXA7CiAgICAgIH0KCiAgICAgIC8qKiBQaWVjZSBvZiB0ZXh0IGluIHRoZSBmaWd1cmUgY2FwdGlvbi4gKi8KICAgICAgLmhlYWRpbmctbGFiZWwgewogICAgICAgIGZsZXgtZ3JvdzogMTsKICAgICAgICBtYXJnaW4tdG9wOiA0cHg7CiAgICAgICAgbWF4LXdpZHRoOiAxMDAlOwogICAgICAgIHdvcmQtd3JhcDogYnJlYWstd29yZDsKICAgICAgfQoKICAgICAgLyoqIE1ha2VzIGxhYmVsIHNob3cgb24gdGhlIHJpZ2h0LiAqLwogICAgICAuaGVhZGluZy1yaWdodCB7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gIDxhIGRvd25sb2FkPSJbW19jc3ZOYW1lKHRhZywgX3J1bildXSIgaHJlZj0iW1tfY3N2VXJsKHRhZywgX3J1biwgdXJsRm4pXV0iPkNTVjwvYT48YSBkb3dubG9hZD0iW1tfanNvbk5hbWUodGFnLCBfcnVuKV1dIiBocmVmPSJbW19qc29uVXJsKHRhZywgX3J1biwgdXJsRm4pXV0iPkpTT048L2E+CiAgICA8L3RlbXBsYXRlPgogICAgPHN0eWxlPgogICAgICA6aG9zdCB7CiAgICAgICAgZGlzcGxheTogZmxleDsKICAgICAgICBhbGlnbi1pdGVtczogY2VudGVyOwogICAgICAgIGhlaWdodDogMzJweDsKICAgICAgfQogICAgICBwYXBlci1kcm9wZG93bi1tZW51IHsKICAgICAgICB3aWR0aDogMTAwcHg7CiAgICAgICAgLS1wYXBlci1pbnB1dC1jb250YWluZXItbGFiZWw6IHsKICAgICAgICAgIGZvbnQtc2l6ZTogMTBweDsKICAgICAgICB9CiAgICAgICAgLS1wYXBlci1pbnB1dC1jb250YWluZXItaW5wdXQ6IHsKICAgICAgICAgIGZvbnQtc2l6ZTogMTBweDsKICAgICAgICB9CiAgICAgIH0KICAgICAgYSB7CiAgICAgICAgZm9udC1zaXplOiAxMHB4OwogICAgICAgIG1hcmdpbjogMCAwLjJlbTsKICAgICAgfQogICAgICBwYXBlci1pbnB1dCB7CiAgICAgICAgZm9udC1zaXplOiAyMnB4OwogICAgICB9CiAgICA8L3N0eWxlPgogIDwvdGVtcGxhdGU+CiAgCjwvZG9tLW1vZHVsZT4KCgoKPGRvbS1tb2R1bGUgaWQ9InRmLXNjYWxhci1jYXJkIj4KICA8dGVtcGxhdGU+CiAgICA8dGYtY2FyZC1oZWFkaW5nIHRhZz0iW1t0YWddXSIgZGlzcGxheS1uYW1lPSJbW3RhZ01ldGFkYXRhLmRpc3BsYXlOYW1lXV0iIGRlc2NyaXB0aW9uPSJbW3RhZ01ldGFkYXRhLmRlc2NyaXB0aW9uXV0iPjwvdGYtY2FyZ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gogICAgICAgICAgICAgICAgRG93bmxvYWQgQ3VycmVudCBDaGFydCBhcyBTVkcKICAgICAgICAgICAgICA8L2E+CiAgICAgICAgICAgIDwvcGFwZXItaXRlbT4KICAgICAgICAgIDwvcGFwZXItbGlzdGJveD4KICAgICAgICA8L3BhcGVyLW1lbnUtYnV0dG9uPgogICAgICA8L3RlbXBsYXRlPgogICAgICA8c3BhbiBzdHlsZT0iZmxleC1ncm93OiAxIj48L3NwYW4+CiAgICAgIDx0ZW1wbGF0ZSBpcz0iZG9tLWlmIiBpZj0iW1tzaG93RG93bmxvYWRMaW5rc11dIj4KICAgICAgICA8ZGl2IGNsYXNzPSJkb3dubG9hZC1saW5rcyI+CiAgICAgICAgICA8dGYtZG93bmxvYWRlciBydW5zPSJbW19ydW5zRnJvbURhdGEoZGF0YVRvTG9hZCldXSIgdGFnPSJbW3RhZ11dIiB1cmwtZm49IltbX2Rvd25sb2FkVXJsRm5dXSI+PC90Zi1kb3dubG9hZGVyPgogICAgICAgIDwvZGl2PgogICAgICA8L3RlbXBsYXRlPgogICAgPC9kaXY+CiAgICA8c3R5bGU+CiAgICAgIDpob3N0IHsKICAgICAgICBtYXJnaW46IDVweDsKICAgICAgICBkaXNwbGF5OiBibG9jazsKICAgICAgICB3aWR0aDogMzMwcHg7CiAgICAgIH0KCiAgICAgIDpob3N0KFtfZXhwYW5kZWRdKSB7CiAgICAgICAgd2lkdGg6IDEwMCU7CiAgICAgIH0KCiAgICAgIDpob3N0KFtfZXhwYW5kZWRdKSAjdGYtbGluZS1jaGFydC1kYXRhLWxvYWRlci1jb250YWluZXIgewogICAgICAgIGhlaWdodDogNDAwcHg7CiAgICAgIH0KCiAgICAgICN0Zi1saW5lLWNoYXJ0LWRhdGEtbG9hZGVyLWNvbnRhaW5lciB7CiAgICAgICAgaGVpZ2h0OiAyMDBweDsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgfQoKICAgICAgdGYtY2FyZC1oZWFkaW5nIHsKICAgICAgICBkaXNwbGF5OiBibG9jazsKICAgICAgICBtYXJnaW4tYm90dG9tOiAxMHB4OwogICAgICB9CgogICAgICAjYnV0dG9ucyB7CiAgICAgICAgZGlzcGxheTogZmxleDsKICAgICAgICBmbGV4LWRpcmVjdGlvbjogcm93OwogICAgICB9CgogICAgICBwYXBlci1pY29uLWJ1dHRvbiB7CiAgICAgICAgY29sb3I6ICMyMTk2ZjM7CiAgICAgICAgYm9yZGVyLXJhZGl1czogMTAwJTsKICAgICAgICB3aWR0aDogMzJweDsKICAgICAgICBoZWlnaHQ6IDMycHg7CiAgICAgICAgcGFkZGluZzogNHB4OwogICAgICB9CgogICAgICBwYXBlci1pY29uLWJ1dHRvbltzZWxlY3RlZF0gewogICAgICAgIGJhY2tncm91bmQ6IHZhcigtLXRiLXVpLWxpZ2h0LWFjY2VudCk7CiAgICAgIH0KCiAgICAgIC5kb3dubG9hZC1saW5rcyB7CiAgICAgICAgZGlzcGxheTogZmxleDsKICAgICAgICBoZWlnaHQ6IDMycHg7CiAgICAgIH0KCiAgICAgIC5kb3dubG9hZC1saW5rcyBhIHsKICAgICAgICBhbGlnbi1zZWxmOiBjZW50ZXI7CiAgICAgICAgZm9udC1zaXplOiAxMHB4OwogICAgICAgIG1hcmdpbjogMnB4OwogICAgICB9CgogICAgICAuZG93bmxvYWQtbGlua3MgcGFwZXItZHJvcGRvd24tbWVudSB7CiAgICAgICAgd2lkdGg6IDEwMHB4OwogICAgICAgIC0tcGFwZXItaW5wdXQtY29udGFpbmVyLWxhYmVsOiB7CiAgICAgICAgICBmb250LXNpemU6IDEwcHg7CiAgICAgICAgfQogICAgICAgIC0tcGFwZXItaW5wdXQtY29udGFpbmVyLWlucHV0OiB7CiAgICAgICAgICBmb250LXNpemU6IDEwcHg7CiAgICAgICAgfQogICAgICB9CgogICAgICBwYXBlci1tZW51LWJ1dHRvbiB7CiAgICAgICAgcGFkZGluZzogMDsKICAgICAgfQogICAgICBwYXBlci1pdGVtIGEgewogICAgICAgIGNvbG9yOi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XJhdGlvbiwgMnMpIGxpbmVhciBpbmZpbml0ZTsKICAgICAgfQoKICAgICAgQC13ZWJraXQta2V5ZnJhbWVzIGluZGV0ZXJtaW5hdGUtYmFyIHsKICAgICAgICAwJSB7CiAgICAgICAgICAtd2Via2l0LXRyYW5zZm9ybTogc2NhbGVYKDEpIHRyYW5zbGF0ZVgoLTEwMCUpOwogICAgICAgIH0KICAgICAgICA1MCUgewogICAgICAgICAgLXdlYmtpdC10cmFuc2Zvcm06IHNjYWxlWCgxKSB0cmFuc2xhdGVYKDAlKTsKICAgICAgICB9CiAgICAgICAgNzUlIHsKICAgICAgICAgIC13ZWJraXQtdHJhbnNmb3JtOiBzY2FsZVgoMSkgdHJhbnNsYXRlWCgwJSk7CiAgICAgICAgICAtd2Via2l0LWFuaW1hdGlvbi10aW1pbmctZnVuY3Rpb246IGN1YmljLWJlemllciguMjgsLjYyLC4zNywuOTEpOwogICAgICAgIH0KICAgICAgICAxMDAlIHsKICAgICAgICAgIC13ZWJraXQtdHJhbnNmb3JtOiBzY2FsZVgoMCkgdHJhbnNsYXRlWCgwJSk7CiAgICAgICAgfQogICAgICB9CgogICAgICBALXdlYmtpdC1rZXlmcmFtZXMgaW5kZXRlcm1pbmF0ZS1zcGxpdHRlciB7CiAgICAgICAgMCUgewogICAgICAgICAgLXdlYmtpdC10cmFuc2Zvcm06IHNjYWxlWCguNzUpIHRyYW5zbGF0ZVgoLTEyNSUpOwogICAgICAgIH0KICAgICAgICAzMCUgewogICAgICAgICAgLXdlYmtpdC10cmFuc2Zvcm06IHNjYWxlWCguNzUpIHRyYW5zbGF0ZVgoLTEyNSUpOwogICAgICAgICAgLXdlYmtpdC1hbmltYXRpb24tdGltaW5nLWZ1bmN0aW9uOiBjdWJpYy1iZXppZXIoLjQyLDAsLjYsLjgpOwogICAgICAgIH0KICAgICAgICA5MCUgewogICAgICAgICAgLXdlYmtpdC10cmFuc2Zvcm06IHNjYWxlWCguNzUpIHRyYW5zbGF0ZVgoMTI1JS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mFyKC0tY2FsY3VsYXRlZC1wYXBlci1zbGlkZXItaGVpZ2h0KS8yKTsKICAgICAgfQoKICAgICAgI3NsaWRlckNvbnRhaW5lcjpmb2N1cyB7CiAgICAgICAgb3V0bGluZTogMDsKICAgICAgfQoKICAgICAgI3NsaWRlckNvbnRhaW5lci5lZGl0YWJsZSB7CiAgICAgICAgbWFyZ2luLXRvcDogMTJweDsKICAgICAgICBtYXJnaW4tYm90dG9tOiAxMnB4OwogICAgICB9CgogICAgICAuYmFyLWNvbnRhaW5lciB7CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgIHRvcDogMDsKICAgICAgICBib3R0b206IDA7CiAgICAgICAgbGVmdDogMDsKICAgICAgICByaWdodDogMDsKICAgICAgICBvdmVyZmxvdzogaGlkZGVuOwogICAgICB9CgogICAgICAucmluZyA+IC5iYXItY29udGFpbmVyIHsKICAgICAgICBsZWZ0OiBjYWxjKDVweCArIHZhcigtLWNhbGN1bGF0ZWQtcGFwZXItc2xpZGVyLWhlaWdodCkvMik7CiAgICAgICAgdHJhbnNpdGlvbjogbGVmdCAwLjE4cyBlYXNlOwogICAgICB9CgogICAgICAucmluZy5leHBhbmQuZHJhZ2dpbmcgPiAuYmFyLWNvbnRhaW5lciB7CiAgICAgICAgdHJhbnNpdGlvbjogbm9uZTsKICAgICAgfQoKICAgICAgLnJpbmcuZXhwYW5kOm5vdCgucGluKSA+IC5iYXItY29udGFpbmVyIHsKICAgICAgICBsZWZ0OiBjYWxjKDhweCArIHZhcigtLWNhbGN1bGF0ZWQtcGFwZXItc2xpZGVyLWhlaWdodCkvMik7CiAgICAgIH0KCiAgICAgICNzbGlkZXJCYXIgewogICAgICAgIHBhZGRpbmc6IDE1cHggMDsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoLS1wYXBlci1zbGlkZXItYmFyLWNvbG9yLCB0cmFuc3BhcmVudCk7CiAgICAgICAgLS1wYXBlci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2dsZS1ibHVlLTcwMCkpOwogICAgICAgIGJvcmRlcjogMnB4IHNvbGlkIHZhcigtLXBhcGVyLXNsaWRlci1rbm9iLWNvbG9yLCB2YXIoLS1nb29nbGUtYmx1ZS03MDApKTsKICAgICAgICBib3JkZXItcmFkaXVzOiA1MCU7CgogICAgICAgIC1tb3otYm94LXNpemluZzogYm9yZGVyLWJveDsKICAgICAgICBib3gtc2l6aW5nOiBib3JkZXItYm94OwoKICAgICAgICB0cmFuc2l0aW9uLXByb3BlcnR5OiAtd2Via2l0LXRyYW5zZm9ybSwgYmFja2dyb3VuZC1jb2xvciwgYm9yZGVyOwogICAgICAgIHRyYW5zaXRpb24tcHJvcGVydHk6IHRyYW5zZm9ybSwgYmFja2dyb3VuZC1jb2xvciwgYm9yZGVyOwogICAgICAgIHRyYW5zaXRpb24tZHVyYXRpb246IDAuMThzOwogICAgICAgIHRyYW5zaXRpb24tdGltaW5nLWZ1bmN0aW9uOiBlYXNlOwogICAgICB9CgogICAgICAuZXhwYW5kOm5vdCgucGluKSA+IC5zbGlkZXIta25vYiA+IC5zbGlkZXIta25vYi1pbm5lciB7CiAgICAgICAgLXdlYmtpdC10cmFuc2Zvcm06IHNjYWxlKDEuNSk7CiAgICAgICAgdHJhbnNmb3JtOiBzY2FsZSgxLjUpOwogICAgICB9CgogICAgICAucmluZyA+IC5zbGlkZXIta25vYiA+IC5zbGlkZXIta25vYi1pbm5lciB7CiAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogdmFyKC0tcGFwZXItc2xpZGVyLWtub2Itc3RhcnQtY29sb3IsIHRyYW5zcGFyZW50KTsKICAgICAgICBib3JkZXI6IDJweCBzb2xpZCB2YXIoLS1wYXBlci1zbGlkZXIta25vYi1zdGFydC1ib3JkZXItY29sb3IsIHZhcigtLXBhcGVyLWdyZXktNDAwKSk7CiAgICAgIH0KCiAgICAgIC5zbGlkZXIta25vYi1pbm5lcjo6YmVmb3JlIHsKICAgICAgICBiYWNrZ3JvdW5kLWNvb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wogICAgICAuc2xpZGVyLWlucHV0IHsKICAgICAgICB3aWR0aDogNTBweDsKICAgICAgICBvdmVyZmxvdzogaGlkZGVuOwogICAgICAgIC0tcGFwZXItaW5wdXQtY29udGFpbmVyLWlucHV0OiB7CiAgICAgICAgICB0ZXh0LWFsaWduOiBjZW50ZXI7CiAgICAgICAgICBAYXBwbHkgLS1wYXBlci1zbGlkZXItaW5wdXQtY29udGFpbmVyLWlucHV0OwogICAgICAgIH07CiAgICAgICAgQGFwcGx5IC0tcGFwZXItc2xpZGVyLWlucHV0OwogICAgICB9CgogICAgICAvKiBkaXNhYmxlZCBzdGF0ZSAqLwogICAgICAjc2xpZGVyQ29udGFpbmVyLmRpc2FibGVkIHsKICAgICAgICBwb2ludGVyLWV2ZW50czogbm9uZTsKICAgICAgfQoKICAgICAgLmRpc2FibGVkID4gLnNsaWRlci1rbm9iID4gLnNsaWRlci1rbm9iLWlubmVyIHsKICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoLS1wYXBlci1zbGlkZXItZGlzYWJsZWQta25vYi1jb2xvciwgdmFyKC0tcGFwZXItZ3JleS00MDApKTsKICAgICAgICBib3JkZXI6IDJweCBzb2xpZCB2YXIoLS1wYXBlci1zbGlkZXItZGlzYWJsZWQta25vYi1jb2xvciwgdmFyKC0tcGFwZXItZ3JleS00MDApKTsKICAgICAgICAtd2Via2l0LXRyYW5zZm9ybTogc2NhbGUzZCgwLjc1LCAwLjc1LCAxKTsKICAgICAgICB0cmFuc2Zvcm06IHNjYWxlM2QoMC43NSwgMC43NSwgMSk7CiAgICAgIH0KCiAgICAgIC5kaXNhYmxlZC5yaW5nID4gLnNsaWRlci1rbm9iID4gLnNsaWRlci1rbm9iLWlubmVyIHsKICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoLS1wYXBlci1zbGlkZXIta25vYi1zdGFydC1jb2xvciwgdHJhbnNwYXJlbnQpOwogICAgICAgIGJvcmRlcjogMnB4IHNvbGlkIHZhc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MTA1cHg7CiAgICAgIH0KICAgICAgLmxpbmUtaXRlbSB7CiAgICAgICAgZGlzcGxheTogYmxvY2s7CiAgICAgICAgcGFkZGluZy10b3A6IDVweDsKICAgICAgfQogICAgICAubm8tZGF0YS13YXJuaW5nIHsKICAgICAgICBtYXgtd2lkdGg6IDU0MHB4OwogICAgICAgIG1hcmdpbjogODBweCBhdXRvIDAgYXV0bzsKICAgICAgfQogICAgICAuY2VudGVyIHsKICAgICAgICBvdmVyZmxvdy14OiBoaWRkZW47CiAgICAgIH0KICAgIDwvc3R5bGU+CiAgPC90ZW1wbGF0ZT4KCiAgCjwvZG9tLW1vZHVsZT4KCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgo8ZG9tLW1vZHVsZSBpZD0idGYtY3VzdG9tLXNjYWxhci1jYXJkLXN0eWxlIj4KICA8dGVtcGxhdGU+CiAgICA8c3R5bGU+CiAgICAgIDpob3N0IHsKICAgICAgICBtYXJnaW46IDVweCAxMHB4OwogICAgICAgIGRpc3BsYXk6IGlubGluZS1ibG9jazsKICAgICAgICB3aWR0aDogMzMwcHg7CiAgICAgICAgdmVydGljYWwtYWxpZ246IHRleHQtdG9wOwogICAgICB9CgogICAgICA6aG9zdChbX2V4cGFuZGVkXSkgewogICAgICAgIHdpZHRoOiAxMDAlOwogICAgICB9CgogICAgICA6aG9zdChbX2V4cGFuZGVkXSkgI3RmLWxpbmUtY2hhcnQtZGF0YS1sb2FkZXItY29udGFpbmVyIHsKICAgICAgICBoZWlnaHQ6IDQwMHB4OwogICAgICB9CgogICAgICBoMSB7CiAgICAgICAgZm9udC1zaXplOiAxOXB4OwogICAgICAgIGZvbnQtd2VpZ2h0OiBub3JtYWw7CiAgICAgIH0KCiAgICAgICN0Zi1saW5lLWNoYXJ0LWRhdGEtbG9hZGVyLWNvbnRhaW5lciB7CiAgICAgICAgaGVpZ2h0OiAyMDBweDsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgfQoKICAgICAgI2J1dHRvbnMgewogICAgICAgIGRpc3BsYXk6IGZsZXg7CiAgICAgICAgZmxleC1kaXJlY3Rpb246IHJvdzsKICAgICAgfQoKICAgICAgcGFwZXItaWNvbi1idXR0b24gewogICAgICAgIGNvbG9yOiAjMjE5NmYzOwogICAgICAgIGJvcmRlci1yYWRpdXM6IDEwMCU7CiAgICAgICAgd2lkdGg6IDMycHg7CiAgICAgICAgaGVpZ2h0OiAzMnB4OwogICAgICAgIHBhZGRpbmc6IDRweDsKICAgICAgfQoKICAgICAgcGFwZXItaWNvbi1idXR0b25bc2VsZWN0ZWRdIHsKICAgICAgICBiYWNrZ3JvdW5kOiB2YXIoLS10Yi11aS1saWdodC1hY2NlbnQpOwogICAgICB9CgogICAgICAuZG93bmxvYWQtbGlua3MgewogICAgICAgIGRpc3BsYXk6IGZsZXg7CiAgICAgICAgaGVpZ2h0OiAzMnB4OwogICAgICB9CgogICAgICAuZG93bmxvYWQtbGlua3MgYSB7CiAgICAgICAgZm9udC1zaXplOiAxMHB4OwogICAgICAgIGFsaWduLXNlbGY6IGNlbnRlcjsKICAgICAgICBtYXJnaW46IDJweDsKICAgICAgfQoKICAgICAgLmRvd25sb2FkLWxpbmtzIHBhcGVyLWRyb3Bkb3duLW1lbnUgewogICAgICAgIHdpZHRoOiAxMDBweDsKICAgICAgICAtLXBhcGVyLWlucHV0LWNvbnRhaW5lci1sYWJlbDogewogICAgICAgICAgZm9udC1zaXplOiAxMHB4OwogICAgICAgIH0KICAgICAgICAtLXBhcGVyLWlucHV0LWNvbnRhaW5lci1pbnB1dDogewogICAgICAgICAgZm9udC1zaXplOiAxMHB4OwogICAgICAgIH0KICAgICAgfQogICAgPC9zdHlsZT4KICA8L3RlbXBsYXRlPgo8L2RvbS1tb2R1bGU+CgoKCgoKPGRvbS1tb2R1bGUgaWQ9InRmLWN1c3RvbS1zY2FsYXItbWFyZ2luLWNoYXJ0LWNhcmQiPgogIDx0ZW1wbGF0ZT4KICAgIDx0Zi1jYXJkLWhlY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z0ic2VyaWVzTmFtZSIgaWQ9Im1hdGNoLWxpc3QtcmVwZWF0IiBvbi1kb20tY2hhbmdlPSJfbWF0Y2hMaXN0RW50cnlDb2xvclVwZGF0ZWQiPgogICAgICAgICAgICAgIDxkaXYgY2xhc3M9Im1hdGNoLWxpc3QtZW50cnkiPgogICAgICAgICAgICAgICAgPHNwYW4gY2xhc3M9Im1hdGNoLWVudHJ5LXN5bWJvbCI+CiAgICAgICAgICAgICAgICAgIFtbX2RldGVybWluZVN5bWJvbChfbmFtZVRvRGF0YVNlcmllcywgc2VyaWVzTmFtZSldXQogICAgICAgICAgICAgICAgPC9zcGFuPgogICAgICAgICAgICAgICAgW1tzZXJpZXNOYW1lXV0KICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgPC90ZW1wbGF0ZT4KICAgICAgICAgIDwvZGl2PgogICAgICAgIDwvaXJvbi1jb2xsYXBzZT4KICAgICAgPC90ZW1wbGF0ZT4KICAgIDwvZGl2PgoKICAgIDxzdHlsZSBpbmNsdWRlPSJ0Zi1jdXN0b20tc2NhbGFyLWNhcmQtc3R5bGUiPjwvc3R5bGU+CiAgICA8c3R5bGU+CiAgICAgIC5lcnJvci1jb250ZW50IHsKICAgICAgICBiYWNrZ3JvdW5kOiAjZjAwOwogICAgICAgIGJvcmRlci1yYWRpdXM6IDVweDsKICAgICAgICBjb2xvcjogI2ZmZjsKICAgICAgICBtYXJnaW46IDEwcHggMCAwIDA7CiAgICAgICAgcGFkZGluZzogMTBweDsKICAgICAgfQoKICAgICAgLmVycm9yLWljb24gewogICAgICAgIGRpc3BsYXk6IGJsb2NrOwogICAgICAgIGZpbGw6ICNmZmY7CiAgICAgICAgbWFyZ2luOiAwIGF1dG8gNXB4IGF1dG87CiAgICAgIH0KCiAgICAgIC5pbnZhbGlkLXJlZ2V4IHsKICAgICAgICBmb250LXdlaWdodDogYm9sZDsKICAgICAgfQoKICAgICAgLmVycm9yLWNvbnRlbnQgdWwgewogICAgICAgIG1hcmd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Z2luPWxheW91dF9wYjIuTWFyZ2luQ2hhcnRDb250ZW50KAogICAgICAgICAgICAgICAgc2VyaWVzPVsKICAgICAgICAgICAgICAgICAgbGF5b3V0X3BiMi5NYXJnaW5DaGFydENvbnRlbnQuU2VyaWVzKAogICAgICAgICAgICAgICAgICAgIHZhbHVlPSdsb3NzL2Jhei9zY2FsYXJfc3VtbWFyeScsCiAgICAgICAgICAgICAgICAgICAgbG93ZXI9J2Jhel9sb3dlci9iYXovc2NhbGFyX3N1bW1hcnknLAogICAgICAgICAgICAgICAgICAgIHVwcGVyPSdiYXpfdXBwZXIvYmF6L3NjYWxhcl9zdW1tYXJ5JyksCiAgICAgICAgICAgICAgICBdLAogICAgICAgICAgICAgICkpLAogICAgICBdKSwKICAgIGxheW91dF9wYjIuQ2F0ZWdvcnkoCiAgICAgIHRpdGxlPSd0cmlnIGZ1bmN0aW9ucycsCiAgICAgIGNoYXJ0PVsKICAgICAgICAgIGxheW91dF9wYjIuQ2hhcnQoCiAgICAgICAgICAgICAgdGl0bGU9J3dhdmUgdHJpZyBmdW5jdGlvbnMnLAogICAgICAgICAgICAgIG11bHRpbGluZT1sYXlvdXRfcGIyLk11bHRpbGluZUNoYXJ0Q29udGVudCgKICAgICAgICAgICAgICAgIHRhZz1bcid0cmlnRnVuY3Rpb25zL2Nvc2luZScsIHIndHJpZ0Z1bmN0aW9ucy9zaW5lJ10sCiAgICAgICAgICAgICAgKSksCiAgICAgICAgICAjIFRoZSByYW5nZSBvZiB0YW5nZW50IGlzIGRpZmZlcmVudC4gTGV0J3MgZ2l2ZSBpdCBpdHMgb3duIGNoYXJ0LgogICAgICAgICAgbGF5b3V0X3BiMi5DaGFydCgKICAgICAgICAgICAgICB0aXRsZT0ndGFuJywKICAgICAgICAgICAgICBtdWx0aWxpbmU9bGF5b3V0X3BiMi5NdWx0aWxpbmVDaGFydENvbnRlbnQoCiAgICAgICAgICAgICAgICB0YWc9W3IndHJpZ0Z1bmN0aW9ucy90YW5nZW50J10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LyoqIFdoZW4gYWN0dWFsIHNpemUgc2hvd24gaXMgb24sIHVzZSB0aGUgYWN0dWFsIGltYWdlIHdpZHRoLiAqLwogICAgICA6aG9zdChbYWN0dWFsLXNpemVdKSB7CiAgICAgICAgbWF4LXdpZHRoOiAxMDAlOwogICAgICAgIHdpZHRoOiBhdXRvOwogICAgICB9CgogICAgICA6aG9zdChbYWN0dWFsLXNpemVdKSAjbWFpbi1pbWFnZS1jb250YWluZXIgewogICAgICAgIG1heC1oZWlnaHQ6IG5vbmU7CiAgICAgICAgd2lkdGg6IGF1dG87CiAgICAgIH0KCiAgICAgIDpob3N0KFthY3R1YWwtc2l6ZV0pICNtYWluLWltYWdlLWNvbnRhaW5lciBpbWcgewogICAgICAgIHdpZHRoOiBhdXRvOwogICAgICB9CgogICAgICBwYXBlci1zcGlubmVyLWxpdGUgewogICAgICAgIHdpZHRoOiAxNHB4OwogICAgICAgIGhlaWdodDogMTRweDsKICAgICAgICB2ZXJ0aWNhbC1hbGlnbjogdGV4dC1ib3R0b207CiAgICAgICAgLS1wYXBlci1zcGlubmVyLWNvbG9yOiB2YXIoLS10Yi1vcmFuZ2Utc3Ryb25nKTsKICAgICAgfQoKICAgICAgI3N0ZXBzIHsKICAgICAgICBoZWlnaHQ6IDE1cHg7CiAgICAgICAgbWFyZ2luOiAwIDAgMCAtMTVweDsKICAgICAgICAvKgogICAgICAgICAqIDMxIGNvbWVzIGZyb20gYWRkaW5nIGEgcGFkZGluZyBvZiAxNXB4IGZyb20gYm90aCBzaWRlcyBvZiB0aGUKICAgICAgICAgKiBwYXBlci1zbGlkZXIsIHN1YnRyYWN0aW5nIDFweCBzbyB0aGF0IHRoZSBzbGlkZXIgd2lkdGggYWxpZ25zCiAgICAgICAgICogd2l0aCB0aGUgaW1hZ2UgKHRoZSBsYXN0IHNsaWRlciBtYXJrZXIgdGFrZXMgdXAgMXB4KSwgYW5kCiAgICAgICAgICogYWRkaW5nIDJweCB0byBhY2NvdW50IGZvciBhIGJvcmRlciBvZiAxcHggb24gYm90aCBzaWRlcyBvZgogICAgICAgICAqIHRoZSBpbWFnZS4gMzAgLSAxICsgMi4KICAgICAgICAgKi8KICAgICAgICB3aWR0aDogY2FsYygxMDAlICsgMzFweCk7CiAgICAgICAgLS1wYXBlci1zbGlkZXItYWN0aXZlLWNvbG9yOiB2YXIoLS10Yi1vcmFuZ2Utc3Ryb25nKTsKICAgICAgICAtLXBhcGVyLXNsaWRlci1rbm9iLWNvbG9yOiB2YXIoLS10Yi1vcmFuZ2Utc3Ryb25nKTsKICAgICAgICAtLXBhcGVyLXNsaWRlci1rbm9iLXN0YXJ0LWJvcmRlci1jb2xvcjogdmFyKC0tdGItb3JhbmdlLXN0cm9uZyk7CiAgICAgICAgLS1wYXBlci1zbGlkZXIta25vYi1zdGFydC1jb2xvcjogdmFyKC0tdGItb3JhbmdlLXN0cm9uZyk7CiAgICAgICAgLS1wYXBlci1zbGlkZXItbWFya2Vycy1jb2xvcjogdmFyKC0tdGItb3JhbmdlLXN0cm9uZyk7CiAgICAgICAgLS1wYXBlci1zbGlkZXItcGluLWNvbG9yOiB2YXIoLS10Yi1vcmFuZ2Utc3Ryb25nKTsKICAgICAgICAtLXBhcGVyLXNsaWRlci1waW4tc3RhcnQtY29sb3I6IHZhcigtLXRiLW9yYW5nZS1zdHJvbmcpOwogICAgICB9CgogICAgICAjbWFpbi1pbWFnZS1jb250YWluZXIgewogICAgICAgIG1heC1oZWlnaHQ6IDEwMjRweDsKICAgICAgICBvdmVyZmxvdzogYXV0bzsKICAgICAgfQoKICAgICAgI21haW4taW1hZ2UtY29udGFpbmVyIGltZyB7CiAgICAgICAgY3Vyc29yOiBwb2ludGVyOwogICAgICAgIGRpc3BsYXk6IGJsb2NrOwogICAgICAgIGltYWdlLXJlbmRlcmluZzogLW1vei1jcmlzcC1lZGdlczsKICAgICAgICBpbWFnZS1yZW5kZXJpbmc6IHBpeGVsYXRlZDsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgICBoZWlnaHQ6IGF1dG87CiAgICAgIH0KCiAgICAgIHBhcGVyLWljb24tYnV0dG9uIHsKICAgICAgICBjb2xvcjogIzIxOTZmMzsKICAgICAgICBib3JkZXItcmFkaXVzOiAxMDAlOwogICAgICAgIHdpZHRoOiAzMnB4OwogICAgICAgIGhlaWdodDogMzJweDsKICAgICAgICBwYWRkaW5nOiA0cHg7CiAgICAgIH0KICAgICAgcGFwZXItaWNvbi1idXR0b25bc2VsZWN0ZWRdIHsKICAgICAgICBiYWNrZ3JvdW5kOiB2YXIoLS10Yi11aS1saWdodC1hY2NlbnQpOwogICAgICB9CiAgICAgIFtoaWRkZW5dIHsKICAgICAgICBkaXNwbGF5OiBub25lOwogICAgICB9CiAgICA8L3N0eWxlPgogIDwvdGVtcGxhdGU+CiAgCjwvZG9tLW1vZHVsZT4KCgoKPGRvbS1tb2R1bGUgaWQ9InRmLWltYWdlLWRhc2hib2FyZCI+CiAgPHRlbXBsYXRlPgogICAgPHRmLWRhc2hib2FyZC1sYXlvdXQ+CiAgICAgIDxkaXYgY2xhc3M9InNpZGViYXIiIHNsb3Q9InNpZGViYXIiPgogICAgICAgIDxkaXYgY2xhc3M9InNpZGViYXItc2VjdGlvbiI+CiAgICAgICAgICA8ZGl2IGNsYXNzPSJsaW5lLWl0ZW0iPgogICAgICAgICAgICA8cGFwZXItY2hlY2tib3ggY2hlY2tlZD0ie3tfYWN0dWFsU2l6ZX19Ij5TaG93IGFjdHVhbCBpbWFnZSBzaXplPC9wYXBlci1jaGVja2JveD4KICAgICAgICAgIDwvZGl2PgogICAgICAgIDwvZGl2PgogICAgICAgIDxkaXYgY2xhc3M9InNpZGViYXItc2VjdGlvbiI+CiAgICAgICAgICA8aDMgY2xhc3M9InRvb2x0aXAtY29udGFpbmVyIj5CcmlnaHRuZXNzIGFkanVzdG1lbnQ8L2gzPgogICAgICAgICAgPGRpdiBjbGFzcz0icmVzZXR0YWJsZS1zbGlkZXItY29udGFpbmVyIj4KICAgICAgICAgICAgPH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jdG9yIGlkPSJydW5zLXNlbGVjdG9yIiBzZWxlY3RlZC1ydW5zPSJ7e19zZWxlY3RlZFJ1bnN9fSI+PC90Zi1ydW5zLXNlbGVjdG9yPgogICAgICAgIDwvZGl2PgogICAgICA8L2Rpdj4KICAgICAgPGRpdiBjbGFzcz0iY2VudGVyIiBzbG90PSJjZW50ZXIiPgogICAgICAgIDx0ZW1wbGF0ZSBpcz0iZG9tLWlmIiBpZj0iW1tfZGF0YU5vdEZvdW5kXV0iPgogICAgICAgICAgPGRpdiBjbGFzcz0ibm8tZGF0YS13YXJuaW5nIj4KICAgICAgICAgICAgPGgzPk5vIGltYWdlIGRhdGEgd2FzIGZvdW5kLjwvaDM+CiAgICAgICAgICAgIDxwPlByb2JhYmxlIGNhdXNlczoKICAgICAgICAgICAgPHVsPgogICAgICAgICAgICAgIDxsaT5Zb3UgaGF2ZW7igJl0IHdyaXR0ZW4gYW55IGltYWdlIGRhdGEgdG8geW91ciBldmVudCBmaWxlcy48L2xpPgogICAgICAgICAgICAgIDxsaT5UZW5zb3JCb2FyZCBjYW7igJl0IGZpbmQgeW91ciBldmVudCBmaWxlcy48L2xpPgogICAgICAgICAgICA8L3VsPgoKICAgICAgICAgICAgPHA+CiAgICAgICAgICAgICAgSWYgeW914oCZcmUgbmV3IHRvIHVzaW5nIFRlbnNvckJvYXJkLCBhbmQgd2FudCB0byBmaW5kIG91dCBob3cgdG8KICAgICAgICAgICAgICBhZGQgZGF0YSBhbmQgc2V0IHVwIHlvdXIgZXZlbnQgZmlsZXMsIGNoZWNrIG91dCB0aGUKICAgICAgICAgICAgICA8YSBocmVmPSJodHRwczovL2dpdGh1Yi5jb20vdGVuc29yZmxvdy90ZW5zb3Jib2FyZC9ibG9iL21hc3Rlci9SRUFETUUubWQiPlJFQURNRTwvYT4KICAgICAgICAgICAgICBhbmQgcGVyaGFwcyB0aGUKICAgICAgICAgICAgICA8YSBocmVmPSJodHRwczovL3d3dy50ZW5zb3JmbG93Lm9yZy9nZX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kZXItY29udGFpbmVyIHBhcGVyLWJ1dHRvbltkaXNhYmxlZF0gewogICAgICAgIGJhY2tncm91bmQtY29sb3I6IHVuc2V0OwogICAgICB9CiAgICAgIC54LWJ1dHRvbiB7CiAgICAgICAgZm9udC1zaXplOiAxM3B4OwogICAgICAgIGJhY2tncm91bmQtY29sb3I6IHZhcigtLXRiLXVpLWxpZ2h0LWFjY2VudCk7CiAgICAgICAgY29sb3I6IHZhcigtLXRiLXVpLWRhcmstYWNjZW50KTsKICAgICAgfQogICAgICAubm8tZGF0YS13YXJuaW5nIHsKICAgICAgICBtYXgtd2lkdGg6IDU0MHB4OwogICAgICAgIG1hcmdpbjogODBweCBhdXRvIDAgYXV0bzsKICAgICAgfQogICAgICBwYXBlci1zbGlkZXIgewogICAgICAgIC0tcGFwZXItc2xpZGVyLWFjdGl2ZS1jb2xvcjogdmFyKC0tdGItb3JhbmdlLXN0cm9uZyk7CiAgICAgICAgLS1wYXBlci1zbGlkZXIta25vYi1jb2xvcjogdmFyKC0tdGItb3JhbmdlLXN0cm9uZyk7CiAgICAgICAgLS1wYXBlci1zbGlkZXIta25vYi1zdGFydC1ib3JkZXItY29sb3I6IHZhcigtLXRiLW9yYW5nZS1zdHJvbmcpOwogICAgICAgIC0tcGFwZXItc2xpZGVyLWtub2Itc3RhcnQtY29sb3I6IHZhcigtLXRiLW9yYW5nZS1zdHJvbmcpOwogICAgICAgIC0tcGFwZXItc2xpZGVyLW1hcmtlcnMtY29sb3I6IHZhcigtLXRiLW9yYW5nZS1zdHJvbmcpOwogICAgICAgIC0tcGFwZXItc2xpZGVyLXBpbi1jb2xvcjogdmFyKC0tdGItb3JhbmdlLXN0cm9uZyk7CiAgICAgICAgLS1wYXBlci1zbGlkZXItcGluLXN0YXJ0LWNvbG9yOiB2YXIoLS10Yi1vcmFuZ2Utc3Ryb25nKTsKICAgICAgfQogICAgPC9zdHlsZT4KICA8L3RlbXBsYXRlPgogIAo8L2RvbS1tb2R1bGU+CgoKCgoKCg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yb24tYXV0b2dyb3ctdGV4dGFyZWEiPgogIDx0ZW1wbGF0ZT4KICAgIDxzdHlsZT4KICAgICAgOmhvc3QgewogICAgICAgIGRpc3BsYXk6IGlubGluZS1ibG9jazsKICAgICAgICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgICAgICAgd2lkdGg6IDQwMHB4OwogICAgICAgIGJvcmRlcjogMXB4IHNvbGlkOwogICAgICAgIHBhZGRpbmc6IDJweDsKICAgICAgICAtbW96LWFwcGVhcmFuY2U6IHRleHRhcmVhOwogICAgICAgIC13ZWJraXQtYXBwZWFyYW5jZTogdGV4dGFyZWE7CiAgICAgICAgb3ZlcmZsb3c6IGhpZGRlbjsKICAgICAgfQoKICAgICAgLm1pcnJvci10ZXh0IHsKICAgICAgICB2aXNpYmlsaXR5OiBoaWRkZW47CiAgICAgICAgd29yZC13cmFwOiBicmVhay13b3JkOwogICAgICAgIEBhcHBseSAtLWlyb24tYXV0b2dyb3ctdGV4dGFyZWE7CiAgICAgIH0KCiAgICAgIC5maXQgewogICAgICAgIEBhcHBseSAtLWxheW91dC1maXQ7CiAgICAgIH0KCiAgICAgIHRleHRhcmVhIHsKICAgICAgICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgICAgICAgb3V0bGluZTogbm9uZTsKICAgICAgICBib3JkZXI6IG5vbmU7CiAgICAgICAgcmVzaXplOiBub25lOwogICAgICAgIGJhY2tncm91bmQ6IGluaGVyaXQ7CiAgICAgICAgY29sb3I6IGluaGVyaXQ7CiAgICAgICAgLyogc2VlIGNvbW1lbnRzIGluIHRlbXBsYXRlICovCiAgICAgICAgd2lkdGg6IDEwMCU7CiAgICAgICAgaGVpZ2h0OiAxMDAlOwogICAgICAgIGZvbnQtc2l6ZTogaW5oZXJpdDsKICAgICAgICBmb250LWZhbWlseTogaW5oZXJpdDsKICAgICAgICBsaW5lLWhlaWdodDogaW5oZXJpdDsKICAgICAgICB0ZXh0LWFsaWduOiBpbmhlcml0OwogICAgICAgIEBhcHBseSAt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gIHRyYW5zZm9ybTogdHJhbnNsYXRlWSgxMDBweCk7CiAgICAgICAgQGFwcGx5IC0tcGFwZXItZm9udC1jb21tb24tYmFzZTsKICAgICAgfQoKICAgICAgOmhvc3QoLmNhcHN1bGUpIHsKICAgICAgICBib3JkZXItcmFkaXVzOiAyNHB4OwogICAgICB9CgogICAgICA6aG9zdCguZml0LWJvdHRvbSkgewogICAgICAgIHdpZHRoOiAxMDAlOwogICAgICAgIG1pbi13aWR0aDogMDsKICAgICAgICBib3JkZXItcmFkaXVzOiAwOwogICAgICAgIG1hcmdpbjogMDsKICAgICAgfQoKICAgICAgOmhvc3QoLnBhcGVyLXRvYXN0LW9wZW4pIHsKICAgICAgICBvcGFjaXR5OiAxOwogICAgICAgIC13ZWJraXQtdHJhbnNmb3JtOiB0cmFuc2xhdGVZKDBweCk7CiAgICAgICAgdHJhbnNmb3JtOiB0cmFuc2xhdGVZKDBweCk7CiAgICAgIH0KICAgIDwvc3R5bGU+CgogICAgPHNwYW4gaWQ9ImxhYmVsIj57e3RleHR9fTwvc3Bhbj4KICAgIDxzbG90Pjwvc2xvdD4KICA8L3RlbXBsYXRlPgoKICAKPC9kb20tbW9kdWxlPgoKCgoKCgoKCgoKCgoKCgoKCjxkb20tbW9kdWxlIGlkPSJwYXBlci10b2dnbGUtYnV0dG9uIj4KICA8dGVtcGxhdGUgc3RyaXAtd2hpdGVzcGFjZT4KCiAgICA8c3R5bGU+CiAgICAgIDpob3N0IHsKICAgICAgICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7CiAgICAgICAgQGFwcGx5IC0tbGF5b3V0LWhvcml6b250YWw7CiAgICAgICAgQGFwcGx5IC0tbGF5b3V0LWNlbnRlcjsKICAgICAgICBAYXBwbHkgLS1wYXBlci1mb250LWNvbW1vbi1iYXNlOwogICAgICB9CgogICAgICA6aG9zdChbZGlzYWJsZWRdKSB7CiAgICAgICAgcG9pbnRlci1ldmVudHM6IG5vbmU7CiAgICAgIH0KCiAgICAgIDpob3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WFyeS1jb2xvcikpOwoKICAgICAgICBAYXBwbHkgLS1wYXBlci10b2dnbGUtYnV0dG9uLWNoZWNrZWQtYnV0dG9uOwogICAgICB9CgogICAgICA6aG9zdChbZGlzYWJsZWRdKSAudG9nZ2xlLWJ1dHRvbiB7CiAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogI2JkYmRiZDsKICAgICAgICBvcGFjaXR5OiAxOwogICAgICB9CgogICAgICAudG9nZ2xlLWluayB7CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgIHRvcDogLTE0cHg7CiAgICAgICAgbGVmdDogLTE0cHg7CiAgICAgICAgcmlnaHQ6IGF1dG87CiAgICAgICAgYm90dG9tOiBhdXRvOwogICAgICAgIHdpZHRoOiA0OHB4OwogICAgICAgIGhlaWdodDogNDhweDsKICAgICAgICBvcGFjaXR5OiAwLjU7CiAgICAgICAgcG9pbnRlci1ldmVudHM6IG5vbmU7CiAgICAgICAgY29sb3I6IHZhcigtLXBhcGVyLXRvZ2dsZS1idXR0b24tdW5jaGVja2VkLWluay1jb2xvciwgdmFyKC0tcHJpbWFyeS10ZXh0LWNvbG9yKSk7CgogICAgICAgIEBhcHBseSAtLXBhcGVyLXRvZ2dsZS1idXR0b24tdW5jaGVja2VkLWluazsKICAgICAgfQoKICAgICAgOmhvc3QoW2NoZWNrZWRdKSAudG9nZ2xlLWluayB7CiAgICAgICAgY29sb3I6IHZhcigtLXBhcGVyLXRvZ2dsZS1idXR0b24tY2hlY2tlZC1pbmstY29sb3IsIHZhcigtLXByaW1hcnktY29sb3IpKTsKCiAgICAgICAgQGFwcGx5IC0tcGFwZXItdG9nZ2xlLWJ1dHRvbi1jaGVja2VkLWluazsKICAgICAgfQoKICAgICAgLnRvZ2dsZS1jb250YWluZXIgewogICAgICAgIGRpc3BsYXk6IGlubGluZS1ibG9jazsKICAgICAgICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgICAgICAgd2lkdGg6IDM2cHg7CiAgICAgICAgaGVpZ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FycmF5OiAxLCAxOwogICAgICB9CgogICAgICAuYW5ub3RhdGlvbi5zdW1tYXJ5ID4gLmFubm90YXRpb24tbm9kZSA+ICosCiAgICAgIC5hbm5vdGF0aW9uLmNvbnN0YW50ID4gLmFubm90YXRpb24tbm9kZSA+ICogewogICAgICAgIHN0cm9rZS13aWR0aDogMTsKICAgICAgICBzdHJva2UtZGFzaGFycmF5OiBub25lOwogICAgICB9CgogICAgICAuYW5ub3RhdGlvbiA+IC5hbm5vdGF0aW9uLWVkZ2UgewogICAgICAgIGZpbGw6IG5vbmU7CiAgICAgICAgc3Ryb2tlOiAjYWFhOwogICAgICAgIHN0cm9rZS13aWR0aDogMC41OwogICAgICAgIG1hcmtlci1lbmQ6IHVybCgjYW5ub3RhdGlvbi1hcnJvd2hlYWQpOwogICAgICB9CgogICAgICAuZmFkZWQgLmFubm90YXRpb24gPiAuYW5ub3RhdGlvbi1lZGdlIHsKICAgICAgICBtYXJrZXItZW5kOiB1cmwoI2Fubm90YXRpb24tYXJyb3doZWFkLWZhZGVkKTsKICAgICAgfQoKICAgICAgLmFubm90YXRpb24gPiAuYW5ub3RhdGlvbi1lZGdlLnJlZmxpbmUgewogICAgICAgIG1hcmtlci1zdGFydDogdXJsKCNyZWYtYW5ub3RhdGlvbi1hcnJvd2hlYWQpOwogICAgICB9CgogICAgICAuZmFkZWQgLmFubm90YXRpb24gPiAuYW5ub3RhdGlvbi1lZGdlLnJlZmxpbmUgewogICAgICAgIG1hcmtlci1zdGFydDogdXJsKCNyZWYtYW5ub3RhdGlvbi1hcnJvd2hlYWQtZmFkZWQpOwogICAgICB9CgogICAgICAuYW5ub3RhdGlvbiA+IC5hbm5vdGF0aW9uLWNvbnRyb2wtZWRnZSB7CiAgICAgICAgc3Ryb2tlLWRhc2hhcnJheTogMSwgMTsKICAgICAgfQoKICAgICAgI2Fubm90YXRpb24tYXJyb3doZWFkIHsKICAgICAgICBmaWxsOiAjYWFhOwogICAgICB9CgogICAgICAjYW5ub3RhdG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pemU6IDRweDsKICAgICAgICB0ZXh0LWFuY2hvcjogbWlkZGxlOwogICAgICB9CgogICAgICAuaGVhbHRoLXBpbGwgcmVjdCB7CiAgICAgICAgZmlsdGVyOiB1cmwoI2hlYWx0aC1waWxsLXNoYWRvdyk7CiAgICAgICAgcng6IDM7CiAgICAgICAgcnk6IDM7CiAgICAgIH0KCiAgICAgIC50aXRsZUNvbnRhaW5lciB7CiAgICAgICAgcG9zaXRpb246IHJlbGF0aXZlOwogICAgICAgIHRvcDogMjBweDsKICAgICAgfQoKICAgICAgLnRpdGxlLAogICAgICAuYXV4VGl0bGUsCiAgICAgIC5mdW5jdGlvbkxpYnJhcnlUaXRsZSB7CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICB9CgogICAgICAjbWluaW1hcCB7CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgIHJpZ2h0OiAyMHB4OwogICAgICAgIGJvdHRvbTogMjBweDsKICAgICAgfQoKICAgICAgLmNvbnRleHQtbWVudSB7CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgIGRpc3BsYXk6IG5vbmU7CiAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogI2UyZTJlMjsKICAgICAgICBib3JkZXItcmFkaXVzOiAycHg7CiAgICAgICAgZm9udC1zaXplOiAxNHB4OwogICAgICAgIG1pbi13aWR0aDogMTUwcHg7CiAgICAgICAgYm9yZGVyOiAxcHggc29saWQgI2Q0ZDRkNDsKICAgICAgfQoKICAgICAgLmNvbnRleHQtbWVudSB1bCB7CiAgICAgICAgbGlzdC1zdHlsZS10eXBlOiBub25lOwogICAgICAgIG1hcmdpbjogMDsKICAgICAgICBwYWRkaW5nOiAwOwogICAgICAgIGN1cnNvcjogZGVmYXVsdDsKICAgICAgfQoKICAgICAgLmNvbnRleHQtbWVudSB1bCBsaSB7CiAgICAgICAgcGFkZGluZzogNHB4IDE2cHg7CiAgICAgIH0KCiAgICAgIC5jb250ZXh0LW1lb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DAsIDAuNik7CiAgICAgIH0KCiAgICAgIC5jb2RlLWV4YW1wbGUgewogICAgICAgIG1hcmdpbjogMTBweDsKICAgICAgICBmb250LWZhbWlseTogbW9ub3NwYWNlOwogICAgICB9CiAgICAgIC5jb2RlLWV4YW1wbGUtc2VjdGlvbiB7CiAgICAgICAgcGFkZGluZy1ib3R0b206IDE1cHg7CiAgICAgIH0KICAgICAgLmNvZGUtZXhhbXBsZS1zZWN0aW9uLXRpdGxlIHsKICAgICAgICBmb250LXdlaWdodDogYm9sZDsKICAgICAgfQogICAgICAuY29kZS1zbmlwcGV0IHsKICAgICAgICBwYWRkaW5nLWxlZnQ6IDFlbTsKICAgICAgfQoKICAgICAgI2RpYWxvZy10aXRsZSB7CiAgICAgICAgcGFkZGluZy1ib3R0b206IDE1cHg7CiAgICAgIH0KCiAgICAgIC5jdXN0b20tbWVzc2FnZSB7CiAgICAgICAgbWFyZ2luLXRvcDogMDsKICAgICAgICBtYXJnaW4tYm90dG9tOiAxNXB4OwogICAgICB9CiAgICA8L3N0eWxlPgogIDwvdGVtcGxhdGU+CiAgCjwvZG9tLW1vZHVsZT4KCgoKCgo8ZG9tLW1vZHVsZSBpZD0idGYtZGVidWdnZXItcmVzaXplciI+CiAgPHRlbXBsYXRlPgogICAgPGRpdiBjbGFzcz0iYmFycyI+CiAgICAgIDxkaXYgY2xhc3M9ImJhcnMtcm90YXRvciI+CiAgICAgICAgPHNwYW4gY2xhc3M9ImJhcnMtdGV4dCI+fCB8PC9zcGFuPgogICAgICA8L2Rpdj4KICAgIDwvZGl2PgogICAgPHN0eWxlPgogICAgICA6aG9zdChbX3Jlc2l6ZXItaWRlbnRpZmllcl0pIHsKICAgICAgICBwb3NpdGlvbjogYWJzb2x1dGU7CiAgICAgICAgYmFja2dyb3VuZDogI2NjYzsKICAgICAgICB1c2VyLXNlbGVjdDogbm9uZTsKICAgICAgfQoKICAgICAgOmhvc3QoW2lzLWhvcml6b250YWxdKSB7CiAgICAgICAgY3Vyc29yOiByb3ctcmVzaXplOwogICAgICAgIGhlaWdodDogMTBweDsKICAgICAgICBsZWZ0OiAwOwogICAgICAgIHJpZ2h0OiAwOwogICAgICB9CgogICAgICA6aG9zdChbX2lzLXZlcnRpY2FsXSkgewogICAgICAgIGN1cnNvcjogY29sLXJlc2l6ZTsKICAgICAgICByaWdodDogLTE1cHg7CiAgICAgICAgdG9wOiAwOwogICAgICAgIGJvdHRvbTogMDsKICAgICAgICB3aWR0aDogMTBweDsKICAgICAgfQoKICAgICAgLmJhcnMgewogICAgICAgIHdpZHRoOiA4MCU7CiAgICAgICAgdGV4dC1hbGlnbjogY2VudGVyOwogICAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTsKICAgICAgICB0b3A6IDUwJTsKICAgICAgICBsZWZ0OiA1MCU7CiAgICAgICAgZm9udC1zaXplOiA1cHg7CiAgICAgICAgdHJhbnNmb3JtOiB0cmFuc2xhdGUoLTUwJSwgLTUwJSk7CiAgICAgIH0KCiAgICAgIC8qKiBUaGlzIGJsb2NrIHByZXZlbnRzIHRoZSBiYXJzIHJvdGF0b3IgZnJvbSBoYXZpbmcgYSBoZWlnaHQgdGhhdCBpcwogICAgICAgICAgdGhlIGVudGlyZSB2aWV3cG9ydCwgdGh1cyBvY2NsdWRpbmcgaXQgYW5kIGdpdmluZyBpdCBhbiB1bmRlc2lyZWQgY3Vyc29yCiAgICAgICAgICB2YWx1ZS4gKi8KICAgICAgLmJhcnMtcm90YXRvciB7CiAgICAgICAgZGlzcGxheTogaW5saW5lLWJsb2NrOwogICAgICB9CgogICAgICA6aG9zdChbaXMtaG9yaXpvbnRhbF0pIC5iYXJzLXJvdGF0b3IgewogICAgICAgIHRyYW5zZm9ybTogcm90YXRlKDkwZGVnKTsKICAgICAgfQoKICAgICAgLmJhcnMtdGV4dCB7CiAgICAgICAgdHJhbnNmb3JtOiBzY2FsZVkoMTUpOwogICAgICAgIHdoaXRlLXNwYWNlOiBub3dyYXA7CiAgICAgICAgZGlzcGxheTog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ItaGllcmFyY2h5Ij48L2Rpdj4KICAgIDxzdHlsZT4KICAgICAgLmluZGVudGVkLWxldmVsLWNvbnRhaW5lciAuY29udGVudC1jb250YWluZXIgewogICAgICAgIG1hcmdpbjogMCAwIDAgMjBweDsKICAgICAgfQoKICAgICAgLmxldmVsLWNvbnRhaW5lciBpcm9uLWNvbGxhcHNlIHsKICAgICAgICBwYWRkaW5nOiAwIDAgMCAyMHB4OwogICAgICB9CgogICAgICBwYXBlci1jaGVja2JveCB7CiAgICAgICAgZGlzcGxheTogaW5saW5lLWJsb2NrOwogICAgICAgIHdpZHRoOiAxOHB4OwogICAgICAgIGhlaWdodDogMThweDsKICAgICAgICBtYXJnaW46IDAgOHB4IDAgMDsKICAgICAgfQoKICAgICAgLm9wLXR5cGUgewogICAgICAgIHBhZGRpbmctcmlnaHQ6IDEwcHg7CiAgICAgICAgY29sb3I6ICM0NDQ7CiAgICAgIH0KCiAgICAgIC5vcC10aXRsZS1sZWFmIHsKICAgICAgICB0ZXh0LWRlY29yYXRpb246IHVuZGVybGluZTsKICAgICAgICBjdXJzb3I6IHBvaW50ZXI7CiAgICAgIH0KCiAgICAgIC5vcC10aXRsZS1sZWFmOmhvdmVyIHsKICAgICAgICBjb2xvcjogYmx1ZTsKICAgICAgfQoKICAgICAgLnBhcnRpYWwtY2hlY2tib3ggewogICAgICAgIGJhY2tncm91bmQ6ICNmNTdjMDA7CiAgICAgIH0KCiAgICAgIC5ub2RlLWV4cGFuZC1idXR0b24gewogICAgICAgIG1hcmdpbjogMCAwIDAgLTEzcHg7CiAgICAgIH0KCiAgICAgIC5sZXZlbC10aXRsZS10ZXh0IHsKICAgICAgICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7CiAgICAgICAgZm9udC13ZWlnaHQ6IDgwMDsKICAgICAgICBtYXJnaW46IDAgMCAwIC0xcHg7CiAgICAgIH0KCiAgICAgIC5vcC1kZXNjcmlwdGlvbiB7CiAgICAgICAgZm9udC13ZWlnaHQ6IDMwMDs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ICAgICAgICA8dGg+RmVlZHM8L3RoPgogICAgICAgICAgPHRoPkZldGNoZXM8L3RoPgogICAgICAgICAgPHRoPlRhcmdldHM8L3RoPgogICAgICAgICAgPHRoPiMoRGV2aWNlcyk8L3RoPgogICAgICAgICAgPHRoPkNvdW50PC90aD4KICAgICAgICA8L3RyPgogICAgICA8L3RhYmxlPgogICAgPC9kaXY+CiAgICA8c3R5bGU+CiAgICAgIDpob3N0IHsKICAgICAgICBkaXNwbGF5OiBibG9jazsKICAgICAgICBwYWRkaW5nOiAyMHB4IDA7CiAgICAgIH0KCiAgICAgIC5zZWN0aW9uLXRpdGxlIHsKICAgICAgICBmb250LXNpemU6IDExMCU7CiAgICAgICAgZm9udC13ZWlnaHQ6IGJvbGQ7CiAgICAgIH0KICAgICAgOmhvc3QgLmluZGVudGVkLWxldmVsLWNvbnRhaW5lciAuY29udGVudC1jb250YWluZXIgewogICAgICAgIG1hcmdpbjogMCAwIDAgMTBweDsKICAgICAgfQoKICAgICAgLyogVE9ETyhjYWlzKTogVGhpcyBuZWVkcyB3b3JrOiB0aGUgdGFibGUgc2hvdWxkbid0IGdldCB0b28gd2lkZSB3aGVuCiAgICAgICAgIHRoZXJlIGFyZSBtYW55IGZlZWRzL2ZldGNoZXMvdGFyZ3RlIG5hbWVzLiAqLwogICAgICAuc2Vzc2lvbi1ydW5zLXRhYmxlIHsKICAgICAgICBhbGlnbi1jb250ZW50OiBsZWZ0OwogICAgICAgIGFsaWduLWl0ZW1zOiBsZWZ0OwogICAgICAgIHRleHQtYWxpZ246IGxlZnQ7CiAgICAgICAgZm9udC1zaXplOiA5MCU7CiAgICAgICAgYm9yZGVyLXN0eWxlOiBzb2xpZCAxcHggYmxhY2s7CiAgICAgICAgdGFibGUtbGF5b3V0OiBmaXhlZDsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgICB3b3JkLWJyZWFrOiBicmVhay1hbGw7CiAgICAgICAgcGFkZGluZy10b3A6IDNweDsKICAgICAgICBwYWRkaW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b3VyY2UtbGluZS1ub2RlLXRvZ2dsZSIgaWQ9InNvdXJjZS1saW5lLW5vZGUtdG9nZ2xlLVtbaXRlbS5saW5lbm9dXSI+CiAgICAgICAgICAgIFtbaXRlbS5udW1Ob2Rlc11dCiAgICAgICAgICA8L3NwYW4+CiAgICAgICAgICA8c3BhbiBjbGFzcz0ic291cmNlLWxpbmUtdGV4dCIgaWQ9InNvdXJjZS1saW5lLXRleHQtW1tpdGVtLmxpbmVub11dIj4KICAgICAgICAgICAgW1tpdGVtLnRleHRdXQogICAgICAgICAgPC9zcGFuPgogICAgICAgICAgPGRpdiBjbGFzcz0ic291cmNlLWxpbmUtbm9kZXMiIGlkPSJzb3VyY2UtbGluZS1ub2Rlcy1bW2l0ZW0ubGluZW5vXV0iPjwvZGl2PgogICAgICAgIDwvZGl2PgogICAgICA8L3RlbXBsYXRlPgogICAgPC9kaXY+CiAgICA8c3R5bGU+CiAgICAgICNzb3VyY2UtZmlsZXMtdGFicyB7CiAgICAgICAgcG9zaXRpb246IHJlbGF0aXZlOwogICAgICAgIGhlaWdodDogOCU7CiAgICAgIH0KICAgICAgLnNvdXJjZS1jb250ZW50IHsKICAgICAgICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgICAgICAgaGVpZ2h0OiA5MCU7CiAgICAgICAgZm9udC1mYW1pbHk6IG1vbm9zcGFjZTsKICAgICAgICBmb250LXNpemU6IDkwJTsKICAgICAgICBvdmVyZmxvdy14OiBzY3JvbGw7CiAgICAgICAgb3ZlcmZsb3cteTogc2Nyb2xsOwogICAgICB9CiAgICAgIC5zb3VyY2UtY29udGVudCA6aG92ZXIgewogICAgICAgIGJhY2tncm91bmQtY29sb3I6ICNmZmZmMDA7CiAgICAgIH0KICAgICAgLmhpZ2hsaWdodGVkLXNvdXJjZS1saW5lIHsKICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmZmUwOwogICAgICB9CiAgICAgIC5zb3VyY2UtbGluZS1udW1iZXIgewogICAgICAgIGRpc3BsYXk6IGlubGluZS1ibG9jazsKICAgICAgICBjb2xvcjogbGlnaHRibHVlOwogICAgICAgIHdpZHRoOiAyZW07CiAgICAgICAgdGV4dC1hbGlnbjogcmlnaHQ7CiAgICAgICAgcGFkZGluZy1yaWdodDogMWVtOwogICAgICB9CiAgICAgIC5zb3VyY2UtbGluZS1ub2RlLXRvZ2dsZSB7CiAgICAgICAgZGlzcGxheTogaW5saW5lLWJsb2NrOwogICAgICAgIGNvbG9yOiBibHVlOwogICAgICAgIHdpZHRoOiA1ZW07CiAgICAgICAgdGV4dC1hbGlnbjogcmlnaHQ7CiAgICAgICAgcGFkZGluZy1yaWdodDogMWVtOwogICAgICAgIHRleHQtZGVjb3JhdGlvbjogdW5kZXJsaW5lOwogICAgICAgIGN1cnNvcjogcG9pbnRlcjsKICAgICAgfQogICAgICAuc291cmNlLWxpbmUtbm9kZXMgewogICAgICAgIHBhZGRpbmctbGVmdDogNGVtOwogICAgICAgIHRleHQtZGVjb3JhdGlvbjogdW5kZXJsaW5lOwogICAgICAgIGN1cnNvcjogcG9pbnRlcjsKICAgICAgICBjb2xvcjogYmx1ZTsKICAgICAgICBtYXJnaW4tdG9wOiAwZW07CiAgICAgICAgbWFyZ2luLWJvdHRvbTogMGVtOwogICAgICAgIG1hcmdpbi1yaWdodDogMWVtOwogICAgICB9CiAgICAgIC5zb3VyY2UtbGluZS1ub2RlLWVudHJ5IHsKICAgICAgICBtYXJnaW4tcmlnaHQ6IDFlbTsKICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiB5ZWxsb3c7CiAgICAgIH0KICAgICAgLnNvdXJjZS1saW5lLW5vZGVzIHNwYW4gewogICAgICAgIHRleHQtZGVjb3JhdGlvbjogbm9uZTsKICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiB5ZWxsb3c7CiAgICAgIH0KICAgICAgLnNvdXJjZS1saW5lLXRleHQgewogICAgICAgIGRpc3BsYXk6IGlubGluZTsKICAgICAgICB3b3JkLXdyYXA6IGJyZWFrLXdvcmQ7CiAgICAgIH0KICAgICAgI2Z1bGxTdGFja0RpYWxvZyB7CiAgICAgICAgei1pbmRleDogMTAwMDsKICAgICAgICBwb3NpdGlvbjogYWJzb2x1dGU7CiAgICAgICAgdG9wOiAxMCU7CiAgICAgICAgbGVmdDogNTAlOwogICAgICAgIHdpZHRoOiA0NSU7CiAgICAgICAgaGVpZ2h0OiA4NSU7CiAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogd2hpdGU7CiAgICAgICAgYm9yZGVyOiAxcHggc29saWQgZ3JheTsKICAgICAgICBmb250LWZhbWlseTogbW9ub3NwYWNlOwogICAgICAgIGJveC1zaGFkb3c6IDNweCAzcHggI2RkZDsKICAgICAgICBvdmVyZmxvdy15OiBhdXRvOwogICAgICB9CiAgICAgICNmdWxsLXN0YWNrLXRpdGxlIHsKICAgICAgICBmb250LXNpemU6IDExMCU7CiAgICAgICAgcG9zaXRpb246IHJlbGF0aXZlOwogICAgICAgIHdpZHRoOiAxMDAlOwogICAgICAgIGJhY2tncm91bmQtY29sb3I6ICNlZWU7CiAgICAgICAgdGV4dC1hbGlnbjogY2VudGVyOwogICAgICAgIGZvbnQtd2VpZ2h0OiBib2xkOwogICAgICB9CiAgICAgICNmdWxsLXN0YWNrLW5vZGUtbmFtZSB7CiAgICAgICAgY29sb3I6IGJsdWU7CiAgICAgIH0KICAgICAgOmhvc3QgI2Z1bGwtc3RhY2stY29udGVudCB7CiAgICAgICAgcGFkZGluZy10b3A6IDFlbTsKICAgICAgICBwYWRkaW5nLXJpZ2h0OiAwLjVlbTsKICAgICAgICBtYXJnaW4tdG9wOiAwLjVlbTsKICAgICAgICBmb250LXNpemU6IDkwJTsKICAgICAgICB3b3JkLXdyYXA6IGJyZWFrLXdvcmQ7CiAgICAgICAgb3ZlcmZsb3c6IGF1dG87CiAgICAgIH0KICAgICAgLnN0YWNrLWZyYW1lLWNsaWNrYWJsZSB7CiAgICAgICAgY29sb3I6IGJsdWU7CiAgICAgICA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gICA8L3BhcGVyLXRvZ2dsZS1idXR0b24+CiAgICAgICAgICAgICAgPHBhcGVyLWNhcmQ+CiAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJoZWFsdGgtcGlsbC1sZWdlbmQiIGlkPSJoZWFsdGgtcGlsbC1sZWdlbmQiPjwvZGl2PgogICAgICAgICAgICAgIDwvcGFwZXItY2FyZD4KICAgICAgICAgICAgPC90aD4KICAgICAgICAgICAgPHRoIHdpZHRoPSI1JSI+PC90aD4KICAgICAgICAgIDwvdHI+CiAgICAgICAgPC90aGVhZD4KICAgICAgICA8dGJvZHk+PC90Ym9keT4KICAgICAgPC90YWJsZT4KICAgIDwvZGl2PgogICAgPHN0eWxlPgogICAgICA6aG9zdCAjdGVuc29yLWRhdGEtZGl2IHsKICAgICAgICBoZWlnaHQ6IDEwMCU7CiAgICAgICAgb3ZlcmZsb3cteTogYXV0bzsKICAgICAgfQogICAgICAuc2VjdGlvbi10aXRsZSB7CiAgICAgICAgZm9udC1zaXplOiAxMTAlOwogICAgICAgIGZvbnQtd2VpZ2h0OiBib2xkOwogICAgICB9CiAgICAgIDpob3N0IC5pbmRlbnRlZC1sZXZlbC1jb250YWluZXIgLmNvbnRlbnQtY29udGFpbmVyIHsKICAgICAgICBtYXJnaW46IDAgMCAwIDEwcHg7CiAgICAgIH0KICAgICAgOmhvc3QgLnRlbnNvci1kYXRhLXRhYmxlIHsKICAgICAgICBhbGlnbi1jb250ZW50OiBsZWZ0OwogICAgICAgIGFsaWduLWl0ZW1zOiBsZWZ0OwogICAgICAgIGRpc3BsYXk6IGJsb2NrOwogICAgICAgIHRleHQtYWxpZ246IGxlZnQ7CiAgICAgICAgdmVydGljYWwtYWxpZ246IG1pZGRsZTsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgICBwYWRkaW5nLXRvcDogM3B4OwogICAgICAgIHBhZGRpbmctbGVmdDogM3B4OwogICAgICAgIHBhZGRpbmctcmlnaHQ6IDNweDsKICAgICAgICBib3gtc2hhZG93OiAzcHggM3B4ICNkZGQ7CiAgICAgIH0KICAgICAgOmhvc3QgI3RlbnNvci1kYXRhLXRhYmxlIHRoIHsKICAgICAgICB2ZXJ0aWNhbC1hbGlnbjogdG9wOwogICAgICB9CiAgICAgIDpob3N0IC5hY3RpdmUtdGVuc29yIHsKICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmZmUwOwogICAgICAgIGZvbnQtd2VpZ2h0OiBib2xkOwogICAgICAgIGJvcmRlcjogc29saWQgMXB4ICM4ODg7CiAgICAgIH0KICAgICAgOmhvc3QgLmhpZ2hsaWdodGVkIHsKICAgICAgICBjb2xvcjogcmVkOwogICAgICB9CiAgICAgIDpob3N0IC5oZWFsdGgtcGlsbC1sZWdlbmQgewogICAgICAgIGZsb2F0OiByaWdodDsKICAgICAgICBmb250LXdlaWdodDogbm9ybWFsOwogICAgICB9CiAgICAgIDpob3N0ICNzaG93LWhlYWx0aC1waWxscyB7CiAgICAgICAgZGlzcGxheTogaW5saW5lLWJsb2NrOwogICAgICB9CiAgICAgIC52YWx1ZS1leHBhbnNpb24tbGluayB7CiAgICAgICAgdGV4dC1kZWNvcmF0aW9uOiB1bmRlcmxpbmU7CiAgICAgICAgY3Vyc29yOiBwb2ludGVyOwogICAgICB9CiAgICAgIC52YWx1ZS1leHBhbnNpb24tbGluayA6aG92ZXIgewogICAgICAgIGNvbG9yOiBibHVlOwogICAgICB9CiAgICAgIC5oZWFsdGgtcGlsbCA6aG92ZXIgewogICAgICAgIGN1cnNvcjogcG9pbnRlcjsKICAgICAgfQogICAgICAudGVuc29yLW5hbWUgewogICAgICAgIHRleHQtZGVjb3JhdGlvbjogdW5kZXJsaW5lOwogICAgICAgIGN1cnNvcjogcG9pbnRlcjsKICAgICAgfQogICAgICAudGVuc29yLW5hbWUgOmhvdmVyIHsKICAgICAgICBjb2xvcjogYmx1ZTsKICAgICAgfQogICAgPC9zdHlsZT4KICA8L3RlbXBsYXRlPgogIAo8L2RvbS1tb2R1b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ICAgICA8L3RkPgogICAgICAgICAgICAKICAgICAgICAgIAogICAgICAgIAogICAgICA8L3RyPgogICAgPC90YWJsZT4KCiAgICA8c3R5bGUgaW5jbHVkZT0idGVuc29yLXdpZGdldC1zdHlsZSI+PC9zdHlsZT4KICAgIDxzdHlsZT4KICAgICAgLnRlbnNvci12YWx1ZS1idXR0b25zIHsKICAgICAgICBoZWlnaHQ6IDc1JTsKICAgICAgICBmb250LXNpemU6IDEwcHg7CiAgICAgIH0KICAgICAgLnRlbnNvci12YWx1ZS12aWV3LXRhYmxlIHsKICAgICAgICB3aWR0aDogNTAwcHg7CiAgICAgICAgZGlzcGxheTogaW5saW5lLXRhYmxlOwogICAgICAgIGJvcmRlci1zcGFjaW5nOiA1cHg7CiAgICAgICAgcGFkZGluZy10b3A6IDNweDsKICAgICAgICBwYWRkaW5nLWJvdHRvbTogM3B4OwogICAgICAgIHBhZGRpbmctbGVmdDogM3B4OwogICAgICAgIHBhZGRpbmctcmlnaHQ6IDNweDsKICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjZjhmOGY4OwogICAgICAgIGJveC1zaGFkb3c6IDNweCAzcHggMXB4IDFweCAjZDhkOGQ4OwogICAgICB9CiAgICAgIC50ZW5zb3ItdmFsdWUtdmlldy10ZCB7CiAgICAgICAgd2lkdGg6IDM1MHB4OwogICAgICB9CiAgICAgIC52YWx1ZS1jYXJkLWlucHV0IHsKICAgICAgICB3aWR0aDogMTUwcHg7CiAgICAgIH0KICAgICAgI3RlbnNvci1uYW1lIHsKICAgICAgICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7CiAgICAgICAgcG9zaXRpb246IHJlbGF0aXZlOwogICAgICAgIHdpZHRoOiA1MCU7CiAgICAgICAgY3Vyc29yOiBwb2ludGVyOwogICAgICB9CiAgICAgIC50ZW5zb3ItbmFtZS10ZXh0IHsKICAgICAgICBjb2xvcjogYmx1ZTsKICAgICAgICB0ZXh0LWRlY29yYXRpb246IHVuZGVybGluZTsKICAgICAgfQogICAgICAjZGVidWctb3AgewogICAgICAgIGZvbnQtc2l6ZTogOTAlOwogICAgICB9CiAgICAgIC52YWx1ZS1pbWFnZSB7CiAgICAgICAgaW1hZ2UtcmVuZGVyaW5nOiBwaXhlbGF0ZWQ7CiAgICAgIH0KICAgICAgLnZhbHVlLXZpZXctaWNvbi1idXR0b24gewogICAgICAgIGRpc3BsYXk6IGlubGluZS1ibG9jazsKICAgICAgICBmbG9hdDogcmlnaHQ7CiAgICAgICAgdGV4dC1hbGlnbjogcmlnaHQ7CiAgICAgICAgd2lkdGg6IDIwJTsKICAgICAgICB0ZXh0LWRlY29yYXRpb246IHVuZGVybGluZTsKICAgICAgICBjdXJzb3I6IHBvaW50ZXI7CiAgICAgICAgZm9udC1zaXplOiA5MCU7CiAgICAgICAgY29sb3I6IGJsdWU7CiAgICAgIH0KICAgICAgI3RlbnNvci13aWRnZXQgewogICAgICAgIGJvcmRlcjogMXB4IHNvbGlkIHJnYigxNjAsIDE2MCwgMTYwKTsKICAgICAgICAvKiBib3gtc2l6aW5nOiBjb250ZW50LWJveDsKICAgICAgICAtbW96LWJveC1zaXppbmc6IGNvbnRlbnQtYm94OwogICAgICAgIC13ZWJraXQtYm94LXNpemluZzogY29udGVudC1ib3g7ICovCiAgICAgICAgaGVpZ2h0OiAyODBweDsKICAgICAgICB3aWR0aDogNDg0cHg7CiAgICAgIH0KICAgICAgI3NsaWNpbmcsCiAgICAgICN0aW1lLWluZGljZXMgewogICAgICAgIC0tcGFwZXItaW5wdXQtY29udGFpbmVyLWlucHV0OiB7CiAgICAgICAgICBmb250LWZhbWlseTogbW9ub3NwYWNlOwogICAgICAgIH0KICAgICAgfQogICAgPC9zdHlsZT4KICA8L3RlbXBsYXRlPgogIAo8L2RvbS1tb2R1bGU+CgoKPGRvbS1tb2R1bGUgaWQ9InRmLXRlbnNvci12YWx1ZS1tdWx0aS12aWV3Ij4KICA8dGVtcGxhdGU+CiAgICA8ZGl2IGlkPSJtdWx0aVZpZXciP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oZWFsdGgtcGlsbD0iW1tfY3JlYXRlR2V0SGVhbHRoUGlsbCgpXV0iPgogICAgICAgICAgPC90Zi10ZW5zb3ItZGF0YS1zdW1tYXJ5PgogICAgICAgIDwvZGl2PgogICAgICA8L2Rpdj4KICAgIDwvdGYtZGFzaGJvYXJkLWxheW91dD4KCiAgICA8c3R5bGUgaW5jbHVkZT0iZGFzaGJvYXJkLXN0eWxlIj48L3N0eWxlPgogICAgPHN0eWxlPgogICAgICA6aG9zdCB7CiAgICAgICAgZGlzcGxheTogYmxvY2s7CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgIGxlZnQ6IDA7CiAgICAgICAgcmlnaHQ6IDA7CiAgICAgICAgdG9wOiAwOwogICAgICAgIGJvdHRvbTogMDsKICAgICAgICBvdmVyZmxvdzogaGlkZGVuOwogICAgICB9CiAgICAgIHBhcGVyLXRvYXN0IHsKICAgICAgICB0ZXh0LWFsaWduOiBjZW50ZXI7CiAgICAgICAgZm9udC1zaXplOiAxMTAlOwogICAgICAgIHdpZHRoOiA0MHZ3OwogICAgICAgIG1hcmdpbi1sZWZ0OiAzMHZ3OwogICAgICB9CiAgICAgIHRmLWRhc2hib2FyZC1sYXlvdXQgewogICAgICAgIC0tdGYtZGFzaGJvYXJkLWxheW91dC1zaWRlYmFyLWJhc2lzOiBhdXRvOwogICAgICAgIC0tdGYtZGFzaGJvYXJkLWxheW91dC1zaWRlYmFyLW1heC13aWR0aDogbm9uZTsKICAgICAgICAtLXRmLWRhc2hib2FyZC1sYXlvdXQtc2lkZWJhci1taW4td2lkdGg6IG5vbmU7CiAgICAgIH0KICAgICAgLmRlYnVnZ2VyLXNlY3Rpb24tdGl0bGUgewogICAgICAgIGZvbnQtc2l6ZTogMTEwJTsKICAgICAgICBmb250LXdlaWdodDogYm9sZDsKICAgICAgfQogICAgICBwYXBlci10YWJzIHsKICAgICAgICBjb2xvcjogIzU1NTsKICAgICAgICBmb250LXdlaWdodDogbm9ybWFsOwogICAgICB9CiAgICAgIHBhcGVyLXRhYi5pcm9uLXNlbGVjdGVkIHsKICAgICAgICBjb2xvcjogYmxhY2s7CiAgICAgICAgZm9udC13ZWlnaHQ6IGJvbGQ7CiAgICAgIH0KICAgICAgI2luaXRpYWxEaWFsb2cgewogICAgICAgIC8qKiBUaGlzIG1hdGNoZXMgdGhlIGRlZmF1bHQgei1pbmRleCBvZiBwYXBlci1kaWFsb2cgYmFja2Ryb3BzLiAqLwogICAgICAgIHotaW5kZXg6IDEwMjsKICAgICAgfQogICAgICAvKiogUmVzaXplIHRoZSByZWdpb24gZm9yIHRoZSBncmFwaCBhcyB0aGUgdXNlciByZXNpemVzIHRoZSByZWdpb24uICovCiAgICAgICNncmFwaC1jb250YWluZXIgewogICAgICAgIGhlaWdodDogY2FsYygxMDAlIC0gMTIwcHgpOwogICAgICAgIC8qKiBDbGlwIHRoZSBtaW5pbWFwIGlmIHRoZSBoZWlnaHQgb2YgdGhlIGdyYXBoIGNvbnRhaW5lciBpcyBzbWFsbC4gKi8KICAgICAgICBvdmVyZmxvdzogaGlkZGVuOwogICAgICAgIHBvc2l0aW9uOiByZWxhdGl2ZTsKICAgICAgfQogICAgICAjZ3JhcGggewogICAgICAgIHBvc2l0aW9uOiByZWxhdGl2ZTsKICAgICAgICBkaXNwbGF5OiBibG9jazsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgICBoZWlnaHQ6IDEwMCU7CiAgICAgIH0KICAgICAgI3Rvb2x0aXAtc29ydGluZyB7CiAgICAgICAgZGlzcGxheTogZmxleDsKICAgICAgICBmb250LXNpemU6IDE0cHg7CiAgICAgICAgbWFyZ2luLXRvcDogNXB4OwogICAgICB9CiAgICAgICN0b29sdGlwLXNvcnRpbmctbGFiZWwgewogICAgICAgIG1hcmdpbi10b3A6IDEzcHg7CiAgICAgIH0KICAgICAgI3Rvb2x0aXAtc29ydGluZyBwYXBlci1kcm9wZG93bi1tZW51IHsKICAgICAgICBtYXJnaW4tbGVmdDogMTBweDsKICAgICAgICAtLXBhcGVyLWlucHV0LWNvbnRhaW5lci1mb2N1cy1jb2xvcjogdmFyKC0tdGItb3JhbmdlLXN0cm9uZyk7CiAgICAgICAgd2lkdGg6IDEwNXB4OwogICAgICB9CiAgICAgICN4LXR5cGUtc2VsZWN0b3IgcGFwZXItYnV0dG9uIHsKICAgICAgICBtYXJnaW46IDVweCAzcHg7CiAgICAgIH0KICAgICAgLnJ1bnRpbWUtZ3JhcGgtZGV2aWNlIHsKICAgICAgICBhbGlnbi1pdGVtczogY2VudGVyOwogICAgICAgIGRpc3BsYXk6IGZsZXg7CiAgICAgICAgZmxleC13cmFwOiB3cmFwOwogICAgICB9CiAgICAgICNydW50aW1lLWdyYXBoLWRldmljZS1uYW1lIHsKICAgICAgICBmb250LXNpemU6IDg1JTsKICAgICAgICB3b3JkLWJyZWFrOiBicmVhay1hbGw7CiAgICAgICAgZGlzcGxheTogaW5saW5lLWJsb2NrOwogICAgICB9CiAgICAgICNhY3RpdmUtcnVudGltZS1ncmFwaC1kZXZpY2UtbmFtZSB7CiAgICAgICAgZm9udC1zaXplOiA4NSU7CiAgICAgICAgd2lkdGg6IDM1MHB4OwogICAgICAgIGRpc3BsYXk6IGlubGluZS1ibG9jazsKICAgICAgfQogICAgICAjdG9wLXJpZ2h0LXByb2dyZXNzLWJhciB7CiAgICAgICAgd2lkdGg6IDEwMCU7CiAgICAgICAgZGlzcGxheTogaW5saW5lLWJsb2NrOwogICAgICAgIHZlcnRpY2FsLWFsaWduOiBtaWRkbGU7CiAgICAgIH0KICAgICAgLmxpbmUtaXRlbSB7CiAgICAgICAgZGlzcGxheTogYmxvY2s7CiAgICAgICAgcGFkZGluZy10b3A6IDVweDsKICAgICAgfQogICAgICAubm8tZGF0YS13YXJuaW5nIHsKICAgICAgICBtYXgtd2lkdGg6IDU0MHB4OwogICAgICAgIG1hcmdpbjogODBweCBhdXRvIDAgYXV0bzsKICAgICAgfQogICAgICAuc2lkZWJhciB7CiAgICAgICAgaGVpZ2h0OiAxMDAlOwogICAgICAgIG92ZXJmbG93LXg6IHZpc2libGU7CiAgICAgICAgcG9zaXRpb246IHJlbGF0aXZlOwogICAgICB9CiAgICAgIC5jZW50ZXIgewogICAgICAgIHBvc2l0aW9uOiByZWxhdGl2ZTsKICAgICAgICBoZWlnaHQ6IDEwMCU7CiAgICAgIH0KICAgICAgdGYtZGVidWdnZXItcmVzaXplciB7CiAgICAgICAgcmlnaHQ6IC0xMHB4OwogICAgICB9CiAgICAgICNjZW50ZXItY29udGVudCB7CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgIHJpZ2h0OiAwOwogICAgICB9CiAgICAgIC8qKiBUaGUgcmVzaXplciBzaG91bGQgaGF2ZSBubyBzcGFjZSB0byB0aGUgbGVmdCBvZiBpdC4gKi8KICAgICAgI2NlbnRlci1jb250ZW50IHRmLWRlYnVnZ2VyLXJlc2l6ZXJbaXMtaG9yaXpvbnRhbF0gewogICAgICAgIG1hcmdpbi1sZWZ0OiAtMjNweDsKICAgICAgfQogICAgICAuY29udGV4dC1tZW51IHsKICAgICAgICBwb3NpdGlvbjogYWJzb2x1dGU7CiAgICAgICAgZGlzcGxheTogbm9uZTsKICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjZTJlMmUyOwogICAgICAgIGJvcmRlci1yYWRpdXM6IDJweDsKICAgICAgICBmb250LXNpemU6IDE0cHg7CiAgICAgICAgbWluLXdpZHRoOiAxNTBweDsKICAgICAgICBib3JkZXI6IDFweCBzb2xpZCAjZDRkNGQ0OwogICAgICB9CiAgICAgIC5zcGlubmVyIHsKICAgICAgICB3aWR0aDogMjBweDsKICAgICAgICBoZWlnaHQ6IDIwcHg7CiAgICAgICAgdmVydGljYWwtYWxpZ246IG1pZGRsZTsKICAgICAgfQogICAgICAubm9kZS1lbnRyaWVzIHsKICAgICAgICBib3gtc2hhZG93OiAzcHggM3B4ICNkZGQ7CiAgICAgICAgYm94LXNpemluZzogYm9yZGVyLWJveDsKICAgICAgICBoZWlnaHQ6IDgwJTsKICAgICAgICBvdmVyZmxvdzogYXV0bzsKICAgICAgICBwYWRkaW5nLWxlZnQ6IDNweDsKICAgICAgICBwYWRkaW5nLXJpZ2h0OiAzcHg7CiAgICAgICAgcGFkZGluZy10b3A6IDNweDsKICAgICAgICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgICAgICAgdmVydGljYWwtYWxpZ246IHRvcDsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgfQogICAgICAuc291cmNlLWNvZGUtdmlldy1kaXYgewogICAgICAgIHBvc2l0aW9uOiByZWxhdGl2ZTsKICAgICAgICBoZWlnaHQ6IDQwJTsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgICB2ZXJ0aWNhbC1hbGlnbjogdG9wOwogICAgICAgIG92ZXJmbG93OiBoaWRkZW47CiAgICAgICAgcGFkZGluZy10b3A6IDNweDsKICAgICAgICBwYWRkaW5nLWxlZnQ6IDNweDsKICAgICAgICBwYWRkaW5nLXJpZ2h0OiAzcHg7CiAgICAgICAgYm94LXNoYWRvdzogM3B4IDNweCAjZGRkOwogICAgICB9CiAgICAgICNzZXNzaW9uUnVuc1ZpZXcgewogICAgICAgIHBvc2l0aW9uOiByZWxhdGl2ZTsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgICBvdmVyZmxvdzogYXV0bzsKICAgICAgICBtYXgtaGVpZ2h0OiAyNXZoOwogICAgICB9CiAgICAgIC5idXR0b25zLWNvbnRhaW5lciB7CiAgICAgICAgcGFkZGluZzogMjBweCAwOwogICAgICB9CiAgICAgICN0ZW5zb3ItZGF0YSB7CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgIGJvdHRvbTogMDsKICAgICAgICBsZWZ0OiAwOwogICAgICAgIHJpZ2h0OiAwOwogICAgICAgIHBhZGRpbmc6IDIwcHggMDsKICAgICAgICBtYXJnaW46IDAgMCAyMHB4IDA7CiAgICAgIH0KICAgICAgI3RlbnNvckRhdGFTdW1tYXJ5IHsKICAgICAgICBwb3NpdGlvbjogYWJzb2x1dGU7CiAgICAgICAgYm90dG9tOiAwOwogICAgICAgIGxlZnQ6IDA7CiAgICAgICAgcmlnaHQ6IDA7CiAgICAgICAgdG9wOiAwOwogICAgICB9CiAgICAgICN0b3AtcmlnaHQtcXVhZHJhbnQgewogICAgICAgIGhlaWdodDogNjYlOwogICAgICAgIG92ZXJmbG93OiBhdXRvOwogICAgICB9CiAgICAgIC50b2dnbGUtc291cmNlLWNvZGUgewogICAgICAgIG1hcmdpbi1yaWdodDogMWVtOwogICAgICAgIGZvbnQtc2l6ZTogODAlOwogICAgICAgIGZsb2F0OiByaWdodDsKICAgICAgfQogICAgICAuY29udGV4dC1tZW51IHVsIHsKICAgICAgICBsaXN0LXN0eWxlLXR5cGU6IG5vbmU7CiAgICAgICAgbWFyZ2luOiAwOwogICAgICAgIHBhZGRpbmc6IDA7CiAgICAgICAgY3Vyc29yOiBkZWZhdWx0OwogICAgICB9CiAgICAgIC5jb250ZXh0LW1lbnUgdWwgbGkgewogICAgICAgIHBhZGRpbmc6IDRweCAxNnB4OwogICAgICB9CiAgICAgIC5jb250ZXh0LW1lbnUgdWwgbGk6aG92ZXIgewogICAgICAgIGJhY2tncm91bmQtY29sb3I6ICNmMzkxM2U7CiAgICAgICAgY29sb3I6IHdoaXRlOwogICAgICB9CgogICAgICBwYXBlci1pbnB1dCB7CiAgICAgICAgd2lkdGg6IDIwMHB4OwogICAgICB9CiAgICAgIC5pbmxpbmUsCiAgICAgIHBhcGVyLWl0ZW0gewogICAgICAgIGRpc3BsYXk6IGlubGluZTsKICAgICAgfQoKICAgICAgdnotbGluZS1jaGFydCB7CiAgICAgICAgaGVpZ2h0OiAzMDBweDsKICAgICAgICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgICAgIH0KICAgICAgW2hpZGRlbl0gewogICAgICAgIGRpc3BsYXk6IG5vbmU7CiAgICAgIH0KICAgIDwvc3R5bGU+CiAgPC90ZW1wbGF0ZT4KICAKIC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ci1tYXRlcmlhbDsKICAgICAgfQogICAgPC9zdHlsZT4KCiAgICA8c2xvdD48L3Nsb3Q+CiAgPC90ZW1wbGF0ZT4KPC9kb20tbW9kdWxlPgoKCgoKCgoKCgoKCgoKPGRvbS1tb2R1bGUgaWQ9InRmLWdyYXBoLWRlYnVnZ2VyLWRhdGEtY2FyZCI+CiAgPHRlbXBsYXRlPgogICAgPHN0eWxlPgogICAgICA6aG9zdCB7CiAgICAgICAgZm9udC1zaXplOiAxMnB4OwogICAgICAgIG1hcmdpbjogMDsKICAgICAgICBwYWRkaW5nOiAwOwogICAgICAgIGRpc3BsYXk6IGJsb2NrOwogICAgICB9CgogICAgICBoMiB7CiAgICAgICAgcGFkZGluZzogMDsKICAgICAgICB0ZXh0LWFsaWduOiBjZW50ZXI7CiAgICAgICAgbWFyZ2luOiAwOwogICAgICB9CgogICAgICAuaGVhbHRoLXBpbGwtbGVnZW5kIHsKICAgICAgICBwYWRkaW5nOiAxNXB4OwogICAgICB9CgogICAgICAuaGVhbHRoLXBpbGwtbGVnZW5kIGgyIHsKICAgICAgICB0ZXh0LWFsaWduOiBsZWZ0OwogICAgICB9CgogICAgICAuaGVhbHRoLXBpbGwtZW50cnkgewogICAgICAgIG1hcmdpbjogMTBweCAxMHB4IDEwcHggMDsKICAgICAgfQoKICAgICAgLmhlYWx0aC1waWxsLWVudHJ5IC5jb2xvci1wcmV2aWV3IHsKICAgICAgICB3aWR0aDogMjZweDsKICAgICAgICBoZWlnaHQ6IDI2cHg7CiAgICAgICAgYm9yZGVyLXJhZGl1czogM3B4OwogICAgICAgIGRpc3BsYXk6IGlubGluZS1ibG9jazsKICAgICAgICBtYXJnaW46IDAgMTBweCAwIDA7CiAgICAgIH0KCiAgICAgIC5oZWFsdGgtcGlsbC1lbnRyeSAuY29sb3ItbGFiZWwsCiAgICAgIC5oZWFsdGgtcGlsbC1lbnRyeSAudGVuc29yLWNvdW50IHsKICAgICAgICBjb2xvcjogIzc3NzsKICAgICAgICBkaXN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nVtYmVyLWlucHV0IHsKICAgICAgICB0ZXh0LWFsaWduOiBjZW50ZXI7CiAgICAgICAgdmVydGljYWwtYWxpZ246IHRvcDsKICAgICAgfQoKICAgICAgI251bWVyaWMtYWxlcnRzLXRhYmxlLWNvbnRhaW5lciB7CiAgICAgICAgbWF4LWhlaWdodDogNDAwcHg7CiAgICAgICAgb3ZlcmZsb3cteDogaGlkZGVuOwogICAgICAgIG92ZXJmbG93LXk6IGF1dG87CiAgICAgIH0KCiAgICAgICNudW1lcmljLWFsZXJ0cy10YWJsZSB7CiAgICAgICAgdGV4dC1hbGlnbjogbGVmdDsKICAgICAgfQoKICAgICAgI251bWVyaWMtYWxlcnRzLXRhYmxlIHRkIHsKICAgICAgICB2ZXJ0aWNhbC1hbGlnbjogdG9wOwogICAgICB9CgogICAgICAjbnVtZXJpYy1hbGVydHMtdGFibGUgLmZpcnN0LW9mZmVuc2UtdGQgewogICAgICAgIGRpc3BsYXk6IGlubGluZS1ibG9jazsKICAgICAgfQoKICAgICAgLmZpcnN0LW9mZmVuc2UtdGQgewogICAgICAgIHdpZHRoOiA4MHB4OwogICAgICB9CgogICAgICAudGVuc29yLWRldmljZS10ZCB7CiAgICAgICAgbWF4LXdpZHRoOiAxNDBweDsKICAgICAgICB3b3JkLXdyYXA6IGJyZWFrLXdvcmQ7CiAgICAgIH0KCiAgICAgIC50ZW5zb3Itc2VjdGlvbi13aXRoaW4tdGFibGUgewogICAgICAgIGNvbG9yOiAjMjY2MjM2OwogICAgICAgIGN1cnNvcjogcG9pbnRlcjsKICAgICAgICBvcGFjaXR5OiAwLjg7CiAgICAgICAgdGV4dC1kZWNvcmF0aW9uOiB1bmRlcmxpbmU7CiAgICAgIH0KCiAgICAgIC50ZW5zb3Itc2VjdGlvbi13aXRoaW4tdGFibGU6aG92ZXIgewogICAgICAgIG9wYWNpdHk6IDE7CiAgICAgIH0KCiAgICAgIC5kZXZpY2Utc2VjdGlvbi13aXRoaW4tdGFibGUgewogICAgICAgIGNv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tpdGVtUmVuZGVySW5mb11dIiB0ZW1wbGF0ZS1pbmRleD0iW1t0ZW1wbGF0ZUluZGV4XV0iPgogICAgICAgIDwvdGYtbm9kZS1pY29uPgogICAgICAgIDxzcGFuIHRpdGxlJD0iW1tuYW1lXV0iPltbbmFtZV1dPC9zcGFuPgogICAgICA8L2Rpdj4KICAgIDwvZGl2PgogIDwvdGVtcGxhdGU+CgogIAo8L2RvbS1tb2R1bGU+CgoKPGRvbS1tb2R1bGUgaWQ9InRmLWdyYXBoLW9wLWNvbXBhdC1jYXJkIj4KICA8dGVtcGxhdGU+CiAgICA8c3R5bGU+CiAgICAgIDpob3N0IHsKICAgICAgICBtYXgtaGVpZ2h0OiA1MDBweDsKICAgICAgfQoKICAgICAgLmluY29tcGF0aWJsZS1vcHMtbGlzdCB7CiAgICAgICAgaGVpZ2h0OiAzNTBweDsKICAgICAgICBtYXgtaGVpZ2h0OiA0MDBweDsKICAgICAgICBvdmVyZmxvdy15OiBzY3JvbGw7CiAgICAgICAgZGlzcGxheTogZmxleDsKICAgICAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uOwogICAgICB9CgogICAgICBpcm9uLWxpc3QgewogICAgICAgIGZsZXg6IDEgMSBhdXRvOwogICAgICB9CgogICAgICBwYXBlci1pdGVtIHsKICAgICAgICBwYWRkaW5nOiAwOwogICAgICAgIGJhY2tncm91bmQ6ICNlOWU5ZTk7CiAgICAgIH0KCiAgICAgIHBhcGVyLWl0ZW0tYm9keVt0d28tbGluZV0gewogICAgICAgIG1pbi1oZWlnaHQ6IDA7CiAgICAgICAgcGFkZGluZzogOHB4IDEycHggNHB4OwogICAgICB9CgogICAgICAuZXhwYW5kZWRJbmZvIHsKICAgICAgICBwYWRkaW5nOiA4cHggMTJweDsKICAgICAgICBmb250LXdlaWdodDogNTAwOwogICAgICAgIGZvbnQtc2l6ZTogMTJwdDsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgfQoKICAgICAgLm5vZGUtbmFtZSB7CiAgICAgICAgd2hpdGUtc3BhY2U6IG5vcm1hbDsKICAgICAgICB3b3JkLXdyYXA6IGJyZWFrLXdvcmQ7CiAgICAgICAgZm9udC1zaXplOiAxNHB0OwogICAgICAgIGZvbnQtd2VpZ2h0OiA1MDA7CiAgICAgIH0KCiAgICAgIC5zdWJ0aXRsZSB7CiAgICAgICAgZm9udC1zaXplOiAxMnB0OwogICAgICAgIGNvbG9yOiAjNWU1ZTVlOwogICAgICB9CgogICAgICAudG9nZ2xlLWJ1dHRvbiB7CiAgICAgICAgZmxvYXQ6IHJpZ2h0OwogICAgICAgIG1heC1oZWlnaHQ6IDIwcHg7CiAgICAgICAgbWF4LXdpZHRoOiAyMHB4OwogICAgICAgIHBhZGRpbmc6IDA7CiAgICAgIH0KCiAgICAgIC5ub24tY29udHJvbC1saXN0LWl0ZW0gewogICAgICAgIHBhZGRpbmctbGVmdDogMTBweDsKICAgICAgfQoKICAgICAgZGl2Lm9wLWNvbXBhdC1kaXNwbGF5IHsKICAgICAgICBtYXJnaW4tdG9wOiAxMHB4OwogICAgICAgIGRpc3BsYXk6IGlubGluZS1ibG9jazsKICAgICAgfQoKICAgICAgc3ZnLm9wLWNvbXBhdCB7CiAgICAgICAgd2lkdGg6IDI1MHB4OwogICAgICAgIGhlaWdodDogMjVweDsKICAgICAgICBmbG9hdDogbGVmdDsKICAgICAgfQoKICAgICAgZGl2Lm9wLWNvbXBhdC12YWx1ZSB7CiAgICAgICAgZmxvYXQ6IHJpZ2h0OwogICAgICAgIGhlaWdodDogMTAwJTsKICAgICAgICBmb250LXNpemU6IDE0cHg7CiAgICAgICAgY29sb3I6IGJsYWNrOwogICAgICAgIG1hcmdpbi1sZWZ0OiAxMHB4OwogICAgICB9CiAgICA8L3N0eWxlPgoKICAgIDxwYXBlci1pdGVtPgogICAgICA8cGFwZXItaXRlbS1ib2R5IHR3by1saW5lPgogICAgICAgIDxkaXY+CiAgICAgICAgICA8cGFwZXItaWNvbi1idXR0b24gaWNvbj0ie3tfZ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ZGl2PgogIDwvdGVtcGxhdGU+CgogIAo8L2RvbS1tb2R1bGU+CgoKPGRvbS1tb2R1bGUgaWQ9InRmLW5vZGUtaW5mbyI+CiAgPHRlbXBsYXRlPgogICAgPHN0eWxlPgogICAgICAuc3ViLWxpc3QtZ3JvdXAgewogICAgICAgIGZvbnQtd2VpZ2h0OiA1MDA7CiAgICAgICAgZm9udC1zaXplOiAxMnB0OwogICAgICAgIHBhZGRpbmctYm90dG9tOiA4cHg7CiAgICAgICAgd2lkdGg6IDEwMCU7CiAgICAgIH0KCiAgICAgIC5zdWItbGlzdCB7CiAgICAgICAgbWF4LWhlaWdodDogMzAwcHg7CiAgICAgICAgb3ZlcmZsb3cteTogc2Nyb2xsOwogICAgICB9CgogICAgICAuYXR0ci1sZWZ0IHsKICAgICAgICBmbG9hdDogbGVmdDsKICAgICAgICB3aWR0aDogMzAlOwogICAgICAgIHdvcmQtd3JhcDogYnJlYWstd29yZDsKICAgICAgICBjb2xvcjogIzU2NTY1NjsKICAgICAgICBmb250LXNpemU6IDExcHQ7CiAgICAgICAgZm9udC13ZWlnaHQ6IDQwMDsKICAgICAgfQoKICAgICAgLmF0dHItcmlnaHQgewogICAgICAgIG1hcmdpbi1sZWZ0OiAzMCU7CiAgICAgICAgd29yZC13cmFwOiBicmVhay13b3JkOwogICAgICAgIGNvbG9yOiAjNTY1NjU2OwogICAgICAgIGZvbnQtd2VpZ2h0OiA0MDA7CiAgICAgIH0KCiAgICAgIC5zdWItbGlzdC10YWJsZSB7CiAgICAgICAgZGlzcGxheTogdGFibGU7CiAgICAgICAgd2lkdGg6IDEwMCU7CiAgICAgIH0KCiAgICAgIC5zdWItbGlzdC10YWJsZS1yb3cgewogICAgICAgIGRpc3BsYXk6IHRhYmxlLXJvdzsKICAgICAgfQoKICAgICAgLnN1Yi1saXN0LXRhYmxlLXJvdyAuc3ViLWxpc3QtdGFibGUtY2VsbDpsYXN0LWNoaWxkIHsKICAgICAgICB0ZXh0LWFsaWduOiByaWdodDsKICAgICAgfQoKICAgICAgLnN1Yi1saXN0LXRhYmxlLWNlbGwgewogICAgICAgIGNvbG9yOiAjNTY1NjU2OwogICAgICAgIGRpc3BsYXk6IHRhYmxlLWNlbGw7CiAgICAgICAgZm9udC1zaXplOiAxMXB0OwogICAgICAgIGZvbnQtd2VpZ2h0OiA0MDA7CiAgICAgICAgbWF4LXdpZHRoOiAyMDBweDsKICAgICAgICBwYWRkaW5nOiAwIDRweDsKICAgICAgfQoKICAgICAgcGFwZXItaXRlbSB7CiAgICAgICAgcGFkZGluZzogMDsKICAgICAgICBiYWNrZ3JvdW5kOiAjZTllOWU5OwogICAgICB9CgogICAgICBwYXBlci1pdGVtLWJvZHlbdHdvLWxpbmVdIHsKICAgICAgICBtaW4taGVpZ2h0OiAwOwogICAgICAgIHBhZGRpbmc6IDhweCAxMnB4IDRweDsKICAgICAgfQoKICAgICAgLmV4cGFuZGVkSW5mbyB7CiAgICAgICAgcGFkZGluZzogOHB4IDEycHg7CiAgICAgIH0KCiAgICAgIC5jb250cm9sRGVwcyB7CiAgICAgICAgcGFkZGluZzogMCAwIDAgOHB4OwogICAgICB9CgogICAgICAubm9kZS1uYW1lIHsKICAgICAgICB3aGl0ZS1zcGFjZTogbm9ybWFsOwogICAgICAgIHdvcmQtd3JhcDogYnJlYWstd29yZDsKICAgICAgICBmb250LXNpemU6IDE0cHQ7CiAgICAgICAgZm9udC13ZWlnaHQ6IDUwMDsKICAgICAgfQoKICAgICAgLm5vZGUtaWNvbiB7CiAgICAgICAgZmxvYXQ6IHJpZ2h0OwogICAgICB9CgogICAgICAuc3VidGl0bGUgewogICAgICAgIGZvbnQtc2l6ZTogMTJwdDsKICAgICAgICBjb2xvcjogIzVlNWU1ZTsKICAgICAgfQoKICAgICAgLmNvbnRyb2xMaW5lIHsKICAgICAgICBmb250LXNpemU6IDExcHQ7CiAgICAgICAgZm9udC13ZWlnaHQ6IDQwMDsKICAgICAgfQoKICAgICAgLnRvZ2dsZS1idXR0b24gewogICAgICAgIGZsb2F0OiByaWdodDsKICAgICAgICBtYXgtaGVpZ2h0OiAyMHB4OwogICAgICAgIG1heC13aWR0aDogMjBweDsKICAgICAgICBwYWRkaW5nOiAwOwogICAgICB9CgogICAgICAuY29udHJvbC10b2dnbGUtYnV0dG9uIHsKICAgICAgICBmbG9hdDogbGVmdDsKICAgICAgICBtYXgtaGVpZ2h0OiAyMHB4OwogICAgICAgIG1heC13aWR0aDogMjBweDsKICAgICAgICBwYWRkaW5nOiAwOwogICAgICB9CgogICAgICAudG9nZ2xlLWluY2x1ZGUtZ3JvdXAgewogICAgICAgIHBhZGRpbmctdG9wOiA0cHg7CiAgICAgIH0KCiAgICAgIC50b2dnbGUtaW5jbHVkZSB7CiAgICAgICAgbWFyZ2luOiA1cHggNnB4OwogICAgICAgIHRleHQtdHJhbnNmb3JtOiBub25lOwogICAgICAgIHBhZGRpbmc6IDRweCA2cHg7CiAgICAgICAgZm9udC1zaXplOiAxMHB0OwogICAgICAgIGJhY2tncm91bmQtY29sb3I6ICNmYWZhZmE7CiAgICAgICAgY29sb3I6ICM2NjY7CiAgICAgIH0KCiAgICAgIC50b2dnbGUtaW5jbHVkZTpob3ZlciB7CiAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogdmFyKC0tZ29vZ2xlLXllbGxvdy0xMDApOwogICAgICB9CgogICAgICAubm9uLWNvbnRyb2wtbGlzdC1pdGVtIHsKICAgICAgICBwYWRkaW5nLWxlZnQ6IDEwcHg7CiAgICAgIH0KICAgIDwvc3R5bGU+CiAgICA8cGFwZXItaXRlbT4KICAgICAgPHBhcGVyLWl0ZW0tYm9keSB0d28tbGluZT4KICAgICAgICA8ZGl2PgogICAgICAgICAgPHBhcGVyLWljb24tYnV0dG9uIGljb249Int7X2dldFRvZ2dsZUljb24oX2V4cGFuZGVkKX19IiBvbi1jbGljaz0iX3RvZ2dsZUV4cGFuZGVkIiBjbGFzcz0idG9nZ2xlLWJ1dHRvbiI+CiAgICAgICAgICA8L3BhcGVy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iY29udHJvbC10b2dnbGUtYnV0dG9uIj4KICAgICAgICAgICAgICAgICAgPC9wYXBlci1pY29uLWJ1dHRvbj4KICAgICAgICAgICAgICAgICAgQ29udHJvbCBkZXBlbmRlbmNpZXMKICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgPGlyb24tY29sbGFwc2Ugb3BlbmVkPSJ7e19vcGVuZWRDb250cm9sUHJlZH19IiBuby1hbmltYXRpb24+CiAgICAgICAgICAgICAgICAgIDx0ZW1wbGF0ZSBpcz0iZG9tLWlmIiBpZj0ie3tfb3BlbmVkQ29udHJvbFByZWR9fSIgcmVzdGFtcD0idHJ1ZSI+CiAgICAgICAgICAgICAgICAgICAgPGlyb24tbGlzdCBjbGFzcz0ic3ViLWxpc3QiIGl0ZW1zPSJbW19wcmVkZWNlc3NvcnMuY29udHJvbF1dIj4KICAgICAgICAgICAgICAgICAgICAgIDx0ZW1wbGF0ZT4KICAgICAgICAgICAgICAgICAgICAgICAgPHRmLW5vZGUtbGlzdC1pdGVtIGNhcmQtbm9kZT0iW1tfbm9kZV1dIiBpdGVtLW5vZGU9IltbaXRlbS5ub2RlXV0iIGl0ZW0tcmVuZGVyLWluZm89IltbaXRlbS5yZW5kZXJJbmZvXV0iIG5hbWU9IltbaXRlbS5uYW1lXV0iIGl0ZW0tdHlwZT0icHJlZGVjZXNzb3JzIiBjb2xvci1ieT0iW1tjb2xvckJ5XV0iIHRlbXBsYXRlLWluZGV4PSJbW190ZW1wbGF0ZUluZGV4XV0iPgogICAgICAgICAgICAgICAgICAgICAgICA8L3RmLW5vZGUtbGlzdC1pdGVtPgogICAgICAgICAgICAgICAgICAgICAgPC90ZW1wbGF0ZT4KICAgICAgICAgICAgICAgICAgICA8L2lyb24tbGlzdD4KICAgICAgICAgICAgICAgICAgPC90ZW1wbGF0ZT4KICAgICAgICAgICAgICAgIDwvaXJvbi1jb2xsYXBzZT4KICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgPC90Z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GU+CiAgICAgICAgICAgICAgICA8L2lyb24tY29sbGFwc2U+CiAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgIDwvdGVtcGxhdGU+CiAgICAgICAgICA8L2Rpdj4KICAgICAgICAgIDx0ZW1wbGF0ZSBpcz0iZG9tLWlmIiBpZj0ie3tfaGFzRGlzcGxheWFibGVOb2RlU3RhdHN9fSI+CiAgICAgICAgICAgIDxkaXYgY2xhc3M9InN1Yi1saXN0LWdyb3VwIG5vZGUtc3RhdHMiPgogICAgICAgICAgICAgIE5vZGUgU3RhdHMKICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJzdWItbGlzdC10YWJsZSI+CiAgICAgICAgICAgICAgICA8dGVtcGxhdGUgaXM9ImRvbS1pZiIgaWY9Int7X25vZGVTdGF0cy50b3RhbEJ5dGVzfX0iPgogICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJzdWItbGlzdC10YWJsZS1yb3ciPgogICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9InN1Yi1saXN0LXRhYmxlLWNlbGwiPk1lbW9yeTwvZGl2PgogICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9InN1Yi1saXN0LXRhYmxlLWNlbGwiPgogICAgICAgICAgICAgICAgICAgICAgW1tfbm9kZVN0YXRzRm9ybWF0dGVkQnl0ZXNdXQogICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgIDwvdGVtcGxhdGU+CiAgICAgICAgICAgICAgICA8dGVtcGxhdGUgaXM9ImRvbS1pZiIgaWY9Int7X2dldFRvdGFsTWljcm9zKF9ub2RlU3RhdHMpfX0iPgogICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJzdWItbGlzdC10YWJsZS1yb3ciPgogICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9InN1Yi1saXN0LXRhYmxlLWNlbGwiPkNvbXB1dGUgVGltZTwvZGl2PgogICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9InN1Yi1saXN0LXRhYmxlLWNlbGwiPgogICAgICAgICAgICAgICAgICAgICAgW1tfbm9kZVN0YXRzRm9ybWF0dGVkQ29tcHV0ZVRpbWVdXQogICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgIDwvdGVtcGxhdGU+CiAgICAgICAgICAgICAgICA8dGVtcGxhdGUgaXM9ImRvbS1pZiIgaWY9Int7X25vZGVTdGF0cy5vdXRwdXRTaXplfX0iPgogICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJzdWItbGlzdC10YWJsZS1yb3ciPgogICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9InN1Yi1saXN0LXRhYmxlLWNlbGwiPlRlbnNvciBPdXRwdXQgU2l6ZXM8L2Rpdj4KICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJzdWItbGlzdC10YWJsZS1jZWxsIj4KICAgICAgICAgICAgICAgICAgICAgIDx0ZW1wbGF0ZSBpcz0iZG9tLXJlcGVhdCIgaXRlbXM9Int7X25vZGVTdGF0c0Zvcm1hdHRlZE91dHB1dFNpemVzfX0iPgogICAgICAgICAgICAgICAgICAgICAgICBbW2l0ZW1dXSA8YnI+CiAgICAgICAgICAgICAgICAgICAgICA8L3RlbXBsYXRlPgogICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgIDwvdGVtcGxhdGU+CiAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgPC90ZW1wbGF0ZT4KCiAgICAgICAgICA8dGVtcGxhdGUgaXM9ImRvbS1pZiIgaWY9IltbX2Z1bmN0aW9uVXNhZ2VzLmxlbmd0aF1dIj4KICAgICAgICAgICAgPGRpdiBjbGFzcz0ic3ViLWxpc3QtZ3JvdXAg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ogICAgICB9CgogICAgICAuY29udGFpbmVyIHsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgICBoZWlnaHQ6IDEwMCU7CiAgICAgICAgb3BhY2l0eTogMTsKICAgICAgfQoKICAgICAgLmNvbnRhaW5lci5sb2FkaW5nIHsKICAgICAgICBjdXJzb3I6IHByb2dyZXNzOwogICAgICAgIG9wYWNpdHk6IDAuMTsKICAgICAgfQoKICAgICAgLmNvbnRhaW5lci5sb2FkaW5nLmVycm9yIHsKICAgICAgICBjdXJzb3I6IGF1dG87CiAgICAgIH0KCiAgICAgICNpbmZvIHsKICAgICAgICBwb3NpdGlvbjogYWJzb2x1dGU7CiAgICAgICAgcmlnaHQ6IDVweDsKICAgICAgICB0b3A6IDVweDsKICAgICAgICBwYWRkaW5nOiAwcHg7CiAgICAgICAgbWF4LXdpZHRoOiAzODBweDsKICAgICAgICBtaW4td2lkdGg6IDMyMHB4OwogICAgICAgIGJhY2tncm91bmQtY29sb3I6IHJnYmEoMjU1LCAyNTUsIDI1NSwgMC45KTsKICAgICAgICBAYXBwbHkgLS1zaGFkb3ctZWxldmF0aW9uLTJkcDsKICAgICAgfQoKICAgICAgI21haW4gewogICAgICAgIHdpZHRoOiAxMDAlOwogICAgICAgIGhlaWdodDogMTAwJTsKICAgICAgfQoKICAgICAgI3Byb2dyZXNzLWJhciB7CiAgICAgICAgZGlzcGxheTogZmxleDsKICAgICAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uOwogICAgICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7CiAgICAgICAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7CiAgICAgICAgd2lkdGg6IDEwMCU7CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgIHRvcDogNDBweDsKICAgICAgICBsZWZ0OiAwOwogICAgICAgIGZvbnQtc2l6ZTogMTNweDsKICAgICAgfQoKICAgICAgI3Byb2dyZXNzLW1zZyB7CiAgICAgICAgbWFyZ2luLWJvdHRvbTogNXB4OwogICAgICAgIHdoaXRlLXNwYWNlOiBwcmUtd3JhcDsKICAgICAgICB3aWR0aDogNDAwcHg7CiAgICAgIH0KCiAgICAgIHBhcGVyLXByb2dyZXNzIHsKICAgICAgICB3aWR0aDogNDAwcHg7CiAgICAgICAgLS1wYXBlci1wcm9ncmVzcy1oZWlnaHQ6IDZweDsKICAgICAgICAtLXBhcGVyLXByb2dyZXNzLWFjdGl2ZS1jb2xvcjogI2YzOTEzZTsKICAgICAgfQoKICAgICAgLmNvbnRleHQtbWVudSB7CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgIGRpc3BsYXk6IG5vbmU7CiAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogI2UyZTJlMjsKICAgICAgICBib3JkZXItcmFkaXVzOiAycHg7CiAgICAgICAgZm9udC1zaXplOiAxNHB4OwogICAgICAgIG1pbi13aWR0aDogMTUwcHg7CiAgICAgICAgYm9yZGVyOiAxcHggc29saWQgI2Q0ZDRkNDsKICAgICAgfQoKICAgICAgL2RlZXAvIC5jb250ZXh0LW1lbnUgdWwgewogICAgICAgIGxpc3Qtc3R5bGUtdHlwZTogbm9uZTsKICAgICAgICBtYXJnaW46IDA7CiAgICAgICAgcGFkZGluZzogMDsKICAgICAgICBjdXJzb3I6IGRlZmF1bHQ7CiAgICAgIH0KCiAgICAgIC9kZWVwLyAuY29udGV4dC1tZW51IHVsIGxpIHsKICAgICAgICBwYWRkaW5nOiA0cHggMTZweDsKICAgICAgfQoKICAgICAgL2RlZXAvIC5jb250ZXh0LW1lbnUgdWwgbGk6aG92ZXIgewogICAgICAgIGJhY2tncm91bmQtY29sb3I6ICNmMzkxM2U7CiAgICAgICAgY29sb3I6IHdoaXRlOwogICAgICB9CiAgICA8L3N0eWxlPgogICAgPHRlbXBsYXRlIGlzPSJkb20taWYiIGlmPSJbW19pc05vdENvbXBsZXRlKHByb2dyZXNzKV1dIj4KICAgICAgPGRpdiBpZD0icHJvZ3Jlc3MtYmFyIj4K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cmFuc2Zvcm06IHRyYW5zbGF0ZSgtNTAlLCAtNTAlKTsKICAgICAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZSgtNTAlLCAtNTAlKTsKICAgICAgfQoKICAgICAgI2lua1tjaGVja2VkXSB7CiAgICAgICAgY29sb3I6IHZhcigtLXBhcGVyLXJhZGlvLWJ1dHRvbi1jaGVja2VkLWluay1jb2xvciwgdmFyKC0tcHJpbWFyeS1jb2xvcikpOwogICAgICB9CgogICAgICAjb2ZmUmFkaW8sICNvblJhZGlvIHsKICAgICAgICBwb3NpdGlvbjogYWJzb2x1dGU7CiAgICAgICAgYm94LXNpemluZzogYm9yZGVyLWJveDsKICAgICAgICB0b3A6IDA7CiAgICAgICAgbGVmdDogMDsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgICBoZWlnaHQ6IDEwMCU7CiAgICAgICAgYm9yZGVyLXJhZGl1czogNTAlOwogICAgICB9CgogICAgICAjb2ZmUmFkaW8gewogICAgICAgIGJvcmRlcjogMnB4IHNvbGlkIHZhcigtLXBhcGVyLXJhZGlvLWJ1dHRvbi11bmNoZWNrZWQtY29sb3IsIHZhcigtLXByaW1hcnktdGV4dC1jb2xvcikpOwogICAgICAgIGJhY2tncm91bmQtY29sb3I6IHZhcigtLXBhcGVyLXJhZGlvLWJ1dHRvbi11bmNoZWNrZWQtYmFja2dyb3VuZC1jb2xvciwgdHJhbnNwYXJlbnQpOwogICAgICAgIHRyYW5zaXRpb246IGJvcmRlci1jb2xvciAwLjI4czsKICAgICAgfQoKICAgICAgI29uUmFkaW8gewogICAgICAgIGJhY2tncm91bmQtY29sb3I6IHZhcigtLXBhcGVyLXJhZGlvLWJ1dHRvbi1jaGVja2VkLWNvbG9yLCB2YXIoLS1wcmltYXJ5LWNvbG9yKSk7CiAgICAgICAgLXdlYmtpdC10cmFuc2Zvcm06IHNjYWxlKDApOwogICAgICAgIHRyYW5zZm9ybTogc2NhbGUoMCk7CiAgICAgICAgdHJhbnNpdGlvbjogLX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jwvc2xvdD48L2Rpdj4KICA8L3RlbXBsYXRlPgoKICAKPC9kb20tbW9kdWxlPgoKCgoKPGRvbS1tb2R1bGUgaWQ9InBhcGVyLXJhZGlvLWdyb3VwIj4KICA8dGVtcGxhdGU+CiAgICA8c3R5bGU+CiAgICAgIDpob3N0IHsKICAgICAgICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7CiAgICAgIH0KCiAgICAgIDpob3N0IDo6c2xvdHRlZCgqKSB7CiAgICAgICAgcGFkZGluZzogdmFyKC0tcGFwZXItcmFkaW8tZ3JvdXAtaXRlbS1wYWRkaW5nLCAxMnB4KTsKICAgICAgfQogICAgPC9zdHlsZT4KCiAgICA8c2xvdD48L3Nsb3Q+CiAgPC90ZW1wbGF0ZT4KPC9kb20tbW9kdWxlPgoKCgoKCgoKCgo8ZG9tLW1vZHVsZSBpZD0icGFwZXItdG9vbHRpcCI+CiAgPHRlbXBsYXRlPgogICAgPHN0eWxlPgogICAgICA6aG9zdCB7CiAgICAgICAgZGlzcGxheTogYmxvY2s7CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgIG91dGxpbmU6IG5vbmU7CiAgICAgICAgei1pbmRleDogMTAwMjsKICAgICAgICAtbW96LXVzZXItc2VsZWN0OiBub25lOwogICAgICAgIC1tcy11c2VyLXNlbGVjdDogbm9uZTsKICAgICAgICAtd2Via2l0LXVzZXItc2VsZWN0OiBub25lOwogICAgICAgIHVzZXItc2VsZWN0OiBub25lOwogICAgICAgIGN1cnNvcjogZGVmYXVsdDsKICAgICAgfQoKICAgICAgI3Rvb2x0aXAgewogICAgICAgIGRpc3BsYXk6IGJsb2NrOwogICAgICAgIG91dGxpbmU6IG5vbmU7CiAgICAgICAgQGFwcGx5IC0tcGFwZXItZm9udC1jb21tb24tYmFzZTsKICAgICAgICBmb250LXNpemU6IDEwcHg7CiAgICAgICAgbGluZS1oZWlnaHQ6IDE7CiAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogdmFyKC0tcGFwZXItdG9vbHRpcC1iYWNrZ3JvdW5kLCAjNjE2MTYxKTsKICAgICAgICBjb2xvcjogdmFyKC0tcGFwZXItdG9vbHRpcC10ZXh0LWNvbG9yLCB3aGl0ZSk7CiAgICAgICAgcGFkZGluZzogOHB4OwogICAgICAgIGJvcmRlci1yYWRpdXM6IDJweDsKICAgICAgICBAYXBwbHkgLS1wYXBlci10b29sdGlwOwogICAgICB9CgogICAgICBAa2V5ZnJhbWVzIGtleUZyYW1lU2NhbGVVcCB7CiAgICAgICAgMCUgewogICAgICAgICAgdHJhbnNmb3JtOiBzY2FsZSgwLjApOwogICAgICAgIH0KICAgICAgICAxMDAlIHsKICAgICAgICAgIHRyYW5zZm9ybTogc2NhbGUoMS4wKTsKICAgICAgICB9CiAgICAgIH0KCiAgICAgIEBrZXlmcmFtZXMga2V5RnJhbWVTY2FsZURvd24gewogICAgICAgIDAlIHsKICAgICAgICAgIHRyYW5zZm9ybTogc2NhbGUoMS4wKTsKICAgICAgICB9CiAgICAgICAgMTAwJSB7CiAgICAgICAgICB0cmFuc2Zvcm06IHNjYWxlKDAuMCk7CiAgICAgICAgfQogICAgICB9CgogICAgICBAa2V5ZnJhbWVzIGtleUZyYW1lRmFkZUluT3BhY2l0eSB7CiAgICAgICAgMCUgewogICAgICAgICAgb3BhY2l0eTogMDsKICAgICAgICB9CiAgICAgICAgMTAwJSB7CiAgICAgICAgICBvcGFjaXR5OiB2YXIoLS1wYXBlci10b29sdGlwLW9wYWNpdHksIDAuOSk7CiAgICAgICAgfQogICAgICB9CgogICAgICBAa2V5ZnJhbWVzIGtleUZyYW1lRmFkZU91dE9wYWNpdHkgewogICAgICAgIDAlIHsKICAgICAgICAgIG9wYWNpdHk6IHZhcigtLXBhcGVyLXRvb2x0aXAtb3BhY2l0eSwgMC45KTsKICAgICAgICB9CiAgICAgICAgMTAwJSB7CiAgICAgICAgICBvcGFjaXR5OiAwOwogICAgICAgIH0KICAgICAgfQoKICAgICAgQGtleWZyYW1lcyBrZXlGcmFtZVNsaWRlRG93bkluIHsKICAgICAgICAwJSB7CiAgICAgICAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVkoLTIwMDBweCk7CiAgICAgICAgICBvcGFjaXR5OiAwOwogICAgICAgIH0KICAgICAgICAxMCUgewogICAgICAgICAgb3BhY2l0eTogMC4yOwogICAgICAgIH0KICAgICAgICAxMDAlIHsKICAgICAgICAgIHRyYW5zZm9ybTogdHJhbnNsYXRlWSgwKTsKICAgICAgICAgIG9wYWNpdHk6IHZhcigtLXBhcGVyLXRvb2x0aXAtb3BhY2l0eSwgMC45KTsKICAgICAgICB9CiAgICAgIH0KCiAgICAgIEBrZXlmcmFtZXMga2V5RnJhbWVTbGlkZURvd25PdXQgewogICAgICAgIDAlIHsKICAgICAgICAgIHRyYW5zZm9ybTogdHJhbnNsYXRlWSgwKTsKICAgICAgICAgIG9wYWNpdHk6IHZhcigtLXBhcGVyLXRvb2x0aXAtb3BhY2l0eSwgMC45KTsKICAgICAgICB9CiAgICAgICAgMTAlIHsKICAgICAgICAgIG9wYWNpdHk6IDAuMjsKICAgICAgICB9CiAgICAgICAgMTAwJSB7CiAgICAgICAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVkoLTIwMDBweCk7CiAgICAgICAgICBvcGFjaXR5OiAwOwogICAgICAgIH0KICAgICAgfQoKICAgICAgLmZhZGUtaW4tYW5pbWF0aW9uIHsKICAgICAgICBvcGFjaXR5OiAwOwogICAgICAgIGFuaW1hdGlvbi1kZWxheTogdmFyKC0tcGFwZXItdG9vbHRpcC1kZWxheS1pbiwgNTAwbXMpOwogICAgICAgIGFuaW1hdGlvbi1uYW1lOiBrZXlGcmFtZUZhZGVJbk9wYWNpdHk7CiAgICAgICAgYW5pbWF0aW9uLWl0ZXJhdGlvbi1jb3VudDogMTsKICAgICAgICBhbmltYXRpb24tdGltaW5nLWZ1bmN0aW9uOiBlYXNlLWluOwogICAgICAgIGFuaW1hdGlvbi1kdXJhdGlvbjogdmFyKC0tcGFwZXItdG9vbHRpcC1kdXJhdGlvbi1pbiwgNTAwbXMpOwogICAgICAgIGFuaW1hdGlvbi1maWxsLW1vZGU6IGZvcndhcmRzOwogICAgICAgIEBhcHBseSAtLXBhcGVyLXRvb2x0aXAtYW5pbWF0aW9uOwogICAgICB9CgogICAgICAuZmFkZS1vdXQtYW5pbWF0aW9uIHsKICAgICAgICBvcGFjaXR5OiB2YXIoLS1wYXBlci10b29sdGlwLW9wYWNpdHksIDAuOSk7CiAgICAgICAgYW5pbWF0aW9uLWRlbGF5OiB2YXIoLS1wYXBlci10b29sdGlwLWRlbGF5LW91dCwgMG1zKTsKICAgICAgICBhbmltYXRpb24tbmFtZToga2V5RnJhbWVGYWRlT3V0T3BhY2l0eTsKICAgICAgICBhbmltYXRpb24taXRlcmF0aW9uLWNvdW50OiAxOwogICAgICAgIGFuaW1hdGlvbi10aW1pbmctZnVuY3Rpb246IGVhc2UtaW47CiAgICAgICAgYW5pbWF0aW9uLWR1cmF0aW9uOiB2YXIoLS1wYXBlci10b29sdGlwLWR1cmF0aW9uLW91dCwgNTAwbXMpOwogICAgICAgIGFuaW1hdGlvbi1maWxsLW1vZGU6IGZvcndhcmRzOwogICAgICAgIEBhcHBseSAtLXBhcGVyLXRvb2x0aXAtYW5pbWF0aW9uOwogICAgICB9CgogICAgICAuc2NhbGUtdXAtYW5pbWF0aW9uIHsKICAgICAgICB0cmFuc2Zvcm06IHNjYWxlKDApOwogICAgICAgIG9wYWNpdHk6IHZhcigtLXBhcGVyLXRvb2x0aXAtb3BhY2l0eSwgMC45KTsKICAgICAgICBhbmltYXRpb24tZGVsYXk6IHZhcigtLXBhcGVyLXRvb2x0aXAtZGVsYXktaW4sIDUwMG1zKTsKICAgICAgICBhbmltYXRpb24tbmFtZToga2V5RnJhbWVTY2FsZVVwOwogICAgICAgIGFuaW1hdGlvbi1pdGVyYXRpb24tY291bnQ6IDE7CiAgICAgICAgYW5pbWF0aW9uLXRpbWluZy1mdW5jdGlvbjogZ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ICAjc2VhcmNoLXJlc3VsdHMtYW5jaG9yIHsKICAgICAgICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgICAgIH0KCiAgICAgICNzZWFyY2gtcmVzdWx0cyB7CiAgICAgICAgY29sb3I6ICNmZmY7CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgIG1heC1oZWlnaHQ6IDIwMHB4OwogICAgICAgIG92ZXJmbG93LXg6IGhpZGRlbjsKICAgICAgICBvdmVyZmxvdy15OiBhdXRvOwogICAgICAgIHRleHQtYWxpZ246IHJpZ2h0OwogICAgICAgIG1heC13aWR0aDogMTAwJTsKICAgICAgICBib3gtc2l6aW5nOiBib3JkZXItYm94OwogICAgICB9CgogICAgICAjc2VhcmNoLW1hdGNoIHsKICAgICAgICBiYWNrZ3JvdW5kOiB2YXIoLS10Yi1vcmFuZ2Utc3Ryb25nKTsKICAgICAgICBwYWRkaW5nOiAzcHg7CiAgICAgICAgZmxvYXQ6IHJpZ2h0OwogICAgICAgIHdpZHRoOiAxMDAlOwogICAgICAgIGJveC1zaXppbmc6IGJvcmRlci1ib3g7CiAgICAgICAgZGlyZWN0aW9uOiBydGw7CiAgICAgIH0KCiAgICAgICNzZWFyY2gtbWF0Y2g6aG92ZXIgewogICAgICAgIGJhY2tncm91bmQ6IHZhcigtLXRiLW9yYW5nZS13ZWFrKTsKICAgICAgICBjdXJzb3I6IHBvaW50ZXI7CiAgICAgIH0KICAgIDwvc3R5bGU+CiAgPC90ZW1wbGF0ZT4KICAKPC9kb20tbW9kdWxlPgoKCjxkb20tbW9kdWxlIGlkPSJ0Zi1ncmFwaC1jb250cm9scyI+CiAgPHRlbXBsYXRlPgogICAgPHN0eWxlPgogICAgICA6aG9zdCB7CiAgICAgICAgY29sb3I6IGdyYXk7CiAgICAgICAgZGlzcGxheTogZmxleDsKICAgICAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uOwogICAgICAgIGZvbnQtc2l6ZTogMTJweDsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgfQoKICAgICAgcGFwZXItZHJvcGRvd24tbWVudSB7CiAgICAgICAgLS1wYXBlci1kcm9wZG93bi1tZW51LWlucHV0OiB7CiAgICAgICAgICBwYWRkaW5nOiAwOwogICAgICAgICAgY29sb3I6IGdyYXk7CiAgICAgICAgfQogICAgICAgIC0taXJvbi1pY29uLXdpZHRoOiAxNXB4OwogICAgICAgIC0taXJvbi1pY29uLWhlaWdodDogMTVweDsKICAgICAgICAtLXByaW1hcnktdGV4dC1jb2xvcjogZ3JheTsKICAgICAgICAtLXBhcGVyLWl0ZW0tbWluLWhlaWdodDogMzBweDsKICAgICAgfQoKICAgICAgcGFwZXItYnV0dG9uW3JhaXNlZF0ua2V5Ym9hcmQtZm9jdXMgewogICAgICAgIGZvbnQtd2VpZ2h0OiBub3JtYWw7CiAgICAgIH0KCiAgICAgIC5ydW4tZHJvcGRvd24gewogICAgICAgIC0tcGFwZXItaW5wdXQtY29udGFpbmVyOiB7CiAgICAgICAgICBwYWRkaW5nOiA4cHggMCA4cHggMTBweDsKICAgICAgICB9CiAgICAgIH0KCiAgICAgIC5jb2xvci1kcm9wZG93biB7CiAgICAgICAgLS1wYXBlci1pbnB1dC1jb250YWluZXI6IHsKICAgICAgICAgIHBhZGRpbmc6IDlweCAwIDAgMTNweDsKICAgICAgICB9CiAgICAgIH0KCiAgICAgIHRhYmxlIHsKICAgICAgICBib3JkZXItY29sbGFwc2U6IGNvbGxhcHNlOwogICAgICAgIGJvcmRlci1zcGFjaW5nOiAwOwogICAgICB9CgogICAgICB0YWJsZSB0ZCB7CiAgICAgICAgcGFkZGluZzogMDsKICAgICAgICBtYXJnaW46IDA7CiAgICAgIH0KCiAgICAgIC5hbGxjb250cm9scyB7CiAgICAgICAgcGFkZGluZzogMCAyMHB4IDIwcHg7CiAgICAgICAgZmxleC1ncm93OiAxOwogICAgICAgIG92ZXJmbG93LXk6IGF1dG87CiAgICAgIH0KCiAgICAgIC5sZWdlbmQtaG9sZGVyIHsKICAgICAgICBiYWNrZ3JvdW5kOiAjZTllOWU5OwogICAgICAgIGJvcmRlci10b3A6IDFweCBzb2xpZCAjY2NjOwogICAgICAgIGJveC1zaXppbmc6IGJvcmRlci1ib3g7CiAgICAgICAgY29sb3I6ICM1NTU7CiAgICAgICAgcGFkZGluZzogMTVweCAyMHB4OwogICAgICAgIHdpZHRoOiAxMDAlOwogICAgICB9CgogICAgICAudG9nZ2xlLWxlZ2VuZC1idXR0b24gewogICAgICAgIG1heC1oZWlnaHQ6IDIwcHg7CiAgICAgICAgbWF4LXdpZHRoOiAyMHB4OwogICAgICAgIHBhZGRpbmc6IDA7CiAgICAgIH0KCiAgICAgIC50b2dnbGUtbGVnZW5kLXRleHQgewogICAgICAgIHZlcnRpY2FsLWFsaWduOiBtaWRkbGU7CiAgICAgIH0KCiAgICAgIHBhcGVyLXJhZGlvLWJ1dHRvbiB7CiAgICAgICAgZGlzcGxheTogYmxvY2s7CiAgICAgICAgcGFkZGluZzogNXB4OwogICAgICB9CiAgICAgIHN2Zy5pY29uLAogICAgICB0Zi1ncmFwaC1pY29uIHsKICAgICAgICB3aWR0aDogNjBweDsKICAgICAgICBoZWlnaHQ6IDE4cHg7CiAgICAgIH0KICAgICAgLmRvbWFpblZhbHVlcyB7CiAgICAgICAgbWFyZ2luLWJvdHRvbTogMTBweDsKICAgICAgICB3aWR0aDogMTY1cHg7CiAgICAgIH0KICAgICAgLmRvbWFpblN0YXJ0IHsKICAgICAgICBmbG9hdDogbGVmdDsKICAgICAgfQogICAgICAuZG9tYWluRW5kIHsKICAgICAgICBmbG9hdDogcmlnaHQ7CiAgICAgIH0KICAgICAgLmNvbG9yQm94IHsKICAgICAgICB3aWR0aDogMjBweDsKICAgICAgfQoKICAgICAgLmltYWdlLWljb24gewogICAgICAgIHdpZHRoOiAyNHB4OwogICAgICAgIGhlaWdodDogMjRweDsKICAgICAgfQoKICAgICAgLmhlbHAtaWNvbiB7CiAgICAgICAgaGVpZ2h0OiAxNXB4OwogICAgICAgIG1hcmdpbjogMDsKICAgICAgICBwYWRkaW5nOiAwOwogICAgICB9CgogICAgICAuZ3JheSB7CiAgICAgICAgY29sb3I6ICM2NjY7CiAgICAgIH0KCiAgICAgIC50aXRsZSB7CiAgICAgICAgZm9udC1zaXplOiAxNnB4OwogICAgICAgIG1hcmdpbjogOHB4IDVweCA4cHggMDsKICAgICAgICBjb2xvcjogYmxhY2s7CiAgICAgIH0KICAgICAgLnRpdGxlIHNtYWxsIHsKICAgICAgICBmb250LXdlaWdodDogbm9ybWFsOwogICAgICB9CiAgICAgIC5kZXZpY2VMaXN0LAogICAgICAueGxhQ2x1c3Rlckxpc3QgewogICAgICAgIG1heC1oZWlnaHQ6IDIwMHB4OwogICAgICAgIG92ZXJmbG93LXk6IGF1dG87CiAgICAgIH0KCiAgICAgICNmaWxlIHsKICAgICAgICBwYWRkaW5nOiA4cHggMDsKICAgICAgfQoKICAgICAgLmNvbG9yLWxlZ2VuZC1yb3cgewogICAgICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7CiAgICAgICAgY2xlYXI6IGJvdGg7CiAgICAgICAgZGlzcGxheTogZmxleDsKICAgICAgICBoZWlnaHQ6IDIwcHg7CiAgICAgICAgbWFyZ2luLXRvcDogNXB4OwogICAgICB9CgogICAgICAuY29sb3ItbGVnZW5kLXJvdyAubGFiZWwsCiAgICAgIC5jb2xvci1sZWdlbmQtcm93IHN2ZywKICAgICAgLmNvbG9yLWxlZ2VuZC1yb3cgdGYtZ3JhcGgtaWNvbiB7CiAgICAgICAgZmxleDogMCAwIDQwcHg7CiAgICAgICAgbWFyZ2luLXJpZ2h0OiAyMHB4OwogICAgICB9CgogICAgICAuZGV2aWNlcy1jaGVja2JveCBpbnB1dCB7CiAgICAgICAgdGV4dC1hbGlnbjogbGVmdDsKICAgICAgICB2ZXJ0aWNhbC1hbGlnbjogbWlkZGxlOwogICAgICB9CgogICAgICAuY29udHJvbC1ob2xkZXIgLmljb24tYnV0dG9uIHsKICAgICAgICBmb250LXNpemU6IDE0cHg7CiAgICAgICAgbWFyZ2luOiAwIC01cHg7CiAgICAgICAgcGFkZGluZzogNXB4OwogICAgICB9CgogICAgICAuYnV0dG9uLXRleHQgewogICAgICAgIHBhZGRpbmctbGVmdDogMjBweDsKICAgICAgICB0ZXh0LXRyYW5zZm9ybTogbm9uZTsKICAgICAgfQoKICAgICAgLnVwbG9hZC1idXR0b24gewogICAgICAgIHdpZHRoOiAxNjVweDsKICAgICAgICBoZWlnaHQ6IDI1cHg7CiAgICAgICAgdGV4dC10cmFuc2Zvcm06IG5vbmU7CiAgICAgICAgbWFyZ2luLXRvcDogNHB4OwogICAgICB9CgogICAgICAuYnV0dG9uLWljb24gewogICAgICAgIHdpZHRoOiAyNnB4OwogICAgICAgIGhlaWdodDogMjZweDsKICAgICAgICBjb2xvcjogdmFyKC0tcGFwZXItb3JhbmdlLTUwMCk7CiAgICAgIH0KCiAgICAgIC5oaWRkZW4taW5wdXQgewogICAgICAgIGhlaWdodDogMHB4OwogICAgICAgIHdpZHRoOiAwcHg7CiAgICAgICAgb3ZlcmZsb3c6IGhpZGRlbjsKICAgICAgfQoKICAgICAgLmFsbGNvbnRyb2xzIC5jb250cm9sLWhvbGRlciB7CiAgICAgICAgY2xlYXI6IGJvdGg7CiAgICAgICAgZGlzcGxheTogZmxleDsKICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47CiAgICAgIH0KCiAgICAgIC5hbGxjb250cm9scyAuY29udHJvbC1ob2xkZXIgcGFwZXItcmFkaW8tZ3JvdXAgewogICAgICAgIG1hcmdpbi10b3A6IDVweDsKICAgICAgfQoKICAgICAgc3Bhbi5jb3VudGVyIHsKICAgICAgICBmb250LXNpemU6IDEzcHg7CiAgICAgICAgY29sb3I6IGdyYXk7CiAgICAgIH0KCiAgICAgIC5ydW5zIHBhcGVyLWl0ZW0gewogICAgICAgIC0tcGFwZXItaXRlbTogewogICAgICAgICAgd2hpdGUtc3BhY2U6IG5vd3JhcDsKICAgICAgICB9CiAgICAgIH0KCiAgICAgIHRhYmxlLmNvbnRyb2wtaG9sZGVyIHsKICAgICAgICBib3JkZXI6IDA7CiAgICAgICAgYm9yZGVyLWNvbGxhcHNlOiBjb2xsYXBzZTsKICAgICAgfQoKICAgICAgdGFibGUudGYtZ3JhcGgtY29udHJvbHMgdGQuaW5wdXQtZWxlbWVudC10YWJsZS1kYXRhIHsKICAgICAgICBwYWRkaW5nOiAwIDAgMCAyMHB4OwogICAgICB9CgogICAgICAuc3BhY2VyIHsKICAgICAgICBmbGV4LWdyb3c6IDE7CiAgICAgIH0KCiAgICAgIC5jb2xvci10ZXh0IHsKICAgICAgICBvdmVyZmxvdzogaGlkZGVuOwogICAgICB9CgogICAgICAvKiogT3ZlcnJpZGUgaW5saW5lIHN0eWxlcyB0aGF0IHN1cHByZXNzIHBvaW50ZXIgZXZlbnRzIGZvciBkaXNhYmxlZCBidXR0b25zLiBPdGhlcndpc2UsIHRoZSAqLwogICAgICAvKiAgdG9vbHRpcHMgZG8gbm90IGFwcGVhci4gKi8KICAgICAgcGFwZXItcmFkaW8tZ3JvdXAgcGFwZXItcmFkaW8tYnV0dG9uIHsKICAgICAgICBwb2ludGVyLWV2ZW50czogYXV0byAhaW1wb3J0YW50OwogICAgICB9CgogICAgICAubGVnZW5kLWNsYXJpZmllciB7CiAgICAgICAgY29sb3I6ICMyNjYyMzY7CiAgICAgICAgY3Vyc29yOiBoZWxwOwogICAgICAgIGRpc3BsYXk6IGlubGluZS1ibG9jazsKICAgICAgICB0ZXh0LWRlY29yYXRpb246IHVuZGVybGluZTsKICAgICAgfQoKICAgICAgLmxlZ2VuZC1jbGFyaWZpZXIgcGFwZXItdG9vbHRpcCB7CiAgICAgICAgd2lkdGg6IDE1MHB4OwogICAgICB9CgogICAgICAvKiogT3RoZXJ3aXNlLCBwb2x5bWVyIFVJIGNvbnRyb2xzIGFwcGVhciBhdG9wIG5vZGUgc2VhcmNoLiAqLwogICAgICB0Zi1ncm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kZWxheT0iMCIgcG9zaXRpb249InJpZ2h0IiBvZmZzZXQ9IjAiPgogICAgICAgICAgICAgICAgICAgIEVuY2Fwc3VsYXRlcyBhIHNldCBvZiBub2Rlcy4gTmFtZXNwYWNlIGlzIGhpZXJhcmNoaWNhbCBhbmQKICAgICAgICAgICAgICAgICAgICBiYXNlZCBvbiBzY29wZS4KICAgICAgICAgICAgICAgICAgPC9wYXBlci10b29sdGlwPgogICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgPC90ZD4KICAgICAgICAgICAgPC90cj4KICAgICAgICAgICAgPHRyPgogICAgICAgICAgICAgIDx0ZD4KICAgICAgICAgICAgICAgIDx0Zi1ncmFwaC1pY29uIHR5cGU9Ik9QIiBoZWlnaHQ9IjE2Ij48L3RmLWdyYXBoLWljb24+CiAgICAgICAgICAgICAgPC90ZD4KICAgICAgICAgICAgICA8dGQ+CiAgICAgICAgICAgICAgICBPcE5vZGUKICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9ImxlZ2VuZC1jbGFyaWZpZXIiPgogICAgICAgICAgICAgICAgICA8c3Bhbj4/PC9zcGFuPgogICAgICAgICAgICAgICAgICA8cGFwZXItdG9vbHRpcCBhbmltYXRpb24tZGVsYXk9IjAiIHBvc2l0aW9uPSJyaWdodCIgb2Zmc2V0PSIwIj4KICAgICAgICAgICAgICAgICAgICBOb2RlIHRoYXQgcGVyZm9ybXMgYW4gb3BlcmF0aW9uLiBUaGVzZSBub2RlcyBjYW5ub3QgZXhwYW5kLgogICAgICAgICAgICAgICAgICA8L3BhcGVyLXRvb2x0aXA+CiAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICA8L3RkPgogICAgICAgICAgICA8L3RyPgogICAgICAgICAgICA8dHI+CiAgICAgICAgICAgICAgPHRkPgogICAgICAgICAgICAgICAgPHRmLWdyYXBoLWljb24gdHlwZT0iU0VSSUVTIiBoZWlnaHQ9IjE2Ij48L3RmLWdyYXBoLWljb24+CiAgICAgICAgICAgICAgPC90ZD4KICAgICAgICAgICAgICA8dGQ+CiAgICAgICAgICAgICAgICBVbmNvbm5lY3RlZCBzZXJpZXM8c3BhbiBjbGFzcz0iZ3JheSI+Kjwvc3Bhbj4KICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9ImxlZ2VuZC1jbGFyaWZpZXIiPgogICAgICAgICAgICAgICAgICA8c3Bhbj4/PC9zcGFuPgogICAgICAgICAgICAgICAgICA8cGFwZXItdG9vbHRpcCBhbmltYXRpb24tZGVsYXk9IjAiIHBvc2l0aW9uPSJyaWdodCIgb2Zmc2V0PSIwIj4KICAgICAgICAgICAgICAgICAgICBTZXF1ZW5jZSBvZiBudW1iZXJlZCBub2RlcyB0aGF0IGFyZSBub3QgY29ubmVjdGVkIHRvIGVhY2gKICAgICAgICAgICAgICAgICAgICBvdGhlci4KICAgICAgICAgICAgICAgICAgPC9wYXBlci10b29sdGlwPgogICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgPC90ZD4KICAgICAgICAgICAgPC90cj4KICAgICAgICAgICAgPHRyPgogICAgICAgICAgICAgIDx0ZD4KICAgICAgICAgICAgICAgIDx0Zi1ncmFwaC1pY29uIHR5cGU9IlNFUklFUyIgaGVpZ2h0PSIxNiIgdmVydGljYWw+PC90Zi1ncmFwaC1pY29uPgogICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgICAgPHRkPgogICAgICAgICAgICAgICAgQ29ubmVjdGVkIHNlcmllczxzcGFuIGNsYXNzPSJncmF5Ij4qPC9zcGFuPgogICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0ibGVnZW5kLWNsYXJpZmllciI+CiAgICAgICAgICAgICAgICAgIDxzcGFuPj88L3NwYW4+CiAgICAgICAgICAgICAgICAgIDxwYXBlci10b29sdGlwIGFuaW1hdGlvbi1kZWxheT0iMCIgcG9zaXRpb249InJpZ2h0IiBvZmZzZXQ9IjAiPgogICAgICAgICAgICAgICAgICAgIFNlcXVlbmNlIG9mIG51bWJlcmVkIG5vZGVzIHRoYXQgYXJlIGNvbm5lY3RlZCB0byBlYWNoIG90aGVyLgogICAgICAgICAgICAgICAgICA8L3BhcGVyLXRvb2x0aXA+CiAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICA8L3RkPgogICAgICAgICAgICA8L3RyPgogICAgICAgICAgICA8dHI+CiAgICAgICAgICAgICAgPHRkPgogICAgICAgICAgICAgICAgPHN2ZyBjbGFzcz0iaWNvbiI+CiAgICAgICAgICAgICAgICAgIDxjaXJjbGUgZmlsbD0id2hpdGUiIHN0cm9rZT0iIzg0ODQ4NCIgY3g9IjEwIiBjeT0iMTAiIHI9IjUiIC8+CiAgICAgICAgICAgICAgICA8L3N2Zz4KICAgICAgICAgICAgICA8L3RkPgogICAgICAgICAgICAgIDx0ZD4KICAgICAgICAgICAgICAgIENvbnN0YW50CiAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJsZWdlbmQtY2xhcmlmaWVyIj4KICAgICAgICAgICAgICAgICAgPHNwYW4+Pzwvc3Bhbj4KICAgICAgICAgICAgICAgICAgPHBhcGVyLXRvb2x0aXAgYW5pbWF0aW9uLWRlbGF5PSIwIiBwb3NpdGlvbj0icmlnaHQiIG9mZnNldD0iMCI+CiAgICAgICAgICAgICAgICAgICAgTm9kZSB0aGF0IG91dHB1dHMgYSBjb25zdGFudCB2YWx1ZS4KICAgICAgICAgICAgICAgICAgPC9wYXBlci10b29sdGlwPgogICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgPC90ZD4KICAgICAgICAgICAgPC90cj4KICAgICAgICAgICAgPHRyPgogICAgICAgICAgICAgIDx0ZD4KICAgICAgICAgICAgICAgIDx0Zi1ncmFwaC1pY29uIHR5cGU9IlNVTU1BUlkiIGhlaWdodD0iMjAiPjwvdGYtZ3JhcGgtaWNvbj4KICAgICAgICAgICAgICA8L3RkPgogICAgICAgICAgICAgIDx0ZD4KICAgICAgICAgICAgICAgIFN1bW1hcnkKICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9ImxlZ2VuZC1jbGFyaWZpZXIiPgogICAgICAgICAgICAgICAgICA8c3Bhbj4/PC9zcGFuPgogICAgICAgICAgICAgICAgICA8cGFwZXItdG9vbHRpcCBhbmltYXRpb24tZGVsYXk9IjAiIHBvc2l0aW9uPSJyaWdodCIgb2Zmc2V0PSIwIj4KICAgICAgICAgICAgICAgICAgICBOb2RlIHRoYXQgY29sbGVjdHMgZGF0YSBmb3IgdmlzdWFsaXphdGlvbiB3aXRoaW4KICAgICAgICAgICAgICAgICAgICBUZW5zb3JCb2FyZC4KICAgICAgICAgICAgICAgICAgPC9wYXBlci10b29sdGlwPgogICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgPC90ZD4KICAgICAgICAgICAgPC90cj4KICAgICAgICAgICAgPHRyPgogICAgICAgICAgICAgIDx0ZD4KICAgICAgICAgICAgICAgIDxzdmcgY2xhc3M9Imljb24iIGhlaWdodD0iMTVweCIgcHJlc2VydmVhc3BlY3RyYXRpbz0ieE1pbllNaWQgbWVldCIgdmlld2JveD0iMCAwIDE1IDE1Ij4KICAgICAgICAgICAgICAgICAgPGRlZnM+CiAgICAgICAgICAgICAgICAgICAgPG1hcmtlciBpZD0iZGF0YWZsb3ctYXJyb3doZWFkLWxlZ2VuZCIgZmlsbD0iI2JiYiIgbWFya2Vyd2lkdGg9IjEwIiBtYXJrZXJoZWlnaHQ9IjEwIiByZWZ4PSI5IiByZWZ5PSI1IiBvcmllbnQ9ImF1dG8tc3RhcnQtcmV2ZXJzZSI+CiAgICAgICAgICAgICAgICAgICAgICA8cGF0aCBkPSJNIDAsMCBMIDEwLDUgTCAwLDEwIEMgMyw3IDMsMyAwLDAiIC8+CiAgICAgICAgICAgICAgICAgICAgPC9tYXJrZXI+CiAgICAgICAgICAgICAgICAgIDwvZGVmcz4KICAgICAgICAgICAgICAgICAgPHBhdGggbWFya2VyLWVuZD0idXJsKCNkYXRhZmxvdy1hcnJvd2hlYWQtbGVnZW5kKSIgc3Ryb2tlPSIjYmJiIiBkPSJNMiA5IGwgMjkgMCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiAvPgogICAgICAgICAgICAgICAgPC9zdmc+CiAgICAgICAgICAgICAgPC90ZD4KICAgICAgICAgICAgICA8dGQ+CiAgICAgICAgICAgICAgICBEYXRhZmxvdyBlZGdlCiAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJsZWdlbmQtY2xhcmlmaWVyIj4KICAgICAgICAgICAgICAgICAgPHNwYW4+Pzwvc3Bhbj4KICAgICAgICAgICAgICAgICAgPHBhcGVyLXRvb2x0aXAgYW5pbWF0aW9uLWRlbGF5PSIwIiBwb3NpdGlvbj0icmlnaHQiIG9mZnNldD0iMCI+CiAgICAgICAgICAgICAgICAgICAgRWRnZSBzaG93aW5nIHRoZSBkYXRhIGZsb3cgYmV0d2VlbiBvcGVyYXRpb25zLiBFZGdlcyBmbG93CiAgICAgICAgICAgICAgICAgICAgdXB3YXJkcyB1bmxlc3MgYXJyb3doZWFkcyBzcGVjaWZ5IG90aGVyd2lzZS4KICAgICAgICAgICAgICAgICAgPC9wYXBlci10b29sdGlwPgogICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgPC90ZD4KICAgICAgICAgICAgPC90cj4KICAgICAgICAgICAgPHRyPgogICAgICAgICAgICAgIDx0ZD4KICAgICAgICAgICAgICAgIDxzdmcgY2xhc3M9Imljb24iIGhlaWdodD0iMTVweCIgcHJlc2VydmVhc3BlY3RyYXRpbz0ieE1pbllNaWQgbWVldCIgdmlld2JveD0iMCAwIDE1IDE1Ij4KICAgICAgICAgICAgICAgICAgPHBhdGggc3Ryb2tlPSIjYmJiIiBkPSJNMiA5IGwgMjkgMCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtZGFzaGFycmF5PSIyLCAyIiAvPgogICAgICAgICAgICAgICAgPC9zdmc+CiAgICAgICAgICAgICAgPC90ZD4KICAgICAgICAgICAgICA8dGQ+CiAgICAgICAgICAgICAgICBDb250cm9sIGRlcGVuZGVuY3kgZWRnZQogICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0ibGVnZW5kLWNsYXJpZmllciI+CiAgICAgICAgICAgICAgICAgIDxzcGFuPj88L3NwYW4+CiAgICAgICAgICAgICAgICAgIDxwYXBlci10b29sdGlwIGFuaW1hdGlvbi1kZWxheT0iMCIgcG9zaXRpb249InJpZ2h0IiBvZmZzZXQ9IjAiPgogICAgICAgICAgICAgICAgICAgIEVkZ2Ugc2hvd2luZyB0aGUgY29udHJvbCBkZXBlbmRlbmN5IGJldHdlZW4gb3BlcmF0aW9ucy4KICAgICAgICAgICAgICAgICAgPC9wYXBlci10b29sdGlwPgogICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgPC90ZD4KICAgICAgICAgICAgPC90cj4KICAgICAgICAgICAgPHRyPgogICAgICAgICAgICAgIDx0ZD4KICAgICAgICAgICAgICAgIDxzdmcgY2xhc3M9Imljb24iIGhlaWdodD0iMTVweCIgcHJlc2VydmVhc3BlY3RyYXRpbz0ieE1pbllNaWQgbWVldCIgdmlld2JveD0iMCAwIDE1IDE1Ij4KICAgICAgICAgICAgICAgICAgPGRlZnM+CiAgICAgICAgICAgICAgICAgICAgPG1hcmtlciBpZD0icmVmZXJlbmNlLWFycm93aGVhZC1sZWdlbmQiIGZpbGw9IiNGRkI3NEQiIG1hcmtlcndpZHRoPSIxMCIgbWFya2VyaGVpZ2h0PSIxMCIgcmVmeD0iOSIgcmVmeT0iNSIgb3JpZW50PSJhdXRvLXN0YXJ0LXJldmVyc2UiPgogICAgICAgICAgICAgICAgICAgICAgPHBhdGggZD0iTSAwLDAgTCAxMCw1IEwgMCwxMCBDIDMsNyAzLDMgMCwwIiAvPgogICAgICAgICAgICAgICAgICAgIDwvbWFya2VyPgogICAgICAgICAgICAgICAgICA8L2RlZnM+CiAgICAgICAgICAgICAgICAgIDxwYXRoIG1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gIHdpZHRoOiAxMDAlOwogICAgICAgIGZsZXgtZ3JvdzogMTsKICAgICAgICBmbGV4LXNocmluazogMTsKICAgICAgfQoKICAgICAgI3Rvb2x0aXAgewogICAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTsKICAgICAgICBkaXNwbGF5OiBibG9jazsKICAgICAgICBvcGFjaXR5OiAwOwogICAgICAgIGZvbnQtd2VpZ2h0OiBib2xkOwogICAgICAgIGZvbnQtc2l6ZTogMTFweDsKICAgICAgfQoKICAgICAgLmJhY2tncm91bmQgewogICAgICAgIGZpbGwtb3BhY2l0eTogMDsKICAgICAgICBmaWxsOiByZWQ7CiAgICAgIH0KCiAgICAgIC5oaXN0b2dyYW0gewogICAgICAgIHBvaW50ZXItZXZlbnRzOiBub25lOwogICAgICB9CgogICAgICAuaG92ZXIgewogICAgICAgIGZvbnQtc2l6ZTogOXB4OwogICAgICAgIGRvbWluYW50LWJhc2VsaW5lOiBtaWRkbGU7CiAgICAgICAgb3BhY2l0eTogMDsKICAgICAgfQoKICAgICAgLmhvdmVyIGNpcmNsZSB7CiAgICAgICAgc3Ryb2tlOiB3aGl0ZTsKICAgICAgICBzdHJva2Utb3BhY2l0eTogMC41OwogICAgICAgIHN0cm9rZS13aWR0aDogMXB4OwogICAgICB9CgogICAgICAuaG92ZXIgdGV4dCB7CiAgICAgICAgZmlsbDogYmxhY2s7CiAgICAgICAgb3BhY2l0eTogMDsKICAgICAgfQoKICAgICAgLmhvdmVyLmhvdmVyLWNsb3Nlc3QgY2lyY2xlIHsKICAgICAgICBmaWxsOiBibGFjayAhaW1wb3J0YW50OwogICAgICB9CgogICAgICAuaG92ZXIuaG92ZXItY2xvc2VzdCB0ZXh0IHsKICAgICAgICBvcGFjaXR5OiAxOwogICAgICB9CgogICAgICAuYmFzZWxpbmUgewogICAgICAgIHN0cm9rZTogYmxhY2s7CiAgICAgICAgc3Ryb2tlLW9wYWNpdHk6IDAuMTsKICAgICAgfQoKICAgICAgLm91dGxpbmUgewogICAgICAgIGZpbGw6IG5vbmU7CiAgICAgICAgc3Ryb2tlOiB3aGl0ZTsKICAgICAgICBzdHJva2Utb3BhY2l0eTogMC41OwogICAgICB9CgogICAgICAub3V0bGluZS5vdXRsaW5lLWhvdmVyIHsKICAgICAgICBzdHJva2U6IGJsYWNrICFpbXBvcnRhbnQ7CiAgICAgICAgc3Ryb2tlLW9wYWNpdHk6IDE7CiAgICAgIH0KCiAgICAgIC54LWF4aXMtaG92ZXIsCiAgICAgIC55LWF4aXMtaG92ZXIsCiAgICAgIC55LXNsaWNlLWF4aXMtaG92ZXIgewogICAgICAgIHBvaW50ZXItZXZlbnRzOiBub25lOwogICAgICB9CgogICAgICAueC1heGlzLWhvdmVyIC5sYWJlbCwKICAgICAgLnktYXhpcy1ob3ZlciAubGFiZWwsCiAgICAgIC55LXNsaWNlLWF4aXMtaG92ZXIgLmxhYmVsIHsKICAgICAgICBvcGFjaXR5OiAwOwogICAgICAgIGZvbnQtd2VpZ2h0OiBib2xkOwogICAgICAgIGZvbnQtc2l6ZTogMTFweDsKICAgICAgICB0ZXh0LWFuY2hvcjogZW5kOwogICAgICB9CgogICAgICAueC1heGlzLWhvdmVyIHRleHQgewogICAgICAgIHRleHQtYW5jaG9yOiBtaWRkbGU7CiAgICAgIH0KCiAgICAgIC55LWF4aXMtaG92ZXIgdGV4dCwKICAgICAgLnktc2xpY2UtYXhpcy1ob3ZlciB0ZXh0IHsKICAgICAgICB0ZXh0LWFuY2hvcjogc3RhcnQ7CiAgICAgIH0KCiAgICAgIC54LWF4aXMtaG92ZXIgbGluZSwKICAgICAgLnktYXhpcy1ob3ZlciBsaW5lLAogICAgICAueS1zbGljZS1heGlzLWhvdmVyIGxpbmUgewogICAgICAgIHN0cm9rZTogYmxhY2s7CiAgICAgIH0KCiAgICAgIC54LWF4aXMtaG92ZXIgcmVjdCwKICAgICAgLnktYXhpcy1ob3ZlciByZWN0LAogICAgICAueS1zbGljZS1heGlzLWhvdmVyIHJlY3QgewogICAgICAgIGZpbGw6IHdoaXRlOwogICAgICB9CgogICAgICAuYXhpcyB7CiAgICAgICAgZm9udC1zaXplOiAxMXB4OwogICAgICB9CgogICAgICAuYXhpcyBwYXRoLmRvbWFpbiB7CiAgICAgICAgZmlsbDogbm9uZTsKICAgICAgfQoKICAgICAgLmF4aXMgLnRpY2sgbGluZSB7CiAgICAgICAgc3Ryb2tlOiAjZGRkOwogICAgICB9CgogICAgICAuYXhpcy5zbGljZSB7CiAgICAgICAgb3BhY2l0eTogMDsKICAgICAgfQoKICAgICAgLmF4aXMuc2xpY2UgLnRpY2sgbGluZSB7CiAgICAgICAgc3Ryb2tlLWRhc2hhcnJheTogMjsKICAgICAgfQoKICAgICAgLnNtYWxsIC5heGlzIHRleHQgewogICAgICAgIGRpc3BsYXk6IG5vbmU7CiAgICAgIH0KICAgICAgLnNtYWxsIC5heGlzIC50aWNrOmZpcnN0LW9mLXR5cGUgdGV4dCB7CiAgICAgICAgZGlzcGxheTogYmxvY2s7CiAgICAgIH0KICAgICAgLnNtYWxsIC5heGlzIC50aWNrOmxhc3Qtb2YtdHlwZSB0ZXh0IHsKICAgICAgICBkaXNwbGF5OiBibG9jazsKICAgICAgfQogICAgICAubWVkaXVtIC5heGlzIHRleHQgewogICAgICAgIGRpc3BsYXk6IG5vbmU7CiAgICAgIH0KICAgICAgLm1lZGl1bSAuYXhpcyAudGljazpudGgtY2hpbGQoMm4gKyAxKSB0ZXh0IHsKICAgICAgICBkaXNwbGF5OiBibG9jazsKICAgICAgfQogICAgICAubGFyZ2UgLmF4aXMgdGV4dCB7CiAgICAgICAgZGlzcGxheTogbm9uZTsKICAgICAgfQogICAgICAubGFyZ2UgLmF4aXMgLnRpY2s6bnRoLWNoaWxkKDJuICsgMSkgdGV4dCB7CiAgICAgICAgZGlzcGxheTogYmxvY2s7CiAgICAgIH0KICAgIDwvc3R5bGU+CiAgPC90ZW1wbGF0ZT4KCiAgCjwvZG9tLW1vZHVsZT4KCgoKCgoKCjxkb20tbW9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AgICAgaGVpZ2h0OiA2MDBweDsKICAgICAgfQogICAgICAjYnV0dG9ucy1yb3cgewogICAgICAgIGRpc3BsYXk6IGZsZXg7CiAgICAgICAgZmxleC1kaXJlY3Rpb246IHJvdzsKICAgICAgfQogICAgICAjYnV0dG9ucy1yb3cgcGFwZXItaWNvbi1idXR0b24gewogICAgICAgIGNvbG9yOiAjMjE5NmYzOwogICAgICAgIGJvcmRlci1yYWRpdXM6IDEwMCU7CiAgICAgICAgd2lkdGg6IDMycHg7CiAgICAgICAgaGVpZ2h0OiAzMnB4OwogICAgICAgIHBhZGRpbmc6IDRweDsKICAgICAgfQogICAgICAjYnV0dG9ucy1yb3cgcGFwZXItaWNvbi1idXR0b25bc2VsZWN0ZWRdIHsKICAgICAgICBiYWNrZ3JvdW5kOiB2YXIoLS10Yi11aS1saWdodC1hY2NlbnQpOwogICAgICB9CiAgICAgICNzdGVwLWxlZ2VuZCB7CiAgICAgICAgYm94LXNpemluZzogYm9yZGVyLWJveDsKICAgICAgICBmb250LXNpemU6IDAuOGVtOwogICAgICAgIG1heC1oZWlnaHQ6IDIwMHB4OwogICAgICAgIG92ZXJmbG93LXk6IGF1dG87CiAgICAgICAgcGFkZGluZzogMCAwIDAgMTBweDsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgfQogICAgICAubGVnZW5kLXJvdyB7CiAgICAgICAgbWFyZ2luOiA1cHggMCA1cHggMDsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgfQogICAgICAuY29sb3ItYm94IHsKICAgICAgICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7CiAgICAgICAgYm9yZGVyLXJhZGl1czogMXB4OwogICAgICAgIHdpZHRoOiAxMHB4OwogICAgICAgIGhlaWdodDogMTBweDsKICAgICAgfQogICAgICAuc3RlcC1sYWJlbC10ZXh0IHsKICAgICAgICBmb250LXdlaWdodDogYm9sZDsKICAgICAgfQogICAgICAud2FsbC10aW1lLWxhYmVsLXRleHQgewogICAgICAgIGNvbG9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9ImNlbnRlciI+CiAgICAgICAgPHRlbXBsYXRlIGlzPSJkb20taWYiIGlmPSJbW19kYXRhTm90Rm91bmRdXSI+CiAgICAgICAgICA8ZGl2IGNsYXNzPSJuby1kYXRhLXdhcm5pbmciPgogICAgICAgICAgICA8aDM+Tm8gcHJlY2lzaW9u4oCTcmVjYWxsIGN1cnZlIGRhdGEgd2FzIGZvdW5kLjwvaDM+CiAgICAgICAgICAgIDxwPlByb2JhYmxlIGNhdXNlczoKICAgICAgICAgICAgPHVsPgogICAgICAgICAgICAgIDxsaT4KICAgICAgICAgICAgICAgIFlvdSBoYXZlbuKAmXQgd3JpdHRlbiBhbnkgcHJlY2lzaW9u4oCTcmVjYWxsIGRhdGEgdG8geW91ciBldmVudAogICAgICAgICAgICAgICAgZmlsZXMuCiAgICAgICAgICAgICAgPC9saT4KICAgICAgICAgICAgICA8bGk+CiAgICAgICAgICAgICAgICBUZW5zb3JCb2FyZCBjYW7igJl0IGZpbmQgeW91ciBldmVudCBmaWxlcy4KICAgICAgICAgICAgICA8L2xpPgogICAgICAgICAgICA8L3VsPgogICAgICAgICAgICA8cD4KICAgICAgICAgICAgICBJZiB5b3XigJlyZSBuZXcgdG8gdXNpbmcgVGVuc29yQm9hcmQsIGFuZCB3YW50IHRvIGZpbmQgb3V0IGhvdyB0bwogICAgICAgICAgICAgIGFkZCBkYXRhIGFuZCBzZXQgdXAgeW91ciBldmVudCBmaWxlcywgY2hlY2sgb3V0IHRoZQogICAgICAgICAgICAgIDxhIGhyZWY9Imh0dHBzOi8vZ2l0aHViLmNvbS90ZW5zb3JmbG93L3RlbnNvcmJvYXJkL2Jsb2IvbWFzdGVyL1JFQURNRS5tZCI+UkVBRE1FPC9hPgogICAgICAgICAgICAgIGFuZCBwZXJoYXBzIHRoZQogICAgICAgICAgICAgIDxhIGhyZWY9Imh0dHBzOi8vd3d3LnRlbnNvcmZsb3cub3JnL2dldF9zdGFydGVkL3N1bW1hcmllc19hbmRfdGVuc29yYm9hcmQi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3Q9ImRyb3Bkb3duLWNvbnRlbnQiIHNlbGVjdGVkPSIwIj4KICAgICAgICAgICAgICAgICAgPHBhcGVyLWl0ZW0+bWFnbWE8L3BhcGVyLWl0ZW0+CiAgICAgICAgICAgICAgICAgIDxwYXBlci1pdGVtPmluZmVybm88L3BhcGVyLWl0ZW0+CiAgICAgICAgICAgICAgICAgIDxwYXBlci1pdGVtPnBsYXNtYTwvcGFwZXItaXRlbT4KICAgICAgICAgICAgICAgICAgPHBhcGVyLWl0ZW0+dmlyaWRpczwvcGFwZXItaXRlbT4KICAgICAgICAgICAgICAgICAgPHBhcGVyLWl0ZW0+Z3JheXNjYWxlPC9wYXBlci1pdGVtPgogICAgICAgICAgICAgICAgPC9wYXBlci1saXN0Ym94PgogICAgICAgICAgICAgIDwvcGFwZXItZHJvcGRvd24tbWVudT4KICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICA8L2Rpdj4KICAgICAgICA8L3RlbXBsYXRlPgoKICAgICAgICA8ZGl2IGNsYXNzPSJzaWRlYmFyLXNlY3Rpb24iPgogICAgICAgICAgPGgzPlVwZGF0ZXMgcGVyIHNlY29uZDoge3tfRlBTfX08L2gzPgogICAgICAgICAgPHBhcGVyLXNsaWRlciBpZD0iRlBTU2xpZGVyIiB2YWx1ZT0ie3tfRlBTfX0iIHR5cGU9Im51bWJlciIgc3RlcD0iMSIgbWluPSIwIiBtYXg9IjMwIiBwaW49InRydWUiIGRpc2FibGVkPSJbW19jb250cm9sc19kaXNhYmxlZF1dIj4KICAgICAgICAgIDwvcGFwZXItc2xpZGVyPgogICAgICAgIDwvZGl2PgoKICAgICAgICA8ZGl2IGNsYXNzPSJzaWRlYmFyLXNlY3Rpb24iPgogICAgICAgICAgPGRpdj4KICAgICAgICAgICAgPHBhcGVyLWJ1dHRvbiBjbGFzcz0ieC1idXR0b24iIGlkPSJyZWNvcmRfYnV0dG9uIiBvbi10YXA9Il90b2dnbGVSZWNvcmQiIGRpc2FibGVkPSJbW19jb250cm9sc19kaXNhYmxlZF1dIj4KICAgICAgICAgICAgICBbW19yZWNvcmRUZXh0XV0KICAgICAgICAgICAgPC9wYXBlci1idXR0b24+CiAgICAgICAgICA8L2Rpdj4KICAgICAgICA8L2Rpdj4KCiAgICAgICAgPGRpdiBjbGFzcz0ic2lkZWJhci1zZWN0aW9uIj4KICAgICAgICAgIDxwIGNsYXNzPSJkaXNjbGFpbWVyIj4KICAgICAgICAgICAgTm90ZTogQmVob2xkZXIgY3VycmVudGx5IG9ubHkgd29ya3Mgd2VsbCBvbiBsb2NhbCBmaWxlIHN5c3RlbXMuCiAgICAgICAgICAKICAgICAgICA8L2Rpdj4KICAgICAgPC9kaXY+CiAgICAgIDxkaXYgY2xhc3M9ImNlbnRlciIgc2xvdD0iY2VudGVyIj4KICAgICAgICA8dGVtcGxhdGUgaXM9ImRvbS1pZiIgaWY9IltbIV9pc19hY3RpdmVdXSI+CiAgICAgICAgICA8ZGl2IGNsYXNzPSJuby1kYXRhLXdhcm5pbmciPgogICAgICAgICAgICA8aDM+Tm8gQmVob2xkZXIgZGF0YSB3YXMgZm91bmQuPC9oMz4KCiAgICAgICAgICAgIDxwPlByb2JhYmxlIGNhdXNlczoKICAgICAgICAgICAgPHVsPgogICAgICAgICAgICAgIDxsaT5Zb3VyIHNjcmlwdCBpc24ndCBydW5uaW5nLjwvbGk+CiAgICAgICAgICAgICAgPGxpPllvdSBhcmVuJ3QgY2FsbGluZyA8Y29kZT5iZWhvbGRlci51cGRhdGUoKTwvY29kZT4uPC9saT4KICAgICAgICAgICAgPC91bD4KCiAgICAgICAgICAgIDxwPgogICAgICAgICAgICAgIFRvIHVzZSBCZWhvbGRlciwgaW1wb3J0IGFuZCBpbnN0YW50aWF0ZSB0aGUKICAgICAgICAgICAgICA8Y29kZT5CZWhvbGRlcjwvY29kZT4gY2xhc3MsIGFuZCBjYWxsIGl0cwogICAgICAgICAgICAgIDxjb2RlPnVwZGF0ZTwvY29kZT4gbWV0aG9kIHdpdGggYSA8Y29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5vLWRhdGEtd2FybmluZyB7CiAgICAgICAgbWF4LXdpZHRoOiA1NDBweDsKICAgICAgICBtYXJnaW46IDgwcHggYXV0byAwOwogICAgICB9CgogICAgICBwYXBlci1jaGVja2JveCB7CiAgICAgICAgZGlzcGxheTogYmxvY2s7CiAgICAgICAgcGFkZGluZzogNHB4OwogICAgICB9CgogICAgICBwYXBlci1yYWRpby1idXR0b24gewogICAgICAgIGRpc3BsYXk6IGZsZXg7CiAgICAgICAgcGFkZGluZzogNXB4OwoKICAgICAgICAtLXBhcGVyLXJhZGlvLWJ1dHRvbi1yYWRpby1jb250YWluZXI6IHsKICAgICAgICAgIGZsZXgtZ3JvdzogMDsKICAgICAgICAgIGZsZXgtc2hyaW5rOiAwOwogICAgICAgIH0KCiAgICAgICAgLS1wYXBlci1yYWRpby1idXR0b24tbGFiZWw6IHsKICAgICAgICAgIGZvbnQtc2l6ZTogMTNweDsKICAgICAgICAgIG92ZXJmbG93OiBoaWRkZW47CiAgICAgICAgICB0ZXh0LW92ZXJmbG93OiBlbGxpcHNpczsKICAgICAgICB9CiAgICAgIH0KCiAgICAgIHBhcGVyLXJhZGlvLWdyb3VwIHsKICAgICAgICBtYXJnaW4tdG9wOiA1cHg7CiAgICAgICAgd2lkdGg6IDEwMCU7CiAgICAgIH0KCiAgICAgIHBhcGVyLXNsaWRlciB7CiAgICAgICAgLS1wYXBlci1zbGlkZXItYWN0aXZlLWNvbG9yOiB2YXIoLS10Yi1vcmFuZ2Utc3Ryb25nKTsKICAgICAgICAtLXBhcGVyLXNsaWRlci1rbm9iLWNvbG9yOiB2YXIoLS10Yi1vcmFuZ2Utc3Ryb25nKTsKICAgICAgICAtLXBhcGVyLXNsaWRlci1rbm9iLXN0YXJ0LWJvcmRlci1jb2xvcjogdmFyKC0tdGItb3JhbmdlLXN0cm9uZyk7CiAgICAgICAgLS1wYXBlci1zbGlkZXIta25vYi1zdGFydC1jb2xvcjogdmFyKC0tdGItb3JhbmdlLXN0cm9uZyk7CiA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B4OwogICAgICB9CgogICAgICBoNCB7CiAgICAgICAgZm9udC1zaXplOiAxNHB4OwogICAgICAgIGZvbnQtd2VpZ2h0OiBub3JtYWw7CiAgICAgICAgbWFyZ2luOiA1cHggMDsKICAgICAgfQoKICAgICAgcC5kaXNjbGFpbWVyIHsKICAgICAgICBjb2xvcjogIzk5OTsKICAgICAgICBmb250LXN0eWxlOiBpdGFsaWM7CiAgICAgIH0KCiAgICAgIHAuY29udHJvbHMtZGlzYWJsZWQtbWVzc2FnZSB7CiAgICAgICAgY29sb3I6ICNjMDA7CiAgICAgICAgZm9udC13ZWlnaHQ6IGJvbGQ7CiAgICAgIH0KCiAgICAgIC5zaWRlYmFyIHsKICAgICAgICBmb250LXNpemU6IDE0cHg7CiAgICAgIH0KICAgIDwvc3R5bGU+CiAgPC90ZW1wbGF0ZT4KICAKPC9kb20tbW9kdWxlPgoKCgoKCgoKCgoKCgoKCgoKCgoKCjxkb20tbW9kdWxlIGlkPSJ2YWFkaW4tc3BsaXQtbGF5b3V0Ij4KICA8dGVtcGxhdGU+CiAgICA8c3R5bGU+CiAgICAgIDpob3N0IHsKICAgICAgICBkaXNwbGF5OiBmbGV4OwogICAgICAgIG92ZXJmbG93OiBoaWRkZW4gIWltcG9ydGFudDsKICAgICAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVooMCk7CiAgICAgIH0KCiAgICAgIDpob3N0KFt2ZXJ0aWNhbF0pIHsKICAgICAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uOwogICAgICB9CgogICAgICA6aG9zdCA6OnNsb3R0ZWQoKikgewogICAgICAgIGZsZXg6IDEgMSBhdXRvOwogICAgICAgIG92ZXJmbG93OiBhdXRvOwogICAgICB9CgogICAgICA6aG9zdCA+ICNzcGxpdHRlciB7CiAgICAgICAgZmxleDogbm9uZTsKICAgICAgICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgICAgICAgei1pbmRleDogMTsKICAgICAgICBvdmVyZmxvdzogdmlzaWJsZTsKIC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ocGFyYW1OYW1lKGhwYXJhbS5pbmZvKV1dCiAgICAgICAgICAgICAgICAgIDwvcGFwZXItY2hlY2tib3g+CiAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgPHRlbXBsYXRlIGlzPSJkb20taWYiIGlmPSJbW2hwYXJhbS5maWx0ZXIuZG9tYWluRGlzY3JldGVdXSI+CiAgICAgICAgICAgICAgICAgICAgPHRlbXBsYXRlIGlzPSJkb20tcmVwZWF0IiBpdGVtcz0iW1tocGFyYW0uZmlsdGVyLmRvbWFpbkRpc2NyZXRlXV0iPgogICAgICAgICAgICAgICAgICAgICAgPHBhcGVyLWNoZWNrYm94IGNoZWNrZWQ9Int7aXRlbS5jaGVja2VkfX0iIGNsYXNzPSJkaXNjcmV0ZS12YWx1ZS1jaGVja2JveCIgb24tY2hhbmdlPSJfcXVlcnlTZXJ2ZXIiPgogICAgICAgICAgICAgICAgICAgICAgICBbW19wcmV0dHlQcmludChpdGVtLnZhbHVlKV1dCiAgICAgICAgICAgICAgICAgICAgICA8L3BhcGVyLWNoZWNrYm94PgogICAgICAgICAgICAgICAgICAgIDwvdGVtcGxhdGU+CiAgICAgICAgICAgICAgICAgIDwvdGVtcGxhdGU+CiAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICA8dGVtcGxhdGUgaXM9ImRvbS1pZiIgaWY9IltbaHBhcmFtLmZpbHRlci5pbnRlcnZhbF1dIj4KICAgICAgICAgICAgICAgICAgICA8cGFwZXItaW5wdXQgbGFiZWw9Ik1pbiIgdmFsdWU9Int7aHBhcmFtLmZpbHRlci5pbnRlcnZhbC5taW4udmFsdWV9fSIgYWxsb3dlZF9wYXR0ZXJuPSJbMC05LmVcLV0iIG9uLXZhbHVlLWNoYW5nZWQ9Il9xdWVyeVNlcnZlciIgZXJyb3ItbWVzc2FnZT0iSW52YWxpZCBpbnB1dCIgaW52YWxpZD0iW1tocGFyYW0uZmlsdGVyLmludGVydmFsLm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CiAgICAgICAgICAgICAgPHRlbXBsYXRlIGlzPSJkb20tcmVwZWF0IiBpdGVtcz0ie3tfbWV0cmljc319IiBhcz0ibWV0cmljIj4KICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9Im1ldHJpYyI+CiAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICA8cGFwZXItY2hlY2tib3ggY2hlY2tlZD0ie3ttZXRyaWMuZGlzcGxheWVkfX0iIGNsYXNzPSJtZXRyaWMtY2hlY2tib3giPgogICAgICAgICAgICAgICAgICAgIFtbX21ldHJpY05hbWUobWV0cmljLmluZm8pXV0KICAgICAgICAgICAgICAgICAgPC9wYXBlci1jaGVja2JveD4KICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0iaW5saW5lLWVsZW1lbnQiPgogICAgICAgICAgICAgICAgICAgIDxwYXBlci1pbnB1dCBsYWJlbD0iTWluIiB2YWx1ZT0ie3ttZXRyaWMuZmlsdGVyLmludGVydmFsLm1pbi52YWx1ZX19IiBhbGxvd2VkLXBhdHRlcm49IlswLTkuZVwtXSIgb24tdmFsdWUtY2hhbmdlZD0iX3F1ZXJ5U2VydmVyIiBlcnJvci1tZXNzYWdlPSJJbnZhbGlkIGlucHV0IiBpbnZhbGlkPSJ7e21ldHJpYy5maWx0ZXIuaW50ZXJ2YWwubWluLmludmFsaWR9fSIgcGxhY2Vob2xkZXI9Ii1pbmZpbml0eSI+CiAgICAgICAgICAgICAgICAgICAgPC9wYXBlci1pbnB1dD4KICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9ImlubGluZS1lbGVtZW50Ij4KICAgICAgICAgICAgICAgICAgICA8cGFwZXItaW5wdXQgbGFiZWw9Ik1heCIgYWxsb3dlZC1wYXR0ZXJuPSJbMC05LmVcLV0iIHZhbHVlPSJ7e21ldHJpYy5maWx0ZXIuaW50ZXJ2YWwubWF4LnZhbHVlfX0iIG9uLXZhbHVlLWNoYW5nZWQ9Il9xdWVyeVNlcnZlciIgZXJyb3ItbWVzc2FnZT0iSW52YWxpZCBpbnB1dCIgaW52YWxpZD0ie3ttZXRyaWMuZmlsdGVyLmludGVydmFsLm1heC5pbnZhbGlkfX0iIHBsYWNlaG9sZGVyPSIraW5maW5pdHkiPgogICAgICAgICAgICAgICAgICAgIDwvcGFwZXItaW5wdXQ+CiAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgPC90ZW1wbGF0ZT4KICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICA8L3ZhYWRpbi1zcGxpdC1sYXlvdXQ+CiAgICAgICAgICA8ZGl2IGNsYXNzPSJzZWN0aW9uIHN0YXR1cyI+CiAgICAgICAgICAgIDxkaXYgY2xhc3M9InNlY3Rpb24tdGl0bGUiPlN0YXR1czwvZGl2PgogICAgICAgICAgICA8dGVtcGxhdGUgaXM9ImRvbS1yZXBlYXQiIGl0ZW1zPSJbW19zdGF0dXNlc11dIiBhcz0ic3RhdHVzIj4KICAgICAgICAgICAgICA8cGFwZXItY2hlY2tib3ggY2hlY2tlZD0ie3tzdGF0dXMuYWxsb3dlZH19IiBvbi1jaGFuZ2U9Il9xdWVyeVNlcnZlciI+CiAgICAgICAgICAgICAgICBbW3N0YXR1cy5kaXNwbGF5TmFtZV1dCiAgICAgICAgICAgICAgPC9wYXBlci1jaGVja2JveD4KICAgICAgICAgICAgPC90ZW1wbGF0ZT4KICAgICAgICAgIDwvZGl2PgogICAgICAgIDwvdmFhZGluLXNwbGl0LWxheW91dD4KICAgICAgICA8dmFhZGluLXNwbGl0LWxheW91dCB2ZXJ0aWNhbCBpZD0ic29ydGluZy1wYWdpbmciPgogICAgICAgICAgPGRpdiBjbGFzcz0ic2VjdGlvbiBzb3J0aW5nIj4KICAgICAgICAgICAgPGRpdiBjbGFzcz0ic2VjdGlvbi10aXRsZSI+U29ydGluZzwvZGl2PgogICAgICAgICAgICA8cGFwZXItZHJvcGRvd24tbWVudSBsYWJlbD0iU29ydCBieSIgb24tc2VsZWN0ZWQtaXRlbS1jaGFuZ2VkPSJfcXVlcnlTZXJ2ZXIiIGhvcml6b250YWwtYWxpZ249ImxlZnQiPgogICAgICAgICAgICAgIDxwYXBlci1saXN0Ym94IGNsYXNzPSJkcm9wZG93bi1jb250ZW50IiBzbG90PSJkcm9wZG93bi1jb250ZW50IiBzZWxlY3RlZD0ie3tfc29ydEJ5SW5kZXh9fSIgb24tc2VsZWN0ZWQtaXRlbS1jaGFuZ2VkPSJfcXVlcnlTZXJ2ZXIiPgogICAgICAgICAgICAgICAgPHRlbXBsYXRlIGlzPSJkb20tcmVwZWF0IiBpdGVtcz0iW1tfaHBhcmFtc11dIiBhcz0iaHBhcmFtIj4KICAgICAgICAgICAgICAgICAgPHBhcGVyLWl0ZW0+CiAgICAgICAgICAgICAgICAgICAgW1tfaHBhcmFtTmFtZShocGFyYW0uaW5mbyldXQogICAgICAgICAgICAgICAgICA8L3BhcGVyLWl0ZW0+CiAgICAgICAgICAgICAgICA8L3RlbXBsYXRlPgogICAgICAgICAgICAgICAgPHRlbXBsYXRlIGlzPSJkb20tcmVwZWF0IiBpdGVtcz0iW1tfbWV0cmljc11dIiBhcz0ibWV0cmljIj4KICAgICAgICAgICAgICAgICAgPHBhcGVyLWl0ZW0+CiAgICAgICAgICAgICAgICAgICAgW1tfbWV0cmljTmFtZShtZXRyaWMuaW5mbyldXQogICAgICAgICAgICAgICAgICA8L3BhcGVyLWl0ZW0+CiAgICAgICAgICAgICAgICA8L3RlbXBsYXRlPgogICAgICAgICAgICAgIDwvcGFwZXItbGlzdGJveD4KICAgICAgICAgICAgPC9wYXBlci1kcm9wZG93bi1tZW51PgogICAgICAgICAgICA8cGFwZXItZHJvcGRvd24tbWVudSBsYWJlbD0iRGlyZWN0aW9uIiBvbi1zZWxlY3RlZC1pdGVtLWNoYW5nZWQ9Il9xdWVyeVNlcnZlciIgaG9yaXpvbnRhbC1hbGlnbj0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F0aW9uKV1dIj5DU1Y8L2E+CiAgICAgICAgICAgICAgICAgIDxhIGlkPSJqc29uTGluayIgZG93bmxvYWQ9ImhwYXJhbXNfdGFibGUuanNvbiIgaHJlZj0iW1tfanNvblVybChfc2Vzc2lvbkdyb3Vwc1JlcXVlc3QsIGNvbmZpZ3VyYXRpb24pXV0iPkpTT048L2E+CiAgICAgICAgICAgICAgICAgIDxhIGlkPSJsYXRleExpbmsiIGRvd25sb2FkPSJocGFyYW1zX3RhYmxlLnRleCIgaHJlZj0iW1tfbGF0ZXhVcmwoX3Nlc3Npb25Hcm91cHNSZXF1ZXN0LCBjb25maWd1cmF0aW9uKV1dIj5MYVRlWDwvYT4KICAgICAgICAgICAgICAgIDwvc3Bhbj4KICAgICAgICAgICAgICA8L3RlbXBsYXRlPgogICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgIDwvdmFhZGluLXNwbGl0LWxheW91dD4KICAgICAgICA8L3ZhYWRpbi1zcGxpdC1sYXlvdXQ+CiAgICAgIDwvdmFhZGluLXNwbGl0LWxheW91dD4KICAgIDwvZGl2PgogICAgPHN0eWxlPgogICAgICAucGFuZSB7CiAgICAgICAgZGlzcGxheTogZmxleDsKICAgICAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uOwogICAgICAgIGhlaWdodDogMTAwJTsKICAgICAgfQogICAgICAuc2VjdGlvbiB7CiAgICAgICAgbWFyZ2luOiA1cHggMTBweCA1cHggMTBweDsKICAgICAgICBvdmVyZmxvdy15OiBhdXRvOwogICAgICB9CiAgICAgIC5zZWN0aW9uLXRpdGxlIHsKICAgICAgICBkaXNwbGF5OiBibG9jazsKICAgICAgICBmb250LXdlaWdodDogYm9sZDsKICAgICAgICB0ZXh0LWRlY29yYXRpb246IHVuZGVybGluZTsKICAgICAgICBtYXJnaW4tYm90dG9tOiA3cHg7CiAgICAgIH0KICAgICAgI2h5cGVycGFyYW1ldGVycy1tZXRyaWNzLXN0YXR1c2VzIHsKICAgICAgICBmbGV4LWJhc2lzOiA3MCU7CiAgICAgICAgZmxleC1zaHJpbms6IDE7CiAgICAgICAgZmxleC1ncm93OiAxOwogICAgICB9CiAgICAgICNoeXBlcnBhcmFtZXRlcnMtbWV0cmljcyB7CiAgICAgICAgZmxleC1iYXNpczogOTAlOwogICAgICAgIGZsZXgtc2hyaW5rOiAxOwogICAgICAgIGZsZXgtZ3JvdzogMTsKICAgICAgfQogICAgICAuaHlwZXJwYXJhbWV0ZXJzIHsKICAgICAgICBmbGV4LWJhc2lzOiBhdXRvOwogICAgICAgIGZsZXgtc2hyaW5rOiAxOwogICAgICAgIGZsZXgtZ3JvdzogMTsKICAgICAgfQogICAgICAubWV0cmljcyB7CiAgICAgICAgZmxleC1iYXNpczogYXV0bzsKICAgICAgICBmbGV4LXNocmluazogMTsKICAgICAgICBmbGV4LWdyb3c6IDE7CiAgICAgIH0KICAgICAgLnN0YXR1c2VzIHsKICAgICAgICBmbGV4LWJhc2lzOiBhdXRvOwogICAgICAgIGZsZXgtc2hyaW5rOiAwOwogICAgICAgIGZsZXgtZ3JvdzogMDsKICAgICAgfQogICAgICAjc29ydGluZy1wYWdpbmcgewogICAgICAgIGZsZXgtYmFzaXM6IDMwJTsKICAgICAgICBmbGV4LXNocmluazogMDsKICAgICAgICBmbGV4LWdyb3c6IDA7CiAgICAgIH0KICAgICAgI3BhZ2luZy1kb3dubG9hZCB7CiAgICAgICAgZmxleC1iYXNpczogOTAlOwogICAgICAgIGZsZXgtc2hyaW5rOiAxOwogICAgICAgIGZsZXgtZ3JvdzogMTsKICAgICAgfQogICAgICAuc29ydGluZyB7CiAgICAgICAgZmxleC1iYXNpczogYXV0bzsKICAgICAgICBmbGV4LXNocmluazogMDsKICAgICAgICBmbGV4LWdyb3c6IDA7CiAgICAgIH0KICAgICAgLnBhZ2luZyB7CiAgICAgICAgZmxleC1iYXNpczogYXV0bzsKICAgICAgICBmbGV4LXNocmluazogMDsKICAgICAgICBmbGV4LWdyb3c6IDA7CiAgICAgIH0KICAgICAgLmRvd25sb2FkIHsKICAgICAgICBmbGV4LWJhc2lzOiBhdXRvOwogICAgICAgIGZsZXgtc2hyaW5rOiAwOwogICAgICAgIGZsZXgtZ3JvdzogMDsKICAgICAgfQogICAgICAuZGlzY3JldGUtdmFsdWUtY2hlY2tib3gsCiAgICAgIC5tZXRyaWMtY2hlY2tib3gsCiAgICAgIC5ocGFyYW0tY2hlY2tib3ggewogICAgICAgIGRpc3BsYXk6IGJsb2NrOwogICAgICB9CiAgICAgIC5kaXNjcmV0ZS12YWx1ZS1jaGVja2JveCB7CiAgICAgICAgbWFyZ2luLWxlZnQ6IDIwcHg7CiAgICAgIH0KICAgICAgLmhwYXJhbSwKICAgICAgLm1ldHJpYyB7CiAgICAgICAgZGlzcGxheTogYmxvY2s7CiAgICAgIH0KICAgICAgLmlubGluZS1lbGVtZW50IHsKICAgICAgICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7CiAgICAgICAgd2lkdGg6IDQwJTsKICAgICAgICBtYXJnaW4tbGVmdDogMTBweDsKICAgICAgfQogICAgICAucGFnZS1udW1iZXItaW5wdXQgewogICAgICAgIHdpZHRoOiAyMCU7CiAgICAgIH0KICAgICAgLnBhZ2Utc2l6ZS1pbnB1dCB7CiAgICAgICAgd2lkdGg6IDYwJTsKICAgICAgfQogICAgICB2YWFkaW4tc3BsaXQtbGF5b3V0IHsKICAgICAgICBoZWlnaHQ6IDEwMCU7CiAgICAgIH0KICAgICAgcGFwZXItbGlzdGJveCB7CiAgICAgICAgbWF4LWhlaWdodDogMTVlbTsKICAgICAgfQogICAgICAucGFnZS1zdWZmaXggewogICAgICAgIHdoaXRlLXNwYWNlOiBub3dyYXA7CiAgICAgIH0KICAgIDwvc3R5bGU+CiAgPC90ZW1wbGF0ZT4KICAKPC9kb20tbW9kdWxlPgoKCgoKCgoKPGRvbS1tb2R1bGUgaWQ9Imlyb24tcGFnZXMiPgoKICA8dGVtcGxhdGU+CiAgICA8c3R5bGU+CiAgICAgIDpob3N0IHsKICA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bnRhaW5lcjsKICAgICAgfQoKICAgICAgLyoKICAgICAgICogbW9kZTogc2Nyb2xsCiAgICAgICAqLwogICAgICA6aG9zdChbbW9kZT1zY3JvbGxdKSAjbWFpbkNvbnRhaW5lciB7CiAgICAgICAgQGFwcGx5IC0tcGFwZXItaGVhZGVyLXBhbmVsLXNjcm9sbC1jb250YWluZXI7CiAgICAgICAgb3ZlcmZsb3c6IHZpc2libGU7CiAgICAgIH0KCiAgICAgIDpob3N0KFttb2RlPXNjcm9sbF0pIHsKICAgICAgICBvdmVyZmxvdy15OiBhdXRvOwogICAgICAgIG92ZXJmbG93LXg6IGhpZGRlbjsKICAgICAgICAtd2Via2l0LW92ZXJmbG93LXNjcm9sbGluZzogdG91Y2g7CiAgICAgIH0KCiAgICAgIC8qCiAgICAgICAqIG1vZGU6IGNvdmVyCiAgICAgICAqLwogICAgICA6aG9zdChbbW9kZT1jb3Zlcl0pICNtYWluQ29udGFpbmVyIHsKICAgICAgICBAYXBwbHkgLS1wYXBlci1oZWFkZXItcGFuZWwtY292ZXItY29udGFpbmVyOwogICAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTsKICAgICAgICB0b3A6IDA7CiAgICAgICAgcmlnaHQ6IDA7CiAgICAgICAgYm90dG9tOiAwOwogICAgICAgIGxlZnQ6IDA7CiAgICAgIH0KCiAgICAgIDpob3N0KFttb2RlPWNvdmVyXSkgI21haW5QYW5lbCB7CiAgICAgICAgcG9zaXRpb246IHN0YXRpYzsKICAgICAgfQoKICAgICAgLyoKICAgICAgICogbW9kZTogc3RhbmRhcmQKICAgICAgICovCiAgICAgIDpob3N0KFttb2RlPXN0YW5kYXJkXSkgI21haW5Db250YWluZXIgewogICAgICAgIEBhcHBseSAtLXBhcGVyLWhlYWRlci1wYW5lbC1zdGFuZGFyZC1jb250YWluZXI7CiAgICAgIH0KCiAgICAgIC8qCiAgICAgICAqIG1vZGU6IHNlYW1lZAogICAgICAgKi8KICAgICAgOmhvc3QoW21vZGU9c2VhbWVkXSkgI21haW5Db250YWluZXIgewogICAgICAgIEBhcHBseSAtLXBhcGVyLWhlYWRlci1wYW5lbC1zZWFtZWQtY29udGFpbmVyOwogICAgICB9CgoKICAgICAgLyoKICAgICAgICogbW9kZTogd2F0ZXJmYWxsCiAgICAgICAqLwogICAgICA6aG9zdChbbW9kZT13YXRlcmZhbGxdKSAjbWFpbkNvbnRhaW5lciB7CiAgICAgICAgQGFwcGx5IC0tcGFwZXItaGVhZGVyLXBhbmVsLXdhdGVyZmFsbC1jb250YWluZXI7CiAgICAgIH0KCiAgICAgIC8qCiAgICAgICAqIG1vZGU6IHdhdGVyZmFsbC10YWxsCiAgICAgICAqLwogICAgICA6aG9zdChbbW9kZT13YXRlcmZhbGwtdGFsbF0pICNtYWluQ29udGFpbmVyIHsKICAgICAgICBAYXBwbHkgLS1wYXBlci1oZWFkZXItcGFuZWwtd2F0ZXJmYWxsLXRhbGwtY29udGFpbmVyOwogICAgICB9CgogICAgICAjZHJvcFNoYWRvdyB7CiAgICAgICAgdHJhbnNpdGlvbjogb3BhY2l0eSAwLjVzOwogICAgICAgIGhlaWdodDogNnB4OwogICAgICAgIGJveC1zaGFkb3c6IGluc2V0IDBweCA1cHggNnB4IC0zcHggcmdiYSgwLCAwLCAwLCAwLjQpOwogICAgICAgIEBhcHBseSAtLXBhcGVyLWhlYWRlci1wYW5lbC1zaGFkb3c7CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgIHRvcDogMDsKICAgICAgICBsZWZ0OiAwOwogICAgICAgIHJpZ2h0OiAwOwogICAgICAgIG9wYWNpdHk6IDA7CiAgICAgICAgcG9pbnRlci1ldmVudHM6IG5vbmU7CiAgICAgIH0KCiAgICAgICNkcm9wU2hhZG93Lmhhcy1zaGFkb3cgewogICAgICAgIG9wYWNpdHk6IDE7CiAgICAgIH0KCiAgICAgICNtYWluQ29udGFpbmVyID4gOjpzbG90dGVkKC5maXQpIHsKICAgICAgICBAYXBwbHkgLS1sYXlvdXQt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iB0cmFuc3BhcmVudDsKCiAgICAgICAgQGFwcGx5IC0tcGFwZXItdGFiczsKICAgICAgfQoKICAgICAgOmhvc3QoOmRpcihydGwpKSB7CiAgICAgICAgQGFwcGx5IC0tbGF5b3V0LWhvcml6b250YWwtcmV2ZXJzZTsKICAgICAgfQoKICAgICAgI3RhYnNDb250YWluZXIgewogICAgICAgIHBvc2l0aW9uOiByZWxhdGl2ZTsKICAgICAgICBoZWlnaHQ6IDEwMCU7CiAgICAgICAgd2hpdGUtc3BhY2U6IG5vd3JhcDsKICAgICAgICBvdmVyZmxvdzogaGlkZGVuOwogICAgICAgIEBhcHBseSAtLWxheW91dC1mbGV4LWF1dG87CiAgICAgICAgQGFwcGx5IC0tcGFwZXItdGFicy1jb250YWluZXI7CiAgICAgIH0KCiAgICAgICN0YWJzQ29udGVudCB7CiAgICAgICAgaGVpZ2h0OiAxMDAlOwogICAgICAgIC1tb3otZmxleC1iYXNpczogYXV0bzsKICAgICAgICAtbXMtZmxleC1iYXNpczogYXV0bzsKICAgICAgICBmbGV4LWJhc2lzOiBhdXRvOwogICAgICAgIEBhcHBseSAtLXBhcGVyLXRhYnMtY29udGVudDsKICAgICAgfQoKICAgICAgI3RhYnNDb250ZW50LnNjcm9sbGFibGUgewogICAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTsKICAgICAgICB3aGl0ZS1zcGFjZTogbm93cmFwOwogICAgICB9CgogICAgICAjdGFic0NvbnRlbnQ6bm90KC5zY3JvbGxhYmxlKSwKICAgICAgI3RhYnNDb250ZW50LnNjcm9sbGFibGUuZml0LWNvbnRhaW5lciB7CiAgICAgICAgQGFwcGx5IC0tbGF5b3V0LWhvcml6b250YWw7CiAgICAgIH0KCiAgICAgICN0YWJzQ29udGVudC5zY3JvbGxhYmxlLmZpdC1jb250YWluZXIgewogICAgICAgIG1pbi13aWR0aDogMTAwJTsKICAgICAgfQoKICAgICAgI3RhYnNDb250ZW50LnNjcm9sbGFibGUuZml0LWNvbnRhaW5lci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GF5OiBibG9jazsKICAgICAgICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgICAgICAgYm94LXNpemluZzogYm9yZGVyLWJveDsKICAgICAgICAtbW96LWJveC1zaXppbmc6IGJvcmRlci1ib3g7CiAgICAgICAgaGVpZ2h0OiB2YXIoLS1jYWxjdWxhdGVkLXBhcGVyLXRvb2xiYXItaGVpZ2h0KTsKICAgICAgICBiYWNrZ3JvdW5kOiB2YXIoLS1wYXBlci10b29sYmFyLWJhY2tncm91bmQsIHZhcigtLXByaW1hcnktY29sb3IpKTsKICAgICAgICBjb2xvcjogdmFyKC0tcGFwZXItdG9vbGJhci1jb2xvciwgdmFyKC0tZGFyay10aGVtZS10ZXh0LWNvbG9yKSk7CiAgICAgICAgQGFwcGx5IC0tcGFwZXItdG9vbGJhcjsKICAgICAgfQoKICAgICAgOmhvc3QoLmFuaW1hdGUpIHsKICAgICAgICB0cmFuc2l0aW9uOiB2YXIoLS1wYXBlci10b29sYmFyLXRyYW5zaXRpb24sIGhlaWdodCAwLjE4cyBlYXNlLWluKTsKICAgICAgfQoKICAgICAgOmhvc3QoLm1lZGl1bS10YWxsKSB7CiAgICAgICAgaGVpZ2h0OiBjYWxjKHZhcigtLWNhbGN1bGF0ZWQtcGFwZXItdG9vbGJhci1oZWlnaHQpICogMik7CiAgICAgICAgQGFwcGx5IC0tcGFwZXItdG9vbGJhci1tZWRpdW07CiAgICAgIH0KCiAgICAgIDpob3N0KC50YWxsKSB7CiAgICAgICAgaGVpZ2h0OiBjYWxjKHZhcigtLWNhbGN1bGF0ZWQtcGFwZXItdG9vbGJhci1oZWlnaHQpICogMyk7CiAgICAgICAgQGFwcGx5IC0tcGFwZXItdG9vbGJhci10YWxsOwogICAgICB9CgogICAgICAudG9vbGJhci10b29scyB7CiAgICAgICAgcG9zaXRpb246IHJlbGF0aXZlOwogICAgICAgIGhlaWdodDogdmFyKC0tY2FsY3VsYXRlZC1wYXBlci10b29sYmFyLWhlaWdodCk7CiAgICAgICAgcGFkZGluZzogMCAxNnB4OwogICAgICAgIHBvaW50ZXItZXZlbnRzOiBub25lOwogICAgICAgIEBhcHBseSAtLWxheW91dC1ob3Jpem9udGFsOwogICAgICAgIEBhcHBseSAtLWxheW91dC1jZW50ZXI7CiAgICAgICAgQGFwcGx5IC0tcGFwZXItdG9vbGJhci1jb250ZW50OwogICAgICB9CgogICAgICAvKgogICAgICAgKiBUT0RPOiBXaGVyZSBzaG91bGQgbWVkaWEgcXVlcnkgYnJlYWtwb2ludHMgbGl2ZSBzbyB0aGV5IGNhbiBiZSBzaGFyZWQgYmV0d2VlbiBlbGVtZW50cz8KICAgICAgICovCgogICAgICBAbWVkaWEgKG1heC13aWR0aDogNjAwcHgpIHsKICAgICAgICA6aG9zdCB7CiAgICAgICAgICBoZWlnaHQ6IHZhcigtLWNhbGN1bGF0ZWQtcGFwZXItdG9vbGJhci1zbS1oZWlnaHQpOwogICAgICAgIH0KCiAgICAgICAgOmhvc3QoLm1lZGl1bS10YWxsKSB7CiAgICAgICAgICBoZWlnaHQ6IGNhbGModmFyKC0tY2FsY3VsYXRlZC1wYXBlci10b29sYmFyLXNtLWhlaWdodCkgKiAyKTsKICAgICAgICB9CgogICAgICAgIDpob3N0KC50YWxsKSB7CiAgICAgICAgICBoZWlnaHQ6IGNhbGModmFyKC0tY2FsY3VsYXRlZC1wYXBlci10b29sYmFyLXNtLWhlaWdodCkgKiAzKTsKICAgICAgICB9CgogICAgICAgIC50b29sYmFyLXRvb2xzIHsKICAgICAgICAgIGhlaWdodDogdmFyKC0tY2FsY3VsYXRlZC1wYXBlci10b29sYmFyLXNtLWhlaWdodCk7CiAgICAgICAgfQogICAgICB9CgogICAgICAjdG9wQmFyIHsKICAgICAgICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgICAgIH0KCiAgICAgIC8qIG1pZGRsZSBiYXIgKi8KICAgICAgI21pZGRsZUJhciB7CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgIHRvcDogMDsKICAgICAgICByaWdodDogMDsKICAgICAgICBsZWZ0OiAwOwogICAgICB9CgogICAgICA6aG9zdCgudGFsbCkgI21pZGRsZUJhciwKICAgICAgOmhvc3QoLm1lZGl1bS10YWxsKSAjbWlkZGxlQmFyIHsKICAgICAgICAtd2Via2l0LXRyYW5zZm9ybTogdHJhbnNsYXRlWSgxMDAlKTsKICAgICAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVkoMTAwJSk7CiAgICAgIH0KCiAgICAgIC8qIGJvdHRvbSBiYXIgKi8KICAgICAgI2JvdHRvbUJhciB7CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgIHJpZ2h0OiAwOwogICAgICAgIGJvdHRvbTogMDsKICAgICAgICBsZWZ0OiAwOwogICAgICB9CgogICAgICAvKgogICAgICAgKiBtYWtlIGVsZW1lbnRzIChlLmcuIGJ1dHRvbnMpIHJlc3BvbmQgdG8gbW91c2UvdG91Y2ggZXZlbnRzCiAgICAgICAqCiAgICAgICAqIGAudG9vbGJhci10b29sc2AgZGlzYWJsZXMgdG91Y2ggZXZlbnRzIHNvIG11bHRpcGxlIHRvb2xiYXJzIGNhbiBzdGFjayBhbmQgbm90CiAgICAgICAqIGFic29yYiBldmVudHMuIEFsbCBjaGlsZHJlbiBtdXN0IGhhdmUgcG9pbnRlciBldmVudHMgcmUtZW5hYmxlZCB0byB3b3JrIGFzCiAgICAgICAqIGV4cGVjdGVkLgogICAgICAgKi8KICAgICAgLnRvb2xiYXItdG9vbHMgPiA6OnNsb3R0ZWQoKjpub3QoW2Rpc2FibGVkXSkpIHsKICAgICAgICBwb2ludGVyLWV2ZW50czogYXV0bzsKICAgICAgfQoKICAgICAgLnRvb2xiYXItdG9vbHMgPiA6OnNsb3R0ZWQoLnRpdGxlKSB7CiAgICAgICAgQGFwcGx5IC0tcGFwZXItZm9udC1jb21tb24tYmFzZTsKICAgICAgICB3aGl0ZS1zcGFjZTogbm93cmFwOwogICAgICAgIG92ZXJmbG93OiBoaWRkZW47CiAgICAgICAgdGV4dC1vdmVyZmxvdzogZWxsaXBzaXM7CiAgICAgICAgZm9udC1zaXplOiAyMHB4OwogICAgICAgIGZvbnQtd2VpZ2h0OiA0MDA7CiAgICAgICAgbGluZS1oZWlnaHQ6IDE7CiAgICAgICAgcG9pbnRlci1ldmVudHM6IG5vbmU7CiAgICAgICAgQGFwcGx5IC0tbGF5b3V0LWZsZXg7CiAgICAgIH0KCiAgICAgIC50b29sYmFyLXRvb2xzID4gOjpzbG90dGVkKC50aXRsZSkgewogICAgICAgIG1hcmdpbi1sZWZ0OiA1NnB4OwogICAgICB9CgogICAgICAudG9vbGJhci10b29scyA+IDo6c2xvdHRlZChwYXBlci1pY29uLWJ1dHRvbiArIC50aXRsZSkgewogICAgICAgIG1hcmdpbi1sZWZ0OiAwOwogICAgICB9CgogICAgICAvKioKICAgICAgICogVGhlIC0tcGFwZXItdG9vbGJhci10aXRsZSBtaXhpbiBpcyBhcHBsaWVkIGhlcmUgaW5zdGVhZCBvZiBhYm92ZSB0bwogICAgICAgKiBmaXggdGhlIGlzc3VlIHdpdGggbWFyZ2luLWxlZnQgYmVpbmcgaWdub3JlZCBkdWUgdG8gY3NzIG9yZGVyaW5nLgogICAgICAgKi8KICAgICAgLnRvb2xiYXItdG9vbHMgPiA6OnNsb3R0ZWQoLnRpdGxlKSB7CiAgICAgICAgQGFwcGx5IC0tcGFwZXItdG9vbGJhci10aXRsZTsKICAgICAgfQoKICAgICAgLnRvb2xiYXItdG9vbHMgPiA6OnNsb3R0ZWQocGFwZXItaWNvbi1idXR0b25baWNvbj1tZW51XSkgewogICAgICAgIG1hcmdpbi1yaWdodDogMjRweDsKICAgICAgfQoKICAgICAgLnRvb2xiYXItdG9vbHMgPiA6OnNsb3R0ZWQoLmZpdCkgewogICAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTsKICAgICAgICB0b3A6IGF1dG87CiAgICAgICAgcmlnaHQ6IDA7CiAgICAgICAgYm90dG9tOiAwOwogICAgICAg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T4KCiAgICAgIAogICAgICA8ZGl2IGNsYXNzPSJjb2x1bW5zLWNvbnRhaW5lciI+CiAgICAgICAgCiAgICAgICAgPHRlbXBsYXRlIGlzPSJkb20tcmVwZWF0IiBpdGVtcz0ie3tvcHRpb25zLmNvbHVtbnN9fSIgYXM9ImNvbHVtbiI+CiAgICAgICAgICA8dGVtcGxhdGUgaXM9ImRvbS1pZiIgaWY9IltbX2lzTnVtZXJpY0NvbHVtbihjb2x1bW4uaW5kZXgpXV0iPgogICAgICAgICAgICA8ZGl2IGNsYXNzPSJjb2x1bW4iPgogICAgICAgICAgICAgIDxkaXYgY2xhc3M9ImNvbHVtbi10aXRsZSI+CiAgICAgICAgICAgICAgICBbW2NvbHVtbi5uYW1lXV0KICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICA8ZGl2PgogICAgICAgICAgICAgICAgPHBhcGVyLXJhZGlvLWdyb3VwIGNsYXNzPSJzY2FsZS1yYWRpby1ncm91cCIgc2VsZWN0ZWQ9Int7Y29sdW1uLnNjYWxlfX0iPgogICAgICAgICAgICAgICAgICA8cGFwZXItcmFkaW8tYnV0dG9uIG5hbWU9IkxJTkVBUiI+CiAgICAgICAgICAgICAgICAgICAgTGluZWFyCiAgICAgICAgICAgICAgICAgIDwvcGFwZXItcmFkaW8tYnV0dG9uPgogICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgPHBhcGVyLXJhZGlvLWJ1dHRvbiBpZD0ibG9nU2NhbGVCdXR0b25fW1tjb2x1bW4ubmFtZV1dIiBuYW1lPSJMT0ciIGRpc2FibGVkPSJbWyFfYWxsb3dMb2dTY2FsZShjb2x1bW4sIHNlc3Npb25Hcm91cHMuKildXSI+CiAgICAgICAgICAgICAgICAgICAgTG9nYXJpdGhtaWMKICAgICAgICAgICAgICAgICAgPC9wYXBlci1yYWRpby1idXR0b24+CiAgICAgICAgICAgICAgICAgIDxwYXBlci1yYWRpby1idXR0b24gbmFtZT0iUVVBTlRJTEUiPgogICAgICAgICAgICAgICAgICAgIFF1YW50aWxlCiAgICAgICAgICAgICAgICAgIDwvcGFwZXItcmFkaW8tYnV0dG9uPgogICAgICAgICAgICAgICAgPC9wYXBlci1yYWRpby1ncm91cD4KICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICA8L3RlbXBsYXRlPgogICAgICAgIDwvdGVtcGxhdGU+CiAgICAgIDwvZGl2PgogICAgPC9kaXY+CgogICAgPHN0eWxlPgogICAgICA6aG9zdCB7CiAgICAgICAgZGlzcGxheTogYmxvY2s7CiAgICAgIH0KICAgICAgLmNvbnRyb2wtcGFuZWwgewogICAgICAgIG92ZXJmbG93OiBhdXRvOwogICAgICB9CiAgICAgIC5jb2x1bW4gewogICAgICAgIGZsZXgtZ3JvdzogMTsKICAgICAgICBmbGV4LXNocmluazogMTsKICAgICAgICBtYXJnaW4tcmlnaHQ6IDVweDsKICAgICAgICBib3JkZXI6IHNvbGlkIDFweCBkYXJrZ3JheTsKICAgICAgICBwYWRkaW5nOiAzcHg7CiAgICAgIH0KICAgICAgLmNvbHVtbi10aXRsZSB7CiAgICAgICAgLyogRml0IGV2ZXJ5IHRpdGxlIGluIG9uZSBsaW5lIHNvIHRoZSByYWRpbyBib3hlcyBhbGlnbiB2ZXJ0aWNhbGx5LiAqLwogICAgICAgIHdoaXRlLXNwYWNlOiBub3dyYXA7CiAgICAgICAgdGV4dC1kZWNvcmF0aW9uOiB1bmRlcmxpbmU7CiAgICAgIH0KICAgICAgLmNvbHVtbnMtY29udGFpbmVyIHsKICAgICAgICBkaXNwbGF5OiBmbGV4OwogICAgICAgIGZsZXgtZGlyZWN0aW9uOiByb3c7CiAgICAgIH0KICAgICAgLnNjYWxlLXJhZGlvLWdyb3VwIHBhcGVyLXJhZGlvLWJ1dHRvbiB7CiAgICAgICAgcGFkZGluZzogMnB4OwogICAgICAgIGRpc3BsYXk6IGJsb2NrOwogICAgICB9CiAgICAgIHBhcGVyLWxpc3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GF0ZSgzNjBkZWcpOwogICAgICAgICAgdHJhbnNmb3JtOiByb3RhdGUoMzYwZGVnKTsKICAgICAgICB9CiAgICAgIH0KCiAgICAgICNzcGlubmVyIHsKICAgICAgICBib3JkZXI6IDJweCBzb2xpZCB2YXIoLS1wcmltYXJ5LWNvbG9yLCAjMDNBOUY0KTsKICAgICAgICBib3JkZXItcmFkaXVzOiA1MCU7CiAgICAgICAgYm9yZGVyLXJpZ2h0LWNvbG9yOiB0cmFuc3BhcmVudDsKICAgICAgICBib3JkZXItdG9wLWNvbG9yOiB0cmFuc3BhcmVudDsKICAgICAgICBjb250ZW50OiAiIjsKICAgICAgICBoZWlnaHQ6IDE2cHg7CiAgICAgICAgbGVmdDogNTAlOwogICAgICAgIG1hcmdpbi1sZWZ0OiAtOHB4OwogICAgICAgIG1hcmdpbi10b3A6IC04cHg7CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgIHRvcDogNTAlOwogICAgICAgIHdpZHRoOiAxNnB4OwogICAgICAgIHBvaW50ZXItZXZlbnRzOiBub25lOwogICAgICAgIG9wYWNpdHk6IDA7CiAgICAgICAgQGFwcGx5KC0tdmFhZGluLWdyaWQtbG9hZGluZy1zcGlubmVyKTsKICAgICAgfQoKICAgICAgOmhvc3QoW2xvYWRpbmddKSAjc3Bpbm5lciB7CiAgICAgICAgb3BhY2l0eTogMTsKICAgICAgICAtd2Via2l0LWFuaW1hdGlvbjogdmFhZGluLWdyaWQtc3Bpbi0zNjAgNDAwbXMgbGluZWFyIGluZmluaXRlOwogICAgICAgIGFuaW1hdGlvbjogdmFhZGluLWdyaWQtc3Bpbi0zNjAgNDAwbXMgbGluZWFyIGluZmluaXRlOwogICAgICB9CgogICAgICA6aG9zdChbbG9hZGluZ10pICNpdGVtcyB7CiAgICAgICAgb3BhY2l0eTogMC41OwogICAgICB9CgogICAgPC9zdHlsZT4KICA8L3RlbXBsYXRlPgo8L2RvbS1tb2R1bGU+CgoKCgoKCjxkb20tbW9kd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jZWxsW3Jlb3JkZXItc3RhdHVzPSJkcmFnZ2luZyJdIDo6c2xvdHRlZCh2YWFkaW4tZ3JpZC1jZWxsLWNvbnRlbnQpIHsKICAgICAgICBvcGFjaXR5OiAwLjk1OwogICAgICB9CiAgICA8L3N0eWxlPgogIDwvdGVtcGxhdGU+CjwvZG9tLW1vZHVsZT4KCgoKCgoKCgoKPGRvbS1tb2R1bGUgaWQ9InZhYWRpbi1ncmlkLXRhYmxlLXN0eWxlcyI+CiAgPHRlbXBsYXRlPgogICAgPHN0eWxlPgoKICAgICAgQGtleWZyYW1lcyBhcHBlYXIgewogICAgICAgIHRvIHsKICAgICAgICAgIG9wYWNpdHk6IDE7CiAgICAgICAgfQogICAgICB9CgogICAgICB2YWFkaW4tZ3JpZC10YWJsZSB7CiAgICAgICAgZGlzcGxheTogYmxvY2s7CiAgICAgICAgcG9zaXRpb246IHJlbGF0aXZlOwogICAgICAgIGFuaW1hdGlvbjogMW1zIGFwcGVhcjsKICAgICAgfQoKICAgICAgQG1lZGlhIG9ubHkgc2NyZWVuIGFuZCAoLXdlYmtpdC1tYXgtZGV2aWNlLXBpeGVsLXJhdGlvOiAxKSB7CiAgICAgICAgOmhvc3QgewogICAgICAgICAgd2lsbC1jaGFuZ2U6IHRyYW5zZm9ybTsKICAgICAgICB9CiAgICAgIH0KCiAgICAgICNpdGVtcyB7CiAgICAgICAgcG9zaXRpb246IHJlbGF0aXZlOwogICAgICB9CgogICAgICAjaXRlbXMgewogICAgICAgIGJvcmRlci10b3A6IDAgc29saWQgdHJhbnNwYXJlbnQ7CiAgICAgICAgYm9yZGVyLWJvdHRvbTogMCBzb2xpZCB0cmFuc3BhcmVudDsKICAgICAgfQoKICAgICAgI2l0ZW1zID4gLnZhYWRpbi1ncmlkLXJvdyB7CiAgICAgICAgYm94LXNpemluZzogYm9yZGVyLWJveDsKICAgICAgICBtYXJnaW46IDA7CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICB9CgogICAgICB2YW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ZGluLWdyaWQtY29sdW1uLXJlc2l6ZS1oYW5kbGU6OmJlZm9yZSB7CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgIGNvbnRlbnQ6ICIiOwogICAgICAgIGhlaWdodDogMTAwJTsKICAgICAgICB3aWR0aDogMzVweDsKICAgICAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVgoLTUwJSk7CiAgICAgIH0KCiAgICAgIFtsYXN0Y29sdW1uXSAudmFhZGluLWdyaWQtY29sdW1uLXJlc2l6ZS1oYW5kbGU6OmJlZm9yZSwKICAgICAgW2xhc3QtZnJvemVuXSAudmFhZGluLWdyaWQtY29sdW1uLXJlc2l6ZS1oYW5kbGU6OmJlZm9yZSB7CiAgICAgICAgd2lkdGg6IDE4cHg7CiAgICAgICAgdHJhbnNmb3JtOiB0cmFuc2xhdGVYKC0xMDAlKTsKICAgICAgfQoKICAgICAgdmFhZGluLWdyaWQtdGFibGVbY29sdW1uLXJlb3JkZXJpbmctYWxsb3dlZF0gI2hlYWRlciwKICAgICAgdmFhZGluLWdyaWQtdGFibGVbY29sdW1uLXJlc2l6aW5nXSB7CiAgICAgICAgLW1zLXVzZXItc2VsZWN0OiBub25lOwogICAgICAgIC1tb3otdXNlci1zZWxlY3Q6IG5vbmU7CiAgICAgICAgLXdlYmtpdC11c2VyLXNlbGVjdDogbm9uZTsKICAgICAgICB1c2VyLXNlbGVjdDogbm9uZTsKICAgICAgfQoKICAgICAgdmFhZGluLWdyaWQtdGFibGVbY29sdW1uLXJlc2l6aW5nXSB7CiAgICAgICAgY3Vyc29yOiBjb2wtcmVzaXplOwogICAgICB9CgogICAgICAudmFhZGluLWdyaWQtcm93Om5vdChbaGlkZGVuXSkgewogICAgICAgIGRpc3BsYXk6IGZsZXg7CiAgICAgICAgd2lkdGg6IDEwMCU7CiAgICAgIH0KCiAgICAgIFtmcm96ZW5dIHsKICAgICAgICB6LWluZGV4OiAyOwogICAgICB9CgogICAgICBbaGlkZGVuXSB7CiAgICAgICAgZGlzcGxheTogbm9uZTsKICAgICAgfQoKICAgICAgdmFhZGluLWdyaWQtdGFibGVbbm8tY29udGVudC1wb2ludGVyLWV2ZW50c10gLnZhYWRpbi1ncmlkLWNlbGwgOjpzbG90dGVkKHZhYWRpbi1ncmlkLWNlbGwtY29udGVudCkgewogICAgICAgIHBvaW50ZXItZXZlbnRzOiBub25lOwogICAgICB9CiAgICA8L3N0eWxlPgogIDwvdGVtcGxhdGU+CjwvZG9tLW1vZHVsZT4KCjxkb20tbW9kdWxlIGlkPSJ2YWFkaW4tZ3JpZC10YWJsZS10YWJsZS1zdHlsZXMiPgogIDx0ZW1wbGF0ZT4KICAgIDxzdHlsZT4KICAgICAgOmhvc3QoW2lvc11bY29sdW1uLXJlc2l6aW5nXSkgI291dGVyc2Nyb2xsZXIgewogICAgICAgIG92ZXJmbG93OiBoaWRkZW47CiAgICAgIH0KCiAgICAgICNmaXhlZHNpemVyLAogICAgICAjb3V0ZXJzaXplciB7CiAgICAgICAgYm9yZGVyLXRvcDogMCBzb2xpZCB0cmFuc3BhcmVudDsKICAgICAgICBib3JkZXItYm90dG9tOiAwIHNvbGlkIHRyYW5zcGFyZW50OwogICAgICB9CgogICAgICAjdGFibGUgewogICAgICAgIGhlaWdodDogMTAwJTsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgICBkaXNwbGF5OiBibG9jazsKICAgICAgICBvdmVyZmxvdzogYXV0bzsKICAgICAgICBib3gtc2l6aW5nOiBib3JkZXItYm94OwogICAgICB9CgogICAgICAjdGFibGVbb3ZlcmZsb3ctaGlkZGVuXSwKICAgICAgI291dGVyc2Nyb2xsZXJbb3ZlcmZsb3ctaGlkZGVuXSB7CiAgICAgICAgb3ZlcmZsb3c6IGhpZGRlbjsKICAgICAgfQoKICAgICAgdmFhZGluLWdyaWQtc2l6ZXIgewogICAgICAgIHBvc2l0aW9uOiByZWxhdGl2ZTsKICAgICAgICB3aWR0aDogMTAwJTsKICAgICAgfQoKICAgICAgI3N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mZpZ3VyYXRpb24udmlzaWJsZVNjaGVtYV1dIj4KICAgICAgICAgICAgPC90Zi1ocGFyYW1zLXNlc3Npb24tZ3JvdXAtZGV0YWlscz4KICAgICAgICAgIDwvdmFhZGluLXNwbGl0LWxheW91dD4KICAgICAgICA8L3ZhYWRpbi1zcGxpdC1sYXlvdXQ+CiAgICAgIDwvdmFhZGluLXNwbGl0LWxheW91dD4KICAgIDwvZGl2PgoKICAgIDxzdHlsZT4KICAgICAgLnBhbmUgewogICAgICAgIGRpc3BsYXk6IGZsZXg7CiAgICAgICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjsKICAgICAgICBoZWlnaHQ6IDEwMCU7CiAgICAgIH0KICAgICAgLnNlY3Rpb24gewogICAgICAgIG1hcmdpbjogMTBweDsKICAgICAgfQogICAgICAjY29udHJvbHMgewogICAgICAgIGZsZXgtZ3JvdzogMDsKICAgICAgICBmbGV4LXNocmluazogMDsKICAgICAgICBmbGV4LWJhc2lzOiBhdXRvOwogICAgICAgIGhlaWdodDogYXV0bzsKICAgICAgICBvdmVyZmxvdy15OiBhdXRvOwogICAgICAgIG1heC1oZWlnaHQ6IGZpdC1jb250ZW50OwogICAgICB9CiAgICAgICNwbG90IHsKICAgICAgICBmbGV4LWdyb3c6IDE7CiAgICAgICAgZmxleC1zaHJpbms6IDE7CiAgICAgICAgZmxleC1iYXNpczogYXV0bzsKICAgICAgICBoZWlnaHQ6IDEwMCU7CiAgICAgICAgb3ZlcmZsb3cteTogYXV0bzsKICAgICAgfQogICAgICAjdmFsdWVzIHsKICAgICAgICBmbGV4LWdyb3c6IDA7CiAgICAgICAgZmxleC1zaHJpbms6IDA7CiAgICAgICAgZmxleC1iYXNpczogYXV0bzsKICAgICAgICBoZWlnaHQ6IDk1cHg7CiAgICAgICAgb3ZlcmZsb3cteTogYXV0bzsKICAgICAgICBtYXgtaGVpZ2h0OiBmaXQtY29udGVudDsKICAgICAgfQogICAgICAjZGV0YWlscyB7CiAgICAgICAgZmxleC1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pc3BsYXk6IGZsZXg7CiAgICAgICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjsKICAgICAgICBoZWlnaHQ6IDEwMCU7CiAgICAgIH0KICAgICAgLnNlY3Rpb24gewogICAgICAgIG1hcmdpbjogMTBweDsKICAgICAgfQogICAgICAjY29udHJvbHMgewogICAgICAgIGZsZXgtZ3JvdzogMDsKICAgICAgICBmbGV4LXNocmluazogMDsKICAgICAgICBmbGV4LWJhc2lzOiBhdXRvOwogICAgICAgIGhlaWdodDogYXV0bzsKICAgICAgICBvdmVyZmxvdy15OiBhdXRvOwogICAgICAgIG1heC1oZWlnaHQ6IGZpdC1jb250ZW50OwogICAgICB9CiAgICAgICNwbG90IHsKICAgICAgICBmbGV4LWdyb3c6IDE7CiAgICAgICAgZmxleC1zaHJpbms6IDE7CiAgICAgICAgZmxleC1iYXNpczogYXV0bzsKICAgICAgICBoZWlnaHQ6IGF1dG87CiAgICAgICAgb3ZlcmZsb3cteTogYXV0bzsKICAgICAgICBtYXgtaGVpZ2h0OiBmaXQtY29udGVudDsKICAgICAgfQogICAgICAjdmFsdWVzIHsKICAgICAgICBmbGV4LWdyb3c6IDA7CiAgICAgICAgZmxleC1zaHJpbms6IDA7CiAgICAgICAgZmxleC1iYXNpczogYXV0bzsKICAgICAgICBoZWlnaHQ6IDk1cHg7CiAgICAgICAgb3ZlcmZsb3cteTogYXV0bzsKICAgICAgICBtYXgtaGVpZ2h0OiBmaXQtY29udGVudDsKICAgICAgfQogICAgICAjZGV0YWlscyB7CiAgICAgICAgZmxleC1ncm93OiAwOwogICAgICAgIGZsZXgtc2hyaW5rOiAxOwogICAgICAgIGZsZXgtYmFzaXM6IGF1dG87CiAgICAgICAgaGVpZ2h0OiBhdXRvOwogICAgICAgIG92ZXJmbG93LXk6IGF1dG87CiAgICAgICAgbWF4LWhlaWdodDogZml0LWNvbnRlbnQ7CiAgICAgIH0KICAgICAgdmFhZGluLXNwbGl0LWxheW91dCB7CiAgICAgICAgaGVpZ2h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tLXRiLW9yYW5nZS1zdHJvbmcpCiAgICAgICAgKTsKICAgICAgfQogICAgICAudGFiIHsKICAgICAgICBoZWlnaHQ6IDEwMCU7CiAgICAgIH0KICAgICAgcGFwZXItdGFicyB7CiAgICAgICAgZmxleC1ncm93OiAxOwogICAgICAgIHdpZHRoOiAxMDAlOwogICAgICAgIGhlaWdodDogMTAwJTsKICAgICAgICAtLXBhcGVyLXRhYnMtc2VsZWN0aW9uLWJhci1jb2xvcjogd2hpdGU7CiAgICAgICAgLS1wYXBlci10YWJzLWNvbnRlbnQ6IHsKICAgICAgICAgIC13ZWJraXQtZm9udC1zbW9vdGhpbmc6IGFudGlhbGlhc2VkOwogICAgICAgIH0KICAgICAgfQogICAgICB0Zi1ocGFyYW1zLXRhYmxlLXZpZXcgewogICAgICAgIHdpZHRoOiAxMDAlOwogICAgICAgIGhlaWdodDogMTAwJTsKICAgICAgfQogICAgICAuaGVscC1hbmQtZmVlZGJhY2sgewogICAgICAgIGRpc3BsYXk6IGlubGluZS1mbGV4OyAvKiBFbnN1cmUgdGhhdCBpY29ucyBzdGF5IGFsaWduZWQgKi8KICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGZsZXgtZW5kOwogICAgICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7CiAgICAgICAgdGV4dC1hbGlnbjogcmlnaHQ7CiAgICAgICAgY29sb3I6IHdoaXRlOwogICAgICB9CiAgICAgICNidWctcmVwb3J0IHsKICAgICAgICBib3JkZXI6IHNvbGlkIGJsYWNrOwogICAgICAgIGJhY2tncm91bmQ6IHJlZDsKICAgICAgICB3aGl0ZS1zcGFjZTogbm9ybWFsOwogICAgICAgIHdvcmQtYnJlYWs6IGJyZWFrLXdvcmRzOwogICAgICAgIGZvbnQtc2l6ZTogMTJweDsKICAgICAgICBtYXgtd2lkdGg6IDE1MHB4OwogICAgICAgIHRleHQtYWxpZ246IGxlZnQ7CiAgICAgIH0KICAgICAgLmhlbHAtYW5kLWZlZWRiYWNrIG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ZGFzaGJvYXJkIj4KICA8dGVtcGxhdGU+CiAgICA8dGYtZGFzaGJvYXJkLWxheW91dD4KICAgICAgPGRpdiBzbG90PSJzaWRlYmFyIiBjbGFzcz0iYWxsLWNvbnRyb2xzIj4KICAgICAgICA8ZGl2IGNsYXNzPSJzaWRlYmFyLXNlY3Rpb24gdmlldy1jb250cm9sIj4KICAgICAgICAgIDxoMyBjbGFzcz0idGl0bGUiPlBvaW50IG9mIHZpZXc8L2gzPgogICAgICAgICAgPGRpdj4KICAgICAgICAgICAgPHBhcGVyLXJhZGlvLWdyb3VwIGlkPSJ2aWV3LXJhZGlvLWdyb3VwIiBzZWxlY3RlZD0ie3tfc2VsZWN0ZWRWaWV3fX0iPgogICAgICAgICAgICAgIDxwYXBlci1yYWRpby1idXR0b24gaWQ9ImFsbC1yYWRpby1idXR0b24iIG5hbWU9ImFsbCI+CiAgICAgICAgICAgICAgICBEaXNwbGF5IGFsbCBwb2ludHMKICAgICAgICAgICAgICA8L3BhcGVyLXJhZGlvLWJ1dHRvbj4KICAgICAgICAgICAgICA8cGFwZXItdG9vbHRpcCBhbmltYXRpb24tZGVsYXk9IjAiIGZvcj0iYWxsLXJhZGlvLWJ1dHRvbiIgcG9zaXRpb249InJpZ2h0IiBvZmZzZXQ9IjAiPgogICAgICAgICAgICAgICAgWm9vbSBhbmQgY2VudGVyIGNhbWVyYSB0byBkaXNwbGF5IGFsbCBwb2ludHMgYXQgb25jZS4gTm90ZSwgdGhhdAogICAgICAgICAgICAgICAgc29tZSBwb2ludHMgY291bGQgYmUgdG9vIGZhciAoaS5lLiB0b28gc21hbGwpIHRvIGJlIHZpc2libGUuCiAgICAgICAgICAgICAgPC9wYXBlci10b29sdGlwPgogICAgICAgICAgICAgIDxwYXBlci1yYWRpby1idXR0b24gaWQ9InVzZXItcmFkaW8tYnV0dG9uIiBuYW1lPSJ1c2VyIj4KICAgICAgICAgICAgICAgIEN1cnJlbnQgdmlldwogICAgICAgICAgICAgIDwvcGFwZXItc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W1tfZGF0YU5vdEZvdW5kXV0iPgogICAgICAgICAgPGRpdiBjbGFzcz0ibm8tZGF0YS13YXJuaW5nIj4KICAgICAgICAgICAgPGgzPk5vIHBvaW50IGNsb3VkIGRhdGEgd2FzIGZvdW5kLjwvaDM+CiAgICAgICAgICAgIDxwPlByb2JhYmxlIGNhdXNlczoKICAgICAgICAgICAgPHVsPgogICAgICAgICAgICAgIDxsaT4KICAgICAgICAgICAgICAgIFlvdSBoYXZlbuKAmXQgd3JpdHRlbiBhbnkgcG9pbnQgY2xvdWQgZGF0YSB0byB5b3VyIGV2ZW50IGZpbGVzLgogICAgICAgICAgICAgIDwvbGk+CiAgICAgICAgICAgICAgPGxpPlRlbnNvckJvYXJkIGNhbuKAmXQgZmluZCB5b3VyIGV2ZW50IGZpbGVzLjwvbGk+CiAgICAgICAgICAgIDwvdWw+CgogICAgICAgICAgICA8cD4KICAgICAgICAgICAgICBJZiB5b3XigJlyZSBuZXcgdG8gdXNpbmcgVGVuc29yQm9hcmQsIGFuZCB3YW50IHRvIGZpbmQgb3V0IGhvdyB0bwogICAgICAgICAgICAgIGFkZCBkYXRhIGFuZCBzZXQgdXAgeW91ciBldmVudCBmaWxlcywgY2hlY2sgb3V0IHRoZQogICAgICAgICAgICAgIDxhIGhyZWY9Imh0dHBzOi8vZ2l0aHViLmNvbS90ZW5zb3JmbG93L3RlbnNvcmJvYXJkL2Jsb2IvbWFzdGVyL1JFQURNRS5tZCI+UkVBRE1FPC9hPgogICAgICAgICAgICAgIGFuZCBwZXJoYXBzIHRoZQogICAgICAgICAgICAgIDxhIGhyZWY9Imh0dHBzOi8vd3d3LnRlbnNvcmZsb3cub3JnL2dldF9zdGFydGVkL3N1bW1hcmllc19hbmRfdGVuc29yYm9hcmQiPlRlbnNvckJvYXJkIHR1dG9yaWFsPC9hPi4KICAgICAgICAgICAgCgogICAgICAgICAgICA8cD4KICAgICAgICAgICAgICBJZiB5b3UgdGhpbmsgVGVuc29yQm9hcmQgaXMgY29uZ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lY3RvciB7CiAgICAgICAgZGlzcGxheTogZmxleDsKICAgICAgfQoKICAgICAgLnZpZXctY29udHJvbCB7CiAgICAgICAgZGlzcGxheTogYmxvY2sgIWltcG9ydGFudDsKICAgICAgfQoKICAgICAgLnZpZXctY29udHJvbCBoMy50aXRsZSB7CiAgICAgICAgcGFkZGluZy10b3A6IDE2cHg7CiAgICAgICAgcGFkZGluZy1ib3R0b206IDE2cHg7CiAgICAgIH0KCiAgICAgIC5hbGxjb250cm9scyAudmlldy1jb250cm9sIHBhcGVyLXJhZGlvLWdyb3VwIHsKICAgICAgICBtYXJnaW4tdG9wOiA1cHg7CiAgICAgIH0KICAgICAgLyogTGF5b3V0IG11c3QgYmUgaG9yaXpvbnRhbCwgaS5lLiBpdGVtcyBhcnJhbmdlZCBpbiBhIHJvdy4gSWYgaXRlbXMgY2Fubm90IGZpdCBpbiBhIHJvdywKICAgICAgICogdGhleSBzaG91bGQgYmUgbW92ZWQgdG8gbmV4dCBsaW5lLiBBbGwgaXRlbXMgbXVzdCBiZSBzcXVhcmUgYXQgYWxsIHRpbWVzLiBNaW5pbXVtIHNpemUgb2YKICAgICAgICogdGhlIGl0ZW0gaXMgNDgwcHguIFRoaXMgbWVhbnMgdGhhdCBtYXhpbXVtIHNpemUgb2YgdGhlIGl0ZW0gbXVzdCBiZSA0ODBweCArIDQ3OXB4ID0gOTU5cHguCiAgICAgICAqICovCiAgICAgIC5ob3Jpem9udGFsIHsKICAgICAgICBkaXNwbGF5OiBmbGV4OwogICAgICAgIGZsZXgtZGlyZWN0aW9uOiByb3c7CiAgICAgICAgZmxleC13cmFwOiB3cmFwOwogICAgICB9CiAgICAgIHRmLW1lc2gtbG9hZGVyIHsKICAgICAgICB3aWR0aDogNDgwcHg7CiAgICAgICAgZmxleC1iYXNpczogNDgwcHg7CiAgICAgICAgZmxleC1ncm93OiAxOwogICAgICAgIGRpc3BsYXk6IGJsb2NrOwogICAgICB9CiAgICA8L3N0eWxlPgogIDwvdGVtcGxhd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zdGVyL1JFQURNRS5tZCIgcmVsPSJub29wZW5lciBub3JlZmVycmVyIiB0YWJpbmRleD0iLTEiIHRhcmdldD0iX2JsYW5rIj4KICAgICAgICAgICAgICA8cGFwZXItaWNvbi1idXR0b24gaWNvbj0iaGVscC1vdXRsaW5lIj48L3BhcGVyLWljb24tYnV0dG9uPgogICAgICAgICAgICA8L2E+CiAgICAgICAgICA8L2Rpdj4KICAgICAgICA8L2Rpdj4KICAgICAgPC9wYXBlci10b29sYmFyPgoKICAgICAgPGRpdiBpZD0iY29udGVudC1wYW5lIiBjbGFzcz0iZml0Ij4KICAgICAgICA8c2xvdCBuYW1lPSJpbmplY3RlZC1vdmVydmlldyI+PC9zbG90PgogICAgICAgIDxkaXYgaWQ9ImNvbnRlbnQiPgogICAgICAgICAgPHRlbXBsYXRlIGlzPSJkb20taWYiIGlmPSJbW19hY3RpdmVEYXNoYm9hcmRzRmFpbGVkVG9Mb2FkXV0iPgogICAgICAgICAgICA8ZGl2IGNsYXNzPSJ3YXJuaW5nLW1lc3NhZ2UiPgogICAgICAgICAgICAgIDxoMz5GYWlsZWQgdG8gbG9hZCB0aGUgc2V0IG9mIGFjdGl2ZSBkYXNoYm9hcmRzLjwvaDM+CiAgICAgICAgICAgICAgPHA+CiAgICAgICAgICAgICAgICBUaGlzIGNhbiBvY2N1ciBpZiB0aGUgVGVuc29yQm9hcmQgYmFja2VuZCBpcyBubyBsb25nZXIgcnVubmluZy4KICAgICAgICAgICAgICAgIFBlcmhhcHMgdGhpcyBwYWdlIGlzIGNhY2hlZD8KICAgICAgICAgICAgICAKCiAgICAgICAgICAgICAgPHA+CiAgICAgICAgICAgICAgICBJZiB5b3UgdGhpbmsgdGhhdCB5b3XigJl2ZSBmaXhlZCB0aGUgcHJvYmxlbSwgY2xpY2sgdGhlIHJlbG9hZAogICAgICAgICAgICAgICAgYnV0dG9uIGluIHRoZSB0b3AtcmlnaHQuCiAgICAgICAgICAgICAgICA8dGVtcGxhdGUgaXM9ImRvbS1pZiIgaWY9IltbYXV0b1JlbG9hZEVuYWJsZWRdXSI+CiAgICAgICAgICAgICAgICAgIFdl4oCZbGwgdHJ5IHRvIHJlbG9hZCBldmVyeQogICAgICAgICAgICAgICAgICBbW2F1dG9SZWxvYWRJbnRlcnZhbFNlY3NdXSZuYnNwO3NlY29uZHMgYXMgd2VsbC4KICAgICAgICAgICAgICAgIDwvdGVtcGxhdGU+CiAgICAgICAgICAgICAgCgogICAgICAgICAgICAgIDxwPgogICAgICAgICAgICAgICAgPGk+TGFzdCByZWxvYWQ6IFtbX2xhc3RSZWxvYWRUaW1lXV08L2k+CiAgICAgICAgICAgICAgICA8dGVtcGxhdGUgaXM9ImRvbS1pZiIgaWY9IltbX2RhdGFMb2NhdGlvbl1dIj4KICAgICAgICAgICAgICAgICAgPC90ZW1wbGF0ZT48cD4KICAgICAgICAgICAgICAgICAgICA8aT5Mb2cgZGlyZWN0b3J5OgogICAgICAgICAgICAgICAgICAgICAgPHNwYW4gaWQ9ImRhdGFfbG9jYXRpb24iPltbX2RhdGFMb2NhdGlvbl1dPC9zcGFuPjwvaT4KICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICA8cD4KICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICA8L3RlbXBsYXRlPgogICAgICAgICAgPHRlbXBsYXRlIGlzPSJkb20taWYiIGlmPSJbW19zaG93Tm9EYXNoYm9hcmRzTWVzc2FnZV1dIj4KICAgICAgICAgICAgPGRpdiBjbGFzcz0id2FybmluZy1tZXNzYWdlIj4KICAgICAgICAgICAgICA8aDM+Tm8gZGFzaGJvYXJkcyBhcmUgYWN0aXZlIGZvciB0aGUgY3VycmVudCBkYXRhIHNldC48L2gzPgogICAgICAgICAgICAgIDxwPlByb2JhYmxlIGNhdXNlczoKICAgICAgICAgICAgICA8dWw+CiAgICAgICAgICAgICAgICA8bGk+WW91IGhhdmVu4oCZdCB3cml0dGVuIGFueSBkYXRhIHRvIHlvdXIgZ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uIGlzc3VlIG9uIEdpdEh1Yi4KICAgICAgICAgICAgICAKCiAgICAgICAgICAgICAgPHA+CiAgICAgICAgICAgICAgICA8aT5MYXN0IHJlbG9hZDogW1tfbGFzdFJlbG9hZFRpbWVdXTwvaT4KICAgICAgICAgICAgICAgIDx0ZW1wbGF0ZSBpcz0iZG9tLWlmIiBpZj0iW1tfZGF0YUxvY2F0aW9uXV0iPgogICAgICAgICAgICAgICAgICA8L3RlbXBsYXRlPjxwPgogICAgICAgICAgICAgICAgICAgIDxpPkRhdGEgbG9jYXRpb246CiAgICAgICAgICAgICAgICAgICAgICA8c3BhbiBpZD0iZGF0YV9sb2NhdGlvbiI+W1tfZGF0YUxvY2F0aW9uXV08L3NwYW4+PC9pPgogICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgIDxwPgogICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgIDwvdGVtcGxhdGU+CiAgICAgICAgICA8dGVtcGxhdGUgaXM9ImRvbS1pZiIgaWY9IltbX3Nob3dOb1N1Y2hEYXNoYm9hcmRNZXNzYWdlXV0iPgogICAgICAgICAgICA8ZGl2IGNsYXNzPSJ3YXJuaW5nLW1lc3NhZ2UiPgogICAgICAgICAgICAgIDxoMz4KICAgICAgICAgICAgICAgIFRoZXJl4oCZcyBubyBkYXNoYm9hcmQgYnkgdGhlIG5hbWUgb2YKICAgICAgICAgICAgICAgIOKAnDx0dD5bW19zZWxlY3RlZERhc2hib2FyZF1dPC90dD4u4oCdCiAgICAgICAgICAgICAgPC9oMz4KICAgICAgICAgICAgICA8dGVtcGxhdGUgaXM9ImRvbS1pZiIgaWY9IltbX2FjdGl2ZURhc2hib2FyZHNMb2FkZWRdXSI+CiAgICAgICAgICAgICAgICA8cD5Zb3UgY2FuIHNlbGVjdCBhIGRhc2hib2FyZCBmcm9tIHRoZSBsaXN0IGFib3ZlLgoKICAgICAgICAgICAgICA8cD4KICAgICAgICAgICAgICAgIDxpPkxhc3QgcmV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iAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogdmFyKC0tcGFwZXItZ3JleS0xMDApOwogICAgICB9CgogICAgICAjdG9vbGJhciB7CiAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogdmFyKAogICAgICAgICAgLS10Yi10b29sYmFyLWJhY2tncm91bmQtY29sb3IsCiAgICAgICAgICB2YXIoLS10Yi1vcmFuZ2Utc3Ryb25nKQogICAgICAgICk7CiAgICAgICAgLXdlYmtpdC1mb250LXNtb290aGluZzogYW50aWFsaWFzZWQ7CiAgICAgIH0KCiAgICAgIC50b29sYmFyLXRpdGxlIHsKICAgICAgICBmb250LXNpemU6IDIwcHg7CiAgICAgICAgbWFyZ2luLWxlZnQ6IDZweDsKICAgICAgICAvKiBJbmNyZWFzZSBjbGlja2FibGUgYXJlYSBmb3IgY2FzZSB3aGVyZSB0aXRsZSBpcyBhbiBhbmNob3IuICovCiAgICAgICAgcGFkZGluZzogNHB4OwogICAgICAgIHRleHQtcmVuZGVyaW5nOiBvcHRpbWl6ZUxlZ2liaWxpdHk7CiAgICAgICAgbGV0dGVyLXNwYWNpbmc6IC0wLjAyNWVtOwogICAgICAgIGZvbnQtd2VpZ2h0OiA1MDA7CiAgICAgICAgZGlzcGxheTogdmFyKC0tdGItdG9vbGJhci10aXRsZS1kaXNwbGF5LCBibG9jayk7CiAgICAgIH0KCiAgICAgIGEudG9vbGJhci10aXRsZSB7CiAgICAgICAgLyogT3ZlcnJpZGUgZGVmYXVsdCBhbmNob3IgY29sb3IuICovCiAgICAgICAgY29sb3I6IGluaGVyaXQ7CiAgICAgICAgLyogT3ZlcnJpZGUgZGVmYXVsdCBhbmNob3IgdGV4dC1kZWNvcmF0aW9uLiAqLwogICAgICAgIHRleHQtZGVjb3JhdGlvbjogbm9uZTsKICAgICAgfQoKICAgICAgLnRvb2xiYXItbWVzc2FnZSB7CiAgICAgICAgb3BhY2l0eTogMC43OwogICAgICAgIC13ZWJraXQtZm9udC1zbW9vdGhpbmc6IGFudGlhbGlhc2VkOwogICAgICAgIGZvbnQtc2l6ZTogMTRweDsKICAgICAgICBmb250LXdlaWdodDogNTAwOwogICAgICB9CgogICAgICBwYXBlci10YWJzIHsKICAgICAgICBmbGV4LWdyb3c6IDE7CiAgICAgICAgd2lkdGg6IDEwMCU7CiAgICAgICAgaGVpZ2h0OiAxMDAlOwogICAgICAgIC0tcGFwZXItdGFicy1zZWxlY3Rpb24tYmFyLWNvbG9yOiB3aGl0ZTsKICAgICAgICAtLXBhcGVyLXRhYnMtY29udGVudDogewogICAgICAgICAgLXdlYmtpdC1mb250LXNtb290aGluZzogYW50aWFsaWFzZWQ7CiAgICAgICAgICB0ZXh0LXRyYW5zZm9ybTogdXBwZXJjYXNlOwogICAgICAgIH0KICAgICAgfQoKICAgICAgcGFwZXItZHJvcGRvd24tbWVudSB7CiAgICAgICAgLS1wYXBlci1pbnB1dC1jb250YWluZXItY29sb3I6IHJnYmEoMjU1LCAyNTUsIDI1NSwgMC44KTsKICAgICAgICAtLXBhcGVyLWlucHV0LWNvbnRhaW5lci1mb2N1cy1jb2xvcjogd2hpdGU7CiAgICAgICAgLS1wYXBlci1pbnB1dC1jb250YWluZXItaW5wdXQtY29sb3I6IHdoaXRlOwogICAgICAgIC0tcGFwZXItZHJvcGRvd24tbWVudS1pY29uOiB7CiAgICAgICAgICBjb2xvcjogd2hpdGU7CiAgICAgICAgfQogICAgICAgIC0tcGFwZXItZHJvcGRvd24tbWVudS1pbnB1dDogewogICAgICAgICAgLXdlYmtpdC1mb250LXNtb290aGluZzogYW50aWFsaWFzZWQ7CiAgICAgICAgICBmb250LXNpemU6IDE0cHg7CiAgICAgICAgICBmb250LXdlaWdodDogNTAwOwogICAgICAgIH0KICAgICAgICAtLXBhcGVyLWlucHV0LWNvbnRhaW5lci1sYWJlbDogewogICAgICAgICAgLXdlYmtpdC1mb250LXNtb290aGluZzogYW50aWFsaWFzZWQ7CiAgICAgICAgICBmb250LXNpemU6IDE0cHg7CiAgICAgICAgICBmb250LXdlaWdodDogNTAwOwogICAgICAgIH0KICAgICAgfQoKICAgICAgcGFwZXItZHJvcGRvd24tbWVudSBwYXBlci1pdGVtIHsKICAgICAgICAtd2Via2l0LWZvbnQtc21vb3RoaW5nOiBhbnRpYWxpYXNlZDsKICAgICAgICBmb250LXNpemU6IDE0cHg7CiAgICAgICAgZm9udC13ZWlnaHQ6IDUwMDsKICAgICAgICB0ZXh0LXRyYW5zZm9ybTogdXBwZXJjYXNlOwogICAgICB9CgogICAgICAjaW5hY3RpdmUtZGFzaGJvYXJkcy1tZW51IHsKICAgICAgICAtLXBhcGVyLWxpc3Rib3gtYmFja2dyb3VuZC1jb2xvcjogdmFyKAogICAgICAgICAgLS10Yi10b29sYmFyLWJhY2tncm91bmQtY29sb3IsCiAgICAgICAgICB2YXIoLS10Yi1vcmFuZ2Utc3Ryb25nKQogICAgICAgICk7CiAgICAgICAgLS1wYXBlci1saXN0Ym94LWNvbG9yOiB3aGl0ZTsKICAgICAgfQoKICAgICAgLmdsb2JhbC1hY3Rpb25zIHsKICAgICAgICBkaXNwbGF5OiBpbmxpbmUtZmxleDsgLyogRW5zdXJlIHRoYXQgaWNvbnMgc3RheSBhbGlnbmVkICovCiAgICAgICAganVzdGlmeS1jb250ZW50OiBmbGV4LWVuZDsKICAgICAgICBhbGlnbi1pdGVtczogY2VudGVyOwogICAgICAgIHRleHQtYWxpZ246IHJpZ2h0OwogICAgICAgIGNvbG9yOiB3aGl0ZTsKICAgICAgfQoKICAgICAgLmdsb2JhbC1hY3Rpb25zIGEgewogICAgICAgIGNvbG9yOiB3aGl0ZTsKICAgICAgfQoKICAgICAgI3Rvb2xiYXItY29udGVudCB7CiAgICAgICAgd2lkdGg6IDEwMCU7CiAgICAgICAgaGVpZ2h0OiAxMDAlOwogICAgICAgIGRpc3BsYXk6IGZsZXg7CiAgICAgICAgZmxleC1kaXJlY3Rpb246IHJvdzsKICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47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HRoZSBtYXgKICAgICAgICAgICAgaGVpZ2h0IGhlcmUgdG8gMCB3aWxsIG5vdCBoaWRlIHRoZW0uICovCiAgICAgICAgdmlzaWJpbGl0eTogaGlkZGVuOwogICAgICB9CgogICAgICAuZGFzaGJvYXJkLWNvbnRhaW5lciBpZnJhbWUgewogICAgICAgIGJvcmRlcjogbm9uZTsKICAgICAgICBoZWlnaHQ6IDEwMCU7CiAgICAgICAgd2lkdGg6IDEwMCU7CiAgICAgIH0KCiAgICAgIC53YXJuaW5nLW1lc3NhZ2UgewogICAgICAgIG1heC13aWR0aDogNTQwcHg7CiAgICAgICAgbWFyZ2luOiA4MHB4IGF1dG8gMCBhdXRvOwogICAgICB9CgogICAgICBbZGlzYWJsZWRdIHsKICAgICAgICBvcGFjaXR5OiAwLjI7CiAgICAgICAgY29sb3I6IHdoaXRlOwogICAgICB9CgogICAgICAjcmVsb2FkLWJ1dHRvbi5yZWZyZXNoaW5nIHsKICAgICAgICBhbmltYXRpb246IHJvdGF0ZSAycyBsaW5lYXIgaW5maW5pdGU7CiAgICAgIH0KCiAgICAgIEBrZXlmcmFtZXMgcm90YXRlIHsKICAgICAgICAwJSB7CiAgICAgICAgICB0cmFuc2Zvcm06IHJvdGF0ZSgwZGVnKTsKICAgICAgICB9CiAgICAgICAgNTAlIHsKICAgICAgICAgIHRyYW5zZm9ybTogcm90YXRlKDE4MGRlZyk7CiAgICAgICAgfQogICAgICAgIDEwMCUgewogICAgICAgICAgdHJhbnNmb3JtOiByb3RhdGUoMzYwZGVnKTsKICAgICAgICB9CiAgICAgIH0KICAgIDwvc3R5bGU+CiAgPC90ZW1wbGF0ZT4KICAKICAKPC9kb20tbW9kdWxlPgoKCiAgPGJvZHk+CiAgICA8dGYtdGVuc29yYm9hcmQgdXNlLWhhc2ggYnJhbmQ9IlRlbnNvckJvYXJkIj48L3RmLXRlbnNvcmJvYXJkPgogIAoKPHNjcmlwdCBzcmM9ImluZGV4LmpzIj48L3NjcmlwdD4=", "ok": true, "headers": [["content-type", "text/html; charset=utf-8"]], "status": 200, "status_text": ""}, "https://localhost:6006/font-roboto/oMMgfZMQthOryQo9n22dcuvvDin1pK8aKteLpeZ5c0A.woff2": {"data": "d09GMgABAAAAACn8AA4AAAAAUjgAACmjAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGmQbmUAcg0oGYACGTBEMCu1810YLg14AATYCJAOHNgQgBYJ0ByAbL0RFB2LYOGCA7DduwB2DjQOQz3hJ9n+ZwI0hWB/YxYSYMBRSFENBsWqrAkWbJBHpUKamYBECLd7YUy2OVYvlKX1dMf05+T/7LtU4wMKUW3v6cz1MLF0FGyHJLEG01r/VMHufgpZJIoGKBHQMKsYkFpgU4tsDmtv9xsaIGoiNiIJRtJKSElLSIdGjQuiRIypl0JtBlKISJSqZZnH/Oq0ZWaYZyYoPCFpukb7+N+xuwk6iBRZMI8WdlLQH1F3R7l157zoCyXjA9AD36nWBrP07PZhwgBLSeMnLEQ4VqJsqlv8siGuabsED3LeKFnxrugO3hMah9NJJ/ipRkvNo0bWSH6xvN8TX2qedvrqte1s1/yDEW6dCUB4tkIxQEeoDTSYMiiaAuBEGJLK/dSEgoaIi0Ua4CGXj/7vX2aa3YewLW7L1Fw6EC+fgxB/7NWWpMKZaUyFMhaxEyArLmA7J/62Zdje5MjlgYyvcOTf7ZycwswkX9oD2CklKoSNIzN4VWFXVET5/gKgKaO9USZgKCaxcreurQxDS1KS6SqUxAJqz+B+OtbQOoul9mcsgjITAKKN32318dn4Bhdn5t38EFHq8pCEUmUMECIAIFw4RKRIiRgxEnDiIBEkQpSqgdDmAQKCAVcCaECAgAiDACvyk0ex3gJounDg3gOACJy4k2DnDicusvN3gBBrAILTCpecT3AAH9C0NYpDo+7rNUJuyf/BUQ/cM42KIV0v11FyNhkyiUDj0XDKjjuX1lEnr9K7FjMnEPpZVifqZhCWKr4SbqzTQwLYaKjSBrueqpWpPjRbN9WixjymuFFH/CwqFBhYDRux4XXDRJZfdwE+IMBGibhEnQYq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ccps8yPphAoIU0opigjziaqITS2h0IHAZOJg0ztFwK+wTcwrzSCwDrvIzxyBPmHfMMp0JDJH6JwCfgTFgBHAL+5BPz43dD42VNaMz8iDuhIZIjIvBGKEtHgB+QcNKFyZXG6iChNoVd1bfMfWhI0wE4A1wvQzAyX4bCzEmN3qWmgWUYfPyXYZ1S1F1muqjkufMQgMCRPQfeuAniJ9At5KbEXeAZLuxWVeHGxnWjrMG7WLQ1mFfOaLe47BD4atnWdUN2Z13y3lDgbc+HC6sgr7+IwIsjc7PHX98u5CYJ6wVv6hZ2bQUWvb15EHej0/q5rrPikXjbcGDnOhsJmr8hO7LRvBu4V/sNalTIU6RBh6Jrts38i4GTzfts3QMAAAA=", "ok": true, "headers": [["content-type", "font/woff2"]], "status": 200, "status_text": ""}, "https://localhost:6006/index.js": {"data": "dmFyIENMT1NVUkVfTk9fREVQUyA9IHRydWU7Ci8vIENvcHlyaWdodCAyMDA2IFRoZSBDbG9zdXJlIExpYnJhcnkgQXV0aG9ycy4gQWxsIFJpZ2h0cyBSZXNlcnZlZC4KLy8KLy8gTGljZW5zZWQgdW5kZXIgdGhlIEFwYWNoZSBMaWNlbnNlLCBWZXJzaW9uIDIuMCAodGhlICJMaWNlbnNlIik7Ci8vIHlvdSBtYXkgbm90IHVzZSB0aGlzIGZpbGUgZXhjZXB0IGluIGNvbXBsaWFuY2Ugd2l0aCB0aGUgTGljZW5zZS4KLy8gWW91IG1heSBvYnRhaW4gYSBjb3B5IG9mIHRoZSBMaWNlbnNlIGF0Ci8vCi8vICAgICAgaHR0cDovL3d3dy5hcGFjaGUub3JnL2xpY2Vuc2VzL0xJQ0VOU0UtMi4wCi8vCi8vIFVubGVzcyByZXF1aXJlZCBieSBhcHBsaWNhYmxlIGxhdyBvciBhZ3JlZWQgdG8gaW4gd3JpdGluZywgc29mdHdhcmUKLy8gZGlzdHJpYnV0ZWQgdW5kZXIgdGhlIExpY2Vuc2UgaXMgZGlzdHJpYnV0ZWQgb24gYW4gIkFT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HJvdG90eXBlLmxvYWREZXBzXyA9IGZ1bmN0aW9uKCkgewogICAgdmFyIGxvYWRlciA9IHRoaXM7CiAgICB2YXIgcGF1c2VkID0gdGhpcy5wYXVzZWRfOwoKICAgIHdoaWxlICh0aGlzLmRlcHNUb0xvYWRfLmxlbmd0aCAmJiAhcGF1c2VkKSB7CiAgICAgIChmdW5jdGlvbigpIHsKICAgICAgICB2YXIgbG9hZENhbGxEb25lID0gZmFsc2U7CiAgICAgICAgdmFyIGRlcCA9IGxvYWRlci5kZXBzVG9Mb2FkXy5zaGlmdCgpOwoKICAgICAgICB2YXIgbG9hZGVkID0gZmFsc2U7CiAgICAgICAgbG9hZGVyLmxvYWRpbmdfKGRlcCk7CgogICAgICAgIHZhciBjb250cm9sbGVyID0gewogICAgICAgICAgcGF1c2U6IGZ1bmN0aW9uKCkgewogICAgICAgICAgICBpZiAobG9hZENhbGxEb25lKSB7CiAgICAgICAgICAgICAgdGhyb3cgbmV3IEVycm9yKCdDYW5ub3QgY2FsbCBwYXVzZSBhZnRlciB0aGUgY2FsbCB0byBsb2FkLicpOwogICAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICAgIHBhdXNlZCA9IHRydWU7CiAgICAgICAgICAgIH0KICAgICAgICAgIH0sCiAgICAgICAgICByZXN1bWU6IGZ1bmN0aW9uKCkgewogICAgICAgICAgICBpZiAobG9hZENhbGxEb25lKSB7CiAgICAgICAgICAgICAgbG9hZGVyLnJlc3VtZV8oKTsKICAgICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgICAvLyBTb21lIGRlcCBjYWxsZWQgcGF1c2UgYW5kIHRoZW4gcmVzdW1lIGluIHRoZSBzYW1lIGxvYWQgY2FsbC4KICAgICAgICAgICAgICAvLyBKdXN0IGtlZXAgcnVubmluZyB0aGlzIHNhbWUgbG9vcC4KICAgICAgICAgICAgICBwYXVzZWQgPSBmYWxzZTsKICAgICAgICAgICAgfQogICAgICAgICAgfSwKICAgICAgICAgIGxvYWRlZDogZnVuY3Rpb24oKSB7CiAgICAgICAgICAgIGlmIChsb2FkZWQpIHsKICAgICAgICAgICAgICB0aHJvdyBuZXcgRXJyb3IoJ0RvdWJsZSBjYWxsIHRvIGxvYWRlZC4nKTsKICAgICAgICAgICAgfQoKICAgICAgICAgICAgbG9hZGVkID0gdHJ1ZTsKICAgICAgICAgICAgbG9hZGVyLmxvYWRlZF8oZGVwKTsKICAgICAgICAgIH0sCiAgICAgICAgICBwZW5kaW5nOiBmdW5jdGlvbigpIHsKICAgICAgICAgICAgLy8gRGVmZW5zaXZlIGNvcHkuCiAgICAgICAgICAgIHZhciBwZW5kaW5nID0gW107CiAgICAgICAgICAgIGZvciAodmFyIGkgPSAwOyBpIDwgbG9hZGVyLmxvYWRpbmdEZXBzXy5sZW5ndGg7IGkrKykgewogICAgICAgICAgICAgIHBlbmRpbmcucHVzaChsb2FkZXIubG9hZGluZ0RlcHNfW2ldKTsKICAgICAgICAgICAgfQogICAgICAgICAgICByZXR1cm4gcGVuZGluZzsKICAgICAgICAgIH0sCiAgICAgICAgICAvKioKICAgICAgICAgICAqIEBwYXJhbSB7Z29vZy5Nb2R1bGVUeXBlfSB0eXBlCiAgICAgICAgICAgKi8KICAgICAgICAgIHNldE1vZHVsZVN0YXRlOiBmdW5jdGlvbih0eXBlKSB7CiAgICAgICAgICAgIGdvb2cubW9kdWxlTG9hZGVyU3RhdGVfID0gewogICAgICAgICAgICAgIHR5cGU6IHR5cGUsCiAgICAgICAgICAgICAgbW9kdWxlTmFtZTogJycsCiAgICAgICAgICAgICAgZGVjbGFyZUxlZ2FjeU5hbWVzcGFjZTogZmFsc2UKICAgICAgICAgICAgfTsKICAgICAgICAgIH0sCiAgICAgICAgICAvKiogQHR5cGUge2Z1bmN0aW9uKHN0cmluZywgc3RyaW5nLCBzdHJpbmc9KX0gKi8KICAgICAgICAgIHJlZ2lzdGVyRXM2TW9kdWxlRXhwb3J0czogZnVuY3Rpb24oCiAgICAgICAgICAgICAgcGF0aCwgZXhwb3J0cywgb3B0X2Nsb3N1cmVOYW1lc3BhY2UpIHsKICAgICAgICAgICAgaWYgKG9wdF9jbG9zdXJlTmFtZXNwYWNlKSB7CiAgICAgICAgICAgICAgZ29vZy5sb2FkZWRNb2R1bGVzX1tvcHRfY2xvc3VyZU5hbWVzcGFjZV0gPSB7CiAgICAgICAgICAgICAgICBleHBvcnRzOiBleHBvcnRzLAogICAgICAgICAgICAgICAgdHlwZTogZ29vZy5Nb2R1bGVUeXBlLkVTNiwKICAgICAgICAgICAgICAgIG1vZHVsZUlkOiBvcHRfY2xvc3VyZU5hbWVzcGFjZSB8fCAnJwogICAgICAgICAgICAgIH07CiAgICAgICAgICAgIH0KICAgICAgICAgIH0sCiAgICAgICAgICAvKiogQHR5cGUge2Z1bmN0aW9uKHN0cmluZywgPyl9ICovCiAgICAgICAgICByZWdpc3Rlckdvb2dNb2R1bGVFeHBvcnRzOiBmdW5jdGlvbihtb2R1bGVJZCwgZXhwb3J0cykgewogICAgICAgICAgICBnb29nLmxvYWRlZE1vZHVsZXNfW21vZHVsZUlkXSA9IHsKICAgICAgICAgICAgICBleHBvcnRzOiBleHBvcnRzLAogICAgICAgICAgICAgIHR5cGU6IGdvb2cuTW9kdWxlVHlwZS5HT09HLAogICAgICAgICAgICAgIG1vZHVsZUlkOiBtb2R1bGVJZAogICAgICAgICAgICB9OwogICAgICAgICAgfSwKICAgICAgICAgIGNsZWFyTW9kdWxlU3RhdGU6IGZ1bmN0aW9uKCkgewogICAgICAgICAgICBnb29nLm1vZHVsZUxvYWRlclN0YXRlXyA9IG51bGw7CiAgICAgICAgICB9LAogICAgICAgICAgZGVmZXI6IGZ1bmN0aW9uKGNhbGxiYWNrKSB7CiAgICAgICAgICAgIGlmIChsb2FkQ2FsbERvbmUpIHsKICAgICAgICAgICAgICB0aHJvdyBuZXcgRXJyb3IoCiAgICAgICAgICAgICAgICAgICdDYW5ub3QgcmVnaXN0ZXIgd2l0aCBkZWZlciBhZnRlciB0aGUgY2FsbC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SVBUKSB7CiAgICAgIGZldGNoKCk7CiAgICAgIGlmICh0aGlzLmNvbnRlbnRzXyAmJgogICAgICAgICAgZ29vZy5nbG9iYWwuQ0xPU1VSRV9JTVBPUlRfU0NSSVBUKCcnLCB0aGlzLmNvbnRlbnRzXykpIHsKICAgICAgICB0aGlzLmNvbnRlbnRzXyA9IG51bGw7CiAgICAgICAgY29udHJvbGxlci5sb2FkZWQoKTsKICAgICAgfSBlbHNlIHsKICAgICAgICBjb250cm9sbGVyLnBhdXNlKCk7CiAgICAgIH0KICAgICAgcmV0dXJuOwogICAgfQoKCiAgICB2YXIgaXNFczYgPSB0aGlzLmxvYWRGbGFnc1snbW9kdWxlJ10gPT0gZ29vZy5Nb2R1bGVUeXBlLkVTNjsKCiAgICBpZiAoIXRoaXMubGF6eUZldGNoXykgewogICAgICBmZXRjaCgpOwogICAgfQoKICAgIGZ1bmN0aW9uIGxvYWQoKSB7CiAgICAgIGlmIChkZXAubGF6eUZldGNoXykgewogICAgICAgIGZldGNoKCk7CiAgICAgIH0KCiAgICAgIGlmICghZGVwLmNvbnRlbnRzXykgewogICAgICAgIC8vIGxvYWRGaWxlU3luY18gb3IgdHJhbnNmb3JtIGFyZSByZXNwb25zaWJsZS4gQXNzdW1lIHRoZXkgbG9nZ2VkIGFuCiAgICAgICAgLy8gZXJyb3IuCiAgICAgICAgcmV0dXJuOwogICAgICB9CgogICAgICBpZiAoaXNFczYpIHsKICAgICAgICBjb250cm9sbGVyLnNldE1vZHVsZVN0YXRlKGdvb2cuTW9kdWxlVHlwZS5FUzYpOwogICAgICB9CgogICAgICB2YXIgbmFtZXNwYWNlOwoKICAgICAgdHJ5IHsKICAgICAgICB2YXIgY29udGVudHMgPSBkZXAuY29udGVudHNfOwogICAgICAgIGRlcC5jb250ZW50c18gPSBudWxsOwogICAgICAgIGdvb2cuZ2xvYmFsRXZhbChjb250ZW50cyk7CiAgICAgICAgaWYgKGlzRXM2KSB7CiAgICAgICAgICBuYW1lc3BhY2UgP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dHlwZS50cmFuc2Zvcm0gPSBmdW5jdGlvbihjb250ZW50cykgewogICAgaWYgKHRoaXMubmVlZHNUcmFuc3BpbGVfKSB7CiAgICAgIGNvbnRlbnRzID0gdGhpcy50cmFuc3BpbGVyXy50cmFuc3BpbGUoY29udGVudHMsIHRoaXMuZ2V0UGF0aE5hbWUoKSk7CiAgICB9CgogICAgaWYgKCFnb29nLkxPQURfTU9EVUxFX1VTSU5HX0VWQUwgfHwgZ29vZy5nbG9iYWwuSlNPTiA9PT0gdW5kZWZpbmVkKSB7CiAgICAgIHJldHVybiAnJyArCiAgICAgICAgICAnZ29vZy5sb2FkTW9kdWxlKGZ1bmN0aW9uKGV4cG9ydHMpIHsnICsKICAgICAgICAgICcidXNlIHN0cmljdCI7JyArIGNvbnRlbnRzICsKICAgICAgICAgICdcbicgKyAgLy8gdGVybWluYXRlIGFueSB0cmFpbGluZyBzaW5nbGUgbGluZSBjb21tZW50LgogICAgICAgICAgJztyZXR1cm4gZXhwb3J0cycgKwogICAgICAgICAgJ30pOycgKwogICAgICAgICAgJ1xuLy8jIHNvdXJjZVVSTD0nICsgdGhpcy5wYXRoICsgJ1xuJzsKICAgIH0gZWxzZSB7CiAgICAgIHJldHVybiAnJyArCiAgICAgICAgICAnZ29vZy5sb2FkTW9kdWxlKCcgKwogICAgICAgICAgZ29vZy5nbG9iYWwuSlNPTi5zdHJpbmdpZnkoCiAgICAgICAgICAgICAgY29udGVudHMgKyAnXG4vLyMgc291cmNlVVJMPScgKyB0aGlzLnBhdGggKyAnXG4nKSArCiAgICAgICAgICAnKTsnOwogICAgfQogIH07CgoKICAvKioKICAgKiBXaGV0aGVyIHRoZSBicm93c2VyIGlzIElFOSBvciBlYXJsaWVyLCB3aGljaCBuZWVkcyBzcGVjaWFsIGhhbmRsaW5nCiAgICogZm9yIGRlZmVycmVkIG1vZHVsZXMuCiAgICogQGNvbnN0IEBwcml2YXRlIHtib29sZWFufQogICAqLwogIGdvb2cuRGVidWdMb2FkZXJfL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qIFBvbHltZXIuUGF0aC5yb290KCdmb28nKSAgICAgICAgIC8vICdmb28nCiAgICAgKiBgYGAKICAgICAqCiAgICAgKiBAbWVtYmVyb2YgUG9seW1lci5QYXRoCiAgICAgKiBAcGFyYW0ge3N0cmluZ30gcGF0aCBQYXRoIHN0cmluZwogICAgICogQHJldHVybiB7c3RyaW5nfSBSb290IHByb3BlcnR5IG5hbWUKICAgICAqLwogICAgcm9vdDogZnVuY3Rpb24ocGF0aCkgewogICAgICBsZXQgZG90SW5kZXggPSBwYXRoLmluZGV4T2YoJy4nKTsKICAgICAgaWYgKGRvdEluZGV4ID09PSAtMSkgewogICAgICAgIHJldHVybiBwYXRoOwogICAgICB9CiAgICAgIHJldHVybiBwYXRoLnNsaWNlKDAsIGRvdEluZGV4KTsKICAgIH0sCgogICAgLyoqCiAgICAgKiBHaXZlbiBgYmFzZWAgaXMgYGZvby5iYXJgLCBgZm9vYCBpcyBhbiBhbmNlc3RvciwgYGZvby5iYXJgIGlzIG5vdAogICAgICogUmV0dXJucyB0cnVlIGlmIHRoZSBnaXZlbiBwYXRoIGlzIGFuIGFuY2VzdG9yIG9mIHRoZSBiYXNlIHBhdGguCiAgICAgKgogICAgICogRXhhbXBsZToKICAgICAqCiAgICAgKiBgYGAKICAgICAqIFBvbHltZXIuUGF0aC5pc0FuY2VzdG9yKCdmb28uYmFyJywgJ2ZvbycpICAgICAgICAgLy8gdHJ1ZQogICAgICogUG9seW1lci5QYXRoLmlzQW5jZXN0b3IoJ2Zvby5iYXInLCAnZm9vLmJhcicpICAgICAvLyBmYWxzZQogICAgICogUG9seW1lci5QYXRoLmlzQW5jZXN0b3IoJ2Zvby5iYXInLCAnZm9vLmJhci5iYXonKSAvLyBmYWxzZQogICAgICogYGBgCiAgICAgKgogICAgICogQG1lbWJlcm9mIFBvbHltZXIuUGF0aAogICAgICogQHBhcmFtIHtzdHJpbmd9IGJhc2UgUGF0aCBzdHJpbmcgdG8gdGVzdCBhZ2FpbnN0LgogICAgIC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ldCBpPTA7IGk8cGF0aC5sZW5ndGg7IGkrKykgewogICAgICAgICAgbGV0IGFyZ3MgPSBwYXRoW2ldLnRvU3RyaW5nKCkuc3BsaXQoJy4nKTsKICAgICAgICAgIGZvciAobGV0IGo9MDsgajxhcmdzLmxlbmd0aDsgaisrKSB7CiAgICAgICAgICAgIHBhcnRzLnB1c2goYXJnc1tqXSk7CiAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIHJldHVybiBwYXJ0cy5qb2luKCcuJyk7CiAgICAgIH0gZWxzZSB7CiAgICAgICAgcmV0dXJuIHBhdGg7CiAgICAgIH0KICAgIH0sCgogICAgLyoqCiAgICAgKiBTcGxpdHMgYSBwYXRoIGludG8gYW4gYXJyYXkgb2YgcHJvcGVydHkgbmFtZXMuIEFjY2VwdHMgZWl0aGVyIGFycmF5cwogICAgICogb2YgcGF0aCBwYXJ0cyBvciBzdHJpbmdzLgogICAgICoKICAgICAqIEV4YW1wbGU6CiAgICAgKgogICAgICogYGBgCiAgICAgKiBQb2x5bWVyLlBhdGguc3BsaXQoWydmb28uYmFyJywgMCwgJ2JheiddKSAgLy8gWydmb28nLCAnYmFyJywgJzAnLCAnYmF6J10KICAgICAqIFBvbHltZXIuUGF0aC5zcGxpdCgnZm9vLmJhci4wLmJheicpICAgICAgICAvLyBbJ2ZvbycsICdiYXInLCAnMCcsICdiYXonXQogICAgICogYGBgCiAgICAgKgogICAgICogQG1lbWJlcm9mIFBvbHltZXIuUGF0aAogICAgICogQHBhcmFtIHtzdHJpbmcgfCAhQXJyYXk8c3RyaW5nfG51bWJlcj59IHBhdGggSW5wdXQgcGF0aAogICAgICogQHJldHVybiB7IUFycmF5PHN0cmluZz59IEFycmF5IG9mIHBhdGggcGFydHMKICAgICAqIEB0aGlzIHtQYXRofQogICAgICogQHN1cHByZXNzIHtjaGVja1R5cGVzfQogICAgICovCiAgICBzcGxpdDogZnVuY3Rpb24ocGF0aCkgewogICAgICBpZiAoQXJyYXkuaXNBcnJheShwYXRo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ICAgICAgICAgfQogICAgICAgIH07CiAgICAgIH0sCiAgICAgIC8qKgogICAgICAgKiBFbnF1ZXVlcyBhIGZ1bmN0aW9uIGNhbGxlZCBpbiB0aGUgbmV4dCB0YXNrLgogICAgICAgKgogICAgICAgKiBAbWVtYmVyb2YgUG9seW1lci5Bc3luYy50aW1lT3V0CiAgICAgICAqIEBwYXJhbSB7IUZ1bmN0aW9ufSBmbiBDYWxsYmFjayB0byBydW4KICAgICAgICogQHBhcmFtIHtudW1iZXI9fSBkZWxheSBEZWxheSBpbiBtaWxsaXNlY29uZHMKICAgICAgICogQHJldHVybiB7bnVtYmVyfSBIYW5kbGUgdXNlZCBmb3IgY2FuY2VsaW5nIHRhc2sKICAgICAgICovCiAgICAgIHJ1bihmbiwgZGVsYXkpIHsKICAgICAgICByZXR1cm4gd2luZG93LnNldFRpbWVvdXQoZm4sIGRlbGF5KTsKICAgICAgfSwKICAgICAgLyoqCiAgICAgICAqIENhbmNlbHMgYSBwcmV2aW91c2x5IGVucXVldWVkIGB0aW1lT3V0YCBjYWxsYmFjay4KICAgICAgICoKICAgICAgICogQG1lbWJlcm9mIFBvbHltZXIuQXN5bmMudGltZU91dAogICAgICAgKiBAcGFyYW0ge251bWJlcn0gaGFuZGxlIEhhbmRsZSByZXR1cm5lZCBmcm9tIGBydW5gIG9mIGNhbGxiYWNrIHRvIGNhbmNlbAogICAgICAgKiBAcmV0dXJuIHt2b2lkfQogICAgICAgKi8KICAgICAgY2FuY2VsKGhhbmRsZSkgewogICAgICAgIHdpbmRvdy5jbGVhclRpbWVvdXQoaGFuZGxlKTsKICAgICAgfQogICAgfSwKCiAgICAvKioKICAgICAqIEFzeW5jIGludGVyZmFjZSB3cmFwcGVyIGFyb3VuZCBgcmVxdWVzdEFuaW1hdGlvbkZyYW1lYC4KICAgICAqCiAgICAgKiBAbmFtZXNwYWNlCiAgICAgKiBAbWVtYmVyb2YgUG9seW1lci5Bc3luYwogICAgICogQHN1bW1hcnkgQXN5bmMgaW50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Zy4KICAgICAqLwogICAgbWljcm9UYXNrOiB7CgogICAgICAvKioKICAgICAgICogRW5xdWV1ZXMgYSBmdW5jdGlvbiBjYWxsZWQgYXQgbWljcm90YXNrIHRpbWluZy4KICAgICAgICoKICAgICAgICogQG1lbWJlcm9mIFBvbHltZXIuQXN5bmMubWljcm9UYXNrCiAgICAgICAqIEBwYXJhbSB7IUZ1bmN0aW9uPX0gY2FsbGJhY2sgQ2FsbGJhY2sgdG8gcnVuCiAgICAgICAqIEByZXR1cm4ge251bWJlcn0gSGFuZGxlIHVzZWQgZm9yIGNhbmNlbGluZyB0YXNrCiAgICAgICAqLwogICAgICBydW4oY2FsbGJhY2spIHsKICAgICAgICBtaWNyb3Rhc2tOb2RlLnRleHRDb250ZW50ID0gbWljcm90YXNrTm9kZUNvbnRlbnQrKzsKICAgICAgICBtaWNyb3Rhc2tDYWxsYmFja3MucHVzaChjYWxsYmFjayk7CiAgICAgICAgcmV0dXJuIG1pY3JvdGFza0N1cnJIYW5kbGUrKzsKICAgICAgfSwKCiAgICAgIC8qKgogICAgICAgKiBDYW5jZWxzIGEgcHJldmlvdXNseSBlbnF1ZXVlZCBgbWljcm9UYXNrYCBjYWxsYmFjay4KICAgICAgICoKICAgICAgICogQG1lbWJlcm9mIFBvbHltZXIuQXN5bmMubWljcm9UYXNrCiAgICAgICAqIEBwYXJhbSB7bnVtYmVyfSBoYW5kbGUgSGFuZGxlIHJldHVybmVkIGZyb20gYHJ1bmAgb2YgY2FsbGJhY2sgdG8gY2FuY2VsCiAgICAgICAqIEByZXR1cm4ge3ZvaWR9CiAgICAgICAqLwogICAgICBjYW5jZWwoaGFuZGxlKSB7CiAgICAgICAgY29uc3QgaWR4ID0gaGFuZGxlIC0gbWljcm90YXNrTGFzdEhhbmRsZTsKICAgICAgICBpZiAoaWR4ID49IDApIHsKICAgICAgICAgIGlmICghbWljcm90YXNrQ2FsbGJhY2tzW2lkeF0pIHsKICAgICAgICAgICAgdGhyb3cgbmV3IEVycm9yK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R9CiAgICAgICAgICogQHByb3RlY3RlZAogICAgICAgICAqLwogICAgICAgIHN0YXRpYyBjcmVhdGVQcm9wZXJ0aWVzKHByb3BzKSB7CiAgICAgICAgICBjb25zdCBwcm90byA9IHRoaXMucHJvdG90eXBlOwogICAgICAgICAgZm9yIChsZXQgcHJvcCBpbiBwcm9wcykgewogICAgICAgICAgICAvLyBkb24ndCBzdG9tcCBhbiBleGlzdGluZyBhY2Nlc3NvcgogICAgICAgICAgICBpZiAoIShwcm9wIGluIHByb3RvKSkgewogICAgICAgICAgICAgIHByb3RvLl9jcmVhdGVQcm9wZXJ0eUFjY2Vzc29yKHByb3ApOwogICAgICAgICAgICB9CiAgICAgICAgICB9CiAgICAgICAgfQoKICAgICAgICAvKioKICAgICAgICAgKiBSZXR1cm5zIGFuIGF0dHJpYnV0ZSBuYW1lIHRoYXQgY29ycmVzcG9uZHMgdG8gdGhlIGdpdmVuIHByb3BlcnR5LgogICAgICAgICAqIFRoZSBhdHRyaWJ1dGUgbmFtZSBpcyB0aGUgbG93ZXJjYXNlZCBwcm9wZXJ0eSBuYW1lLiBPdmVycmlkZSB0bwogICAgICAgICAqIGN1c3RvbWl6ZSB0aGlzIG1hcHBpbmcuCiAgICAgICAgICogQHBhcmFtIHtzdHJpbmd9IHByb3BlcnR5IFByb3BlcnR5IHRvIGNvbnZlcnQKICAgICAgICAgKiBAcmV0dXJuIHtzdHJpbmd9IEF0dHJpYnV0ZSBuYW1lIGNvcnJlc3BvbmRpbmcgdG8gdGhlIGdpdmVuIHByb3BlcnR5LgogICAgICAgICAqCiAgICAgICAgICogQHByb3RlY3RlZAogICAgICAgICAqLwogICAgICAgIHN0YXRpYyBhdHRyaWJ1dGVOYW1lRm9yUHJvcGVydHkocHJvcGVydHkpIHsKICAgICAgICAgIHJldHVybiBwcm9wZXJ0eS50b0xvd2VyQ2FzZSgpOwogICAgICAgIH0KCiAgICAgICAgLyoqCiAgICAgICAgICogT3ZlcnJpZGUgcG9pbnQgdG8gcH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5lUHJvcGVydHlBY2Nlc3Nvcihwcm9wZXJ0eSwgcmVhZE9ubHkpIHsKICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eSh0aGlzLCBwcm9wZXJ0eSwgewogICAgICAgICAgICAvKiBlc2xpbnQtZGlzYWJsZSB2YWxpZC1qc2RvYyAqLwogICAgICAgICAgICAvKiogQHRoaXMge1Byb3BlcnRpZXNDaGFuZ2VkfSAqLwogICAgICAgICAgICBnZXQoKSB7CiAgICAgICAgICAgICAgcmV0dXJuIHRoaXMuX2dldFByb3BlcnR5KHByb3BlcnR5KTsKICAgICAgICAgICAgfSwKICAgICAgICAgICAgLyoqIEB0aGlzIHtQcm9wZXJ0aWVzQ2hhbmdlZH0gKi8KICAgICAgICAgICAgc2V0OiByZWFkT25seSA/IGZ1bmN0aW9uICgpIHt9IDogZnVuY3Rpb24gKHZhbHVlKSB7CiAgICAgICAgICAgICAgdGhpcy5fc2V0UHJvcGVydHkocHJvcGVydHksIHZhbHVlKTsKICAgICAgICAgICAgfQogICAgICAgICAgICAvKiBlc2xpbnQtZW5hYmxlICovCiAgICAgICAgICB9KTsKICAgICAgICB9CgogICAgICAgIGNvbnN0cnVjdG9yKCkgewogICAgICAgICAgc3VwZXIoKTsKICAgICAgICAgIHRoaXMuX19kYXRhRW5hYmxlZCA9IGZhbHNlOwogICAgICAgICAgdGhpcy5fX2RhdGFSZWFkeSA9IGZhbHNlOwogICAgICAgICAgdGhpcy5fX2RhdGFJbnZhbGlkID0gZmFsc2U7CiAgICAgICAgICB0aGlzLl9fZGF0YSA9IHt9OwogICAgICAgICAgdGhpcy5fX2RhdGFQZW5kaW5nID0gbnVsbDsKICAgICAgICAgIHRoaXMuX19kYXRhT2xkID0gbnVsbDsKICAgICAgICAgIHRoaXMuX19kYXRhSW5zdGFuY2VQcm9wcyA9IG51bGw7CiAgICAgICAgICB0aGlzLl9fc2VyaWFsaXppbmcgPSBmYWxzZTsKICAgICAgICAgIHRoaXMuX2luaXRpY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gICAgICogUHJvdmlkZWQgYXMgYW4gb3ZlcnJpZGUgcG9pbnQgZm9yIHBlcmZvcm1pbmcgYW55IHNldHVwIHdvcmsgcHJpb3IKICAgICAgICAgKiB0byBpbml0aWFsaXppbmcgdGhlIHByb3BlcnR5IGFjY2Vzc29yIHN5c3RlbS4KICAgICAgICAgKgogICAgICAgICAqIEByZXR1cm4ge3ZvaWR9CiAgICAgICAgICogQHByb3RlY3RlZAogICAgICAgICAqLwogICAgICAgIF9pbml0aWFsaXplUHJvcGVydGllcygpIHsKICAgICAgICAgIC8vIENhcHR1cmUgaW5zdGFuY2UgcHJvcGVydGllczsgdGhlc2Ugd2lsbCBiZSBzZXQgaW50byBhY2Nlc3NvcnMKICAgICAgICAgIC8vIGR1cmluZyBmaXJzdCBmbHVzaC4gRG9uJ3Qgc2V0IHRoZW0gaGVyZSwgc2luY2Ugd2Ugd2FudAogICAgICAgICAgLy8gdGhlc2UgdG8gb3ZlcndyaXRlIGRlZmF1bHRzL2NvbnN0cnVjdG9yIGFzc2lnbm1lbnRzCiAgICAgICAgICBmb3IgKGxldCBwIGluIHRoaXMuX19kYXRhSGFzQWNjZXNzb3IpIHsKICAgICAgICAgICAgaWYgKHRoaXMuaGFzT3duUHJvcGVydHkocCkpIHsKICAgICAgICAgICAgICB0aGlzLl9fZGF0YUluc3RhbmNlUHJvcHMgPSB0aGlzLl9fZGF0YUluc3RhbmNlUHJvcHMgfHwge307CiAgICAgICAgICAgICAgdGhpcy5fX2RhdGFJbnN0YW5jZVByb3BzW3BdID0gdGhpc1twXTsKICAgICAgICAgICAgICBkZWxldGUgdGhpc1twXTsKICAgICAgICAgICAgfQogICAgICAgICAgfQogICAgICAgIH0KCiAgICAgICAgLyoqCiAgICAgICAgICogQ2FsbGVkIGF0IHJlYWR5IHRpbWUgd2l0aCBiYWcgb2YgaW5zdGFuY2UgcHJvcGVydGllcyB0aGF0IG92ZXJ3cm90ZQogICAgICAgICAqIGFjY2Vzc29ycyB3aGVuIHRoZ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GluZ1twcm9wZXJ0eV0gPSB2YWx1ZTsKICAgICAgICAgIH0KICAgICAgICAgIHJldHVybiBjaGFuZ2VkOwogICAgICAgIH0KICAgICAgICAvKiBlc2xpbnQtZW5hYmxlICovCgogICAgICAgIC8qKgogICAgICAgICAqIE1hcmtzIHRoZSBwcm9wZXJ0aWVzIGFzIGludmFsaWQsIGFuZCBlbnF1ZXVlcyBhbiBhc3luYwogICAgICAgICAqIGBfcHJvcGVydGllc0NoYW5nZWRgIGNhbGxiYWNrLgogICAgICAgICAqCiAgICAgICAgICogQHJldHVybiB7dm9pZH0KICAgICAgICAgKiBAcHJvdGVjdGVkCiAgICAgICAgICovCiAgICAgICAgX2ludmFsaWRhdGVQcm9wZXJ0aWVzKCkgewogICAgICAgICAgaWYgKCF0aGlzLl9fZGF0YUludmFsaWQgJiYgdGhpcy5fX2RhdGFSZWFkeSkgewogICAgICAgICAgICB0aGlzLl9fZGF0YUludmFsaWQgPSB0cnVlOwogICAgICAgICAgICBtaWNyb3Rhc2sucnVuKCgpID0+IHsKICAgICAgICAgICAgICBpZiAodGhpcy5fX2RhdGFJbnZhbGlkKSB7CiAgICAgICAgICAgICAgICB0aGlzLl9fZGF0YUludmFsaWQgPSBmYWxzZTsKICAgICAgICAgICAgICAgIHRoaXMuX2ZsdXNoUHJvcGVydGllcygpOwogICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CiAgICAgICAgICB9CiAgICAgICAgfQoKICAgICAgICAvKioKICAgICAgICAgKiBDYWxsIHRvIGVuYWJsZSBwcm9wZXJ0eSBhY2Nlc3NvciBwcm9jZXNzaW5nLiBCZWZvcmUgdGhpcyBtZXRob2QgaXMKICAgICAgICAgKiBjYWxsZWQgYWNjZXNzb3IgdmFsdWVzIHdpbGwgYmUgc2V0IGJ1dCBzaWRlIGVmZmVjdHMgYXJlCiAgICAgICAgICogcXVldWVkLiBXaGVuIGNhbGxlZCwgYW55IHBlbmRpbmcgc2lkZSBlZmZlY3RzIG9jY3VyIGltbWVkaWF0ZWx5LgogICAgICAgICAqIEZvciBlbGVtZW50cywgZ2VuZXJhbGx5IGBjb25uZWN0ZWRDYWxsYmFja2AgaXMgYSBub3JtYWwgc3BvdCB0byBkbyBzby4KICAgICAgICAgKiBJdCBpcyBzYWZlIHRvIGNhbGwgdGhpcyBtZXRob2QgbXVsdGlwbGUgdGltZXMgYXMgaXQgb25seSB0dXJucyBvbgogICAgICAgICAqIHByb3BlcnR5IGFjY2Vzc29ycyBvbmNlLgogICAgICAgICAqCiAgICAgICAgICogQHJldHVybiB7dm9pZH0KICAgICAgICAgKiBAcHJvdGVjdGVkCiAgICAgICAgICovCiAgICAgICAgX2VuYWJsZVByb3BlcnRpZXMoKSB7CiAgICAgICAgICBpZiAoIXRoaXMuX19kYXRhRW5hYmxlZCkgewogICAgICAgICAgICB0aGlzLl9fZGF0YUVuYWJsZWQgPSB0cnVlOwogICAgICAgICAgICBpZiAodGhpcy5fX2RhdGFJbnN0YW5jZVByb3BzKSB7CiAgICAgICAgICAgICAgdGhpcy5faW5pdGlhbGl6ZUluc3RhbmNlUHJvcGVydGllcyh0aGlzLl9fZGF0YUluc3RhbmNlUHJvcHMpOwogICAgICAgICAgICAgIHRoaXMuX19kYXRhSW5zdGFuY2VQcm9wcyA9IG51bGw7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgdGhpcy5yZWFkeSgpOwogICAgICAgICAgfQogICAgICAgIH0KCiAgICAgICAgLyoqCiAgICAgICAgICogQ2FsbHMgdGhlIGBfcHJvcGVydGllc0NoYW5nZWRgIGNhbGxiYWNrIHdpdGggdGhlIGN1cnJlbnQgc2V0IG9mCiAgICAgICAgICogcGVuZGluZyBjaGFuZ2VzIChhbmQgb2xkIHZhbHVlcyByZWNvcmRlZCB3aGVuIHBlbmRpbmcgY2hhbmdlcyB3ZXJlCiAgICAgICAgICogc2V0KSwgYW5kIHJlc2V0cyB0aGUgcGVuZGluZyBzZXQgb2YgY2hhbmdlcy4gR2VuZXJhbGx5LCB0aGlzIG1ldGhvZAogICAgICAgICAqIHNob3VsZCBub3QgYmUgY2FsbGVkIGluIHVzZXIgY29kZS4KICAgICAgICAgKgogICAgICAgICAqIEByZXR1cm4ge3ZvaWR9CiAgICAgICAgICogQHByb3RlY3RlZAogICAgICAgICAqLwogICAgICAgIF9mbHVzaFByb3BlcnRpZXMoKSB7CiAgICAgICAgICBjb25zdCBwcm9wcyA9IHRoaXMuX19kYXRhOwogICAgICAgICAgY29uc3QgY2hhbmdlZFByb3BzID0gdGhpcy5fX2RhdGFQZW5kaW5nOwogICAgICAgICAgY29uc3Qgb2xkID0gdGhpcy5fX2RhdGFPbGQ7CiAgICAgICAgICBpZiAodGhpcy5fc2hvdWxkUHJvcGVydGllc0NoYW5nZShwcm9wcywgY2hhbmdlZFByb3BzLCBvbGQpKSB7CiAgICAgICAgICAgIHRoaXMuX19kYXRhUGVuZGluZyA9IG51bGw7CiAgICAgICAgICAgIHRoaXMuX19kYXRhT2xkID0gbnVsbDsKICAgICAgICAgICAgdGhpcy5fcHJvcGVydGllc0NoYW5nZWQocHJvcHMsIGNoYW5nZWRQcm9wcywgb2xkKTsKICAgICAgICAgIH0KICAgICAgICB9CgogICAgICAgIC8qKgogICAgICAgICAqIENhbGxlZCBpbiBgX2ZsdXNoUHJvcGVydGllc2AgdG8gZGV0ZXJtaW5lIGlmIGBfcHJvcGVydGllc0NoYW5nZWRgCiAgICAgICAgICogc2hvdWxkIGJlIGNhbGxlZC4gVGhlIGRlZmF1bHQgaW1wbGVtZW50YXRpb24gcmV0dXJucyB0cnVlIGlmCiAgICAgICAgICogcHJvcGVydGllcyBhcmUgcGVuZGluZy4gT3ZlcnJpZGUgdG8gY3VzdG9taXplIHdoZW4KICAgICAgICAgKiBgX3Byb3BlcnRpZXNDaGFuZ2VkYCBpcyBjYWxsZWQuCiAgICAgICAgICogQHBhcmFtIHshT2JqZWN0fSBjdXJyZW50UHJvcHMgQmFnIG9mIGFsbCBjdXJyZW50IGFjY2Vzc29yIHZhb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l6ZVByb3RvUHJvcGVydGllcyh0aGlzLl9fZGF0YVByb3RvKTsKICAgICAgICAgIHRoaXMuX19kYXRhUHJvdG8gPSBudWxsOwogICAgICAgIH0KICAgICAgICBzdXBlci5faW5pdGlhbGl6ZVByb3BlcnRpZXMoKTsKICAgICAgfQoKICAgICAgLyoqCiAgICAgICAqIENhbGxlZCBhdCBpbnN0YW5jZSB0aW1lIHdpdGggYmFnIG9mIHByb3BlcnRpZXMgdGhhdCB3ZXJlIG92ZXJ3cml0dGVuCiAgICAgICAqIGJ5IGFjY2Vzc29ycyBvbiB0aGUgcHJvdG90eXBlIHdoZW4gYWNjZXNzb3JzIHdlcmUgY3JlYXRlZC4KICAgICAgICoKICAgICAgICogVGhlIGRlZmF1bHQgaW1wbGVtZW50YXRpb24gc2V0cyB0aGVzZSBwcm9wZXJ0aWVzIGJhY2sgaW50byB0aGUKICAgICAgICogc2V0dGVyIGF0IGluc3RhbmNlIHRpbWUuICBUaGlzIG1ldGhvZCBpcyBwcm92aWRlZCBhcyBhbiBvdmVycmlkZQogICAgICAgKiBwb2ludCBmb3IgY3VzdG9taXppbmcgb3IgcHJvdmlkaW5nIG1vcmUgZWZmaWNpZW50IGluaXRpYWxpemF0aW9uLgogICAgICAgKgogICAgICAgKiBAcGFyYW0ge09iamVjdH0gcHJvcHMgQmFnIG9mIHByb3BlcnR5IHZhbHVlcyB0aGF0IHdlcmUgb3ZlcndyaXR0ZW4KICAgICAgICogICB3aGVuIGNyZWF0aW5nIHByb3BlcnR5IGFjY2Vzc29ycy4KICAgICAgICogQHJldHVybiB7dm9pZH0KICAgICAgICogQHByb3RlY3RlZAogICAgICAgKi8KICAgICAgX2luaXRpYWxpemVQcm90b1Byb3BlcnRpZXMocHJvcHMpIHsKICAgICAgICBmb3IgKGxldCBwIGluIHByb3BzKSB7CiAgICAgICAgICB0aGlzLl9zZXRQcm9wZXJ0eShwLCBwcm9wc1twXSk7CiAgICAgICAgfQogICAgICB9CgogICAgICAvKioKICAgIC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aWRlZCBwcm9wZXJ0eSB2YWx1ZS4KICAgICAgICovCiAgICAgIF9zZXJpYWxpemVWYWx1ZSh2YWx1ZSkgewogICAgICAgIC8qIGVzbGludC1kaXNhYmxlIG5vLWZhbGx0aHJvdWdoICovCiAgICAgICAgc3dpdGNoICh0eXBlb2YgdmFsdWUpIHsKICAgICAgICAgIGNhc2UgJ29iamVjdCc6CiAgICAgICAgICAgIGlmICh2YWx1ZSBpbnN0YW5jZW9mIERhdGUpIHsKICAgICAgICAgICAgICByZXR1cm4gdmFsdWUudG9TdHJpbmcoKTsKICAgICAgICAgICAgfSBlbHNlIGlmICh2YWx1ZSkgewogICAgICAgICAgICAgIHRyeSB7CiAgICAgICAgICAgICAgICByZXR1cm4gSlNPTi5zdHJpbmdpZnkodmFsdWUpOwogICAgICAgICAgICAgIH0gY2F0Y2goeCkgewogICAgICAgICAgICAgICAgcmV0dXJuICcnOwogICAgICAgICAgICAgIH0KICAgICAgICAgICAgfQoKICAgICAgICAgIGRlZmF1bHQ6CiAgICAgICAgICAgIHJldHVybiBzdXBlci5fc2VyaWFsaXplVmFsdWUodmFsdWUpOwogICAgICAgIH0KICAgICAgfQoKICAgICAgLyoqCiAgICAgICAqIENvbnZlcnRzIGEgc3RyaW5nIHRvIGEgdHlwZWQgSmF2YVNjcmlwdCB2YWx1ZS4KICAgICAgICoKICAgICAgICogVGhpcyBtZXRob2QgaXMgY2FsbGVkIGJ5IFBvbHltZXIgd2hlbiByZWFkaW5nIEhUTUwgYXR0cmlidXRlIHZhbHVlcyB0bwogICAgICAgKiBKUyBwcm9wZXJ0aWVzLiAgVXNlcnMgbWF5IG92ZXJyaWRlIHRoaXMgbWV0aG9kIG9uIFBvbHltZXIgZWxlbWVudAogICAgICAgKiBwcm90b3R5cGVzIHRvIHByb3ZpZGUgZGVzZXJpYWxpemF0aW9uIGZvciBjdXN0b20gYHR5cGVgcy4gIE5vdGUsCiAgICAgICAqIHRoZSBgdHlwZWAgYXJndW1lbnQgaXMgdG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ICAgICB0cnkgewogICAgICAgICAgICAgIG91dFZhbHVlID0gSlNPTi5wYXJzZSgvKiogQHR5cGUge3N0cmluZ30gKi8odmFsdWUpKTsKICAgICAgICAgICAgfSBjYXRjaCh4KSB7CiAgICAgICAgICAgICAgb3V0VmFsdWUgPSBudWxsOwogICAgICAgICAgICAgIGNvbnNvbGUud2FybihgUG9seW1lcjo6QXR0cmlidXRlczogY291bGRuJ3QgZGVjb2RlIEFycmF5IGFzIEpTT046ICR7dmFsdWV9YCk7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICBjYXNlIERhdGU6CiAgICAgICAgICAgIG91dFZhbHVlID0gaXNOYU4odmFsdWUpID8gU3RyaW5nKHZhbHVlKSA6IE51bWJlcih2YWx1ZSk7CiAgICAgICAgICAgIG91dFZhbHVlID0gbmV3IERhdGUob3V0VmFsdWUpOwogICAgICAgICAgICBicmVhazsKICAgICAgICAgIGRlZmF1bHQ6CiAgICAgICAgICAgIG91dFZhbHVlID0gc3VwZXIuX2Rlc2VyaWFsaXplVmFsdWUodmFsdWUsIHR5cGUpOwogICAgICAgICAgICBicmVhazsKICAgICAgICB9CiAgICAgICAgcmV0dXJuIG91dFZhbHVlOwogICAgICB9CiAgICAgIC8qIGVzbGludC1lbmFibGUgbm8tZmFsbHRocm91Z2ggKi8KCiAgICAgIC8qKgogICAgICAgKiBPdmVycmlkZXMgUHJvcGVydGllc0NoYW5nZWQgaW1wbGVtZW50YXRpb24gdG8gc2F2ZSBleGlzdGluZyBwcm90b3R5cGUKICAgICAgICogcHJvcGVydHkgdmFsdWUgc28gdGhhdCBpdCBjYW4gYmUgcmVzZXQuCiAgICAgICAqIEBwYXJhbSB7c3RyaW5nfSBwcm9wZXJ0eSBOYW1lIG9mIHRoZSBwcm9wZXJ0eQogICAgICAgKiBAcGFyYW0ge2Jvb2xlYW49fSByZWFkT25seSBXaGVuIHRydWUsIG5vIHNldHRlciBpcyBjcmVhdGVkCiAgICAgICAqC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0aG9kIGhhcyB0aGUgZm9sbG93aW5nCiAgICAgICAqIHN0cnVjdHVyZSAobWFueSBmaWVsZHMgb3B0aW9uYWwpOgogICAgICAgKgogICAgICAgKiBgYGBqcwogICAgICAgKiAgIHsKICAgICAgICogICAgIC8vIEZsYXR0ZW5lZCBsaXN0IG9mIG5vZGUgbWV0YWRhdGEgKGZvciBub2RlcyB0aGF0IGdlbmVyYXRlZCBtZXRhZGF0YSkKICAgICAgICogICAgIG5vZGVJbmZvTGlzdDogWwogICAgICAgKiAgICAgICB7CiAgICAgICAqICAgICAgICAgLy8gYGlkYCBhdHRyaWJ1dGUgZm9yIGFueSBub2RlcyB3aXRoIGlkJ3MgZm9yIGdlbmVyYXRpbmcgYCRgIG1hcAogICAgICAgKiAgICAgICAgIGlkOiB7c3RyaW5nfSwKICAgICAgICogICAgICAgICAvLyBgb24tZXZlbnQ9ImhhbmRsZXIiYCBtZXRhZGF0YQogICAgICAgKiAgICAgICAgIGV2ZW50czogWwogICAgICAgKiAgICAgICAgICAgewogICAgICAgKiAgICAgICAgICAgICBuYW1lOiB7c3RyaW5nfSwgICAvLyBldmVudCBuYW1lCiAgICAgICAqICAgICAgICAgICAgIHZhbHVlOiB7c3RyaW5nfSwgIC8vIGhhbmRsZXIgbWV0aG9kIG5hbWUKICAgICAgICogICAgICAgICAgIH0sIC4uLgogICAgICAgKiAgICAgICAgIF0sCiAgICAgICAqICAgICAgICAgLy8gTm90ZXMgd2hlbiB0aGUgdGVtcGxhdGUgY29udGFpbmVkIGEgYDxzbG90PmAgZm9yIHNoYWR5IERPTQogICAgICAgKiAgICAgICAgIC8vIG9wdGltaXphdGlvbiBwdXJwb3NlcwogICAgICAgKiAgICAgICAgIGhhc0luc2VydGlvblBvaW50OiB7Ym9vbGVhbn0sCiAgICAgICAqICAgICAgICAgLy8gRm9yIG5lc3RlZCBgPHRlbXBsYXRlPmBgIG5vZGVzLCBuZXN0ZWQgdGVtcGxhdGUgbWV0YWRhdGEKICAgICAgICogICAgICAgICB0ZW1wbGF0ZUluZm86IHtvYmplY3R9LCAvLyBuZXN0ZWQgdGVtcGxhdGUgbWV0YWRhdGEKICAgICAgICogICAgICAgICAvLyBNZXRhZGF0YSB0byBhbGxvdyBlZmZpY2llbnQgcmV0cmlldmFsIG9mIGluc3RhbmNlZCBub2RlCiAgICAgICAqICAgICAgICAgLy8gY29ycmVzcG9uZGluZyB0byB0aGlzIG1ldGFkYXRhCiAgICAgICAqICAgICAgICAgcGFyZW50SW5mbzoge251bWJlcn0sICAgLy8gcmVmZXJlbmNlIHRvIHBhcmVudCBub2RlSW5mbz4KICAgICAgICogICAgICAgICBwYXJlbnRJbmRleDoge251bWJlcn0sICAvLyBpbmRleCBpbiBwYXJlbnQncyBgY2hpbGROb2Rlc2AgY29sbGVjdGlvbgogICAgICAgKiAgICAgICAgIGluZm9JbmRleDoge251bWJlcn0sICAgIC8vIGluZGV4IG9mIHRoaXMgYG5vZGVJbmZvYCBpbiBgdGVtcGxhdGVJbmZvLm5vZGVJbmZvTGlzdGAKICAgICAgICogICAgICAgfSwKICAgICAgICogICAgICAgLi4uCiAgICAgICAqICAgICBdLAogICAgICAgKiAgICAgLy8gV2hlbiB0cnVlLCB0aGUgdGVtcGxhdGUgaGFkIHRoZSBgc3RyaXAtd2hpdGVzcGFjZWAgYXR0cmlidXRlCiAgICAgICAqICAgICAvLyBvciB3YXMgbmVzdGVkIGluIGEgdGVtcGxhdGUgd2l0aCB0aGF0IHNldHRpbmcKICAgICAgICogICAgIHN0cmlwV2hpdGVzcGFjZToge2Jvb2xlYW59LAogICAgICAgKiAgICAgLy8gRm9yIG5lc3RlZCB0ZW1wbGF0ZXMsIG5lc3RlZCB0ZW1wbGF0ZSBjb250ZW50IGlzIG1vdmVkIGludG8KICAgICAgICogICAgIC8vIGEgZG9jdW1lbnQgZnJhZ21lbnQgc3RvcmVkIGhlcmU7IHRoaXMgaXMgYW4gb3B0aW1pemF0aW9uIHRvCiAgICAgICAqICAgICAvLyBhdm9p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AgICAgICBub2RlLnRleHRDb250ZW50ICs9IG4udGV4dENvbnRlbnQ7CiAgICAgICAgICAgICAgbmV4dCA9IHdhbGtlci5uZXh0U2libGluZygpOwogICAgICAgICAgICAgIHJvb3QucmVtb3ZlQ2hpbGQobik7CiAgICAgICAgICAgICAgbiA9IG5leHQ7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgLy8gb3B0aW9uYWxseSBzdHJpcCB3aGl0ZXNwYWNlCiAgICAgICAgICAgIGlmICh0ZW1wbGF0ZUluZm8uc3RyaXBXaGl0ZVNwYWNlICYmICFub2RlLnRleHRDb250ZW50LnRyaW0oKSkgewogICAgICAgICAgICAgIHJvb3QucmVtb3ZlQ2hpbGQobm9kZSk7CiAgICAgICAgICAgICAgY29udGludWU7CiAgICAgICAgICAgIH0KICAgICAgICAgIH0KICAgICAgICAgIGxldCBjaGlsZEluZm8gPSB7IHBhcmVudEluZGV4LCBwYXJlbnRJbmZvOiBub2RlSW5mbyB9OwogICAgICAgICAgaWYgKHRoaXMuX3BhcnNlVGVtcGxhdGVOb2RlKG5vZGUsIHRlbXBsYXRlSW5mbywgY2hpbGRJbmZvKSkgewogICAgICAgICAgICBjaGlsZEluZm8uaW5mb0luZGV4ID0gdGVtcGxhdGVJbmZvLm5vZGVJbmZvTGlzdC5wdXNoKC8qKiBAdHlwZSB7IU5vZGVJbmZvfSAqLyhjaGlsZEluZm8pKSAtIDE7CiAgICAgICAgICB9CiAgICAgICAgICAvLyBJbmNyZW1lbnQgaWYgbm90IHJlbW92ZWQKICAgICAgICAgIHdhbGtlci5jdXJyZW50Tm9kZSA9IG5vZGU7CiAgICAgICAgICBpZiAod2Fsa2VyLnBhcmVudE5vZGUoKSkgewogICAgICAgICAgICBwYXJlbnRJbmRleCsrOwogICAgICAgICAgfQogICAgICAgIH0KICAgICAgfQoKICAgICAgLyoqCiAgICAgICAqIFBhcnNlcyB0ZW1wbGF0ZSBjb250ZW50IGZvciB0aGUgZ2l2ZW4gbmVzdGVkIGA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4pIHsKICAgICAgbGV0IGFyZ3MgPSBpbnN0Ll9tYXJzaGFsQXJncyhpbmZvLmFyZ3MsIHByb3BlcnR5LCBwcm9wcyk7CiAgICAgIHJldHVybiBmbi5hcHBseShjb250ZXh0LCBhcmdzKTsKICAgIH0gZWxzZSBpZiAoIWluZm8uZHluYW1pY0ZuKSB7CiAgICAgIGNvbnNvbGUud2FybignbWV0aG9kIGAnICsgaW5mby5tZXRob2ROYW1lICsgJ2Agbm90IGRlZmluZWQnKTsKICAgIH0KICB9CgogIGNvbnN0IGVtcHR5QXJyYXkgPSBbXTsKCiAgLy8gUmVndWxhciBleHByZXNzaW9ucyB1c2VkIGZvciBiaW5kaW5nCiAgY29uc3QgSURFTlQgID0gJyg/OicgKyAnW2EtekEtWl8kXVtcXHcuOiRcXC0qXSonICsgJyknOwogIGNvbnN0IE5VTUJFUiA9ICcoPzonICsgJ1stK10/WzAtOV0qXFwuP1swLTldKyg/OltlRV1bLStdP1swLTldKyk/JyArICcpJzsKICBjb25zdCBTUVVPVEVfU1RSSU5HID0gJyg/OicgKyAnXCcoPzpbXlwnXFxcXF18XFxcXC4pKlwnJyArICcpJzsKICBjb25zdCBEUVVPVEVfU1RSSU5HID0gJyg/OicgKyAnIig/OlteIlxcXFxdfFxcXFwuKSoiJyArICcpJzsKICBjb25zdCBTVFJJTkcgPSAnKD86JyArIFNRVU9URV9TVFJJTkcgKyAnfCcgKyBEUVVPVEVfU1RSSU5HICsgJyknOwogIGNvbnN0IEFSR1VNRU5UID0gJyg/OignICsgSURFTlQgKyAnfCcgKyBOVU1CRVIgKyAnfCcgKyAgU1RSSU5HICsgJylcXHMqJyArICcpJzsKICBjb25zdCBBUkdVTUVOVFMgPSAnKD86JyArIEFSR1VNRU5UICsgJyg/OixcXHMqJyArIEFSR1VNRU5UICsgJykqJyArICcpJzsKICBjb25zdCBBUkdVTUVOVF9MSVNUID0gJyg/OicgKyAnXFwoXFxzKicgKwogICAgICAgICAgICAgICAgICAgICAgICAgICA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ZmZWN0c30gKi8KICAgICAgICB0aGlzLl9fZGF0YUhvc3Q7CiAgICAgICAgLyoqIEB0eXBlIHshT2JqZWN0fSAqLwogICAgICAgIHRoaXMuX19kYXRhVGVtcDsKICAgICAgICAvKiogQHR5cGUge2Jvb2xlYW59ICovCiAgICAgICAgdGhpcy5fX2RhdGFDbGllbnRzSW5pdGlhbGl6ZWQ7CiAgICAgICAgLyoqIEB0eXBlIHshT2JqZWN0fSAqLwogICAgICAgIHRoaXMuX19kYXRhOwogICAgICAgIC8qKiBAdHlwZSB7IU9iamVjdH0gKi8KICAgICAgICB0aGlzLl9fZGF0YVBlbmRpbmc7CiAgICAgICAgLyoqIEB0eXBlIHshT2JqZWN0fSAqLwogICAgICAgIHRoaXMuX19kYXRhT2xkOwogICAgICAgIC8qKiBAdHlwZSB7T2JqZWN0fSAqLwogICAgICAgIHRoaXMuX19jb21wdXRlRWZmZWN0czsKICAgICAgICAvKiogQHR5cGUge09iamVjdH0gKi8KICAgICAgICB0aGlzLl9fcmVmbGVjdEVmZmVjdHM7CiAgICAgICAgLyoqIEB0eXBlIHtPYmplY3R9ICovCiAgICAgICAgdGhpcy5fX25vdGlmeUVmZmVjdHM7CiAgICAgICAgLyoqIEB0eXBlIHtPYmplY3R9ICovCiAgICAgICAgdGhpcy5fX3Byb3BhZ2F0ZUVmZmVjdHM7CiAgICAgICAgLyoqIEB0eXBlIHtPYmplY3R9ICovCiAgICAgICAgdGhpcy5fX29ic2VydmVFZmZlY3RzOwogICAgICAgIC8qKiBAdHlwZSB7T2JqZWN0fSAqLwogICAgICAgIHRoaXMuX19yZWFkT25seTsKICAgICAgICAvKiogQHR5cGUgeyFUZW1wbGF0ZUluZm99ICovCiAgICAgICAgdGhpcy5fX3RlbXBsYXRlSW5mbzsKICAgICAgfQoKICAgICAgZ2V0IFBST1BFUlRZX0VGRkVDVF9UWVBFUygpIHsKICAgICAgICByZXR1cm4gVFlQRVM7CiAgICAgIH0KCiAgICAgIC8qKgogICAgICAgK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3RNYXAodGhpcywgdHlwZSlbcHJvcGVydHldOwogICAgICAgIGlmICghZWZmZWN0cykgewogICAgICAgICAgZWZmZWN0cyA9IHRoaXNbdHlwZV1bcHJvcGVydHldID0gW107CiAgICAgICAgfQogICAgICAgIGVmZmVjdHMucHVzaChlZmZlY3QpOwogICAgICB9CgogICAgICAvKioKICAgICAgICogUmVtb3ZlcyB0aGUgZ2l2ZW4gcHJvcGVydHkgZWZmZWN0LgogICAgICAgKgogICAgICAgKiBAcGFyYW0ge3N0cmluZ30gcHJvcGVydHkgUHJvcGVydHkgdGhlIGVmZmVjdCB3YXMgYXNzb2NpYXRlZCB3aXRoCiAgICAgICAqIEBwYXJhbSB7c3RyaW5nfSB0eXBlIEVmZmVjdCB0eXBlLCBmcm9tIHRoaXMuUFJPUEVSVFlfRUZGRUNUX1RZUEVTCiAgICAgICAqIEBwYXJhbSB7T2JqZWN0PX0gZWZmZWN0IEVmZmVjdCBtZXRhZGF0YSBvYmplY3QgdG8gcmVtb3ZlCiAgICAgICAqIEByZXR1cm4ge3ZvaWR9CiAgICAgICAqLwogICAgICBfcmVtb3ZlUHJvcGVydHlFZmZlY3QocHJvcGVydHksIHR5cGUsIGVmZmVjdCkgewogICAgICAgIGxldCBlZmZlY3RzID0gZW5zdXJlT3duRWZmZWN0TWFwKHRoaXMsIHR5cGUpW3Byb3BlcnR5XTsKICAgICAgICBsZXQgaWR4ID0gZWZmZWN0cy5pbmRleE9mKGVmZmVjdCk7CiAgICAgICAgaWYgKGlkeCA+PSAwKSB7CiAgICAgICAgICBlZmZlY3RzLnNwbGljZShpZHgsIDEpOwogICAgICAgIH0KICAgICAgfQoKICAgICAgLyoqCiAgICAgICAqIFJldHVybnMgd2hldGhlciB0aGUgY3VycmVudCBwcm90b3R5cGUvaW5zdGFuY2UgaGFzIGEgcHJvcGVydHkgZWZmZWN0CiAgICAgICAqIG9mIGEgY2VydGFpbiB0eXBlLgogICAgICAgKgogICAgICAgKiBAcGFyYW0ge3N0cmluZ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FudWFsbHkgZmx1c2hlZCksIHRoZSBmdW5jdGlvbiBuby1vcHM7IG90aGVyd2lzZSBmbHVzaGVzCiAgICAgICAqIGBfcHJvcGVydGllc0NoYW5nZWRgIHN5bmNocm9ub3VzbHkuCiAgICAgICAqCiAgICAgICAqIEBvdmVycmlkZQogICAgICAgKiBAcmV0dXJuIHt2b2lkfQogICAgICAgKi8KICAgICAgX2ludmFsaWRhdGVQcm9wZXJ0aWVzKCkgewogICAgICAgIGlmICh0aGlzLl9fZGF0YVJlYWR5KSB7CiAgICAgICAgICB0aGlzLl9mbHVzaFByb3BlcnRpZXMoKTsKICAgICAgICB9CiAgICAgIH0KCiAgICAgIC8qKgogICAgICAgKiBFbnF1ZXVlcyB0aGUgZ2l2ZW4gY2xpZW50IG9uIGEgbGlzdCBvZiBwZW5kaW5nIGNsaWVudHMsIHdob3NlCiAgICAgICAqIHBlbmRpbmcgcHJvcGVydHkgY2hhbmdlcyBjYW4gbGF0ZXIgYmUgZmx1c2hlZCB2aWEgYSBjYWxsIHRvCiAgICAgICAqIGBfZmx1c2hDbGllbnRzYC4KICAgICAgICoKICAgICAgICogQHBhcmFtIHtPYmplY3R9IGNsaWVudCBQcm9wZXJ0eUVmZmVjdHMgY2xpZW50IHRvIGVucXVldWUKICAgICAgICogQHJldHVybiB7dm9pZH0KICAgICAgICogQHByb3RlY3RlZAogICAgICAgKi8KICAgICAgX2VucXVldWVDbGllbnQoY2xpZW50KSB7CiAgICAgICAgdGhpcy5fX2RhdGFQZW5kaW5nQ2xpZW50cyA9IHRoaXMuX19kYXRhUGVuZGluZ0NsaWVudHMgfHwgW107CiAgICAgICAgaWYgKGNsaWVudCAhPT0gdGhpcykgewogICAgICAgICAgdGhpcy5fX2RhdGFQZW5kaW5nQ2xpZW50cy5wdXNoKGNsaWVudCk7CiAgICAgICAgfQogICAgICB9CgogICAgICAvKioKICAgICAgICogT3ZlcnJpZGVzIHN1cGVyY2xhc3MgaW1wbGVtZW50YXRpb24uCiAgICAg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gbnVsbDsKICAgICAgICAgIGZvciAobGV0IGk9MDsgaSA8IGNsaWVudHMubGVuZ3RoOyBpKyspIHsKICAgICAgICAgICAgbGV0IGNsaWVudCA9IGNsaWVudHNbaV07CiAgICAgICAgICAgIGlmICghY2xpZW50Ll9fZGF0YUVuYWJsZWQpIHsKICAgICAgICAgICAgICBjbGllbnQuX2VuYWJsZVByb3BlcnRpZXMoKTsKICAgICAgICAgICAgfSBlbHNlIGlmIChjbGllbnQuX19kYXRhUGVuZGluZykgewogICAgICAgICAgICAgIGNsaWVudC5fZmx1c2hQcm9wZXJ0aWVzKCk7CiAgICAgICAgICAgIH0KICAgICAgICAgIH0KICAgICAgICB9CiAgICAgIH0KCiAgICAgIC8qKgogICAgICAgKiBQZXJmb3JtIGFueSBpbml0aWFsIHNldHVwIG9uIGNsaWVudCBkb20uIENhbGxlZCBiZWZvcmUgdGhlIGZpcnN0CiAgICAgICAqIGBfZmx1c2hQcm9wZXJ0aWVzYCBjYWxsIG9uIGNsaWVudCBkb20gYW5kIGJlZm9yZSBhbnkgZWxlbWVudAogICAgICAgKiBvYnNlcnZlcnMgYXJlIGNhbGxlZC4KICAgICAgICoKICAgICAgICogQHJldHVybiB7dm9pZH0KICAgICAgICogQHByb3RlY3RlZAogICAgICAgKi8KICAgICAgX3JlYWR5Q2xpZW50cygpIHsKICAgICAgICB0aGlzLl9fZW5hYmxlT3JGbHVzaENsaWVudHMoKTsKICAgICAgfQoKICAgICAgLyoqCiAgICAgICAqIFNldHMgYSBiYWcgb2YgcHJvcGVydHkgY2hhbmdlcyB0byB0aGlzIGluc3RhbmNlLCBhbmQKICAgICAgICogc3luY2hyb25vdXNseSBwcm9jZXNzZXMgYWxsIGVmZmVjdHMgb2YgdGhlIHByb3BlcnRpZXMgYXMgYSBiYXRjaC4KICAgICAgICoKICAgICAgICogUHJvcGVydHkgbmFtZXMgbXVzdCBiZSBzaW1wbGUgcHJvcGVydGllcywgbm90IHBhdGhzLiAgQmF0Y2hlZAogICA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gfQoKICAgICAgLyoqCiAgICAgICAqIFJlbW92ZXMgYSBkYXRhIHBhdGggYWxpYXMgcHJldmlvdXNseSBlc3RhYmxpc2hlZCB3aXRoIGBfbGlua1BhdGhzYC4KICAgICAgICoKICAgICAgICogTm90ZSwgdGhlIHBhdGggdG8gdW5saW5rIHNob3VsZCBiZSB0aGUgdGFyZ2V0IChgdG9gKSB1c2VkIHdoZW4KICAgICAgICogbGlua2luZyB0aGUgcGF0aHMuCiAgICAgICAqCiAgICAgICAqIEBwYXJhbSB7c3RyaW5nIHwgIUFycmF5PHN0cmluZ3xudW1iZXI+fSBwYXRoIFRhcmdldCBwYXRoIHRvIHVubGluay4KICAgICAgICogQHJldHVybiB7dm9pZH0KICAgICAgICogQHB1YmxpYwogICAgICAgKi8KICAgICAgdW5saW5rUGF0aHMocGF0aCkgewogICAgICAgIHBhdGggPSBQb2x5bWVyLlBhdGgubm9ybWFsaXplKHBhdGgpOwogICAgICAgIGlmICh0aGlzLl9fZGF0YUxpbmtlZFBhdGhzKSB7CiAgICAgICAgICBkZWxldGUgdGhpcy5fX2RhdGFMaW5rZWRQYXRoc1twYXRoXTsKICAgICAgICB9CiAgICAgIH0KCiAgICAgIC8qKgogICAgICAgKiBOb3RpZnkgdGhhdCBhbiBhcnJheSBoYXMgY2hhbmdlZC4KICAgICAgICoKICAgICAgICogRXhhbXBsZToKICAgICAgICoKICAgICAgICogICAgIHRoaXMuaXRlbXMgPSBbIHtuYW1lOiAnSmltJ30sIHtuYW1lOiAnVG9kZCd9LCB7bmFtZTogJ0JpbGwnfSBdOwogICAgICAgKiAgICAgLi4uCiAgICAgICAqICAgICB0aGlzLml0ZW1zLnNwbGljZSgxLCAxLCB7bmFtZTogJ1NhbSd9KTsKICAgICAgICogICAgIHRoaXMuaXRlbXMucHVzaCh7bmFtZTogJ0JvYid9KTsKICAgICAgICogICAgIHRoaXMubm90aWZ5U3BsaWNlcygnaXRlbXMnLCBbCiAgICAgICAqICAgICAgIHsgaW5kZXg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qIEByZXR1cm4ge251bWJlcn0gTmV3IGxlbmd0aCBvZiB0aGUgYXJyYXkuCiAgICAgICAqIEBwdWJsaWMKICAgICAgICovCiAgICAgIHB1c2gocGF0aCwgLi4uaXRlbXMpIHsKICAgICAgICBsZXQgaW5mbyA9IHtwYXRoOiAnJ307CiAgICAgICAgbGV0IGFycmF5ID0gLyoqIEB0eXBlIHtBcnJheX0qLyhQb2x5bWVyLlBhdGguZ2V0KHRoaXMsIHBhdGgsIGluZm8pKTsKICAgICAgICBsZXQgbGVuID0gYXJyYXkubGVuZ3RoOwogICAgICAgIGxldCByZXQgPSBhcnJheS5wdXNoKC4uLml0ZW1zKTsKICAgICAgICBpZiAoaXRlbXMubGVuZ3RoKSB7CiAgICAgICAgICBub3RpZnlTcGxpY2UodGhpcywgYXJyYXksIGluZm8ucGF0aCwgbGVuLCBpdGVtcy5sZW5ndGgsIFtdKTsKICAgICAgICB9CiAgICAgICAgcmV0dXJuIHJldDsKICAgICAgfQoKICAgICAgLyoqCiAgICAgICAqIFJlbW92ZXMgYW4gaXRlbSBmcm9tIHRoZSBlbmQgb2YgYXJyYXkgYXQgdGhlIHBhdGggc3BlY2lmaWVkLgogICAgICAgKgogICAgICAgKiBUaGUgYXJndW1lbnRzIGFmdGVyIGBwYXRoYCBhbmQgcmV0dXJuIHZhbHVlIG1hdGNoIHRoYXQgb2YKICAgICAgICogYEFycmF5LnByb3RvdHlwZS5wb3BgLgogICAgICAgKgogICAgICAgKiBUaGlzIG1ldGhvZCBub3RpZmllcyBvdGhlciBwYXRocyB0byB0aGUgc2FtZSBhcnJheSB0aGF0IGEKICAgICAgICogc3BsaWNlIG9jY3VycmVkIHRvIHRoZSBhcnJheS4KICAgICAgICoKICAgICAgICogQHBhcmFtIHtzdHJpbmcgfCAhQXJyYXk8c3RyaW5nfG51bWJlcj59IHBhdGggUGF0aCB0byBhcnJheS4KICAgICAgICogQHJldHVybiB7Kn0gSXRlbSB0aGF0IHdhcyByZW1vdmVkLgogICAg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AgICAgKiBAcGFyYW0gey4uLip9IGl0ZW1zIEl0ZW1zIHRvIGluc2VydCBpbmZvIGFycmF5CiAgICAgICAqIEByZXR1cm4ge251bWJlcn0gTmV3IGxlbmd0aCBvZiB0aGUgYXJyYXkuCiAgICAgICAqIEBwdWJsaWMKICAgICAgICovCiAgICAgIHVuc2hpZnQocGF0aCwgLi4uaXRlbXMpIHsKICAgICAgICBsZXQgaW5mbyA9IHtwYXRoOiAnJ307CiAgICAgICAgbGV0IGFycmF5ID0gLyoqIEB0eXBlIHtBcnJheX0gKi8oUG9seW1lci5QYXRoLmdldCh0aGlzLCBwYXRoLCBpbmZvKSk7CiAgICAgICAgbGV0IHJldCA9IGFycmF5LnVuc2hpZnQoLi4uaXRlbXMpOwogICAgICAgIGlmIChpdGVtcy5sZW5ndGgpIHsKICAgICAgICAgIG5vdGlmeVNwbGljZSh0aGlzLCBhcnJheSwgaW5mby5wYXRoLCAwLCBpdGVtcy5sZW5ndGgsIFtdKTsKICAgICAgICB9CiAgICAgICAgcmV0dXJuIHJldDsKICAgICAgfQoKICAgICAgLyoqCiAgICAgICAqIE5vdGlmeSB0aGF0IGEgcGF0aCBoYXMgY2hhbmdlZC4KICAgICAgICoKICAgICAgICogRXhhbXBsZToKICAgICAgICoKICAgICAgICogICAgIHRoaXMuaXRlbS51c2VyLm5hbWUgPSAnQm9iJzsKICAgICAgICogICAgIHRoaXMubm90aWZ5UGF0aCgnaXRlbS51c2VyLm5hbWUnKTsKICAgICAgICoKICAgICAgICogQHBhcmFtIHtzdHJpbmd9IHBhdGggUGF0aCB0aGF0IHNob3VsZCBiZSBub3RpZmllZC4KICAgICAgICogQHBhcmFtIHsqPX0gdmFsdWUgVmFsdWUgYXQgdGhlIHBhdGggKG9wdGlvbmFsKS4KICAgICAgICogQHJldHVybiB7dm9pZH0KICAgICAgICogQHB1YmxpYwogICAgICAqLwogICAgICBub3RpZnlQYXRoKHBhdGgsIHZhbHVlKSB7CiAgICAgICAgLyoqIEB0eXB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c3Npb24KICAgICAgICogQHBhcmFtIHtib29sZWFufE9iamVjdD19IGR5bmFtaWNGbiBCb29sZWFuIG9yIG9iamVjdCBtYXAgaW5kaWNhdGluZwogICAgICAgKiAgIHdoZXRoZXIgbWV0aG9kIG5hbWVzIHNob3VsZCBiZSBpbmNsdWRlZCBhcyBhIGRlcGVuZGVuY3kgdG8gdGhlIGVmZmVjdC4KICAgICAgICogQHJldHVybiB7dm9pZH0KICAgICAgICogQHByb3RlY3RlZAogICAgICAgKi8KICAgICAgX2NyZWF0ZU1ldGhvZE9ic2VydmVyKGV4cHJlc3Npb24sIGR5bmFtaWNGbikgewogICAgICAgIGxldCBzaWcgPSBwYXJzZU1ldGhvZChleHByZXNzaW9uKTsKICAgICAgICBpZiAoIXNpZykgewogICAgICAgICAgdGhyb3cgbmV3IEVycm9yKCJNYWxmb3JtZWQgb2JzZXJ2ZXIgZXhwcmVzc2lvbiAnIiArIGV4cHJlc3Npb24gKyAiJyIpOwogICAgICAgIH0KICAgICAgICBjcmVhdGVNZXRob2RFZmZlY3QodGhpcywgc2lnLCBUWVBFUy5PQlNFUlZFLCBydW5NZXRob2RFZmZlY3QsIG51bGwsIGR5bmFtaWNGbik7CiAgICAgIH0KCiAgICAgIC8qKgogICAgICAgKiBFcXVpdmFsZW50IHRvIHN0YXRpYyBgY3JlYXRlTm90aWZ5aW5nUHJvcGVydHlgIEFQSSBidXQgY2FuIGJlIGNhbGxlZCBvbgogICAgICAgKiBhbiBpbnN0YW5jZSB0byBhZGQgZWZmZWN0cyBhdCBydW50aW1lLiAgU2VlIHRoYXQgbWV0aG9kIGZvcgogICAgICAgKiBmdWxsIEFQSSBkb2NzLgogICAgICAgKgogICAgICAgKiBAcGFyYW0ge3N0cmluZ30gcHJvcGVydHkgUHJvcGVydHkgbmFtZQogICAgICAgKiBAcmV0dXJuIHt2b2lkfQogICAgICAgKiBAcHJvdGVjdGVkCiAgICAgICAqLwogICAgICBfY3JlYXRlTm90aWZ5aW5nUHJvcGVydHkocHJvcGVydHkpIHsKICAgICAgICB0aGlzLl9hZGRQcm9wZXJ0eUVmZmVjdChwcm9wZXJ0eSwgVFlQRVMuTk9USUZZLCB7CiAgICAgICAgICBmbjogcnVuTm90aWZ5RWZmZWN0LAogICAgICAgICAgaW5mbzogewogICAgICAgICAgICBldmVudE5hbWU6IENhc2VNYXAuY2FtZWxUb0Rhc2hDYXNlKHByb3BlcnR5KSArICctY2hhbmdlZCcsCiAgICAgICAgICAgIHByb3BlcnR5OiBwcm9wZXJ0eQogICAgICAgICAgfQogICAgICAgIH0pOwogICAgICB9CgogICAgICAvKioKICAgICAgICogRXF1aXZhbGVudCB0byBzdGF0aWMgYGNyZWF0ZVJlZmxlY3RlZFByb3BlcnR5YCBBUEkgYnV0IGNhbiBiZSBjYWxsZWQgb24KICAgICAgICogYW4gaW5zdGFuY2UgdG8gYWRkIGVmZmVjdHMgYXQgcnVudGltZS4gIFNlZSB0aGF0IG1ldGhvZCBmb3IKICAgICAgICogZnVsbCBBUEkgZG9jcy4KICAgICAgICoKICAgICAgICogQHBhcmFtIHtzdHJpbmd9IHByb3BlcnR5IFByb3BlcnR5IG5hbWUKICAgICAgICogQHJldHVybiB7dm9pZH0KICAgICAgICogQHByb3RlY3RlZAogICAgICAgKi8KICAgICAgX2NyZWF0ZVJlZmxlY3RlZFByb3BlcnR5KHByb3BlcnR5KSB7CiAgICAgICAgbGV0IGF0dHIgPSB0aGlzLmNvbnN0cnVjdG9yLmF0dHJpYnV0ZU5hbWVGb3JQcm9wZXJ0eShwcm9wZXJ0eSk7CiAgICAgICAgaWYgKGF0dHJbMF0gPT09ICctJykgewogICAgICAgICAgY29uc29sZS53YXJuKCdQcm9wZXJ0eSAnICsgcHJvcGVydHkgKyAnIGNhbm5vdCBiZSByZWZsZWN0ZWQgdG8gYXR0cmlidXRlICcgKwogICAgICAgICAgICBhdHRyICsgJyBiZWNhdXNlICItIiBpcyBub3QgYSB2YWxpZCBzdGFydGluZyBhdHRyaWJ1dGUgbmFtZS4gVXNlIGEgbG93ZXJjYXNlIGZpcnN0IGxldHRlciBmb3IgdGhlIHByb3BlcnR5IGluc3RlYWQuJyk7CiAgICAgICAgfSBlbHNlIHsKICAgICAgICAgIHRoaXMuX2FkZFByb3BlcnR5RWZmZWN0KHByb3BlcnR5LCBUWVBFUy5SRUZMRUNULCB7CiAgICAgICAgICAgIGZuOiBydW5SZWZsZWN0RWZmZWN0LAogICAgICAgICAgICBpbmZvOiB7CiAgICAgICAgICAgICAgYXR0ck5hbWU6IGF0dHIKICAgICAgICAgICAgfQogICAgICAgICAgfSk7CiAgICAgICAgfQogICAgICB9CgogICAgICAvKioKICAgICAgICogRXF1aXZhbGVudCB0byBzdGF0aWMgYGNyZWF0ZUNvbXB1dGVkUHJvcGVydHlgIEFQSSBidXQgY2FuIGJlIGNhbGxlZCBvbgogICAgICAgKiBhbiBpbnN0YW5jZSB0byBhZGQgZWZmZWN0cyBhdCBydW50aW1lLiAgU2VlIHRoYXQgbWV0aG9kIGZvcgogICAgICAgKiBmdWxsIEFQSSBkb2NzLgogICAgICAgKgogICAgICAgKiBAcGFyYW0ge3N0cmluZ30gcHJvcGVydHkgTmFtZSBvZiBjb21wdXRlZCBwcm9wZXJ0eSB0byBzZXQKICAgICAgICogQHBhcmFtIHtzdHJpbmd9IGV4cHJlc3Npb24gTWV0aG9kIGV4cHJlc3Npb24KICAgICAgICogQHBhcmFtIHtib29sZWFufE9iamVjdD19IGR5bmFtaWNGbiBCb29sZWFuIG9yIG9iamVjdCBtYXAgaW5kaWNhdGluZwogICAgICAgKiAgIHdoZXRoZXIgbWV0aG9kIG5hbWVzIHNob3VsZCBiZSBpbmNsdWRlZCBhcyBhIGRlcGVuZGVuY3kgdG8gdGhlIGVmZmVjdC4KICAgICAgICogQHJldHVybiB7dm9pZH0KICAgICAgICogQHByb3RlY3RlZAogICAgICAgKi8KICAgICAgX2NyZWF0ZUNvbXB1dGVkUHJvcGVydHkocHJvcGVydHksIGV4cHJlc3Npb24sI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YWx1ZXMKICAgICAgICogQHByaXZhdGUKICAgICAgICovCiAgICAgIF9tYXJzaGFsQXJncyhhcmdzLCBwYXRoLCBwcm9wcykgewogICAgICAgIGNvbnN0IGRhdGEgPSB0aGlzLl9fZGF0YTsKICAgICAgICBsZXQgdmFsdWVzID0gW107CiAgICAgICAgZm9yIChsZXQgaT0wLCBsPWFyZ3MubGVuZ3RoOyBpPGw7IGkrKykgewogICAgICAgICAgbGV0IGFyZyA9IGFyZ3NbaV07CiAgICAgICAgICBsZXQgbmFtZSA9IGFyZy5uYW1lOwogICAgICAgICAgbGV0IHY7CiAgICAgICAgICBpZiAoYXJnLmxpdGVyYWwpIHsKICAgICAgICAgICAgdiA9IGFyZy52YWx1ZTsKICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgIGlmIChhcmcuc3RydWN0dXJlZCkgewogICAgICAgICAgICAgIHYgPSBQb2x5bWVyLlBhdGguZ2V0KGRhdGEsIG5hbWUpOwogICAgICAgICAgICAgIC8vIHdoZW4gZGF0YSBpcyBub3Qgc3RvcmVkIGUuZy4gYHNwbGljZXNgCiAgICAgICAgICAgICAgaWYgKHYgPT09IHVuZGVmaW5lZCkgewogICAgICAgICAgICAgICAgdiA9IHByb3BzW25hbWVdOwogICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgICB2ID0gZGF0YVtuYW1lXTsKICAgICAgICAgICAgfQogICAgICAgICAgfQogICAgICAgICAgaWYgKGFyZy53aWxkY2FyZCkgewogICAgICAgICAgICAvLyBPbmx5IHNlbmQgdGhlIGFjdHVhbCBwYXRoIGNoYW5nZWQgaW5mbyBpZiB0aGUgY2hhbmdlIHRoYXQKICAgICAgICAgICAgLy8gY2F1c2VkIHRoZSBvYnNlcnZlciB0byBydW4gbWF0Y2hlZCB0aGUgd2lsZGNhcmQKICAgICAgICAgICAgbGV0IGJhc2VDaGFuZ2VkID0gKG5hbWUuaW5kZXhPZihwYXRoICsgJy4nKSA9PT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ZXJmb3JtIGVmZmVjdAogICAgICAgKiAgICAgICBpbmZvOiB7IC4uLiB9ICAgICAgIC8vIEVmZmVjdCBtZXRhZGF0YSBwYXNzZWQgdG8gZnVuY3Rpb24KICAgICAgICogICAgICAgdHJpZ2dlcjogeyAgICAgICAgICAvLyBPcHRpb25hbCB0cmlnZ2VyaW5nIG1ldGFkYXRhOyBpZiBub3QgcHJvdmlkZWQKICAgICAgICogICAgICAgICBuYW1lOiBzdHJpbmcgICAgICAvLyB0aGUgcHJvcGVydHkgaXMgdHJlYXRlZCBhcyBhIHdpbGRjYXJkCiAgICAgICAqICAgICAgICAgc3RydWN0dXJlZDogYm9vbGVhbgogICAgICAgKiAgICAgICAgIHdpbGRjYXJkOiBib29sZWFuCiAgICAgICAqICAgICAgIH0KICAgICAgICogICAgIH0KICAgICAgICoKICAgICAgICogRWZmZWN0cyBhcmUgY2FsbGVkIGZyb20gYF9wcm9wZXJ0aWVzQ2hhbmdlZGAgaW4gdGhlIGZvbGxvd2luZyBvcmRlciBieQogICAgICAgKiB0eXBlOgogICAgICAgKgogICAgICAgKiAxLiBDT01QVVRFCiAgICAgICAqIDIuIFBST1BBR0FURQogICAgICAgKiAzLiBSRUZMRUNUCiAgICAgICAqIDQuIE9CU0VSVkUKICAgICAgICogNS4gTk9USUZZCiAgICAgICAqCiAgICAgICAqIEVmZmVjdCBmdW5jdGlvbnMgYXJlIGNhbGxlZCB3aXRoIHRoZSBmb2xsb3dpbmcgc2lnbmF0dXJlOgogICAgICAgKgogICAgICAgKiAgICAgZWZmZWN0RnVuY3Rpb24oaW5zdCwgcGF0aCwgcHJvcHMsIG9sZFByb3BzLCBpbmZvLCBoYXNQYXRocykKICAgICAgICoKICAgICAgICogQHBhcmFtIHtzdHJpbmd9IHByb3BlcnR5IFByb3BlcnR5IHRoYXQgc2hvdWxkIHRyaWdnZXIgdGhlIGVmZmVjdAogICAgICAgKiBAcGFyYW0ge3N0cmluZ30gdHlwZSBFZmZlY3QgdHlwZSwgZ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YnV0ZSBvciB0ZXh0Q29udGVudAogICAgICAgKiBAcGFyYW0ge09iamVjdH0gdGVtcGxhdGVJbmZvIEN1cnJlbnQgdGVtcGxhdGUgbWV0YWRhdGEKICAgICAgICogQHJldHVybiB7QXJyYXk8IUJpbmRpbmdQYXJ0Pn0gQXJyYXkgb2YgYmluZGluZyBwYXJ0IG1ldGFkYXRhCiAgICAgICAqIEBwcm90ZWN0ZWQKICAgICAgICovCiAgICAgIHN0YXRpYyBfcGFyc2VCaW5kaW5ncyh0ZXh0LCB0ZW1wbGF0ZUluZm8pIHsKICAgICAgICBsZXQgcGFydHMgPSBbXTsKICAgICAgICBsZXQgbGFzdEluZGV4ID0gMDsKICAgICAgICBsZXQgbTsKICAgICAgICAvLyBFeGFtcGxlOiAibGl0ZXJhbDF7e3Byb3B9fWxpdGVyYWwyW1shY29tcHV0ZShmb28sYmFyKV1dZmluYWwiCiAgICAgICAgLy8gUmVnZXggbWF0Y2hlczoKICAgICAgICAvLyAgICAgICAgSXRlcmF0aW9uIDE6ICBJdGVyYXRpb24gMjoKICAgICAgICAvLyBtWzFdOiAne3snICAgICAgICAgICdbWycKICAgICAgICAvLyBtWzJdOiAnJyAgICAgICAgICAgICchJwogICAgICAgIC8vIG1bM106ICdwcm9wJyAgICAgICAgJ2NvbXB1dGUoZm9vLGJhciknCiAgICAgICAgd2hpbGUgKChtID0gYmluZGluZ1JlZ2V4LmV4ZWModGV4dCkpICE9PSBudWxsKSB7CiAgICAgICAgICAvLyBBZGQgbGl0ZXJhbCBwYXJ0CiAgICAgICAgICBpZiAobS5pbmRleCA+IGxhc3RJbmRleCkgewogICAgICAgICAgICBwYXJ0cy5wdXNoKHtsaXRlcmFsOiB0ZXh0LnNsaWNlKGxhc3RJbmRleCwgbS5pbmRleCl9KTsKICAgICAgICAgIH0KICAgICAgICAgIC8vIEFkZCBiaW5kaW5nIHBhcnQKICAgICAgICAgIGxldCBtb2RlID0gbVsxXVswXTsKICAgICAgICAgIGxldCBuZWdhdGUgPSBCb29sZWFuKG1bMl0pOwogICAgICAgICAgbGV0IHNvdXJjZSA9IG1bM10udHJpbSgpOwogICAgICAgICAgbGV0IGN1c3RvbUV2ZW50ID0gZmFsc2UsIG5vdGlmeUV2ZW50ID0gJycsIGNvbG9uID0gLTE7CiAgICAgICAgICBpZiAobW9kZSA9PSAneycgJiYgKGNvbG9uID0gc291cmNlLmluZGV4T2YoJzo6JykpID4gMCkgewogICAgICAgICAgICBub3RpZnlFdmVudCA9IHNvdXJjZS5zdWJzdHJpbmcoY29sb24gKyAyKTsKICAgICAgICAgICAgc291cmNlID0gc291cmNlLnN1YnN0cmluZygwLCBjb2xvbik7CiAgICAgICAgICAgIGN1c3RvbUV2ZW50ID0gdHJ1ZTsKICAgICAgICAgIH0KICAgICAgICAgIGxldCBzaWduYXR1cmUgPSBwYXJzZU1ldGhvZChzb3VyY2UpOwogICAgICAgICAgbGV0IGRlcGVuZGVuY2llcyA9IFtdOwogICAgICAgICAgaWYgKHNpZ25hdHVyZSkgewogICAgICAgICAgICAvLyBJbmxpbmUgY29tcHV0ZWQgZnVuY3Rpb24KICAgICAgICAgICAgbGV0IHthcmdzLCBtZXRob2ROYW1lfSA9IHNpZ25hdHVyZTsKICAgICAgICAgICAgZm9yIChsZXQgaT0wOyBpPGFyZ3MubGVuZ3RoOyBpKyspIHsKICAgICAgICAgICAgICBsZXQgYXJnID0gYXJnc1tpXTsKICAgICAgICAgICAgICBpZiAoIWFyZy5saXRlcmFsKSB7CiAgICAgICAgICAgICAgICBkZXBlbmRlbmNpZXMucHVzaChhcmcpOwogICAgICAgICAgICAgIH0KICAgICAgICAgICAgfQogICAgICAgICAgICBsZXQgZHluYW1pY0ZucyA9IHRlbXBsYXRlSW5mby5keW5hbWljRm5zOwogICAgICAgICAgICBpZiAoZHluYW1pY0ZucyAmJiBkeW5hbWljRm5zW21ldGhvZE5hbWVdIHx8IHNpZ25hdHVyZS5zdGF0aWMpIHsKICAgICAgICAgICAgICBkZXBlbmRlbmNpZXMucHVzaChtZXRob2ROYW1lKTsKICAgICAgICAgICAgICBzaWduYXR1cmUuZHluYW1pY0ZuID0gdHJ1ZTsKICAgICAgICAgICAgfQogICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgLy8gUHJvcGVydHkgb3IgcGF0aAogICAgICAgICAgICBkZXBlbmRlbmNpZXMucHVzaChzb3VyY2UpOwogICAgICAgICAgfQogICAgICAgICAgcGFydHMucHVzaCh7CiAgICAgICAgICAgIHNvdXJjZSwgbW9kZSwgbmVnYXRlLCBjdXN0b21FdmVudCwgc2lnbmF0dXJlLCBkZXBlbmRlbmNpZXMsCiAgICAgICAgICAgIGV2ZW50OiBub3RpZnlFdmVudAogICAgICAgICAgfSk7CiAgICAgICAgICBsYXN0SW5kZXggPSBiaW5kaW5nUmVnZXgubGFzdEluZGV4OwogICAgICAgIH0KICAgICAgICAvLyBBZGQgYSBmaW5hbCBsaXRlcmFsIHBhcnQKICAgICAgICBpZiAobGFzdEluZGV4ICYmIGxhc3RJbmRleCA8IHRleHQubGVuZ3RoKSB7CiAgICAgICAgICBsZXQgbGl0ZXJhbCA9IHRleHQuc3Vic3RyaW5nKGxhc3RJbmRleCk7CiAgICAgICAgICBpZiAobGl0ZXJhbCkgewogICAgICAgICAgICBwYXJ0cy5wdXNoKHsKICAgICAgICAgICAgICBsaXRlcmFsOiBsaXRlcmFsCiAgICAgICAgICAgIH0pOwogICAgICAgICAgfQogICAgICAgIH0KICAgICAgICBpZiAocGFydHMubGVuZ3RoKSB7CiAgICAgICAgICByZXR1cm4gcGFydHM7CiAgICAgICAgfSBlbHNlIHsKICAgICAgICAgIHJldHVybiBudWxsOwogICAgICAgIH0KICAgICAgfQoKICAgICAgLyoqCiAgICAgICAqIENhbGxlZCB0byBldmFsdWF0ZSBhIHByZXZpb3VzbHkgcGFyc2VkIGJpbmRpbmcgcGFydCBiYXNlZCBvbiBhIHNldCBvZgogICAgICAgKiBvbmUgb3IgbW9yZSBjaGFuZ2VkIGRlc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PwogICAgICAgICAgICAgIGluZm8udmFsdWUuY2FsbCh0aGlzKSA6CiAgICAgICAgICAgICAgaW5mby52YWx1ZTsKICAgICAgICAgICAgLy8gU2V0IHZpYSBgX3NldFByb3BlcnR5YCBpZiB0aGVyZSBpcyBhbiBhY2Nlc3NvciwgdG8gZW5hYmxlCiAgICAgICAgICAgIC8vIGluaXRpYWxpemluZyByZWFkT25seSBwcm9wZXJ0eSBkZWZhdWx0cwogICAgICAgICAgICBpZiAodGhpcy5faGFzQWNjZXNzb3IocCkpIHsKICAgICAgICAgICAgICB0aGlzLl9zZXRQZW5kaW5nUHJvcGVydHkocCwgdmFsdWUsIHRydWUpOwogICAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICAgIHRoaXNbcF0gPSB2YWx1ZTsKICAgICAgICAgICAgfQogICAgICAgICAgfQogICAgICAgIH0KICAgICAgfQoKICAgICAgLyoqCiAgICAgICAqIEdhdGhlciBzdHlsZSB0ZXh0IGZvciBhIHN0eWxlIGVsZW1lbnQgaW4gdGhlIHRlbXBsYXRlLgogICAgICAgKgogICAgICAgKiBAcGFyYW0ge3N0cmluZ30gY3NzVGV4dCBUZXh0IGNvbnRhaW5pbmcgc3R5bGluZyB0byBwcm9jZXNzCiAgICAgICAqIEBwYXJhbSB7c3RyaW5nfSBiYXNlVVJJIEJhc2UgVVJJIHRvIHJlYmFzZSBDU1MgcGF0aHMgYWdhaW5zdAogICAgICAgKiBAcmV0dXJuIHtzdHJpbmd9IFRoZSBwcm9jZXNzZWQgQ1NTIHRleHQKICAgICAgICogQHByb3RlY3RlZAogICAgICAgKi8KICAgICAgc3RhdGljIF9wcm9jZXNzU3R5bGVUZXh0KGNzc1RleHQsIGJhc2VVUkkpIHsKICAgICAgICByZXR1cm4gUG9seW1lci5SZXNvbHZlVXJsLnJlc29sdmVDc3MoY3NzVGV4dCwgYmFzZVVSSSk7CiAgICAgIH0KCiAgICAgIC8qKgogICAgICAqIENvbmZpZ3VyZXMgYW4gZWxlbWVud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CA9PT0gbmV4dCkgewogICAgICAgICAgYnJlYWs7CiAgICAgICAgfQogICAgICAgIGlmIChuZXh0KSB7CiAgICAgICAgICBub2RlID0gbmV4dDsKICAgICAgICB9CiAgICAgIH0KICAgICAgcmV0dXJuIG5vZGU7CiAgICB9LAogICAgLyoqCiAgICAgKiBhIGNoZWFwZXIgY2hlY2sgdGhhbiBldi5jb21wb3NlZFBhdGgoKVswXTsKICAgICAqCiAgICAgKiBAcHJpdmF0ZQogICAgICogQHBhcmFtIHtFdmVudH0gZXYgRXZlbnQuCiAgICAgKiBAcmV0dXJuIHtFdmVudFRhcmdldH0gUmV0dXJucyB0aGUgZXZlbnQgdGFyZ2V0LgogICAgICovCiAgICBfZmluZE9yaWdpbmFsVGFyZ2V0OiBmdW5jdGlvbihldikgewogICAgICAvLyBzaGFkb3dkb20KICAgICAgaWYgKGV2LmNvbXBvc2VkUGF0aCkgewogICAgICAgIGNvbnN0IHRhcmdldHMgPSAvKiogQHR5cGUgeyFBcnJheTwhRXZlbnRUYXJnZXQ+fSAqLyhldi5jb21wb3NlZFBhdGgoKSk7CiAgICAgICAgLy8gSXQgc2hvdWxkbid0IGJlLCBidXQgc29tZXRpbWVzIHRhcmdldHMgaXMgZW1wdHkgKHdpbmRvdyBvbiBTYWZhcmkpLgogICAgICAgIHJldHVybiB0YXJnZXRzLmxlbmd0aCA+IDAgPyB0YXJnZXRzWzBdIDogZXYudGFyZ2V0OwogICAgICB9CiAgICAgIC8vIHNoYWR5ZG9tCiAgICAgIHJldHVybiBldi50YXJnZXQ7CiAgICB9LAoKICAgIC8qKgogICAgICogQHByaXZhdGUKICAgICAqIEBwYXJhbSB7RXZlbnR9IGV2IEV2ZW50LgogICAgICogQHJldHVybiB7dm9pZH0KICAgICAqLwogICAgX2hhbmRsZU5hdGl2ZTogZnVuY3Rpb24oZXYpIHsKICAgICAgbGV0IGhhbmRsZWQ7CiAgICAgIGxldCB0eXBlID0gZXYudHlwZTsKICAgICAgbGV0IG5vZGUgPSBldi5jdXJyZW50VGFyZ2V0OwogICAgICBsZXQgZ29iaiA9IG5vZGVbR0VTVFVSRV9LRVldOwogICAgICBpZiAoIWdvYmopIHsKICAgICAgICByZXR1cm47CiAgICAgIH0KICAgICAgbGV0IGdzID0gZ29ialt0eXBlXTsKICAgICAgaWYgKCFncykgewogICAgICAgIHJldHVybjsKICAgICAgfQogICAgICBpZiAoIWV2W0hBTkRMRURfT0JKXSkgewogICAgICAgIGV2W0hBTkRMRURfT0JKXSA9IHt9OwogICAgICAgIGlmICh0eXBlLnNsaWNlKDAsIDUpID09PSAndG91Y2gnKSB7CiAgICAgICAgICBldiA9IC8qKiBAdHlwZSB7VG91Y2hFdmVudH0gKi8oZXYpOyAvLyBlc2xpbnQtZGlzYWJsZS1saW5lIG5vLXNlbGYtYXNzaWduCiAgICAgICAgICBsZXQgdCA9IGV2LmNoYW5nZWRUb3VjaGVzWzBdOwogICAgICAgICAgaWYgKHR5cGUgPT09ICd0b3VjaHN0YXJ0JykgewogICAgICAgICAgICAvLyBvbmx5IGhhbmRsZSB0aGUgZmlyc3QgZmluZ2VyCiAgICAgICAgICAgIGlmIChldi50b3VjaGVzLmxlbmd0aCA9PT0gMSkgewogICAgICAgICAgICAgIFBPSU5URVJTVEFURS50b3VjaC5pZCA9IHQuaWRlbnRpZmllcjsKICAgICAgICAgICAgfQogICAgICAgICAgfQogICAgICAgICAgaWYgKFBPSU5URVJTVEFURS50b3VjaC5pZCAhPT0gdC5pZGVudGlmaWVyKSB7CiAgICAgICAgICAgIHJldHVybjsKICAgICAgICAgIH0KICAgICAgICAgIGlmICghSEFTX05BVElWRV9UQSkgewogICAgICAgICAgICBpZiAodHlwZSA9PT0gJ3RvdWNoc3RhcnQnIHx8IHR5cGUgPT09ICd0b3VjaG1vdmUnKSB7CiAgICAgICAgICAgICAgR2VzdHVyZXMuX2hhbmRsZVRvdWNoQWN0aW9uKGV2KTsKICAgICAgICAgICAgfQogICAgICAgICAgfQogICAgICAgIH0KICAgICAgfQogICAgICBoYW5kbGVkID0gZXZbSEFORExFRF9PQkpdOwogICAgICAvLyB1c2VkIHRvIGlnbm9yZSBzeW50aGV0aWMgbW91c2UgZXZlbnRzCiAgICAgIGlmIChoYW5kbGVkLnNraXApIHsKICAgICAgICByZXR1cm47CiAgICAgIH0KICAgICAgLy8gcmVzZXQgcmVjb2duaXplciBzdGF0ZQogICAgICBmb3IgKGxldCBpID0gMCwgcjsgaSA8IEdlc3R1cmVzLnJlY29nbml6ZXJzLmxlbmd0aDsgaSsrKSB7CiAgICAgICAgciA9IEdlc3R1cmVzLnJlY29nbml6ZXJzW2ldOwogICAgICAgIGlmIChnc1tyLm5hbWVdICYmICFoYW5kbGVkW3IubmFtZV0pIHsKICAgICAgICAgIGlmIChyLmZsb3cgJiYgci5mbG93LnN0YXJ0LmluZGV4T2YoZXYudHlwZSkgPiAtMSAmJiByLnJlc2V0KSB7CiAgICAgICAgICAgIHIucmVzZXQoKTsKICAgICAgICAgIH0KICAgICAgICB9CiAgICAgIH0KICAgICAgLy8gZW5mb3JjZSBnZXN0dXJlIHJlY29nbml6ZXIgb3JkZXIKICAgICAgZm9yIChsZXQgaSA9IDAsIHI7IGkgPCBHZXN0dXJlcy5yZWNvZ25pemVycy5sZW5ndGg7IGkrKykgewogICAgICAgIHIgPSBHZXN0dXJlcy5yZWNvZ25pemVyc1tpXTsKICAgICAgICBpZiAoZ3Nbci5uYW1lXSAmJiAhaGFuZGxlZFtyLm5hbWVdKSB7CiAgICAgICAgICBoYW5kbGVkW3IubmFtZV0gPSB0cnVlOwogICAgICAgICAgclt0eXBlXShldik7CiAgICAgICAgfQogICAgICB9CiAgICB9LAoKICAgIC8qKgogICAgICogQHByaXZhdGUKICAgICAqIEBwYXJhbSB7VG91Y2hFdmVudH0gZXYgRXZlbnQuCiAgICAgKiBAcmV0dXJuIHt2b2lkfQogICAgICovCiAgICBfaGFuZGxlVG91Y2hBY3Rpb246IGZ1bmN0aW9uKGV2KSB7CiAgICAgIGxldCB0ID0gZXYuY2hhbmdlZFRvdWNoZXNbMF07CiAgICAgIGxldCB0eXBlID0gZXYudHlwZTsKICAgICAgaWYgKHR5cGUgPT09ICd0b3VjaHN0YXJ0JykgewogICAgICAgIFBPSU5URVJTVEFURS50b3VjaC54ID0gdC5jbGllbnRYOwogICAgICAgIFBPSU5URVJTVEFURS50b3VjaC55ID0gdC5jbGllbnRZOwogICAgICAgIFBPSU5URVJTVEFURS50b3VjaC5zY3JvbGxEZWNpZGVkID0gZmFsc2U7CiAgICAgIH0gZWxzZSBpZiAodHlwZSA9PT0gJ3RvdWNobW92ZScpIHsKICAgICAgICBpZiAoUE9JTlRFUlNUQVRFLnRvdWNoLnNjcm9sbERlY2lkZWQpIHsKICAgICAgICAgIHJldHVybjsKICAgICAgICB9CiAgICAgICAgUE9JTlRFUlNUQVRFLnRvdWNoLnNjcm9sbERlY2lkZWQgPSB0cnVlOwogICAgICAgIGxldCB0YSA9IGZpcnN0VG91Y2hBY3Rpb24oZXYpOwogICAgICAgIGxldCBwcmV2ZW50ID0gZmFsc2U7CiAgICAgICAgbGV0IGR4ID0gTWF0aC5hYnMoUE9JTlRFUlNUQVRFLnRvdWNoLnggLSB0LmNsaWVudFgpOwogICAgICAgIGxldCBkeSA9IE1hdGguYWJzKFBPSU5URVJTVEFURS50b3VjaC55IC0gdC5jbGllbnRZKTsKICAgICAgICBpZiAoIWV2LmNhbmNlbGFibGUpIHsKICAgICAgICAgIC8vIHNjcm9sbGluZyBpcyBoYXBwZW5pbmcKICAgICAgICB9IGVsc2UgaWYgKHRhID09PSAnbm9uZScpIHsKICAgICAgICAgIHByZXZlbnQgPSB0cnVlOwogICAgICAgIH0gZWxzZSBpZiAodGEgPT09ICdwYW4teCcpIHsKICAgICAgICAgIHByZXZlbnQgPSBkeSA+IGR4OwogICAgICAgIH0gZWxzZSBpZiAodGEgPT09ICdwYW4teScpIHsKICAgICAgICAgIHByZXZlbnQgPSBkeCA+IGR5OwogICAgICAgIH0KICAgICAgICBp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taXRzOiBbJ2Rvd24nLCAndXAnXSwKCiAgICBpbmZvOiB7CiAgICAgIG1vdmVmbjogbnVsbCwKICAgICAgdXBmbjogbnVsbAogICAgfSwKCiAgICAvKioKICAgICAqIEB0aGlzIHtHZXN0dXJlUmVjb2duaXplcn0KICAgICAqIEByZXR1cm4ge3ZvaWR9CiAgICAgKi8KICAgIHJlc2V0OiBmdW5jdGlvbigpIHsKICAgICAgdW50cmFja0RvY3VtZW50KHRoaXMuaW5mbyk7CiAgICB9LAoKICAgIC8qKgogICAgICogQHRoaXMge0dlc3R1cmVSZWNvZ25pemVyfQogICAgICogQHBhcmFtIHtNb3VzZUV2ZW50fSBlCiAgICAgKiBAcmV0dXJuIHt2b2lkfQogICAgICovCiAgICBtb3VzZWRvd246IGZ1bmN0aW9uKGUpIHsKICAgICAgaWYgKCFoYXNMZWZ0TW91c2VCdXR0b24oZSkpIHsKICAgICAgICByZXR1cm47CiAgICAgIH0KICAgICAgbGV0IHQgPSBHZXN0dXJlcy5fZmluZE9yaWdpbmFsVGFyZ2V0KGUpOwogICAgICBsZXQgc2VsZiA9IHRoaXM7CiAgICAgIGxldCBtb3ZlZm4gPSBmdW5jdGlvbiBtb3ZlZm4oZSkgewogICAgICAgIGlmICghaGFzTGVmdE1vdXNlQnV0dG9uKGUpKSB7CiAgICAgICAgICBzZWxmLl9maXJlKCd1cCcsIHQsIGUpOwogICAgICAgICAgdW50cmFja0RvY3VtZW50KHNlbGYuaW5mbyk7CiAgICAgICAgfQogICAgICB9OwogICAgICBsZXQgdXBmbiA9IGZ1bmN0aW9uIHVwZm4oZSkgewogICAgICAgIGlmIChoYXNMZWZ0TW91c2VCdXR0b24oZSkpIHsKICAgICAgICAgIHNlbGYuX2ZpcmUoJ3VwJywgdCwgZSk7CiAgICAgICAgfQogICAgICAgIHVudHJhY2tEb2N1bWVudChzZWxmLmluZm8pOwogICAgICB9OwogICAgICB0cmFja0RvY3VtZW50KHRoaXMuaW5mbywgbW92ZWZuLCB1cG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V2ZW50ZXIsCiAgICAgICAgcHJldmVudDogZnVuY3Rpb24oZSkgewogICAgICAgICAgcmV0dXJuIEdlc3R1cmVzLnByZXZlbnQoZSk7CiAgICAgICAgfQogICAgICB9KTsKICAgIH0KICB9KTsKCiAgR2VzdHVyZXMucmVnaXN0ZXIoewogICAgbmFtZTogJ3RyYWNrJywKICAgIHRvdWNoQWN0aW9uOiAnbm9uZScsCiAgICBkZXBzOiBbJ21vdXNlZG93bicsICd0b3VjaHN0YXJ0JywgJ3RvdWNobW92ZScsICd0b3VjaGVuZCddLAogICAgZmxvdzogewogICAgICBzdGFydDogWydtb3VzZWRvd24nLCAndG91Y2hzdGFydCddLAogICAgICBlbmQ6IFsnbW91c2V1cCcsICd0b3VjaGVuZCddCiAgICB9LAogICAgZW1pdHM6IFsndHJhY2snXSwKCiAgICBpbmZvOiB7CiAgICAgIHg6IDAsCiAgICAgIHk6IDAsCiAgICAgIHN0YXRlOiAnc3RhcnQnLAogICAgICBzdGFydGVkOiBmYWxzZSwKICAgICAgbW92ZXM6IFtdLAogICAgICAvKiogQHRoaXMge0dlc3R1cmVSZWNvZ25pemVyfSAqLwogICAgICBhZGRNb3ZlOiBmdW5jdGlvbihtb3ZlKSB7CiAgICAgICAgaWYgKHRoaXMubW92ZXMubGVuZ3RoID4gVFJBQ0tfTEVOR1RIKSB7CiAgICAgICAgICB0aGlzLm1vdmVzLnNoaWZ0KCk7CiAgICAgICAgfQogICAgICAgIHRoaXMubW92ZXMucHVzaChtb3ZlKTsKICAgICAgfSwKICAgICAgbW92ZWZuOiBudWxsLAogICAgICB1cGZuOiBudWxsLAogICAgICBwcmV2ZW50OiBmYWxzZQogICAgfSwKCiAgICAvKioKICAgICAqIEB0aGlzIHtHZXN0dXJlUmVjb2duaXplcn0KICAgICAqIEByZXR1cm4ge3ZvaWR9CiAgICAgKi8KICAgIHJlc2V0OiBmdW5jdGlvbigpIHsKICAgICAgdGhpcy5pbmZvLnN0YXRlID0gJ3N0YXJ0JzsKICAgICAgdGhpcy5pbmZvLnN0YXJ0ZWQgPSBmYWxzZTsKICAgICAgdGhpcy5pbmZvLm1vdmVzID0gW107CiAgICAgIHRoaXMuaW5mby54ID0gMDsKICAgICAgdGhpcy5pbmZvLnkgPSAwOwogICAgICB0aGlzLmluZm8ucHJldmVudCA9IGZhbHNlOwogICAgICB1bnRyYWNrRG9jdW1lbnQodGhpcy5pbmZvKTsKICAgIH0sCgogICAgLyoqCiAgICAgKiBAdGhpcyB7R2VzdHVyZVJlY29nbml6ZXJ9CiAgICAgKiBAcGFyYW0ge251bWJlcn0geAogICAgICogQHBhcmFtIHtudW1iZXJ9IHkKICAgICAqIEByZXR1cm4ge2Jvb2xlYW59CiAgICAgKi8KICAgIGhhc01vdmVkRW5vdWdoOiBmdW5jdGlvbih4LCB5KSB7CiAgICAgIGlmICh0aGlzLmluZm8ucHJldmVudCkgewogICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgfQogICAgICBpZiAodGhpcy5pbmZvLnN0YXJ0ZWQpIHsKICAgICAgICByZXR1cm4gdHJ1ZTsKICAgICAgfQogICAgICBsZXQgZHggPSBNYXRoLmFicyh0aGlzLmluZm8ueCAtIHgpOwogICAgICBsZXQgZHkgPSBNYXRoLmFicyh0aGlzLmluZm8ueSAtIHkpOwogICAgICByZXR1cm4gKGR4ID49IFRSQUNLX0RJU1RBTkNFIHx8IGR5ID49IFRSQUNLX0RJU1RBTkNFKTsKICAgIH0sCiAgICAvKioKICAgICAqIEB0aGlzIHtHZXN0dXJlUmVjb2duaXplcn0KICAgICAqIEBwYXJhbSB7TW91c2VFdmVudH0gZQogICAgICogQHJldHVybiB7dm9pZH0KICAgICAqLwogICAgbW91c2Vkb3duOiBmdW5jdGlvbihlKSB7CiAgICAgIGlmICghaGFzTGVmdE1vdXNlQnV0dG9uKGUpKSB7CiAgICAgICAgcmV0dXJuOwogICAgICB9CiAgICAgIGxldCB0ID0gR2VzdHVyZXMuX2ZpbmRPcmlnaW5hbFRhcmdldChlKTsKICAgICAgbGV0IHNlbGYgPSB0aGlzOwogICAgICBsZXQgbW92ZWZuID0gZnVuY3Rpb24gbW92ZWZuKGUpIHsKICAgICAgICBsZXQgeCA9IGUuY2xpZW50WCwgeSA9IGUuY2xpZW50WTsKICAgICAgICBpZiAoc2VsZi5oYXNNb3ZlZEVub3VnaCh4LCB5KSkgewogICAgICAgICAgLy8gZmlyc3QgbW92ZSBpcyAnc3RhcnQnLCBzdWJzZXF1ZW50IG1vdmVzIGFyZSAnbW92ZScsIG1vdXNldXAgaXMgJ2VuZCcKICAgICAgICAgIHNlbGYuaW5mby5zdGF0ZSA9IHNlbGYuaW5mby5zdGFydGVkID8gKGUudHlwZSA9PT0gJ21vdXNldXAnID8gJ2VuZCcgOiAndHJhY2snKSA6ICdzdGFydCc7CiAgICAgICAgICBpZiAoc2VsZi5pbmZvLnN0YXRlID09PSAnc3RhcnQnKSB7CiAgICAgICAgICAgIC8vIGlmIGFuZCBvbmx5IGlmIHRyYWNraW5nLCBhbHdheXMgcHJldmVudCB0YXAKICAgICAgICAgICAgR2VzdHVyZXMucHJldmVudCgndGFwJyk7CiAgICAgICAgICB9CiAgICAgICAgICBzZWxmLmluZm8uYWRkTW92ZSh7eDogeCwgeTogeX0pOwogICAgICAgICAgaWYgKCFoYXNMZWZ0TW91c2VCdXR0b24oZSkpIHsKICAgICAgICAgICAgLy8gYWx3YXlzIF9maXJlICJlbmQiCiAgICAgICAgICAgIHNlbGYuaW5mby5zdGF0ZSA9ICdlbmQnOwogICAgICAgICAgICB1bnRyYWNrRG9jdW1lbnQoc2VsZi5pbmZvKTsKICAgICAgICAgIH0KICAgICAgICAgIHNlbGYuX2ZpcmUodCwgZSk7CiAgICAgICAgICBzZWxmLmluZm8uc3RhcnRlZCA9IHRydWU7CiAgICAgICAgfQogICAgICB9OwogICAgICBsZXQgdXBmbiA9IGZ1bmN0aW9uIHVwZm4oZSkgewogICAgICAgIGlmIChzZWxmLmluZm8uc3RhcnRlZCkgewogICAgICAg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ZXh0KHRleHQpIHsKICAgICAgICAgIGxldCByZXBsYWNlZFRleHQgPSB0ZXh0OwogICAgICAgICAgcmVwbGFjZWRUZXh0ID0gcmVwbGFjZWRUZXh0LnJlcGxhY2UoSE9TVF9ESVIsIEhPU1RfRElSX1JFUExBQ01FTlQpOwogICAgICAgICAgcmVwbGFjZWRUZXh0ID0gcmVwbGFjZWRUZXh0LnJlcGxhY2UoRUxfRElSLCBFTF9ESVJfUkVQTEFDTUVOVCk7CiAgICAgICAgICByZXR1cm4gcmVwbGFjZWRUZXh0OwogICAgICAgIH0KCiAgICAgICAgY29uc3RydWN0b3IoKSB7CiAgICAgICAgICBzdXBlcigpOwogICAgICAgICAgLyoqIEB0eXBlIHtib29sZWFufSAqLwogICAgICAgICAgdGhpcy5fX2F1dG9EaXJPcHRPdXQgPSBmYWxzZTsKICAgICAgICB9CgogICAgICAgIC8qKgogICAgICAgICAqIEBzdXBwcmVzcyB7aW52YWxpZENhc3RzfSBDbG9zdXJlIGRvZXNuJ3QgdW5kZXJzdGFuZCB0aGF0IGB0aGlzYCBpcyBhbiBIVE1MRWxlbWVudAogICAgICAgICAqIEByZXR1cm4ge3ZvaWR9CiAgICAgICAgICovCiAgICAgICAgcmVhZHkoKSB7CiAgICAgICAgICBzdXBlci5yZWFkeSgpOwogICAgICAgICAgdGhpcy5fX2F1dG9EaXJPcHRPdXQgPSAvKiogQHR5cGUgeyFIVE1MRWxlbWVudH0gKi8odGhpcykuaGFzQXR0cmlidXRlKCdkaXInKTsKICAgICAgICB9CgogICAgICAgIC8qKgogICAgICAgICAqIEBzdXBwcmVzcyB7bWlzc2luZ1Byb3BlcnRpZXN9IElmIGl0IGV4aXN0cyBvbiBlbGVtZW50QmFzZSwgaXQgY2FuIGJlIHN1cGVyJ2QKICAgICAgICAgKiBAcmV0dXJuIHt2b2lkfQogICAgICAgICAqLwogICAgICAgIGNvbm5lY3RlZENhbGxiYWNrKCkgewogICAgICAgICAgaWYgKGVsZW1lbnRCYXNlLnByb3RvdHlwZS5jb25uZWN0ZWRDYWxsYmFjaykgewogICAgICAgICAgICBzdXBlci5jb25uZWN0ZWRDYWxsYmFjaygpOwogICAgICAgICAgfQogICAgICAgICAgaWYgKHRoaXMuY29uc3RydWN0b3IuX19hY3RpdmF0ZURpcikgewogICAgICAgICAgICB0YWtlUmVjb3JkcygpOwogICAgICAgICAgICBESVJfSU5TVEFOQ0VTLnB1c2godGhpcyk7CiAgICAgICAgICAgIHNldFJUTCh0aGlzKTsKICAgICAgICAgIH0KICAgICAgICB9CgogICAgICAgIC8qKgogICAgICAgICAqIEBzdXBwcmVzcyB7bWlzc2luZ1Byb3BlcnRpZXN9IElmIGl0IGV4aXN0cyBvbiBlbGVtZW50QmFzZSwgaXQgY2FuIGJlIHN1cGVyJ2QKICAgICAgICAgKiBAcmV0dXJuIHt2b2lkfQogICAgICAgICAqLwogICAgICAgIGRpc2Nvbm5lY3RlZENhbGxiYWNrKCkgewogICAgICAgICAgaWYgKGVsZW1lbnRCYXNlLnByb3RvdHlwZS5kaXNjb25uZWN0ZWRDYWxsYmFjaykgewogICAgICAgICAgICBzdXBlci5kaXNjb25uZWN0ZWRDYWxsYmFjaygpOwogICAgICAgICAgfQogICAgICAgICAgaWYgKHRoaXMuY29uc3RydWN0b3IuX19hY3RpdmF0ZURpcikgewogICAgICAgICAgICBjb25zdCBpZHggPSBESVJfSU5TVEFOQ0VTLmluZGV4T2YodGhpcyk7CiAgICAgICAgICAgIGlmIChpZHggPiAtMSkgewogICAgICAgICAgICAgIERJUl9JTlNUQU5DRVMuc3BsaWNlKGlkeCwgMSk7CiAgICAgICAgICAgIH0KICAgICAgICAgIH0KICAgICAgICB9CiAgICAgIH0KCiAgICAgIERpci5fX2FjdGl2YXRlRGlyID0gZmFsc2U7CgogICAgICByZXR1cm4gRGlyOwogICAgfSk7CiAgfSkoKTsKCgoKKGZ1bmN0aW9uKCkgewoKICAndXNlIHN0cmljdCc7CgogIC8vIHJ1biBhIGNhbGxiYWNrIHd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zdGFuY2VzKGRpc3RhbmNlcykgewogICAgbGV0IGkgPSBkaXN0YW5jZXMubGVuZ3RoIC0gMTsKICAgIGxldCBqID0gZGlzdGFuY2VzWzBdLmxlbmd0aCAtIDE7CiAgICBsZXQgY3VycmVudCA9IGRpc3RhbmNlc1tpXVtqXTsKICAgIGxldCBlZGl0cyA9IFtdOwogICAgd2hpbGUgKGkgPiAwIHx8IGogPiAwKSB7CiAgICAgIGlmIChpID09IDApIHsKICAgICAgICBlZGl0cy5wdXNoKEVESVRfQUREKTsKICAgICAgICBqLS07CiAgICAgICAgY29udGludWU7CiAgICAgIH0KICAgICAgaWYgKGogPT0gMCkgewogICAgICAgIGVkaXRzLnB1c2goRURJVF9ERUxFVEUpOwogICAgICAgIGktLTsKICAgICAgICBjb250aW51ZTsKICAgICAgfQogICAgICBsZXQgbm9ydGhXZXN0ID0gZGlzdGFuY2VzW2kgLSAxXVtqIC0gMV07CiAgICAgIGxldCB3ZXN0ID0gZGlzdGFuY2VzW2kgLSAxXVtqXTsKICAgICAgbGV0IG5vcnRoID0gZGlzdGFuY2VzW2ldW2ogLSAxXTsKCiAgICAgIGxldCBtaW47CiAgICAgIGlmICh3ZXN0IDwgbm9ydGgpCiAgICAgICAgbWluID0gd2VzdCA8IG5vcnRoV2VzdCA/IHdlc3QgOiBub3J0aFdlc3Q7CiAgICAgIGVsc2UKICAgICAgICBtaW4gPSBub3J0aCA8IG5vcnRoV2VzdCA/IG5vcnRoIDogbm9ydGhXZXN0OwoKICAgICAgaWYgKG1pbiA9PSBub3J0aFdlc3QpIHsKICAgICAgICBpZiAobm9ydGhXZXN0ID09IGN1cnJlbnQpIHsKICAgICAgICAgIGVkaXRzLnB1c2goRURJVF9MRUFWRSk7CiAgICAgICAgfSBlbHNlIHsKICAgICAgICAgIGVkaXRzLnB1c2goRURJVF9VUERBVEUpOwogICAgICAgICAgY3VycmVudCA9IG5vcnRoV2VzdDsKICAgICAgICB9CiAgICAgICAgaS0tOwogICAgICAgIGotL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7IGkrKykgewogICAgICBzd2l0Y2gob3BzW2ldKSB7CiAgICAgICAgY2FzZSBFRElUX0xFQVZFOgogICAgICAgICAgaWYgKHNwbGljZSkgewogICAgICAgICAgICBzcGxpY2VzLnB1c2goc3BsaWNlKTsKICAgICAgICAgICAgc3BsaWNlID0gdW5kZWZpbmVkOwogICAgICAgICAgfQoKICAgICAgICAgIGluZGV4Kys7CiAgICAgICAgICBvbGRJbmRleCsrOwogICAgICAgICAgYnJlYWs7CiAgICAgICAgY2FzZSBFRElUX1VQREFURToKICAgICAgICAgIGlmICghc3BsaWNlKQogICAgICAgICAgICBzcGxpY2UgPSBuZXdTcGxpY2UoaW5kZXgsIFtdLCAwKTsKCiAgICAgICAgICBzcGxpY2UuYWRkZWRDb3VudCsrOwogICAgICAgICAgaW5kZXgrKzsKCiAgICAgICAgICBzcGxpY2UucmVtb3ZlZC5wdXNoKG9sZFtvbGRJbmRleF0pOwogICAgICAgICAgb2xkSW5kZXgrKzsKICAgICAgICAgIGJyZWFrOwogICAgICAgIGNhc2UgRURJVF9BREQ6CiAgICAgICAgICBpZiAoIXNwbGljZSkKICAgICAgICAgICAgc3BsaWNlID0gbmV3U3BsaWNlKGluZGV4LCBbXSwgMCk7CgogICAgICAgICAgc3BsaWNlLmFkZGVkQ291bnQrKzsKICAgICAgICAgIGluZGV4Kys7CiAgICAgICAgICBicmVhazsKICAgICAgICBjYXNlIEVESVRfREVMRVRFOgogICAgICAgICAgaWYgKCFzcGxpY2UpCiAgICAgICAgICAgIHNwbGljZSA9IG5ld1NwbGljZShpbmRleCwgW10sIDApOwoKICAgICAgICAgIHNwbGljZS5yZW1vdmVkLnB1c2gob2xkW29sZEluZGV4XSk7CiAgICAgICAgICBvbGRJbmRleCsrOwogICAgICAgICAgYnJlYWs7CiAgICAgIH0KICAgIH0KCiAgICBpZiAoc3BsaWNlKSB7CiAgICAgIHNwbGljZXMucHVzaChzcGxpY2UpOwogICAgfQogICAgcmV0dXJuIHNwbGljZXM7CiAg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cGVydHkocHJvdG90eXBlLCBuLCBwZCk7CiAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIHJldHVybiBwcm90b3R5cGU7CiAgICAgIH0KCiAgICAgIC8qKgogICAgICAgKiBDb3BpZXMgcHJvcHMgZnJvbSBhIHNvdXJjZSBvYmplY3QgdG8gYSB0YXJnZXQgb2JqZWN0LgogICAgICAgKgogICAgICAgKiBOb3RlLCB0aGlzIG1ldGhvZCB1c2VzIGEgc2ltcGxlIGBmb3IuLi5pbmAgc3RyYXRlZ3kgZm9yIGVudW1lcmF0aW5nCiAgICAgICAqIHByb3BlcnRpZXMuICBUbyBlbnN1cmUgb25seSBgb3duUHJvcGVydGllc2AgYXJlIGNvcGllZCBmcm9tIHNvdXJjZQogICAgICAgKiB0byB0YXJnZXQgYW5kIHRoYXQgYWNjZXNzb3IgaW1wbGVtZW50YXRpb25zIGFyZSBjb3BpZWQsIHVzZSBgZXh0ZW5kYC4KICAgICAgICoKICAgICAgICogQHBhcmFtIHshT2JqZWN0fSB0YXJnZXQgVGFyZ2V0IG9iamVjdCB0byBjb3B5IHByb3BlcnRpZXMgdG8uCiAgICAgICAqIEBwYXJhbSB7IU9iamVjdH0gc291cmNlIFNvdXJjZSBvYmplY3QgdG8gY29weSBwcm9wZXJ0aWVzIGZyb20uCiAgICAgICAqIEByZXR1cm4geyFPYmplY3R9IFRhcmdldCBvYmplY3QgdGhhdCB3YXMgcGFzc2VkIGFzIGZpcnN0IGFyZ3VtZW50LgogICAgICAgKi8KICAgICAgbWl4aW4odGFyZ2V0LCBzb3VyY2UpIHsKICAgICAgICBmb3IgKGxldCBpIGluIHNvdXJjZSkgewogICAgICAgICAgdGFyZ2V0W2ldID0gc291cmNlW2ldOwogICAgICAgIH0KICAgICAgICByZXR1cm4gdGFyZ2V0OwogICAgICB9CgogICAgICAvKioKICAgICAgICogU2V0cyB0aGUgcHJvdG90eXBlIG9mIGFuIG9iamVjdC4KICAgICAgICoKICAgICAgICogTm90ZSB0aGlzI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Zmx1c2hEZWJvdW5jZXIoam9iTmFtZSkgewogICAgICAgIHRoaXMuX2RlYm91bmNlcnMgPSB0aGlzLl9kZWJvdW5jZXJzIHx8IHt9OwogICAgICAgIGxldCBkZWJvdW5jZXIgPSB0aGlzLl9kZWJvdW5jZXJzW2pvYk5hbWVdOwogICAgICAgIGlmIChkZWJvdW5jZXIpIHsKICAgICAgICAgIGRlYm91bmNlci5mbHVzaCgpOwogICAgICAgIH0KICAgICAgfQoKICAgICAgLyoqCiAgICAgICAqIENhbmNlbHMgYW4gYWN0aXZlIGRlYm91bmNlci4gIFRoZSBgY2FsbGJhY2tgIHdpbGwgbm90IGJlIGNhbGxlZC4KICAgICAgICoKICAgICAgICogQHBhcmFtIHtzdHJpbmd9IGpvYk5hbWUgVGhlIG5hbWUgb2YgdGhlIGRlYm91bmNlciBzdGFydGVkIHdpdGggYGRlYm91bmNlYAogICAgICAgKiBAcmV0dXJuIHt2b2lkfQogICAgICAgKi8KICAgICAgY2FuY2VsRGVib3VuY2VyKGpvYk5hbWUpIHsKICAgICAgICB0aGlzLl9kZWJvdW5jZXJzID0gdGhpcy5fZGVib3VuY2VycyB8fCB7fTsKICAgICAgICBsZXQgZGVib3VuY2VyID0gdGhpcy5fZGVib3VuY2Vyc1tqb2JOYW1lXTsKICAgICAgICBpZiAoZGVib3VuY2VyKSB7CiAgICAgICAgICBkZWJvdW5jZXIuY2FuY2VsKCk7CiAgICAgICAgfQogICAgICB9CgogICAgICAvKioKICAgICAgICogUnVucyBhIGNhbGxiYWNrIGZ1bmN0aW9uIGFzeW5jaHJvbm91c2x5LgogICAgICAgKgogICAgICAgKiBCeSBkZWZhdWx0IChpZiBubyB3YWl0VGltZSBpcyBzcGVjaWZpZWQpLCBhc3luYyBjYWxsYmFja3MgYXJlIHJ1biBhdAogICAgICAgKiBtaWNyb3Rhc2sgdGltaW5nLCB3aGljaCB3aWxsIG9jY3VyIGJlZm9yZSBwYWludC4KICAgICAgICoKICAgICAgICogQHBhcmFtI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gICAgIFBvbHltZXIuQXN5bmMudGltZU91dC5jYW5jZWwoaGFuZGxlKTsKICAgICAgfQoKICAgICAgLy8gb3RoZXIKCiAgICAgIC8qKgogICAgICAgKiBDb252ZW5pZW5jZSBtZXRob2QgZm9yIGNyZWF0aW5nIGFuIGVsZW1lbnQgYW5kIGNvbmZpZ3VyaW5nIGl0LgogICAgICAgKgogICAgICAgKiBAcGFyYW0ge3N0cmluZ30gdGFnIEhUTUwgZWxlbWVudCB0YWcgdG8gY3JlYXRlLgogICAgICAgKiBAcGFyYW0ge09iamVjdD19IHByb3BzIE9iamVjdCBvZiBwcm9wZXJ0aWVzIHRvIGNvbmZpZ3VyZSBvbiB0aGUKICAgICAgICogICAgaW5zdGFuY2UuCiAgICAgICAqIEByZXR1cm4geyFFbGVtZW50fSBOZXdseSBjcmVhdGVkIGFuZCBjb25maWd1cmVkIGVsZW1lbnQuCiAgICAgICAqLwogICAgICBjcmVhdGUodGFnLCBwcm9wcykgewogICAgICAgIGxldCBlbHQgPSBkb2N1bWVudC5jcmVhdGVFbGVtZW50KHRhZyk7CiAgICAgICAgaWYgKHByb3BzKSB7CiAgICAgICAgICBpZiAoZWx0LnNldFByb3BlcnRpZXMpIHsKICAgICAgICAgICAgZWx0LnNldFByb3BlcnRpZXMocHJvcHMpOwogICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgZm9yIChsZXQgbiBpbiBwcm9wcykgewogICAgICAgICAgICAgIGVsdFtuXSA9IHByb3BzW25dOwogICAgICAgICAgICB9CiAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIHJldHVybiBlbHQ7CiAgICAgIH0KCiAgICAgIC8qKgogICAgICAgKiBDb252ZW5pZW5jZSBtZXRob2QgZm9yIGltcG9ydGluZyBhbiBIVE1MIGRvY3VtZW50IGltcGVyYXRpdmVseS4KICAgICAgICoKICAgICAgICogVGhpcyBtZXRob2QgY3JlYXRlcyBhIG5ldyBgPGxpbmsgcmVsPSJpbXBvcnQiPmAgZWxlb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3RpZmljYXRpb24gaXMgZ2VuZXJhdGVkKiouCiAgICAgICAqCiAgICAgICAqIEBwYXJhbSB7c3RyaW5nIHwgIUFycmF5PG51bWJlcnxzdHJpbmc+fSBhcnJheU9yUGF0aCBQYXRoIHRvIGFycmF5IGZyb20gd2hpY2ggdG8gcmVtb3ZlIHRoZSBpdGVtCiAgICAgICAqICAgKG9yIHRoZSBhcnJheSBpdHNlbGYpLgogICAgICAgKiBAcGFyYW0geyp9IGl0ZW0gSXRlbSB0byByZW1vdmUuCiAgICAgICAqIEByZXR1cm4ge0FycmF5fSBBcnJheSBjb250YWluaW5nIGl0ZW0gcmVtb3ZlZC4KICAgICAgICovCiAgICAgIGFycmF5RGVsZXRlKGFycmF5T3JQYXRoLCBpdGVtKSB7CiAgICAgICAgbGV0IGluZGV4OwogICAgICAgIGlmIChBcnJheS5pc0FycmF5KGFycmF5T3JQYXRoKSkgewogICAgICAgICAgaW5kZXggPSBhcnJheU9yUGF0aC5pbmRleE9mKGl0ZW0pOwogICAgICAgICAgaWYgKGluZGV4ID49IDApIHsKICAgICAgICAgICAgcmV0dXJuIGFycmF5T3JQYXRoLnNwbGljZShpbmRleCwgMSk7CiAgICAgICAgICB9CiAgICAgICAgfSBlbHNlIHsKICAgICAgICAgIGxldCBhcnIgPSBQb2x5bWVyLlBhdGguZ2V0KHRoaXMsIGFycmF5T3JQYXRoKTsKICAgICAgICAgIGluZGV4ID0gYXJyLmluZGV4T2YoaXRlbSk7CiAgICAgICAgICBpZiAoaW5kZXggPj0gMCkgewogICAgICAgICAgICByZXR1cm4gdGhpcy5zcGxpY2UoYXJyYXlPclBhdGgsIGluZGV4LCAxKTsKICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgcmV0dXJuIG51bGw7CiAgICAgIH0KCiAgICAgIC8vIGxvZ2dpbmcKCiAgICAgIC8qKgogICAgICAgKiBGYWNhZGVzIGBjb25zb2xlLmxvZ2AvYHdhcm5gL2BlcnJvcmAgYXMgb3ZlcnJpZGUgcG9pbnQuCiAgICAgICAqCiAgICAgICAqIEBwYXJhbSB7c3RyaW5nfSBsZXZlbCBPbmUgb2YgJ2xvZycsICd3YXJuJywgJ2Vycm9yJwogICAgICAgKiBAcGFyYW0ge0FycmF5fSBhcmdzIEFycmF5IG9mIHN0cmluZ3Mgb3Igb2JqZWN0cyB0byBsb2cKICAgICAgICogQHJldHVybiB7dm9pZH0KICAgICAgICovCiAgICAgIF9sb2dnZXIobGV2ZWwsIGFyZ3MpIHsKICAgICAgICAvLyBhY2NlcHQgWydmb28nLCAnYmFyJ10gYW5kIFtbJ2ZvbycsICdiYXInXV0KICAgICAgICBpZiAoQXJyYXkuaXNBcnJheShhcmdzKSAmJiBhcmdzLmxlbmd0aCA9PT0gMSAmJiBBcnJheS5pc0FycmF5KGFyZ3NbMF0pKSB7CiAgICAgICAgICBhcmdzID0gYXJnc1swXTsKICAgICAgICB9CiAgICAgICAgc3dpdGNoKGxldmVsKSB7CiAgICAgICAgICBjYXNlICdsb2cnOgogICAgICAgICAgY2FzZSAnd2Fybic6CiAgICAgICAgICBjYXNlICdlcnJvcic6CiAgICAgICAgICAgIGNvbnNvbGVbbGV2ZWxdKC4uLmFyZ3MpOwogICAgICAgIH0KICAgICAgfQoKICAgICAgLyoqCiAgICAgICAqIEZhY2FkZXMgYGNvbnNvbGUubG9nYCBhcyBhbiBvdmVycmlkZSBwb2ludC4KICAgICAgICoKICAgICAgICogQHBhcmFtIHsuLi4qfSBhcmdzIEFycmF5IG9mIHN0cmluZ3Mgb3Igb2JqZWN0cyB0byBsb2cKICAgICAgICogQHJldHVybiB7dm9pZH0KICAgICAgICovCiAgICAgIF9sb2coLi4uYXJncykgewogICAgICAgIHRoaXMuX2xvZ2dlcignbG9nJywgYXJncyk7CiAgICAgIH0KCiAgICAgIC8qKgogICAgICAgKiBGYWNhZGVzIGBjb25zb2xlLndhcm5gIGFzIGFuIG92ZXJyaWRlIHBvaW50LgogICAgICAgKgogICAgICAgKiBAcGFyYW0gey4uLip9IGFyZ3MgQXJyYXkgb2Ygc3RyaW5ncyBvciBvYmplY3RzIHRvIGxvZwogICAgICAgKiBAcmV0dXJuIHt2b2lkfQogICAgICAgKi8KICAgICAgX3dhcm4oLi4uYXJncykgewogICAgICAgIHRoaXMuX2xvZ2dlcignd2FybicsIGFyZ3MpOwogICAgICB9CgogICAgICAvKioKICAgICAgICogRmFjYWRlcyBgY29uc29sZS5lcnJvcmAgYXMgYW4gb3ZlcnJpZGUgcG9pbnQuCiAgICAgICAqCiAgICAgICAqIEBwYXJhbSB7Li4uKn0gYXJncyBBcnJheSBvZiBzdHJpbmdzIG9yIG9iamVjdHMgdG8gbG9nCiAgICAgICAqIEByZXR1cm4ge3ZvaWR9CiAgICAgICAqLwogICAgICBfZXJyb3IoLi4uYXJncykgewogICAgICAgIHRoaXMuX2xvZ2dlcignZXJyb3InLCBhcmdzKTsKICAgICAgfQoKICAgICAgLyoqCiAgICAgICAqIEZvcm1hdHMgYSBtZXNzYWdlIHVzaW5nIHRoZSBlbGVtZW50IHR5cGUgYW4gYSBtZXRob2QgbmFtZS4KICAgICAgICoKICAgICAgICogQHBhcmFtIHtzdHJpbmd9IG1ldGhvZE5hbWUgTWV0aG9kIG5hbWUgdG8gYXNzb2NpYXRlIHdpdGggbWVzc2FnZQogICAgICAgKiBAcGFyYW0gey4uLip9IGFyZ3MgQXJyYXkgb2Ygc3RyaW5ncyBvciBvYmplY3RzIHRvIGxvZwogICAgICAgKiBAcmV0dXJuIHtBcnJheX0gQXJyYXkgd2l0aCBmb3JtYXR0aW5nIGluZm9ybWF0aW9uIGZvciBgY29uc29sZWAKICAgICAgICogICBsb2dnaW5nLgogICAgICAgKi8KICAgICAgX2xvZ2YobWV0aG9kTmFtZSwgLi4uYXJncykgewogICAgICAgIHJldHVybiBbJ1slczo6JXNdJywgdGhpcy5pcywgbWV0aG9kTmFtZSwgLi4uYXJnc107CiAgICAgIH0KCiAgICB9CgogICAgTGVnYWN5RWxlbWVudC5wcm90b3R5c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cykgewogICAgICBjb25zdCBub0FjY2Vzc29ycyA9IHNvdXJjZS5fbm9BY2Nlc3NvcnM7CiAgICAgIGZvciAobGV0IHAgaW4gc291cmNlKSB7CiAgICAgICAgaWYgKCEocCBpbiBleGNsdWRlUHJvcHMpKSB7CiAgICAgICAgICBpZiAobm9BY2Nlc3NvcnMpIHsKICAgICAgICAgICAgdGFyZ2V0W3BdID0gc291cmNlW3BdOwogICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgbGV0IHBkID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihzb3VyY2UsIHApOwogICAgICAgICAgICBpZiAocGQpIHsKICAgICAgICAgICAgICAvLyBlbnN1cmUgcHJvcGVydHkgaXMgY29uZmlndXJhYmxlIHNvIHRoYXQgYSBsYXRlciBiZWhhdmlvciBjYW4KICAgICAgICAgICAgICAvLyByZS1jb25maWd1cmUgaXQuCiAgICAgICAgICAgICAgcGQuY29uZmlndXJhYmxlID0gdHJ1ZTsKICAgICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkodGFyZ2V0LCBwLCBwZCk7CiAgICAgICAgICAgIH0KICAgICAgICAgIH0KICAgICAgICB9CiAgICAgIH0KICAgIH0KCiAgICAvKioKICAgICAqIEFwcGxpZXMgYSAibGVnYWN5IiBiZWhhdmlvciBvciBhcnJheSBvZiBiZWhhdmlvcnMgdG8gdGhlIHByb3ZpZGVkIGNsYXNzLgogICAgICoKICAgICAqIE5vdGU6IHRoaXMgbWV0aG9kIHdpbGwgYXV0b21hdGljYWxseSBhbHNvIGFwcGx5IHRoZSBgUG9seW1lci5MZWdhY3lFbGVtZW50TWl4aW5gCiAgICAgKiB0byBlbnN1cmUgdGhhdCBhbnkgbGVnYWN5IGJlaGF2aW9ycyBjYW4gcmVseSBvbiBsZWdhY3kgUG9seW1lciBBUEkgb24KICAgICAqIHRoZSB1bmRlcmx5aW5nIGVsZW1lbnQuCiAgICAgKgogICAgICogQHRlbXBsYXRlIF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AgICBiID0gYmVoYXZpb3JMaXN0W2ldOwogICAgICAgICAgICAgICAgaWYgKGIucHJvcGVydGllcykgewogICAgICAgICAgICAgICAgICB0aGlzLmNyZWF0ZVByb3BlcnRpZXMoYi5wcm9wZXJ0aWVzKTsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgIGlmIChiLm9ic2VydmVycykgewogICAgICAgICAgICAgICAgICB0aGlzLmNyZWF0ZU9ic2VydmVycyhiLm9ic2VydmVycywgYi5wcm9wZXJ0aWVzKTsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICAgICAgaWYgKGluZm8ucHJvcGVydGllcykgewogICAgICAgICAgICAgIHRoaXMuY3JlYXRlUHJvcGVydGllcyhpbmZvLnByb3BlcnRpZXMpOwogICAgICAgICAgICB9CiAgICAgICAgICAgIGlmIChpbmZvLm9ic2VydmVycykgewogICAgICAgICAgICAgIHRoaXMuY3JlYXRlT2JzZXJ2ZXJzKGluZm8ub2JzZXJ2ZXJzLCBpbmZvLnByb3BlcnRpZXMpOwogICAgICAgICAgICB9CiAgICAgICAgICAgIC8vIG1ha2Ugc3VyZSB0byBwcmVwYXJlIHRoZSBlbGVtZW50IHRlbXBsYXRlCiAgICAgICAgICAgIHRoaXMuX3ByZXBhcmVUZW1wbGF0ZSgpOwogICAgICAgICAgfQogICAgICAgIH0KCiAgICAgICAgc3RhdGljIGdldCBwcm9wZXJ0aWVzKCkgewogICAgICAgICAgY29uc3QgcHJvcGVydGllcyA9IHt9OwogICAgICAgICAgaWYgKGJlaGF2aW9yTGlzdCkgewogICAgICAgICAgICBmb3IgKGxldCBpPTA7IGkgPCBiZWhhdmlvckxpc3QubGVuZ3RoOyBpKyspIHsKICAgICAgICAgICAgICBPYmplY3QuYXNzaWduKHByb3BlcnRpZXMsIGJlaGF2aW9yTGlzdFtpXS5wcm9wZXJ0aWVzKTsKICAgICAgICAgICAgfQogICAgICAgICAgfQogICAgICAgICAgT2JqZWN0LmFzc2lnbihwcm9wZXJ0aWVzLCBpbmZvLnByb3BlcnRpZXMpOwogICAgICAgICAgcmV0dXJuIHByb3BlcnRpZXM7CiAgICAgICAgfQoKICAgICAgICBzdGF0aWMgZ2V0IG9ic2VydmVycygpIHsKICAgICAgICAgIGxldCBvYnNlcnZlcnMgPSBbXTsKICAgICAgICAgIGlmIChiZWhhdmlvckxpc3QpIHsKICAgICAgICAgICAgZm9yIChsZXQgaT0wLCBiOyBpIDwgYmVoYXZpb3JMaXN0Lmxlbmd0aDsgaSsrKSB7CiAgICAgICAgICAgICAgYiA9IGJlaGF2aW9yTGlzdFtpXTsKICAgICAgICAgICAgICBpZiAoYi5vYnNlcnZlcnMpIHsKICAgICAgICAgICAgICAgIG9ic2VydmVycyA9IG9ic2VydmVycy5jb25jYXQoYi5vYnNlcnZlcnMpOwogICAgICAgICAgICAgIH0KICAgICAgICAgICAgfQogICAgICAgICAgfQogICAgICAgICAgaWYgKGluZm8ub2JzZXJ2ZXJzKSB7CiAgICAgICAgICAgIG9ic2VydmVycyA9IG9ic2VydmVycy5jb25jYXQoaW5mby5vYnNlcnZlcnMpOwogICAgICAgICAgfQogICAgICAgICAgcmV0dXJuIG9ic2VydmVyczsKICAgICAgICB9CgogICAgICAgIC8qKgogICAgICAgICAqIEByZXR1cm4ge3ZvaWR9CiAgICAgICAgICovCiAgICAgICAgY3JlYXRlZCgpIHsKICAgICAgICAgIHN1cGVyLmNyZWF0ZWQoKTsKICAgICAgICAgIGNvbnN0IGxpc3QgPSBsaWZlY3ljbGUuY3JlYXRlZDsKICAgICAgICAgIGlmIChsaXN0KSB7CiAgICAgICAgICAgIGZvciAobGV0IGk9MDsgaSA8IGxpc3QubGVuZ3RoOyBpKyspIHsKICAgICAgICAgICAgICBsaXN0W2ldLmNhbGwodGhpcyk7CiAgICAgICAgICAgIH0KICAgICAgICAgIH0KICAgICAgICB9CgogICAgICAgIC8qKgogICAgICAgICAqIEByZXR1cm4ge3ZvaWR9Ci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N0LgogICAgICAgICAgICBzdXBlci5fcmVnaXN0ZXJlZCgpOwogICAgICAgICAgICAvLyBjb3B5IHByb3BlcnRpZXMgb250byB0aGUgZ2VuZXJhdGVkIGNsYXNzIGxhemlseSBpZiB3ZSdyZSBvcHRpbWl6aW5nLAogICAgICAgICAgICBpZiAoUG9seW1lci5sZWdhY3lPcHRpbWl6YXRpb25zKSB7CiAgICAgICAgICAgICAgY29weVByb3BlcnRpZXNUb1Byb3RvKGdlbmVyYXRlZFByb3RvKTsKICAgICAgICAgICAgfQogICAgICAgICAgICAvLyBtYWtlIHN1cmUgbGVnYWN5IGxpZmVjeWNsZSBpcyBjYWxsZWQgb24gdGhlICplbGVtZW50KidzIHByb3RvdHlwZQogICAgICAgICAgICAvLyBhbmQgbm90IHRoZSBnZW5lcmF0ZWQgY2xhc3MgcHJvdG90eXBlOyBpZiB0aGUgZWxlbWVudCBoYXMgYmVlbgogICAgICAgICAgICAvLyBleHRlbmRlZCwgdGhlc2UgYXJlICpub3QqIHRoZSBzYW1lLgogICAgICAgICAgICBjb25zdCBwcm90byA9IE9iamVjdC5nZXRQcm90b3R5cGVPZih0aGlzKTsKICAgICAgICAgICAgbGV0IGxpc3QgPSBsaWZlY3ljbGUuYmVmb3JlUmVnaXN0ZXI7CiAgICAgICAgICAgIGlmIChsaXN0KSB7CiAgICAgICAgICAgICAgZm9yIChsZXQgaT0wOyBpIDwgbGlzdC5sZW5ndGg7IGkrKykgewogICAgICAgICAgICAgICAgbGlzdFtpXS5jYWxsKHByb3RvKTsKICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICAgICAgbGlzdCA9IGxpZmVjeWNsZS5yZWdpc3RlcmVkOwogICAgICAgICAgICBpZiAobGlzdCkgewogICAgICAgICAgICAgIGZvciAobGV0IGk9MDsgaSA8IGxpc3QubGVuZ3RoOyBpKyspIHsKICAgICAgICAgICAgICAgIGxpc3RbaV0uY2FsbChwcm90byk7CiAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CiAgICAgICAgICB9CiAgICAgICAgfQoKICAgICAgICAvKioKICAgICAgICAgKiBAcmV0dXJuIHt2b2lkfQogICAgICAgICAqLwogICAgICAgIF9hcHBseUxpc3RlbmVycygpIHsKICAgICAgICAgIHN1cGVyLl9hcHBseUxpc3RlbmVycygpOwogICAgICAgICAgY29uc3QgbGlzdCA9IGxpZmVjeWNsZS5saXN0ZW5lcnM7CiAgICAgICAgICBpZiAobGlzdCkgewogICAgICAgICAgICBmb3IgKGxldCBpPTA7IGkgPCBsaXN0Lmxlbmd0aDsgaSsrKSB7CiAgICAgICAgICAgICAgY29uc3QgbGlzdGVuZXJzID0gbGlzdFtpXTsKICAgICAgICAgICAgICBpZiAobGlzdGVuZXJzKSB7CiAgICAgICAgICAgICAgICBmb3IgKGxldCBsIGluIGxpc3RlbmVycykgewogICAgICAgICAgICAgICAgICB0aGlzLl9hZGRNZXRob2RFdmVudExpc3RlbmVyVG9Ob2RlKHRoaXMsIGwsIGxpc3RlbmVyc1tsXSk7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CiAgICAgICAgICB9CiAgICAgICAgfQoKICAgICAgICAvLyBub3RlOiBleGNlcHRpb24gdG8gInN1cGVyIHRoZW4gbWUiIHJ1bGU7CiAgICAgICAgLy8gZG8gd29yayBiZWZvcmUgY2FsbGluZyBzdXBlciBzbyB0aGF0IHN1cGVyIGF0dHJpYnV0ZXMKICAgICAgICAvLyBvbmx5IGFwcGx5IGlmIG5vdCBhbHJlYWR5IHNldC4KICAgICAgICAvKioKICAgICAgICAgKiBAcmV0dXJuIHt2b2lkfQogICAgICAgICAqLwogICAgICAgIF9lbnN1cmVBdHRyaWJ1dGVzKCkgewogICAgICAgICAgY29uc3QgbGlzdCA9IGxpZmVjeWNsZS5ob3N0QXR0cmlidXRlczsKICAgICAgICAgIGlmIChsaXN0KSB7CiAgICAgICAgICAgIGZvciAobGV0IGk9bGlzdC5sZW5ndGgtMTsgaSA+PSAwOyBpLS0pIHsKICAgICAgICAgICAgICBjb25zdCBob3N0QXR0cmlidXRlcyA9IGxpc3RbaV07CiAgICAgICAgICAgICAgZm9yIChsZXQgYSBpbiBob3N0QXR0cmlidXRlcykgewogICAgICAgICAgICAgICAgICB0aGlzLl9lbnN1cmVBdHRyaWJ1dGUoYSwgaG9zdEF0dHJpYnV0ZXNbYV0pOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CiAgICAgICAgICB9CiAgICAgICAgICBzdXBlci5fZW5zdXJlQXR0cmlidXRlcygpOwogICAgICAgIH0KCiAgICAgICAgLyoqCiAgICAgICAgICogQHJldHVybiB7dm9pZH0KICAgICAgICAgKi8KICAgICAgICByZWFkeSgpIHsKICAgICAgICAgIHN1cGVyLnJlYWR5KCk7CiAgICAgICAgICBsZXQgbGlzdCA9IGxpZmVjeWNsZS5yZWFkeTsKICAgICAgICAgIGlmIChsaXN0KSB7CiAgICAgICAgICAgIGZvciAobGV0IGk9MDsgaSA8IGxpc3QubGVuZ3RoOyBpKyspIHsKICAgICAgICAgICAgICBsaXN0W2ldLmNhbGwodGhpcyk7CiAgICAgICAgICAgIH0KICAgICAgICAgIH0KICAgICAgICB9CgogICAgICAgIC8qKgogICAgICAgICAqIEByZXR1cm4ge3ZvaWR9CiAgICAgICAgICovCiAgICAgICAgYXR0YWNoZWQoKSB7CiAgICAgICAgICBzdXBlci5hdHRhY2hlZCgpOwogICAgICAgICAgbGV0IGxpc3QgPSBsaWZlY3ljbGUuYXR0YWNoZWQ7CiAgICAgICAgICBpZiAobGlzdCkgewogICAgICAgICAgICBmb3IgKGxldCBpPTA7IGkgPCBsaXN0Lmxlbmd0aDsgaSsrKSB7CiAgICAgICAgICAgICAgbGlzdFtpXS5jYWxsKHRoaXMpOwogICAgICAgICAgICB9CiAgICAgICAgICB9CiAgICAgICAgfQoKICAgICAgICAvKioKICAgICAgICAgKiBAcmV0dXJuIHt2b2lkfQogICAgICAgICAqLwogICAgICAgIGRldGFjaGV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gICAgfQogICAgICAgIC8vIEZsdXNoIHByb3BzIG9ubHkgd2hlbiBwcm9wcyBhcmUgcGFzc2VkIGlmIGluc3RhbmNlIHByb3BzIGV4aXN0CiAgICAgICAgLy8gb3Igd2hlbiB0aGVyZSBpc24ndCBpbnN0YW5jZSBwcm9wcy4KICAgICAgICBsZXQgb3B0aW9ucyA9IHRoaXMuX190ZW1wbGF0aXplT3B0aW9uczsKICAgICAgICBpZiAoKHByb3BzICYmIG9wdGlvbnMuaW5zdGFuY2VQcm9wcykgfHwgIW9wdGlvbnMuaW5zdGFuY2VQcm9wcykgewogICAgICAgICAgdGhpcy5fZW5hYmxlUHJvcGVydGllcygpOwogICAgICAgIH0KICAgICAgfQogICAgICAvKioKICAgICAgICogQ29uZmlndXJlIHRoZSBnaXZlbiBgcHJvcHNgIGJ5IGNhbGxpbmcgYF9zZXRQZW5kaW5nUHJvcGVydHlgLiBBbHNvCiAgICAgICAqIHNldHMgYW55IHByb3BlcnRpZXMgc3RvcmVkIGluIGBfX2hvc3RQcm9wc2AuCiAgICAgICAqIEBwcml2YXRlCiAgICAgICAqIEBwYXJhbSB7T2JqZWN0fSBwcm9wcyBPYmplY3Qgb2YgcHJvcGVydHkgbmFtZS12YWx1ZSBwYWlycyB0byBzZXQuCiAgICAgICAqIEByZXR1cm4ge3ZvaWR9CiAgICAgICAqLwogICAgICBfY29uZmlndXJlUHJvcGVydGllcyhwcm9wcykgewogICAgICAgIGxldCBvcHRpb25zID0gdGhpcy5fX3RlbXBsYXRpemVPcHRpb25zOwogICAgICAgIGlmIChvcHRpb25zLmZvcndhcmRIb3N0UHJvcCkgewogICAgICAgICAgZm9yIChsZXQgaHByb3AgaW4gdGhpcy5fX2hvc3RQcm9wcykgewogICAgICAgICAgICB0aGlzLl9zZXRQZW5kaW5nUHJvcGVydHkoaHByb3AsIHRoaXMuX19kYXRhSG9zdFsnX2hvc3RfJyArIGhwcm9wXSk7CiAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIC8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ZW1wbGF0ZUNoaWxkcmVuX18pKSB7CiAgICAgICAgICAgIGlmIChuLm5vZGVUeXBlID09PSBOb2RlLlRFWFRfTk9ERSkgewogICAgICAgICAgICAgIGlmIChoaWRlKSB7CiAgICAgICAgICAgICAgICBuLl9fcG9seW1lclRleHRDb250ZW50X18gPSBuLnRleHRDb250ZW50OwogICAgICAgICAgICAgICAgbi50ZXh0Q29udGVudCA9ICcnOwogICAgICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgICAgICBuLnRleHRDb250ZW50ID0gbi5fX3BvbHltZXJUZXh0Q29udGVudF9fOwogICAgICAgICAgICAgIH0KICAgICAgICAgICAgLy8gcmVtb3ZlIGFuZCByZXBsYWNlIHNsb3QKICAgICAgICAgICAgfSBlbHNlIGlmIChuLmxvY2FsTmFtZSA9PT0gJ3Nsb3QnKSB7CiAgICAgICAgICAgICAgaWYgKGhpZGUpIHsKICAgICAgICAgICAgICAgIG4uX19wb2x5bWVyUmVwbGFjZWRfXyA9IGRvY3VtZW50LmNyZWF0ZUNvbW1lbnQoJ2hpZGRlbi1zbG90Jyk7CiAgICAgICAgICAgICAgICBuLnBhcmVudE5vZGUucmVwbGFjZUNoaWxkKG4uX19wb2x5bWVyUmVwbGFjZWRfXywgbik7CiAgICAgICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgICAgIGNvbnN0IHJlcGxhY2UgPSBuLl9fcG9seW1lclJlcGxhY2VkX187CiAgICAgICAgICAgICAgICBpZiAocmVwbGFjZSkgewogICAgICAgICAgICAgICAgICByZXBsYWNlLnBhcmVudE5vZGUucmVwbGFjZUNoaWxkKG4sIHJlcGxhY2UpOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgIH0KICAgICAgICAgICAgfQoKICAgICAgICAgICAgZWxzZSBpZiAobi5zdHlsZSkgewogICAgICAgICAgICAgIGlmIChoaWRlKSB7CiAgICAgICAgICAgICAgICBuLl9fcG9seW1lckRpc3BsYXlfXyA9IG4uc3R5bGUuZGlzcGxheTsKICAgICAgICAgICAgICAgIG4uc3R5bGUuZGlzcGxheSA9ICdub25lJzsKICAgICAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICAgICAgbi5zdHlsZS5kaXNwbGF5ID0gbi5fX3BvbHltZXJEaXNwbGF5X187CiAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CiAgICAgICAgICB9CiAgICAgICAgICBuLl9faGlkZVRlbXBsYXRlQ2hpbGRyZW5fXyA9IGhpZGU7CiAgICAgICAgICBpZiAobi5fc2hvd0hpZGVDaGlsZHJlbikgewogICAgICAgICAgICBuLl9zaG93SGlkZUNoaWxkcmVuKGhpZGUpOwogICAgICAgICAgfQogICAgICAgIH0KICAgICAgfQogICAgICAvKioKICAgICAgICogT3ZlcnJpZGVzIGRlZmF1bHQgcHJvcGVydHktZWZmZWN0cyBpbXBsZW1lbnRhdGlvbiB0byBpbnRlcmNlcHQKICAgICAgICogdGV4dENvbnRlbnQgYmluZGluZ3Mgd2hpbGUgY2hpbGRyZW4gYXJlICJoaWRkZW4iIGFuZCBjYWNoZSBpbgogICAgICAgKiBwcml2YXRlIHN0b3JhZ2UgZm9yIGxhdGVyIHJldHJpZXZhbC4KICAgICAgICoKICAgICAgICogQHBhcmFtIHshTm9kZX0gbm9kZSBUaGUgbm9kZSB0byBzZXQgYSBwcm9wZXJ0eSBvbgogICAgICAgKiBAcGFyYW0ge3N0cmluZ30gcHJvcCBUaGUgcHJvcGVydHkgdG8gc2V0CiAgICAgICAqIEBwYXJhbSB7Kn0gdmFsdWUgVGhlIHZhbHVlIHRvIHNldAogICAgICAgKiBAcmV0dXJuIHt2b2lkfQogICAgICAgKiBAcHJvdGVjdGVkCiAgICAgICAqLwogICAgICBfc2V0VW5tYW5hZ2VkUHJvcGVydHlUb05vZGUobm9kZSwgcHJvcCwgdmFsdWUpIHsKICAgICAgICBpZiAobm9kZS5fX2hpZGVUZW1wbGF0ZUNoaWxkcmVuX18gJiYKICAgICAgICAgICAgbm9kZS5ub2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0CiAgICAgICAgICAvLyBpdHMgX19kYXRhSG9zdCBtYXRjaGVzIGB0aGlzYCwgbWVhbmluZyB0aGlzIGRvbS1yZXBlYXQgc3RhbXBlZCBpdAogICAgICAgICAgaWYgKChtb2RlbCA9IG5vZGUuX190ZW1wbGF0aXplSW5zdGFuY2UpKSB7CiAgICAgICAgICAgIC8vIEZvdW5kIGFuIGVsZW1lbnQgc3RhbXBlZCBieSBhbm90aGVyIHRlbXBsYXRlOyBrZWVwIHdhbGtpbmcgdXAKICAgICAgICAgICAgLy8gZnJvbSBpdHMgX19kYXRhSG9zdAogICAgICAgICAgICBpZiAobW9kZWwuX19kYXRhSG9zdCAhPSB0ZW1wbGF0ZSkgewogICAgICAgICAgICAgIG5vZGUgPSBtb2RlbC5fX2RhdGFIb3N0OwogICAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICAgIHJldHVybiBtb2RlbDsKICAgICAgICAgICAgfQogICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgLy8gU3RpbGwgaW4gYSB0ZW1wbGF0ZSBzY29wZSwga2VlcCBnb2luZyB1cCB1bnRpbAogICAgICAgICAgICAvLyBhIF9fdGVtcGxhdGl6ZUluc3RhbmNlIGlzIGZvdW5kCiAgICAgICAgICAgIG5vZGUgPSBub2RlLnBhcmVudE5vZGU7CiAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIHJldHVybiBudWxsOwogICAgICB9CiAgICB9OwoKICAgIFBvbHltZXIuVGVtcGxhdGVJbnN0YW5jZUJhc2UgPSBUZW1wbGF0ZUluc3RhbmNlQmFzZTsKCiAgfSkoKTsKCgoKICAoZnVuY3Rpb24oKSB7CiAgICAndXNlIHN0cmljdCc7CgogICAgbGV0IFRlbXBsYXRlSW5zdGFuY2VCYXNlID0gUG9seW1lci5UZW1wbGF0ZUluc3RhbmNlQmFzZTsgLy8gZXNsaW50LWRpc2FibGUtbGluZQoKICAgIC8qKgogICAgICogQHR5cGVkZWYge3sKICAgICAqICAgX3RlbX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gICAgICAgICAgIHRlbXBsYXRlID0gLyoqIEB0eXBlIHtIVE1MVGVtcGxhdGVFbGVtZW50fSAqLyh0aGlzLnF1ZXJ5U2VsZWN0b3IoJ3RlbXBsYXRlJykpOwogICAgICAgICAgICAgIGlmICh0ZW1wbGF0ZSkgewogICAgICAgICAgICAgICAgb2JzZXJ2ZXIuZGlzY29ubmVjdCgpOwogICAgICAgICAgICAgICAgdGhpcy5yZW5kZXIoKTsKICAgICAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICAgICAgdGhyb3cgbmV3IEVycm9yKCdkb20tYmluZCByZXF1aXJlcyBhIDx0ZW1wbGF0ZT4gY2hpbGQnKTsKICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pOwogICAgICAgICAgICBvYnNlcnZlci5vYnNlcnZlKHRoaXMsIHtjaGlsZExpc3Q6IHRydWV9KTsKICAgICAgICAgICAgcmV0dXJuOwogICAgICAgICAgfQogICAgICAgICAgdGhpcy5yb290ID0gdGhpcy5fc3RhbXBUZW1wbGF0ZSh0ZW1wbGF0ZSk7CiAgICAgICAgICB0aGlzLiQgPSB0aGlzLnJvb3QuJDsKICAgICAgICAgIHRoaXMuX19jaGlsZHJlbiA9IFtdOwogICAgICAgICAgZm9yIChsZXQgbj10aGlzLnJvb3QuZmlyc3RDaGlsZDsgbjsgbj1uLm5leHRTaWJsaW5nKSB7CiAgICAgICAgICAgIHRoaXMuX19jaGlsZHJlblt0aGlzLl9fY2hpbGRyZW4ubGVuZ3RoXSA9IG47CiAgICAgICAgICB9CiAgICAgICAgICB0aGlzLl9lbmFibGVQcm9wZXJ0aWVzKCk7CiAgICAgICAgfQogICAgICAgIHRoaXMuX19pbnNlcnRDaGlsZHJlbigpOwogICAgICAgIHRoaXMuZGlzcGF0Y2hFdmVudChuZXcgQ3VzdG9tRXZlbnQoJ2RvbS1jaGFuZ2UnLCB7CiAgICAgICAgICBidWJibGVzOiB0cnVlLAogICAgICAgICAgY29tcG9zZWQ6IHRydWUKIC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UoKGFjYywgdiwgaWR4KSA9PgogICAgICAgICAgYWNjICsgaHRtbFZhbHVlKHYpICsgc3RyaW5nc1tpZHggKyAxXSwgc3RyaW5nc1swXSk7CiAgICAgIHJldHVybiB0ZW1wbGF0ZTsKICAgIH07CgogICAgLyoqCiAgICAgKiBBbiBodG1sIGxpdGVyYWwgdGFnIHRoYXQgY2FuIGJlIHVzZWQgd2l0aCBgUG9seW1lci5odG1sYCB0byBjb21wb3NlLgogICAgICogYSBsaXRlcmFsIHN0cmluZy4KICAgICAqCiAgICAgKiBFeGFtcGxlOgogICAgICoKICAgICAqICAgICBzdGF0aWMgZ2V0IHRlbXBsYXRlKCkgewogICAgICogICAgICAgcmV0dXJuIFBvbHltZXIuaHRtbGAKICAgICAqICAgICAgICAgPHN0eWxlPgogICAgICogICAgICAgICAgIDpob3N0IHsgZGlzcGxheTogYmxvY2s7IH0KICAgICAqICAgICAgICAgICAke3N0eWxlVGVtcGxhdGV9CiAgICAgKiAgICAgICAgIDwvc3R5bGU+CiAgICAgKiAgICAgICAgIDxkaXYgY2xhc3M9InNoYWRvd2VkIj4ke3N0YXRpY1ZhbHVlfTwvZGl2PgogICAgICogICAgICAgICAke3N1cGVyLnRlbXBsYXRlfQogICAgICogICAgICAgYDsKICAgICAqICAgICB9CiAgICAgKiAgICAgc3RhdGljIGdldCBzdHlsZVRlbXBsYXRlKCkgeyByZXR1cm4gUG9seW1lci5odG1sTGl0ZXJhbGAuc2hhZG93ZWQgeyBiYWNrZ3JvdW5kOiBncmF5OyB9YDsgfQogICAgICoKICAgICAqIEBtZW1iZXJvZiBQb2x5bWVyCiAgICAgKiBAcGFyYW0geyFJVGVtcGxhdGVBcnJheX0gc3RyaW5ncyBDb25zdGFudCBwYXJ0cyBvZiB0YWdnZWQgdGVtcGxhdGUgbGl0ZXJhbAogICAgICogQHBhcmFtIHsuLi4qfSB2YWx1ZXMgVmFyaWFibGUgcGFydHMgb2YgdGFnZ2VkIHRlbXBsYXRlIGxpdGVyYW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m4gbnVsbDsgfQoKICAgIHN0YXRpYyBnZXQgcHJvcGVydGllcygpIHsKCiAgICAgIC8qKgogICAgICAgKiBGaXJlZCB3aGVuZXZlciBET00gaXMgYWRkZWQgb3IgcmVtb3ZlZCBieSB0aGlzIHRlbXBsYXRlIChieQogICAgICAgKiBkZWZhdWx0LCByZW5kZXJpbmcgb2NjdXJzIGxhemlseSkuICBUbyBmb3JjZSBpbW1lZGlhdGUgcmVuZGVyaW5nLCBjYWxsCiAgICAgICAqIGByZW5kZXJgLgogICAgICAgKgogICAgICAgKiBAZXZlbnQgZG9tLWNoYW5nZQogICAgICAgKi8KICAgICAgcmV0dXJuIHsKCiAgICAgICAgLyoqCiAgICAgICAgICogQW4gYXJyYXkgY29udGFpbmluZyBpdGVtcyBkZXRlcm1pbmluZyBob3cgbWFueSBpbnN0YW5jZXMgb2YgdGhlIHRlbXBsYXRlCiAgICAgICAgICogdG8gc3RhbXAgYW5kIHRoYXQgdGhhdCBlYWNoIHRlbXBsYXRlIGluc3RhbmNlIHNob3VsZCBiaW5kIHRvLgogICAgICAgICAqLwogICAgICAgIGl0ZW1zOiB7CiAgICAgICAgICB0eXBlOiBBcnJheQogICAgICAgIH0sCgogICAgICAgIC8qKgogICAgICAgICAqIFRoZSBuYW1lIG9mIHRoZSB2YXJpYWJsZSB0byBhZGQgdG8gdGhlIGJpbmRpbmcgc2NvcGUgZm9yIHRoZSBhcnJheQogICAgICAgICAqIGVsZW1lbnQgYXNzb2NpYXRlZCB3aXRoIGEgZ2l2ZW4gdGVtcGxhdGUgaW5zdGFuY2UuCiAgICAgICAgICovCiAgICAgICAgYXM6IHsKICAgICAgICAgIHR5cGU6IFN0cmluZywKICAgICAgICAgIHZhbHVlOiAnaXRlbScKICAgICAgICB9LAoKICAgICAgICAvKioKICAgICAgICAgKiBUaGUgbmFtZSBvZiB0aGUgdmFyaWFibGUgdG8gYWRkIHRvIHRoZSBiaW5kaW5nIHNjb3BlIHdpdGggdGhlIGluZGV4CiAgIC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AgICAgZGVsYXk6IE51bWJlciwKCiAgICAgICAgLyoqCiAgICAgICAgICogQ291bnQgb2YgY3VycmVudGx5IHJlbmRlcmVkIGl0ZW1zIGFmdGVyIGBmaWx0ZXJgIChpZiBhbnkpIGhhcyBiZWVuIGFwcGxpZWQuCiAgICAgICAgICogSWYgImNodW5raW5nIG1vZGUiIGlzIGVuYWJsZWQsIGByZW5kZXJlZEl0ZW1Db3VudGAgaXMgdXBkYXRlZCBlYWNoIHRpbWUgYQogICAgICAgICAqIHNldCBvZiB0ZW1wbGF0ZSBpbnN0YW5jZXMgaXMgcmVuZGVyZWQuCiAgICAgICAgICoKICAgICAgICAgKi8KICAgICAgICByZW5kZXJlZEl0ZW1Db3VudDogewogICAgICAgICAgdHlwZTogTnVtYmVyLAogICAgICAgICAgbm90aWZ5OiB0cnVlLAogICAgICAgICAgcmVhZE9ubHk6IHRydWUKICAgICAgICB9LAoKICAgICAgICAvKioKICAgICAgICAgKiBEZWZpbmVzIGFuIGluaXRpYWwgY291bnQgb2YgdGVtcGxhdGUgaW5zdGFuY2VzIHRvIHJlbmRlciBhZnRlciBzZXR0aW5nCiAgICAgICAgICogdGhlIGBpdGVtc2AgYXJyYXksIGJlZm9yZSB0aGUgbmV4dCBwYWludCwgYW5kIHB1dHMgdGhlIGBkb20tcmVwZWF0YAogICAgICAgICAqIGludG8gImNodW5raW5nIG1vZGUiLiAgVGhlIHJlbWFpbmluZyBpdGVtcyB3aWxsIGJlIGNyZWF0ZWQgYW5kIHJlbmRlcmVkCiAgICAgICAgICogaW5jcmVtZW50YWxseSBhdCBlYWNoIGFuaW1hdGlvbiBmcmFtZSB0aGVyb2YgdW50aWwgYWxsIGluc3RhbmNlcyBoYXZlCiAgICAgICAgICogYmVlbiByZW5kZXJlZC4KICAgICAgICAgKi8KICAgICAgICBpbml0aWFsQ291bnQ6IHsKICAgICAgICAgIHR5cGU6IE51bWJlciwKICAgICAgICAgIG9ic2VydmVyOiAnX19pbml0aWFsaXplQ2h1b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JhbWVyYXRlOiB7CiAgICAgICAgICB0eXBlOiBOdW1iZXIsCiAgICAgICAgICB2YWx1ZTogMjAKICAgICAgICB9LAoKICAgICAgICBfdGFyZ2V0RnJhbWVUaW1lOiB7CiAgICAgICAgICB0eXBlOiBOdW1iZXIsCiAgICAgICAgICBjb21wdXRlZDogJ19fY29tcHV0ZUZyYW1lVGltZSh0YXJnZXRGcmFtZXJhdGUpJwogICAgICAgIH0KCiAgICAgIH07CgogICAgfQoKICAgIHN0YXRpYyBnZXQgb2JzZXJ2ZXJzKCkgewogICAgICByZXR1cm4gWyAnX19pdGVtc0NoYW5nZWQoaXRlbXMuKiknIF07CiAgICB9CgogICAgY29uc3RydWN0b3IoKSB7CiAgICAgIHN1cGVyKCk7CiAgICAgIHRoaXMuX19pbnN0YW5jZXMgPSBbXTsKICAgICAgdGhpcy5fX2xpbWl0ID0gSW5maW5pdHk7CiAgICAgIHRoaXMuX19wb29sID0gW107CiAgICAgIHRoaXMuX19yZW5kZXJEZWJvdW5jZXIgPSBudWxsOwogICAgICB0aGlzLl9faXRlbXNJZHhUb0luc3RJZHggPSB7fTsKICAgICAgdGhpcy5fX2NodW5rQ291bnQgPSBudWxsOwogICAgICB0aGlzLl9fbGFzdENodW5rVGltZSA9IG51bGw7CiAgICAgIHRoaXMuX19zb3J0Rm4gPSBudWxsOwogICAgICB0aGlzLl9fZmlsdGVyRm4gPSBudWxsOwogICAgICB0aGlzLl9fb2JzZXJ2ZVBhdGhzID0gbnVsbDsKICAgICAgdGhpcy5fX2N0b3IgPSBudWxsOwogICAgICB0aGlzLl9faXNEZXRhY2hlZCA9IHRydWU7CiAgICAgIHRoaXMudGVtcGxhdGUgPSBudWxsOwogICAgfQoKICAgIC8qKgogICAgICogQHJldHVybiB7dm9pZH0KICAgICAqLwogICAgZGlzY29ubmVjdGVkQ2FsbGJhY2soKSB7CiAgICAgIHN1cGVyLmRpc2Nvbm5lY3RlZENhbGxiYWNrKCk7CiAgICAgIHRoaXMuX19pc0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pemUudGVtcGxhdGl6ZSh0ZW1wbGF0ZSwgdGhpcywgewogICAgICAgICAgbXV0YWJsZURhdGE6IHRoaXMubXV0YWJsZURhdGEsCiAgICAgICAgICBwYXJlbnRNb2RlbDogdHJ1ZSwKICAgICAgICAgIGluc3RhbmNlUHJvcHM6IGluc3RhbmNlUHJvcHMsCiAgICAgICAgICAvKioKICAgICAgICAgICAqIEB0aGlzIHt0aGlzfQogICAgICAgICAgICogQHBhcmFtIHtzdHJpbmd9IHByb3AgUHJvcGVydHkgdG8gc2V0CiAgICAgICAgICAgKiBAcGFyYW0geyp9IHZhbHVlIFZhbHVlIHRvIHNldCBwcm9wZXJ0eSB0bwogICAgICAgICAgICovCiAgICAgICAgICBmb3J3YXJkSG9zdFByb3A6IGZ1bmN0aW9uKHByb3AsIHZhbHVlKSB7CiAgICAgICAgICAgIGxldCBpJCA9IHRoaXMuX19pbnN0YW5jZXM7CiAgICAgICAgICAgIGZvciAobGV0IGk9MCwgaW5zdDsgKGk8aSQubGVuZ3RoKSAmJiAoaW5zdD1pJFtpXSk7IGkrKykgewogICAgICAgICAgICAgIGluc3QuZm9yd2FyZEhvc3RQcm9wKHByb3AsIHZhbHVlKTsKICAgICAgICAgICAgfQogICAgICAgICAgfSwKICAgICAgICAgIC8qKgogICAgICAgICAgICogQHRoaXMge3RoaXN9CiAgICAgICAgICAgKiBAcGFyYW0ge09iamVjdH0gaW5zdCBJbnN0YW5jZSB0byBub3RpZnkKICAgICAgICAgICAqIEBwYXJhbSB7c3RyaW5nfSBwcm9wIFByb3BlcnR5IHRvIG5vdGlmeQogICAgICAgICAgICogQHBhcmFtIHsqfSB2YWx1ZSBWYWx1ZSB0byBub3RpZnkKICAgICAgICAgICAqLwogICAgICAgICAgbm90aWZ5SW5zdGFuY2VQcm9wOiBmdW5jdGlvbihpbnN0LCBwcm9wLCB2YWx1ZSkgewogICAgICAgICAgICBpZiAoUG9seW1lci5QYXRoLm1hdGNoZXModGhpcy5hcywgcHJvcCkpIH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dG8gc3luYyBvYmplY3RzCiAgICAgICAgICAgIG11dGFibGVEYXRhOiB0cnVlLAogICAgICAgICAgICAvKioKICAgICAgICAgICAgICogQHBhcmFtIHtzdHJpbmd9IHByb3AgUHJvcGVydHkgdG8gZm9yd2FyZAogICAgICAgICAgICAgKiBAcGFyYW0geyp9IHZhbHVlIFZhbHVlIG9mIHByb3BlcnR5CiAgICAgICAgICAgICAqIEB0aGlzIHt0aGlzfQogICAgICAgICAgICAgKi8KICAgICAgICAgICAgZm9yd2FyZEhvc3RQcm9wOiBmdW5jdGlvbihwcm9wLCB2YWx1ZSkgewogICAgICAgICAgICAgIGlmICh0aGlzLl9faW5zdGFuY2UpIHsKICAgICAgICAgICAgICAgIGlmICh0aGlzLmlmKSB7CiAgICAgICAgICAgICAgICAgIHRoaXMuX19pbnN0YW5jZS5mb3J3YXJkSG9zdFByb3AocHJvcCwgdmFsdWUpOwogICAgICAgICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgICAgICAgLy8gSWYgd2UgaGF2ZSBhbiBpbnN0YW5jZSBidXQgYXJlIHNxdWVsY2hpbmcgaG9zdCBwcm9wZXJ0eQogICAgICAgICAgICAgICAgICAvLyBmb3J3YXJkaW5nIGR1ZSB0byBpZiBiZWluZyBmYWxzZSwgbm90ZSB0aGUgaW52YWxpZGF0ZWQKICAgICAgICAgICAgICAgICAgLy8gcHJvcGVydGllcyBzbyBgX19zeW5jSG9zdFByb3BlcnRpZXNgIGNhbiBzeW5jIHRoZW0gdGhlIG5leHQKICAgICAgICAgICAgICAgICAgLy8gdGltZSBgaWZgIGJlY29tZXMgdHJ1ZQogICAgICAgICAgICAgICAgICB0aGlzLl9faW52YWxpZFByb3BzID0gdGhpcy5fX2ludmFsaWRQcm9wcyB8fCBPYmplY3QuY3JlYXRlKG51bGwpOwogICAgICAgICAgICAgICAgICB0aGlzLl9faW52YWxpZFByb3BzW1BvbHltZXIuUGF0aC5yb290KHByb3ApXSA9IHRydWU7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CiAgICAgICAgICB9KTsKICAgICAgICB9CiAgICAgICAgaWYgKCF0aGlzLl9faW5zdGFuY2UpIHsKICAgICAgICAgIHRoaXMuX19pbnN0YW5jZSA9IG5ldyB0aGlzLl9fY3RvcigpOwogICAgICAgICAgcGFyZW50Tm9kZS5pbnNlcnRCZWZvcmUodGhpcy5fX2luc3RhbmNlLnJvb3QsIHRoaXMpOwogICAgICAgIH0gZWxzZSB7CiAgICAgICAgICB0aGlzLl9fc3luY0hvc3RQcm9wZXJ0aWVzKCk7CiAgICAgICAgICBsZXQgYyQgPSB0aGlzLl9faW5zdGFuY2UuY2hpbGRyZW47CiAgICAgICAgICBpZiAoYyQgJiYgYyQubGVuZ3RoKSB7CiAgICAgICAgICAgIC8vIERldGVjdCBjYXNlIHdoZXJlIGRvbS1pZiB3YXMgcmUtYXR0YWNoZWQgaW4gbmV3IHBvc2l0aW9uCiAgICAgICAgICAgIGxldCBsYXN0Q2hpbGQgPSB0aGlzLnByZXZpb3VzU2libGluZzsKICAgICAgICAgICAgaWYgKGxhc3RDaGlsZCAhPT0gYyRbYyQubGVuZ3RoLTFdKSB7CiAgICAgICAgICAgICAgZm9yIChsZXQgaT0wLCBuOyAoaTxjJC5sZW5ndGgpICYmIChuPWMkW2ldKTsgaSsrKSB7CiAgICAgICAgICAgICAgICBwYXJlbnROb2RlLmluc2VydEJlZm9yZShuLCB0aGlzKTsKICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICAgIH0KICAgICAgICB9CiAgICAgIH0KICAgICAgcmV0dXJuIHRydWU7CiAgICB9CgogICAgX19zeW5jSG9zdFByb3BlcnRpZXMoKSB7CiAgICAgIGxldCBwcm9wcyA9IHRoaXMuX19pbnZhbGlkUHJvcHM7CiAgICAgIGlmIChwcm9wcykgewogICAgICAgIGZvciAobGV0IHByb3AgaW4gcHJvcHMpIHsKICAgICAgICAgIHRoaXMuX19pbnN0YW5j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dGVuZHMge3N1cGVyQ2xhc3N9CiAgICAgKiBAaW1wbGVtZW50cyB7UG9seW1lcl9FbGVtZW50TWl4aW59CiAgICAgKiBAcHJpdmF0ZQogICAgICovCiAgICBsZXQgZWxlbWVudEJhc2UgPSBQb2x5bWVyLkVsZW1lbnRNaXhpbihzdXBlckNsYXNzKTsKCiAgICAvKioKICAgICAqIEBwb2x5bWVyCiAgICAgKiBAbWl4aW5DbGFzcwogICAgICogQGltcGxlbWVudHMge1BvbHltZXJfQXJyYXlTZWxlY3Rvck1peGlufQogICAgICogQHVucmVzdHJpY3RlZAogICAgICovCiAgICBjbGFzcyBBcnJheVNlbGVjdG9yTWl4aW4gZXh0ZW5kcyBlbGVtZW50QmFzZSB7CgogICAgICBzdGF0aWMgZ2V0IHByb3BlcnRpZXMoKSB7CgogICAgICAgIHJldHVybiB7CgogICAgICAgICAgLyoqCiAgICAgICAgICAgKiBBbiBhcnJheSBjb250YWluaW5nIGl0ZW1zIGZyb20gd2hpY2ggc2VsZWN0aW9uIHdpbGwgYmUgbWFkZS4KICAgICAgICAgICAqLwogICAgICAgICAgaXRlbXM6IHsKICAgICAgICAgICAgdHlwZTogQXJyYXksCiAgICAgICAgICB9LAoKICAgICAgICAgIC8qKgogICAgICAgICAgICogV2hlbiBgdHJ1ZWAsIG11bHRpcGxlIGl0ZW1zIG1heSBiZSBzZWxlY3RlZCBhdCBvbmNlIChpbiB0aGlzIGNhc2UsCiAgICAgICAgICAgKiBgc2VsZWN0ZWRgIGlzIGFuIGFycmF5IG9mIGN1cnJlbnRseSBzZWxlY3RlZCBpdGVtcykuICBXaGVuIGBmYWxzZWAsCiAgICAgICAgICAgKiBvbmx5IG9uZSBpdGVtIG1heSBiZSBzZWxlY3RlZCBhdCBhIHRpbWUuCiAgICAgICAgICAgKi8KICAgICAgICAgIG11bHRpOiB7CiAgICAgICAgICAgIHR5cGU6IEJvb2xlYW4sCiAgICAgICAgICAgIHZhbHVlOiBmYWxzZSwKICAgICAgICAgIH0sCgogICAgICAgICAgLyoqCiAgICAgICAgICAgKiBXaGVuIGBtdWx0aWAgaXMgdHJ1ZSwgdGhpcyBpcyBhbiBhcnJheSB0aGF0IGNvbnRhaW5zIGFueSBzZWxlY3RlZC4KICAgICAgICAgICAqIFdoZW4gYG11bHRpYCBpcyBmYWxzZSwgdGhpcyBpcyB0aGUgY3VycmVudGx5IHNlbGVjdGVkIGl0ZW0sIG9yIGBudWxsYAogICAgICAgICAgICogaWYgbm8gaXRlbSBpcyBzZWxlY3RlZC4KICAgICAgICAgICAqIEB0eXBlIHs/KE9iamVjdHxBcnJheTwhT2JqZWN0Pil9CiAgICAgICAgICAgKi8KICAgICAgICAgIHNlbGVjdGVkOiB7CiAgICAgICAgICAgIHR5cGU6IE9iamVjdCwKICAgICAgICAgICAgbm90aWZ5OiB0cnVlCiAgICAgICAgICB9LAoKICAgICAgICAgIC8qKgogICAgICAgICAgICogV2hlbiBgbXVsdGlgIGlzIGZhbHNlLCB0aGlzIGlzIHRoZSBjdXJyZW50bHkgc2VsZWN0ZWQgaXRlbSwgb3IgYG51bGxgCiAgICAgICAgICAgKiBpZiBubyBpdGVtIGlzIHNlbGVjdGVkLgogICAgICAgICAgICogQHR5cGUgez9PYmplY3R9CiAgICAgICAgICAgKi8KICAgICAgICAgIHNlbGVjdGVkSXRlbTogewogICAgICAgICAgICB0eXBlOiBPYmplY3QsCiAgICAgICAgICAgIG5vdGlmeTogdHJ1ZQogICAgICAgICAgfSwKCiAgICAgICAgICAvKioKICAgICAgICAgICAqIFdoZW4gYHRydWVgLCBjYWxsaW5nIGBzZWxlY3RgIG9uIGFuIGl0ZW0gdGhhdCBpcyBhbHJlYWR5IHNlbGVjdGVkCiAgICAgICAgICAgKiB3aWxsIGRlc2VsZWN0IHRoZSBpdGVtLgogICAgICAgICAgICovCiAgICAgICAgICB0b2dnbGU6IHsKICAgICAgICAgICAgdHlwZTogQm9vbGVhbiwKICAgICAgICAgICAgdmFsdWU6IGZhbHNlCiAgICAgICAgICB9CgogICAgICAgIH07CiAgICAgIH0KCiAgICAgIHN0YXRpYyBnZXQgb2JzZXJ2ZXJzKCkgewogICAgICAgIHJldHVybiBbJ19fdXBkYXRlU2VsZWN0aW9uKG11bHRpLCBpdGVtcy4qKSddOwogICAgICB9CgogICAgICBjb25zdHJ1Y3RvcigpIHsKICAgICAgICBzdXBlcigpOwogICAgICAgIHRoaXMuX19sYXN0SXRlbXMgPSBudWxsOwogICAgICAgIHRoaXMuX19sYXN0TXVsdGkgPSBudWxsOwogICAgICAgIHRoaXMuX19zZWxlY3RlZE1hcCA9IG51bGw7CiAgICAgIH0KCiAgICAgIF9fdXBkYXRlU2VsZWN0aW9uKG11bHRpLCBpdGVtc0luZm8pIHsKICAgICAgICBsZXQgcGF0aCA9IGl0ZW1zSW5mby5wYXRoOwogICAgICAgIGlmIChwYXRoID09ICdpdGVtcycpIHsKICAgICAgICAgIC8vIENhc2UgMSAtIGl0ZW1zIGFycmF5IGNoYW5nZWQsIHNvIGRpZmYgYWdhaW5zdCBwcmV2aW91cyBhcnJheSBhbmQKICAgICAgICAgIC8vIGRlc2VsZWN0IGFueSByZW1vdmVkIGl0ZW1zIGFuZCBhZGp1c3Qgc2VsZWN0ZWQgaW5kaWNlcwogICAgICAgICAgbGV0IG5ld0l0ZW1zID0gaXRlbXNJbmZvLmJhc2UgfHwgW107CiAgICAgICAgICBsZXQgbGFzdEl0ZW1zID0gdGhpcy5fX2xhc3RJdGVtczsKICAgICAgICAgIGxldCBsYXN0TXVsdGkgPSB0aGlzLl9fbGFzdE11bHRpOwogICAgICAgICAgaWYgKG11bHRpICE9PSBsYXN0TXVsdGkpIHsKICAgICAgICAgICAgdGhpcy5jbGVhclNlbGVjdGlvbigpOwogICAgICAgICAgfQogICAgICAgICAgaWYgKGxhc3RJdGVtcykgewogICAgICAgICAgICBsZXQgc3BsaWNlcyA9IFBvbHltZXIuQXJyYXlTcGxpY2UuY2FsY3VsYXRlU3BsaWNlcyhuZXdJdGVtcywgbG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A9IHRoaXMuX19zZWxlY3RlZE1hcDsKICAgICAgICAvLyBBZGp1c3Qgc2VsZWN0ZWQgaW5kaWNlcyBhbmQgbWFyayByZW1vdmFscwogICAgICAgIGZvciAobGV0IGk9MDsgaTxzcGxpY2VzLmxlbmd0aDsgaSsrKSB7CiAgICAgICAgICBsZXQgcyA9IHNwbGljZXNbaV07CiAgICAgICAgICBzZWxlY3RlZC5mb3JFYWNoKChpZHgsIGl0ZW0pID0+IHsKICAgICAgICAgICAgaWYgKGlkeCA8IHMuaW5kZXgpIHsKICAgICAgICAgICAgICAvLyBubyBjaGFuZ2UKICAgICAgICAgICAgfSBlbHNlIGlmIChpZHggPj0gcy5pbmRleCArIHMucmVtb3ZlZC5sZW5ndGgpIHsKICAgICAgICAgICAgICAvLyBhZGp1c3QgaW5kZXgKICAgICAgICAgICAgICBzZWxlY3RlZC5zZXQoaXRlbSwgaWR4ICsgcy5hZGRlZENvdW50IC0gcy5yZW1vdmVkLmxlbmd0aCk7CiAgICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgICAgLy8gcmVtb3ZlIGluZGV4CiAgICAgICAgICAgICAgc2VsZWN0ZWQuc2V0KGl0ZW0sIC0xKTsKICAgICAgICAgICAgfQogICAgICAgICAgfSk7CiAgICAgICAgICBmb3IgKGxldCBqPTA7IGo8cy5hZGRlZENvdW50OyBqKyspIHsKICAgICAgICAgICAgbGV0IGlkeCA9IHMuaW5kZXggKyBqOwogICAgICAgICAgICBpZiAoc2VsZWN0ZWQuaGFzKHRoaXMuaXRlbXNbaWR4XSkpIHsKICAgICAgICAgICAgICBzZWxlY3RlZC5zZXQodGhpcy5pdGVtc1tpZHhdLCBpZHgpOwogICAgICAgICAgICB9CiAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIC8vIFVwZGF0ZSBsaW5rZWQgcGF0aHMKICAgICAgICB0aGlzLl9fdXBkYXRlTGlua3MoKTsKICAgICAgICAvLyBSZW1vdmUgc2VsZWN0ZWQgaXRlbXMgdGhhdCB3ZXJlIHJlbW92ZWQgZnJvbSB0aGUgaXRlbXMgYXJyYXkKICAgICAgICBsZXQgc2lkeCA9IDA7CiAgICAgICAgc2VsZWN0ZWQuZm9yRWFjaCgoaWR4LCBpdGVtKSA9PiB7CiAgICAgICAgICBpZiAoaWR4IDwgMCkgewogICAgICAgICAgICBpZiAodGhpcy5tdWx0aSkgewogICAgICAgICAgICAgIHRoaXMuc3BsaWNlKCdzZWxlY3RlZCcsIHNpZHgsIDEpOwogICAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICAgIHRoaXMuc2VsZWN0ZWQgPSB0aGlzLnNlbGVjdGVkSXRlbSA9IG51bGw7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgc2VsZWN0ZWQuZGVsZXRlKGl0ZW0pOwogICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgc2lkeCsrOwogICAgICAgICAgfQogICAgICAgIH0pOwogICAgICB9CgogICAgICBfX3VwZGF0ZUxpbmtzKCkgewogICAgICAgIHRoaXMuX19kYXRhTGlua2VkUGF0aHMgPSB7fTsKICAgICAgICBpZiAodGhpcy5tdWx0aSkgewogICAgICAgICAgbGV0IHNpZHggPSAwOwogICAgICAgICAgdGhpcy5fX3NlbGVjdGVkTWFwLmZvckVhY2goaWR4ID0+IHsKICAgICAgICAgICAgaWYgKGlkeCA+PSAwKSB7CiAgICAgICAgICAgICAgdGhpcy5saW5rUGF0aHMoJ2l0ZW1zLicgKyBpZHgsICdzZWxlY3RlZC4nICsgc2lkeCsrKTsKICAgICAgICAgICAgfQogICAgICAgICAgfSk7CiAgICAgICAgfSBlbHNlIHsKICAgICAgICAgIHRoaXMuX19zZWxlY3RlZE1hcC5mb3JFYWNoKGlkeCA9PiB7CiAgICAgICAgICAgIHRoaXMubGlua1BhdGhzKCdzZWxlY3RlZCcsICdpdGVtcy4nICsgaWR4KTsKICAgICAgICAgICAgdGhpcy5saW5rUGF0aHMoJ3NlbGVjdGVkSXRlbScsICdpdGVtc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AgICAvKioKICAgICAgICogUmV0dXJucyB3aGV0aGVyIHRoZSBpdGVtIGlzIGN1cnJlbnRseSBzZWxlY3RlZC4KICAgICAgICoKICAgICAgICogQHBhcmFtIHtudW1iZXJ9IGlkeCBJbmRleCBmcm9tIGBpdGVtc2AgYXJyYXkgdG8gdGVzdAogICAgICAgKiBAcmV0dXJuIHtib29sZWFufSBXaGV0aGVyIHRoZSBpdGVtIGlzIHNlbGVjdGVkCiAgICAgICAqLwogICAgICBpc0luZGV4U2VsZWN0ZWQoaWR4KSB7CiAgICAgICAgcmV0dXJuIHRoaXMuaXNTZWxlY3RlZCh0aGlzLml0ZW1zW2lkeF0pOwogICAgICB9CgogICAgICBfX2Rlc2VsZWN0Q2hhbmdlZElkeChpZHgpIHsKICAgICAgICBsZXQgc2lkeCA9IHRoaXMuX19zZWxlY3RlZEluZGV4Rm9ySXRlbUluZGV4KGlkeCk7CiAgICAgICAgaWYgKHNpZHggPj0gMCkgewogICAgICAgICAgbGV0IGkgPSAwOwogICAgICAgICAgdGhpcy5fX3NlbGVjdGVkTWFwLmZvckVhY2goKGlkeCwgaXRlbSkgPT4gewogICAgICAgICAgICBpZiAoc2lkeCA9PSBpKyspIHsKICAgICAgICAgICAgICB0aGlzLmRlc2VsZWN0KGl0ZW0pOwogICAgICAgICAgICB9CiAgICAgICAgICB9KTsKICAgICAgICB9CiAgICAgIH0KCiAgICAgIF9fc2VsZWN0ZWRJbmRleEZvckl0ZW1JbmRleChpZHgpIHsKICAgICAgICBsZXQgc2VsZWN0ZWQgPSB0aGlzLl9fZGF0YUxpbmtlZFBhdGhzWydpdGVtcy4nICsgaWR4XTsKICAgICAgICBpZiAoc2VsZWN0ZWQpIHsKICAgICAgICAgIHJldHVybiBwYXJzZUludChzZWxlY3RlZC5zbGljZSgnc2VsZWN0ZWQuJy5sZW5ndGgpLCAxMCk7CiAgICAgICAgfQogICAgICB9CgogICAgICAvKioKICAgICAgICogRGVzZWxlY3RzIHRoZSBnaXZlbiBpd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sgfQogICAqICBzdGF0aWMgZ2V0IHByb3BlcnRpZXMoKSB7CiAgICogICAgcmV0dXJuIHsKICAgKiAgICAgIGVtcGxveWVlczogewogICAqICAgICAgICB2YWx1ZSgpIHsKICAgKiAgICAgICAgICByZXR1cm4gWwogICAqICAgICAgICAgICAge2ZpcnN0OiAnQm9iJywgbGFzdDogJ1NtaXRoJ30sCiAgICogICAgICAgICAgICB7Zmlyc3Q6ICdTYWxseScsIGxhc3Q6ICdKb2huc29uJ30sCiAgICogICAgICAgICAgICAuLi4KICAgKiAgICAgICAgICBdOwogICAqICAgICAgICB9CiAgICogICAgICB9CiAgICogICAgfTsKICAgKiAgfQogICAqICB0b2dnbGVTZWxlY3Rpb24oZSkgewogICAqICAgIGxldCBpdGVtID0gdGhpcy4kLmVtcGxveWVlTGlzdC5pdGVtRm9yRWxlbWVudChlLnRhcmdldCk7CiAgICogICAgdGhpcy4kLnNlbGVjdG9yLnNlbGVjdChpdGVtKTsKICAgKiAgfQogICAqfQogICAqIGBgYAogICAqCiAgICogQHBvbHltZXIKICAgKiBAY3VzdG9tRWxlbWVudAogICAqIEBleHRlbmRzIHtiYXNlQXJyYXlTZWxlY3Rvcn0KICAgKiBAYXBwbGllc01peGluIFBvbHltZXIuQXJyYXlTZWxlY3Rvck1peGluCiAgICogQG1lbWJlcm9mIFBvbHltZXIKICAgKiBAc3VtbWFyeSBDdXN0b20gZWxlbWVudCB0aGF0IGxpbmtzIHBhdGhzIGJldHdlZW4gYW4gaW5wdXQgYGl0ZW1zYCBhcnJheSBhbmQKICAgKiAgIGFuIG91dHB1dCBgc2VsZWN0ZWRgIGl0ZW0gb3IgYXJyYXkgYmFzZWQgb24gY2FsbHMgdG8gaXRzIHNlbGVjdGlvbiBBUEkuCiAgICovCiAgY2xhc3MgQXJyYXlTZWxlY3RvciBleHRlbmRzIGJhc2VBcnJheVNlbGVjdG9yIHsKICAgIC8vIE5vdCBuZWVkZWQgdG8gZmluZCB0ZW1wbGF0ZTsgY2Fu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Y3Rpb24gJGwoYSl7dmFyIGM9YS5wcmV2LGU9YS5uZXh0O2lmKDA8PVdiKGMsYSxlKSlyZXR1cm4hMTtmb3IodmFyIGc9YS5uZXh0Lm5leHQ7ZyE9PWEucHJldjspe2lmKExlKGMueCxjLnksYS54LGEueSxlLngsZS55LGcueCwKZy55KSYmMDw9V2IoZy5wcmV2LGcsZy5uZXh0KSlyZXR1cm4hMTtnPWcubmV4dH1yZXR1cm4hMH1mdW5jdGlvbiBabChhLGMsZSxnKXt2YXIgcj1hLnByZXYsdj1hLm5leHQ7aWYoMDw9V2IocixhLHYpKXJldHVybiExO3ZhciB6PXIueD5hLng/ci54PnYueD9yLng6di54OmEueD52Lng/YS54OnYueCxFPXIueT5hLnk/ci55PnYueT9yLnk6di55OmEueT52Lnk/YS55OnYueSxGPVloKHIueDxhLng/ci54PHYueD9yLng6di54OmEueDx2Lng/YS54OnYueCxyLnk8YS55P3IueTx2Lnk/ci55OnYueTphLnk8di55P2EueTp2LnksYyxlLGcpO2M9WWgoeixFLGMsZSxnKTtlPWEucHJldlo7Zm9yKGc9YS5uZXh0WjtlJiZlLno+PUYmJmcmJmcuejw9Yzspe2lmKGUhPT1hLnByZXYmJmUhPT1hLm5leHQmJkxlKHIueCxyLnksYS54LGEueSx2Lngsdi55LGUueCxlLnkpJiYwPD1XYihlLnByZXYsZSxlLm5leHQpKXJldHVybiExO2U9ZS5wcmV2WjtpZihnIT09YS5wcmV2JiZnIT09YS5uZXh0JiZMZShyLngsCnIueSxhLngsYS55LHYueCx2LnksZy54LGcueSkmJjA8PVdiKGcucHJldixnLGcubmV4dCkpcmV0dXJuITE7Zz1nLm5leHRafWZvcig7ZSYmZS56Pj1GOyl7aWYoZSE9PWEucHJldiYmZSE9PWEubmV4dCYmTGUoci54LHIueSxhLngsYS55LHYueCx2LnksZS54LGUueSkmJjA8PVdiKGUucHJldixlLGUubmV4dCkpcmV0dXJuITE7ZT1lLnByZXZafWZvcig7ZyYmZy56PD1jOyl7aWYo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ob3VyOiJudW1lcmljIixtaW51dGU6Im51bWVyaWMiLHNlY29uZDoibnVtZXJpYyJ9KX0pLmZpbmFsbHkoKCk9Pnt0aGlzLl9yZWZyZXNoaW5nPSExfSl9LF9nZXREYXRhUmVmcmVzaGluZ0NsYXNzKCl7cmV0dXJuIHRoaXMuX3JlZnJlc2hpbmc/InJlZnJlc2hpbmciOiIifSxvcGVuU2V0dGluZ3MoKXt0aGlzLiQuc2V0dGluZ3Mub3BlbigpO3RoaXMuJC5wYWdpbmF0aW9uTGltaXRJbnB1dC52YWx1ZT1uZS5nZXRMaW1pdCgpfSxfcGFnaW5hdGlvbkxpbWl0VmFsaWRhdGUoYil7Yi50YXJnZXQudmFsaWRhdGUoKX0sX3BhZ2luYXRpb25MaW1pdENoYW5nZWQoYil7Yj1OdW1iZXIucGFyc2VJbnQoYi50YXJnZXQudmFsdWUsMTApO2I9PT0rYiYmMDxiJiZuZS5zZXRMaW1pdChiKX19KTsK", "ok": true, "headers": [["content-type", "application/javascript; charset=utf-8"]], "status": 200, "status_text": ""}, "https://localhost:6006/data/experiments": {"data": "W10=", "ok": true, "headers": [["content-type", "application/json"]], "status": 200, "status_text": ""}, "https://localhost:6006/data/environment": {"data": "eyJkYXRhX2xvY2F0aW9uIjogIkdyYXBoMSIsICJ3aW5kb3dfdGl0bGUiOiAiIn0=", "ok": true, "headers": [["content-type", "application/json"]], "status": 200, "status_text": ""}, "https://localhost:6006/data/plugins_listing": {"data": "eyJzY2FsYXJzIjogeyJkaXNhYmxlX3JlbG9hZCI6IGZhbHNlLCAiZW5hYmxlZCI6IHRydWUsICJyZW1vdmVfZG9tIjogZmFsc2UsICJ0YWJfbmFtZSI6ICJzY2FsYXJzIiwgImxvYWRpbmdfbWVjaGFuaXNtIjogeyJ0eXBlIjogIkNVU1RPTV9FTEVNRU5UIiwgImVsZW1lbnRfbmFtZSI6ICJ0Zi1zY2FsYXItZGFzaGJvYXJkIn19LCAiY3VzdG9tX3NjYWxhcnMiOiB7ImR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9NX0VMRU1FTlQiLCAiZWxlbWVudF9uYW1lIjogIm1lc2gtZGFzaGJvYXJkIn19LCAicHJvamVjdG9yIjogeyJkaXNhYmxlX3JlbG9hZCI6IHRydWUsICJlbmFibGVkIjogZmFsc2UsICJyZW1vdmVfZG9tIjogZmFsc2UsICJ0YWJfbmFtZSI6ICJwcm9qZWN0b3IiLCAibG9hZGluZ19tZWNoYW5pc20iOiB7InR5cGUiOiAiSUZSQU1FIiwgIm1vZHVsZV9wYXRoIjogIi9kYXRhL3BsdWdpbi9wcm9qZWN0b3IvaW5kZXguanMifX0sICJ3aGF0aWYiOiB7ImRpc2FibGVfcmVsb2FkIjogZmFsc2UsICJlbmFibGVkIjogZmFsc2UsICJyZW1vdmVfZG9tIjogZmFsc2UsICJ0YWJfbmFtZSI6ICJXaGF0LUlmIFRvb2wiLCAibG9hZGluZ19tZWNoYW5pc20iOiB7InR5cGUiOiAiSUZSQU1FIiwgIm1vZHVsZV9wYXRoIjogIi9kYXRhL3BsdWdpbi93aGF0aWYvaW5kZXguanMifX19", "ok": true, "headers": [["content-type", "application/json"]], "status": 200, "status_text": ""}, "https://localhost:6006/data/runs": {"data": "WyJ0cmFpbiIsICJ2YWxpZGF0aW9uIl0=", "ok": true, "headers": [["content-type", "application/json"]], "status": 200, "status_text": ""}, "https://localhost:6006/font-roboto/RxZJdnzeo3R5zSexge8UUZBw1xU1rKptJj_0jans920.woff2": {"data": "d09GMgABAAAAACokAA4AAAAAUkQAACnNAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGmQbmXocg0oGYACGTBEMCu1A1wwLg14AATYCJAOHNgQgBYMAByAbO0QF3Bhn2DiAgX12b1EEGwcBhTGLomxQFmT/lwnmGE77wayn0NBAJAPXITeLlQAVKYYKjM1mpr7CgS0HNgpkY1bqRLvLsXy3dA8XPXqvM/yN+w2v2FOlAb85QmOf5P7Az633/wJaSkUwMImTqgk4GDAic6S4MSrGqFakDCocigoYRBqEHnCIYBIGGExRT1Qeqv3690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"status": 200, "status_text": ""}, "https://localhost:6006/data/plugin/scalars/tags": {"data": "eyJ0cmFpbiI6IHsiZXBvY2hfbG9zcyI6IHsiZGlzcGxheU5hbWUiOiAiZXBvY2hfbG9zcyIsICJkZXNjcmlwdGlvbiI6ICIifSwgImVwb2NoX21lYW5fYWJzb2x1dGVfZXJyb3IiOiB7ImRpc3BsYXlOYW1lIjogImVwb2NoX21lYW5fYWJzb2x1dGVfZXJyb3IiLCAiZGVzY3JpcHRpb24iOiAiIn19LCAidmFsaWRhdGlvbiI6IHsiZXBvY2hfbG9zcyI6IHsiZGlzcGxheU5hbWUiOiAiZXBvY2hfbG9zcyIsICJkZXNjcmlwdGlvbiI6ICIifSwgImVwb2NoX21lYW5fYWJzb2x1dGVfZXJyb3IiOiB7ImRpc3BsYXlOYW1lIjogImVwb2NoX21lYW5fYWJzb2x1dGVfZXJyb3IiLCAiZGVzY3JpcHRpb24iOiAiIn19fQ==", "ok": true, "headers": [["content-type", "application/json"]], "status": 200, "status_text": ""}, "https://localhost:6006/data/plugin/scalars/scalars?tag=epoch_loss&run=train": {"data": "W1sxNTg5MDA5MTc4Ljg1MDY5NSwgMCwgMzE3MDA4NzY4LjBdLCBbMTU4OTAwOTE3OC45MTgyNDIsIDEsIDMxNzAwODc2OC4wXSwgWzE1ODkwMDkxNzguOTc5NTQ2LCAyLCAzMTcwMDg3NjguMF0sIFsxNTg5MDA5MTc5LjA0NzIyNiwgMywgMzE3MDA4NzY4LjBdLCBbMTU4OTAwOTE3OS4xMjUwNzYsIDQsIDMxNzAwODc2OC4wXSwgWzE1ODkwMDkxNzkuMTgyMzY0LCA1LCAzMTcwMDg3NjguMF0sIFsxNTg5MDA5MTc5LjI0NjU3NSwgNiwgMzE3MDA4NjcyLjBdLCBbMTU4OTAwOTE3OS4zMTI0MzEsIDcsIDMxNzAwODQ0OC4wXSwgWzE1ODkwMDkxNzkuMzg4MDA2LCA4LCAzMTY5OTg0MzIuMF0sIFsxNTg5MDA5MTc5LjQ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LCA5MSwgMTI0NTEwOTM2LjBdLCBbMTU4OTAwOTE4NC43NjQ4OSwgOTIsIDEyNjMzNjg3Mi4wXSwgWzE1ODkwMDkxODQuODI3NjIxLCA5MywgMTI0OTY2OTYwLjBdLCBbMTU4OTAwOTE4NC44ODcyODYsIDk0LCAxMjQ0OTAyNzIuMF0sIFsxNTg5MDA5MTg0Ljk1MDE5NiwgOTUsIDEyNTI3NzM2OC4wXSwgWzE1ODkwMDkxODUuMDEyNzA4LCA5NiwgMTI0ODUzNDg4LjBdLCBbMTU4OTAwOTE4NS4wODQ0NDcsIDk3LCAxMjQ5NTkyMTYuMF0sIFsxNTg5MDA5MTg1LjE1MjE2MiwgOTgsIDEyNDM1ODQzMi4wXSwgWzE1ODkwMDkxODUuMjE0MDM4LCA5OSwgMTI1NjI4OTEyLjBdXQ==", "ok": true, "headers": [["content-type", "application/json"]], "status": 200, "status_text": ""}, "https://localhost:6006/data/plugin/scalars/scalars?tag=epoch_loss&run=validation": {"data": "W1sxNTg5MDA5MTc4Ljg1Mjk1MiwgMCwgMzM5NTI3NTUyLjBdLCBbMTU4OTAwOTE3OC45MTk0OCwgMSwgMzM5NTI3NTUyLjBdLCBbMTU4OTAwOTE3OC45ODQwODMsIDIsIDMzOTUyNzU1Mi4wXSwgWzE1ODkwMDkxNzkuMDQ4NjkyLCAzLCAzMzk1Mjc1NTIuMF0sIFsxNTg5MDA5MTc5LjEyNjQwOSwgNCwgMzM5NTI3NTUyLjBdLCBbMTU4OTAwOTE3OS4xODM4NjksIDUsIDMzOTUyNzU1Mi4wXSwgWzE1ODkwMDkxNzkuMjQ3NTUxLCA2LCAzMzk1Mjc1NTIuMF0sIFsxNTg5MDA5MTc5LjMxNzIyNSwgNywgMzM5NTI3NTUyLjBdLCBbMTU4OTAwOTE3OS4zODk0OTIsIDgsIDMzOTQ1MTA0MC4wXSwgWzE1ODkwMDkxNzkuNDUxODk0LCA5LCAzMzkxMjU3OTIuMF0sIFsxNTg5MDA5MTc5LjU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QuNzY2NDI1LCA5MiwgMTMxMTI4MzEyLjBdLCBbMTU4OTAwOTE4NC44MjkwNDUsIDkzLCAxMzExMDAyMDguMF0sIFsxNTg5MDA5MTg0Ljg5MTgyMywgOTQsIDEzMTA3MzgxNi4wXSwgWzE1ODkwMDkxODQuOTUxNDg5LCA5NSwgMTMwODk4MDcyLjBdLCBbMTU4OTAwOTE4NS4wMTQxNzMsIDk2LCAxMzA5NzczMjAuMF0sIFsxNTg5MDA5MTg1LjA4ODcwMywgOTcsIDEzMDg5MTcyMC4wXSwgWzE1ODkwMDkxODUuMTUzNTcyLCA5OCwgMTMwNzAxNDI0LjBdLCBbMTU4OTAwOTE4NS4yMTUxNDgsIDk5LCAxMzA2NzIyNDguMF1d", "ok": true, "headers": [["content-type", "application/json"]], "status": 200, "status_text": ""}, "https://localhost:6006/data/plugin/scalars/scalars?tag=epoch_mean_absolute_error&run=train": {"data": "W1sxNTg5MDA5MTc4Ljg1MTY3NiwgMCwgMTMwNzEuMTU5MTc5Njg3NV0sIFsxNTg5MDA5MTc4LjkxOTEwOCwgMSwgMTMwNzEuMTU4MjAzMTI1XSwgWzE1ODkwMDkxNzguOTc5OTc5LCAyLCAxMzA3MS4xNTYyNV0sIFsxNTg5MDA5MTc5LjA0NzY2MywgMywgMTMwNzEuMTU1MjczNDM3NV0sIFsxNTg5MDA5MTc5LjEyNTU1NywgNCwgMTMwNzEuMTYwMTU2MjVdLCBbMTU4OTAwOTE3OS4xODMzMDksIDUsIDEzMDcxLjE1NzIyNjU2MjVdLCBbMTU4OTAwOTE3OS4yNDY5ODIsIDYsIDEzMDcxLjE1NDI5Njg3NV0sIFsxNTg5MDA5MTc5LjMxMjkxLCA3LCAxMzA3MS4xNDU1MDc4MTI1XSwgWzE1ODkwMDkxNzkuMzg4NTQ3LCA4LCAxMzA3MC43OTEwMTU2MjVdLCBbMTU4OTAwOTE3OS40NTAzNTQsIDksIDEzMDY0LjI4MzIwMzEyNV0sIFsxNTg5MDA5MTc5LjU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A5MTg0LjM4MjIyOSwgODYsIDg5MTAuNzM0Mzc1XSwgWzE1ODkwMDkxODQuNDUyOTUxLCA4NywgODkwMC4wNjE1MjM0Mzc1XSwgWzE1ODkwMDkxODQuNTEzNzAzLCA4OCwgODg2Ny4wNjA1NDY4NzVdLCBbMTU4OTAwOTE4NC41Nzc3MzEsIDg5LCA4OTI5LjYyMTA5Mzc1XSwgWzE1ODkwMDkxODQuNjQ0MzE3LCA5MCwgODk3MS42MjEwOTM3NV0sIFsxNTg5MDA5MTg0LjcwNjUxOCwgOTEsIDg5MTguMDYzNDc2NTYyNV0sIFsxNTg5MDA5MTg0Ljc2NTM0MSwgOTIsIDg5NDIuOTU0MTAxNTYyNV0sIFsxNTg5MDA5MTg0LjgyODA2OCwgOTMsIDg5MjEuMDgzMDA3ODEyNV0sIFsxNTg5MDA5MTg0Ljg4NzgsIDk0LCA4ODQ5LjE1MjM0Mzc1XSwgWzE1ODkwMDkxODQuOTUwNjYyLCA5NSwgODkzNS45Njc3NzM0Mzc1XSwgWzE1ODkwMDkxODUuMDEzMTIyLCA5NiwgODkyNS45NDUzMTI1XSwgWzE1ODkwMDkxODUuMDg4MTA0LCA5NywgODg5Mi43NDAyMzQzNzVdLCBbMTU4OTAwOTE4NS4xNTI5NjEsIDk4LCA4OTA1LjgzNjkxNDA2MjVdLCBbMTU4OTAwOTE4NS4yMTQ1OTQsIDk5LCA5MDAxLjgzMTA1NDY4NzVdXQ==", "ok": true, "headers": [["content-type", "application/json"]], "status": 200, "status_text": ""}, "https://localhost:6006/data/plugin/scalars/scalars?tag=epoch_mean_absolute_error&run=validation": {"data": "W1sxNTg5MDA5MTc4Ljg1MzIyLCAwLCAxMzg2Ny4wMjM0Mzc1XSwgWzE1ODkwMDkxNzguOTE5Nzg5LCAxLCAxMzg2Ny4wMjM0Mzc1XSwgWzE1ODkwMDkxNzguOTg0NTIzLCAyLCAxMzg2Ny4wMjM0Mzc1XSwgWzE1ODkwMDkxNzkuMDQ5MTA1LCA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WzE1ODkwMDkxODUuMjE1NjM2LCA5OSwgOTAwNS4xMzI4MTI1XV0=", "ok": true, "headers": [["content-type", "application/json"]], "status": 200, "status_text": ""}, "https://localhost:6006/font-roboto/d-6IYplOFocCacKzxwXSOJBw1xU1rKptJj_0jans920.woff2": {"data": "d09GMgABAAAAACoMAA4AAAAAUsQAACm2AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGmQbmXocg0oGYACGTBEMCu5A1nULg14AATYCJAOHNgQgBYJ+ByAbIkSzoqzwsjiKkj2aj6JicZf9lwnmGDrzUL5ooaWgICnvqxcvLU1UUm052dq0PPEbkDL7t7A4c3dKponrEu8IjX2Sy0PoX9DLJNk9AHsAO6uC0MkqVZH48wM/t95fEVEDtBGpESMixmDAqNgYMLpGpmSIhFWEFSiIoIiFRIli3p2nHuksZyTDeXbXshPuAKlMlW53Zbg7HZue7/8N06wSlnxFE+rSAhYVkmR44D5FCo4yXQlcOX/hZsHaQuZYMcQ8fkufGldr+uACwqKNzkSGPbR7G1BVUZ3KOl0lGRYOQuDT2zTbfVpvBF5fojuuchvk6YE73cxV6dJS//W/1qu/X2vQGiTZDshHKx3JCpgmIwjIGl8FXKUCLIGkY12AuaMOqUzRXNWnLQmqS1HWqdIFnu/vG79/2raDcUAPMPAMtn38TkB/ouZjIAEmGGgThZmsWZkYwdIwtsYh6+N7ZqYra0NPaN1poDFKzhjB6Ep9/G4ZTnWidqQaNBB6+Y1RoPACsDkUTvsZQJjzgUiWDJEtGyJXLgQLC6JIEUSJMohOPVAu+QiBQAHTADNAgAKRDAGmosIAZt317VxBcvfkGAZI7h0THA6SB/jHRYIkDOBDaNj+e8ZEAjtwbBhGLXC2MFFLe6nWKwp1sS6WQ4VY39XdhkP/X4wChWLH4FC8KPFQDqMIiLjGjWJFabOIvvgn/jQ7N9ClKlWDRqlUq8XUxVp68cWGQ7/D+N36//YNN54bY0H9DUgUJtSPLQYOF25C9jvokMOOOE6FOg0EmrQR6dJnwJA1G3YcOXNB4ob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OW/5lUQ8xqzqrqMIl3Cvq2/MjACDqnWkU2fiG0Bh4tRk17Q7itkxlHJFPiP1oogCVUQIA5LKAOS800frEEAeawsNSLpqmGqSaT3Tl3tFR0SbXFdGUYimhesYS9Odo0rKnCmMZMHNUT1UxxE1HSTx4mh2oOeLC82drUrJ3CmDZF2GuFATQ0BPhBBVEOsBCA6UBArQgHAaYQAg1pHAB2AsddEdx8dkVhR98VTVTMoTG7Yh1QyHE+ZeSh8nJ1i6koTMli0IQKEwdPjQpVp+FZiiLwMwTv2VqkQMrc+AZGs4uHiHXiwWI1HiPBxoMo3+JRAhhxMFmZIShrxveFm088Fg0isn0oL1CnRTeYkVp+7mO07cw4TETHnZxYTZk/Jn+BwhKuzE6MUMdtNk2gYJFB3pNYx9mxZsqcAxJzx1ptUvlZcFlJF2QG", "ok": true, "headers": [["content-type", "font/woff2"]], "status": 200, "status_text": ""}}, "base_uri": "https://localhost:8080/", "height": 856, "output_embedded_package_id": "1bf4DdL5GlPuL3hPabHYA7bem95YmgYDu"} # %load_ext tensorboard # %tensorboard --logdir Graph1
5,266,346
/project_1.ipynb
b7a91b94e8538fd6278334b6a13a29b551acfad6
[ "MIT" ]
permissive
texasroh/Linear-Regression_with_interaction_diminishing_return_terms
https://github.com/texasroh/Linear-Regression_with_interaction_diminishing_return_terms
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
571,475
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # ## Explanatory Data Analysis (EDA) # # Academic project from UTA # # Data has 520 rows and 4 columns<br> # Each row represents a week # # # <h3>Independant Variable</h3> # <ul> # <li><strong>rebate:</strong> \$ pay back spent on each purchase</li> # <li><strong>ad.spent:</strong> MIL $ spent on Advertisement</li> # <li><strong>xmas:</strong> every last 6 weeks in each year. 0 is off-season, 1 is christmas season</li> # </ul> # # <h3>Dependant Variable</h3> # <ul> # <li><strong>sales:</strong> BIL $ revenue</li> # </ul> # <h2>Import necessary modules</h2> import pandas as pd import numpy as np import matplotlib.pyplot as plt import seaborn as sns # %matplotlib inline # <h2>Data load</h2> data = pd.read_csv("project1.2.csv") data.head() # <h2>Visualization</h2> g = sns.scatterplot(x="ad.spent", y="sales", hue="xmas", data=data) g = sns.scatterplot(x="rebate", y="sales", hue="xmas", data=data) data['rebate_ca'] = data['rebate'] // 1 a = data.groupby('rebate_ca').sales.mean().reset_index(name = 'sales_avg') plt.plot(a.rebate_ca, a.sales_avg) plt.plot([a.rebate_ca.iloc[0], a.rebate_ca.iloc[-1]], [a.sales_avg.iloc[0], a.sales_avg.iloc[-1]]) plt.xlabel('Rebate') plt.ylabel('Sales') xmas = data.groupby('xmas').mean().sales plt.grid() plt.boxplot((data.loc[data.xmas==0,'sales'], data.loc[data.xmas==1, 'sales']), labels=[0,1]) plt.scatter([1,2],xmas) plt.xlabel('X-mas') plt.ylabel('Sales') # <h2>Scipy optimize w/o xmas</h2> from scipy.optimize import least_squares # + def simple_regression(c, x): #c[0] : intercept #x[0] : rebate #c[1] : coefficient for rebate #x[1] : ad.spent #c[2] : coefficient for ad.spent #x[2] : xmas #c[3] : coefficient for xmas return c[0] + c[1]*x[0] + c[2]*x[1] + c[3]*x[2] def diminishing_return(x, r): return (1-np.exp((-1)*x*r)) / r def regression_with_diminishing_return(c, x): #c[4] : r for rebate #c[5] : r for ad.spent return c[0] + c[1]*diminishing_return(x[0],c[4]) + c[2]*diminishing_return(x[1],c[5]) + c[3]*x[2] def simple_func(c,x,y): return y - simple_regression(c,x) def diminishing_func(c,x,y): return y - regression_with_diminishing_return(c,x) # - c_sim = np.random.rand(4) c_dim = np.random.rand(6) c_dim x = data[['rebate','ad.spent','xmas']].values.T y = data['sales'].values x # <h2>Simple Regression</h2> # simple_regression c_sim = np.random.rand(4) solv1 = least_squares(simple_func, c_sim, args = (x, y)) print(solv1.x) #ad.spent plt.scatter(x[1], y) plt.plot(x[1], solv1.x[0]+solv1.x[2]*x[1], color='red') #rebate plt.scatter(x[0],y) plt.plot(x[0], solv1.x[0]+solv1.x[1]*x[0], color = 'red') # predicted vs real plt.scatter(simple_regression(solv1.x, x), y) plt.plot([y.min(),y.max()], [y.min(),y.max()], color='red') plt.xlabel('Predicted') plt.ylabel('Real') # <h2>Diminishing return</h2> #diminishing return solv2 = least_squares(diminishing_func, c_dim, args=(x, y)) print(solv2.x) #ad.spent plt.scatter(x[1], y) plt.plot(x[1], solv2.x[0]+solv2.x[2]*diminishing_return(x[1],solv2.x[5]), color='red') #rebate plt.scatter(x[0],y) plt.plot(x[0], solv2.x[0]+solv1.x[1]*diminishing_return(x[0], solv2.x[4]), color='red') # predicted vs real simple regression plt.scatter(simple_regression(solv1.x, x), y) plt.plot([y.min(),y.max()], [y.min(),y.max()], color='red') plt.xlabel('Predicted') plt.ylabel('Real') # predicted vs real Diminishing Return plt.scatter(regression_with_diminishing_return(solv2.x,x),y) plt.plot([y.min(),y.max()], [y.min(),y.max()], color='red') plt.xlabel('Predicted') plt.ylabel('Real') # <h2>Using dummy data for validating the model (Algorithm validation)</h2> # simple_regression np.random.seed(0) e = np.random.randn(10000) x_rand = np.random.randint(1,10000,(2,10000)) xmas_rand = np.random.randint(0,2,(1,10000)) x_rand = np.vstack((x_rand, xmas_rand)) y_rand_sim = simple_regression(solv1.x, x_rand) + e solv4 = least_squares(simple_func, c_sim, args=(x_rand, y_rand_sim)) print(solv4.x) print(solv1.x) print(solv4.x - solv1.x) ## Both calculated outputs look so similar which means Algorithm works well # diminishing return np.random.seed(0) e = np.random.randn(10000) x_rand = np.random.randint(1,10000, (2,10000)) xmas_rand = np.random.randint(0,2, (1,10000)) x_rand = np.vstack((x_rand, xmas_rand)) y_rand_dim = regression_with_diminishing_return(solv2.x, x_rand) + e solv3 = least_squares(diminishing_func, c_dim, args=(x_rand, y_rand_dim)) print(solv3.x) print(solv2.x) print(solv3.x - solv2.x) # <h1>With standardized data</h1> # n_data = (data - data.mean())/data.std() #normalize only continuous variables n_data = data.copy() n_data['rebate'] = (n_data['rebate'] - n_data['rebate'].mean())/n_data['rebate'].std() n_data['ad.spent'] = (n_data['ad.spent'] - n_data['ad.spent'].mean())/n_data['ad.spent'].std() n_data['sales'] = (n_data['sales'] - n_data['sales'].mean())/n_data['sales'].std() plt.scatter(n_data['rebate'], n_data['sales']) n_x = n_data[['rebate','ad.spent','xmas']].values.T n_y = n_data['sales'].values n_x[0].min() # simple_regression c_sim = np.random.randn(4) n_solv1 = least_squares(simple_func, c_sim, args = (n_x, n_y)) print(n_solv1.x) print(n_solv1.x) print(data.mean()) print(data.std()) #diminishing return n_solv2 = least_squares(diminishing_func, c_dim, args=(n_x, n_y)) print(n_solv2.x) # <h2>Scipy w/ xmas interaction</h2> # + def simple_regression_interaction(c, x): #c[0] : intercept #x[0] : rebate #c[1] : coefficient for rebate #x[1] : ad.spent #c[2] : coefficient for ad.spent #x[2] : xmas #c[3] : coefficient for xmas #c[4] : coefficient for rebate * xmas #c[5] : coefficient for ad.spent * xmas #c[6] : coefficient for rebate * ad.spent return c[0] + c[1]*x[0] + c[2]*x[1] + c[3]*x[2] + c[4]*x[0]*x[2] + c[5]*x[1]*x[2] + c[6]*x[0]*x[1] def diminishing_return(x, r): return (1-np.exp((-1)*x*r)) / r def regression_with_diminishing_return_interaction(c, x): #c[7] : r for rebate #c[8] : r for ad.spent return c[0] + c[1]*diminishing_return(x[0],c[7]) + c[2]*diminishing_return(x[1],c[8]) + c[3]*x[2] + c[4]*x[0]*x[2] + c[5]*x[1]*x[2] + c[6]*x[0]*x[1] def simple_func_interaction(c,x,y): return y - simple_regression_interaction(c,x) def diminishing_func_interaction(c,x,y): return y - regression_with_diminishing_return_interaction(c,x) # - c_sim_inter = np.random.rand(7) c_dim_inter = np.random.rand(9) # simple_regression_interaction c_sim_inter = np.random.rand(7) solv1_inter = least_squares(simple_func_interaction, c_sim_inter, args = (x, y)) print(c_sim_inter) print(solv1_inter.x) # predicted vs real simpe regression _ interaction plt.scatter(simple_regression_interaction(solv1_inter.x, x), y) plt.plot([y.min(),y.max()], [y.min(),y.max()], color='red') plt.xlabel('Predicted') plt.ylabel('Real') # diminishing_return_interaction solv2_inter = least_squares(diminishing_func_interaction, c_dim_inter, args = (x, y)) print(solv2_inter.x) # predicted vs real Diminishing Return plt.scatter(regression_with_diminishing_return_interaction(solv2_inter.x, x), y) plt.plot([y.min(),y.max()], [y.min(),y.max()], color='red') plt.xlabel('Predicted') plt.ylabel('Real') plt.scatter(regression_with_diminishing_return_interaction(solv2_inter.x, x), y) plt.plot([y.min(),y.max()], [y.min(),y.max()], color='red') plt.xlabel('Predicted') plt.ylabel('Real') # <h2>Hypothesis test</h2> # <h3>parameters</h3> # <ul> # <li>c[0] : intercept</li> # <li>x[0] : rebate</li> # <li>c[1] : coefficient for rebate</li> # <li>x[1] : ad.spent</li> # <li>c[2] : coefficient for ad.spent</li> # <li>x[2] : xmas</li> # <li>c[3] : coefficient for xmas</li> # <li>c[4] : coefficient for rebate * xmas</li> # <li>c[5] : coefficient for ad.spent * xmas</li> # <li>c[6] : coefficient for rebate * ad.spent</li> # <li>c[7] : coefficient for rebate * ad.spent * xmas</li> # <li>c[7] : r for rebate</li> # <li>c[8] : r for ad.spent</li> # </ul> # # <h3>Equation</h3> # <div>$Sales = c[0] + c[1] \left [ \frac{1-e^{-x[0]\cdot c[7]}}{b} \right ] + c[2] \left [ \frac{1-e^{-x[1]\cdot c[8]}}{b} \right ] + c[3]\cdot x[2] + c[4]( x[0]\cdot x[2])+c[5]( x[1]\cdot x[2])+c[6](x[0]\cdot x[1])$</div> # <a hidden="True" href="https://www.codecogs.com/eqnedit.php?latex=Sales&space;=&space;c[0]&space;&plus;&space;c[1]&space;\left&space;[&space;\frac{1-e^{-x[0]\cdot&space;c[7]}}{b}&space;\right&space;]&space;&plus;&space;c[2]&space;\left&space;[&space;\frac{1-e^{-x[1]\cdot&space;c[8]}}{b}&space;\right&space;]&space;&plus;&space;c[3]\cdot&space;x[2]&space;&plus;&space;c[4](&space;x[0]\cdot&space;x[2])&plus;c[5](&space;x[1]\cdot&space;x[2])&plus;c[6](x[0]\cdot&space;x[1])" target="_blank"><img src="https://latex.codecogs.com/gif.latex?Sales&space;=&space;c[0]&space;&plus;&space;c[1]&space;\left&space;[&space;\frac{1-e^{-x[0]\cdot&space;c[7]}}{b}&space;\right&space;]&space;&plus;&space;c[2]&space;\left&space;[&space;\frac{1-e^{-x[1]\cdot&space;c[8]}}{b}&space;\right&space;]&space;&plus;&space;c[3]\cdot&space;x[2]&space;&plus;&space;c[4](&space;x[0]\cdot&space;x[2])&plus;c[5](&space;x[1]\cdot&space;x[2])&plus;c[6](x[0]\cdot&space;x[1])" title="Sales = c[0] + c[1] \left [ \frac{1-e^{-x[0]\cdot c[7]}}{b} \right ] + c[2] \left [ \frac{1-e^{-x[1]\cdot c[8]}}{b} \right ] + c[3]\cdot x[2] + c[4]( x[0]\cdot x[2])+c[5]( x[1]\cdot x[2])+c[6](x[0]\cdot x[1])" /></a> # + def test_c0(c,x): return 0*c[0] + c[1]*diminishing_return(x[0],c[7]) + c[2]*diminishing_return(x[1],c[8]) + c[3]*x[2] + c[4]*x[0]*x[2] + c[5]*x[1]*x[2] + c[6]*x[0]*x[1] def test_c1(c,x): return c[0] + c[2]*diminishing_return(x[1],c[8]) + c[3]*x[2] + c[4]*x[0]*x[2] + c[5]*x[1]*x[2] + c[6]*x[0]*x[1] def test_c2(c,x): return c[0] + c[1]*diminishing_return(x[0],c[7]) + c[3]*x[2] + c[4]*x[0]*x[2] + c[5]*x[1]*x[2] + c[6]*x[0]*x[1] def test_c3(c,x): return c[0] + c[1]*diminishing_return(x[0],c[7]) + c[2]*diminishing_return(x[1],c[8]) + c[4]*x[0]*x[2] + c[5]*x[1]*x[2] + c[6]*x[0]*x[1] def test_c4(c,x): return c[0] + c[1]*diminishing_return(x[0],c[7]) + c[2]*diminishing_return(x[1],c[8]) + c[3]*x[2] + c[5]*x[1]*x[2] + c[6]*x[0]*x[1] def test_c5(c,x): return c[0] + c[1]*diminishing_return(x[0],c[7]) + c[2]*diminishing_return(x[1],c[8]) + c[3]*x[2] + c[4]*x[0]*x[2] + c[6]*x[0]*x[1] def test_c6(c,x): return c[0] + c[1]*diminishing_return(x[0],c[7]) + c[2]*diminishing_return(x[1],c[8]) + c[3]*x[2] + c[4]*x[0]*x[2] + c[5]*x[1]*x[2] def test_c7(c,x): return c[0] + c[1]*x[0] + c[2]*diminishing_return(x[1],c[8]) + c[3]*x[2] + c[4]*x[0]*x[2] + c[5]*x[1]*x[2] + c[6]*x[0]*x[1] def test_c8(c,x): return c[0] + c[1]*diminishing_return(x[0],c[7]) + c[2]*x[1] + c[3]*x[2] + c[4]*x[0]*x[2] + c[5]*x[1]*x[2] + c[6]*x[0]*x[1] def test_c7_c8(c,x): return simple_regression_interaction(c, x) def least_square_func(c,x,y, funcc): return y - funcc(c,x) # + def llk(c,x,y,test_func): return -len(y)/2*(np.log(np.sum(np.power(y-test_func(c,x),2)))+1+np.log(2*np.pi)-np.log(len(y))) def lrt(c,x,y, full_func, restricted_func): full_solv = least_squares(least_square_func, c_dim_inter, args = (x, y, full_func)) restricted_solv = least_squares(least_square_func, c_dim_inter, args = (x, y, restricted_func)) return 2*(llk(full_solv.x,x,y,full_func) - llk(restricted_solv.x,x,y,restricted_func)) # - solv2_inter.x llk(solv2_inter.x,x,y,regression_with_diminishing_return_interaction) c_dim_inter = np.ones(9)/100 test_solv = least_squares(least_square_func, c_dim_inter, args = (x,y,test_c0)) print(llk(test_solv.x, x, y, test_c0)) test_solv = least_squares(least_square_func, c_dim_inter, args = (x,y,test_c1)) print(llk(test_solv.x, x, y, test_c1)) test_solv = least_squares(least_square_func, c_dim_inter, args = (x,y,test_c2)) print(llk(test_solv.x, x, y, test_c2)) test_solv = least_squares(least_square_func, c_dim_inter, args = (x,y,test_c3)) print(llk(test_solv.x, x, y, test_c3)) test_solv = least_squares(least_square_func, c_dim_inter, args = (x,y,test_c4)) print(llk(test_solv.x, x, y, test_c4)) test_solv = least_squares(least_square_func, c_dim_inter, args = (x,y,test_c5)) print(llk(test_solv.x, x, y, test_c5)) test_solv = least_squares(least_square_func, c_dim_inter, args = (x,y,test_c6)) print(llk(test_solv.x, x, y, test_c6)) test_solv = least_squares(least_square_func, c_dim_inter, args = (x,y,test_c7)) print(llk(test_solv.x, x, y, test_c7)) test_solv = least_squares(least_square_func, c_dim_inter, args = (x,y,test_c8)) print(llk(test_solv.x, x, y, test_c8)) # + # find LRT and p-value from scipy.stats import chi2 test_model = [test_c0, test_c1, test_c2, test_c3, test_c4, test_c5, test_c6, test_c7, test_c8] for model in test_model: lrt_value = lrt(c_dim_inter, x, y, regression_with_diminishing_return_interaction, model) p_value = chi2.sf(lrt_value,1) print(lrt_value,'\t', p_value) # print(lrt(c_dim_inter, x, y, regression_with_diminishing_return_interaction, test_c0)) # print(lrt(c_dim_inter, x, y, regression_with_diminishing_return_interaction, test_c1)) # print(lrt(c_dim_inter, x, y, regression_with_diminishing_return_interaction, test_c2)) # print(lrt(c_dim_inter, x, y, regression_with_diminishing_return_interaction, test_c3)) # print(lrt(c_dim_inter, x, y, regression_with_diminishing_return_interaction, test_c4)) # print(lrt(c_dim_inter, x, y, regression_with_diminishing_return_interaction, test_c5)) # print(lrt(c_dim_inter, x, y, regression_with_diminishing_return_interaction, test_c6)) # print(lrt(c_dim_inter, x, y, regression_with_diminishing_return_interaction, test_c7)) # print(lrt(c_dim_inter, x, y, regression_with_diminishing_return_interaction, test_c8)) # print(lrt(c_dim_inter, x, y, regression_with_diminishing_return_interaction, test_c7_c8)) ## c[6] and c[8] are not significant ## c[6] : interaction term - rebate * ad.spent ## c[8] : r - ad.spent # - # <h3>Final Model</h3> # <div>$Sales = c[0] + c[1] \left [ \frac{1-e^{-x[0]\cdot c[6]}}{b} \right ] + c[2] \cdot x[1]+ c[3]\cdot x[2] + c[4]( x[0]\cdot x[2])+c[5]( x[1]\cdot x[2])$</div> # <a hidden = "True" href="https://www.codecogs.com/eqnedit.php?latex=Sales&space;=&space;c[0]&space;&plus;&space;c[1]&space;\left&space;[&space;\frac{1-e^{-x[0]\cdot&space;c[6]}}{b}&space;\right&space;]&space;&plus;&space;c[2]&space;\cdot&space;x[1]&plus;&space;c[3]\cdot&space;x[2]&space;&plus;&space;c[4](&space;x[0]\cdot&space;x[2])&plus;c[5](&space;x[1]\cdot&space;x[2])" target="_blank"><img src="https://latex.codecogs.com/gif.latex?Sales&space;=&space;c[0]&space;&plus;&space;c[1]&space;\left&space;[&space;\frac{1-e^{-x[0]\cdot&space;c[6]}}{b}&space;\right&space;]&space;&plus;&space;c[2]&space;\cdot&space;x[1]&plus;&space;c[3]\cdot&space;x[2]&space;&plus;&space;c[4](&space;x[0]\cdot&space;x[2])&plus;c[5](&space;x[1]\cdot&space;x[2])" title="Sales = c[0] + c[1] \left [ \frac{1-e^{-x[0]\cdot c[6]}}{b} \right ] + c[2] \cdot x[1]+ c[3]\cdot x[2] + c[4]( x[0]\cdot x[2])+c[5]( x[1]\cdot x[2])" /></a> def final_model(c,x): return c[0] + c[1]*diminishing_return(x[0],c[6]) + c[2]*x[1] + c[3]*x[2] + c[4]*x[0]*x[2] + c[5]*x[1]*x[2] final_c = np.random.randn(7) full_solv = least_squares(least_square_func, c_dim_inter, args = (x,y,regression_with_diminishing_return_interaction)) final_solv = least_squares(least_square_func, final_c, args = (x,y,final_model)) print(full_solv.x) final_solv.x # rebate interpretation tmp_x = np.linspace(data.rebate.min(), data.rebate.max(), num=1000) tmp_y= final_solv.x[1] * diminishing_return(tmp_x, final_solv.x[6]) / final_solv.x[6] plt.plot(tmp_x, tmp_y) tmp_y2 = final_solv.x[1] * diminishing_return(tmp_x, final_solv.x[6]) / final_solv.x[6] + final_solv.x[4] * tmp_x plt.plot(tmp_x, tmp_y2) plt.xlabel('rebate') plt.ylabel('sales') # ad.spent interpretation tmp_x = np.linspace(data['ad.spent'].min(), data['ad.spent'].max(), num=10000) tmp_y = final_solv.x[2]*tmp_x plt.plot(tmp_x, tmp_y) tmp_y2 = final_solv.x[2]*tmp_x + final_solv.x[5]*tmp_x plt.plot(tmp_x, tmp_y2) plt.xlabel('ad.spent') plt.ylabel('sales') # <h2> Interprete with normalized data</h2> n_final_solv = least_squares(least_square_func, final_c, args = (n_x,n_y,final_model)) n_final_solv.x r_x = np.linspace(n_data['rebate'].min(), n_data['rebate'].max(), num=1000) r_r = n_final_solv.x[6] plt.plot(r_x, diminishing_return(r_x, r_r)) r_y = n_final_solv.x[1] * diminishing_return(r_x,r_r) + (n_final_solv.x[4]*r_x*n_data['xmas'].max()) plt.plot(r_x, r_y) plt.axhline(r_y[364], color='black', linestyle='--', alpha=.3) plt.axvline(r_x[364], color='black', linestyle='--', alpha=.3) plt.xlabel('n_rebate') plt.ylabel('n_sales') plt.grid() r_y.argmax() r_x[364] best_rebate = r_x[364]*data['rebate'].std()+data['rebate'].mean() best_rebate r_y = n_final_solv.x[1] * diminishing_return(r_x,r_r) + (n_final_solv.x[4]*r_x*n_data['xmas'].min()) plt.plot(r_x, r_y) plt.grid() plt.xlabel('n_rebate') plt.ylabel('n_sales') a_x = np.linspace(n_data['ad.spent'].min(), n_data['ad.spent'].max(), num=100) a_y = n_final_solv.x[2] * a_x + (n_final_solv.x[5] * a_x * n_data['xmas'].max()) plt.plot(a_x, a_y) plt.grid() plt.xlabel('n_ad.spent') plt.ylabel('n_sales') n_final_solv.x[2] a_x = np.linspace(n_data['ad.spent'].min(), n_data['ad.spent'].max(), num=100) a_y = n_final_solv.x[2] * a_x + (n_final_solv.x[5] * a_x * n_data['xmas'].min()) plt.plot(a_x, a_y) plt.grid() n_x[2].max() plt.xlabel('n_ad.spent') plt.ylabel('n_sales') # xmas best choice tmp_x = np.linspace(n_data['ad.spent'].min(), n_data['ad.spent'].max(), num=1000) tmp_y = n_final_solv.x[3] + n_final_solv.x[4] * best_rebate + n_final_solv.x[5]*tmp_x plt.plot(tmp_x, tmp_y)
17,962
/computer-vision/06_Tensorflow_ConvNet_MNIST_Steven_Mi.ipynb
4082cde6dd046634f86d6b15b7f52c483b76e1d7
[]
no_license
steven-mi/machine-learning-basics
https://github.com/steven-mi/machine-learning-basics
1
0
null
null
null
null
Jupyter Notebook
false
false
.py
16,630
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # + [markdown] id="zXlk954chnX6" # <h1>Convolutional Neural Networks anhand von MNIST</h1> # # <p>Das neuronale Netzwerk der letzten &Uuml;bung brauchte nur einige hundert Megabyte Arbeitsspeicher. Die 60000 MNIST Bilder mit ihren 784 Pixeln, die Gewichtsmatrizen und alle Zwischenergebnisse, die im Netzwerk beim Vorw&auml;rtspass berechnet wurden, sind keine 350MB gro&szlig;:<br /> # (60000&lowast; 784 + 784&lowast; 300 + 60000 &lowast; 300 + 300 &lowast; 10 + 60000 &lowast; 10) &lowast; 4 = 335MB <br />(MNISTData + Weights1 + Intermediate + Weight2 + Predictions) &lowast; Float32</p> # # <p>Dieser Verbrauch steigt rasant an, wenn Konvolutionsfilter ins Spiel kommen. Werden die Eingangsdaten mit 10 Filtern beliebiger Gr&ouml;&szlig;e (z.b. 3x3) gefalten, sind die ausgehenden Daten 10 mal so gro&szlig;:<br /> # (60000&lowast;784+10&lowast;3&lowast;3+60000&lowast;10&lowast;784)&lowast;4=2GB</p> # # <p>Um das zu verhindern, sollten in Zukunft nicht mehr alle Daten auf einmal im Netzwerk verarbeitet werden. Stattdessen werden Mini-Batches ben&ouml;tigt.</p> # # <p>Das komplette Notebook steht wieder zum <a href="06_Tensorflow_ConvNet_MNIST_Vorlage.ipynb">download</a> bereit.</p> # # <hr> # # <h2>Neural Networks mit Mini-Batches</h2> # # <p>Im folgenden ist ein zweischichtiges neuronales Netzwerk implementiert, welches alle MNIST Ziffern auf einmal verarbeitet. Bauen Sie den Code so um, dass er stattdessen mit Mini-Batches funktioniert. Dabei&nbsp;k&ouml;nnen Sie Numpy verwenden und die Daten als Mini-Batch in den Computation-Graph von Tensorflow geben&nbsp;oder Sie benutzen Tensorflows Batch-Methoden, um die Batches innerhalb eines Graphens zu erzeugen. Die K&ouml;nigsdiziplin sind Tensorflow Esitmators, die die Arbeit des Batchings &uuml;bernehmen, aber viele andere Anforderungen an das Netzwerk haben.&nbsp;Wichtig ist in allen&nbsp;F&auml;llen, dass auch die Testdaten gebatched werden.</p> # # <ul> # <li><strong>Numpy</strong>: Es ist m&ouml;glich die Daten einmalig in kleine Batches zu unterteilen und diese dann in zuf&auml;lliger Reihnfolge in den Computation-Graph zu geben. Besser jedoch ist die Variante, bei der erst im letzten Moment ein Batch aus dem gesamten Datensatz extrahiert wird. Der Extraktionsbereich sollte dabei zuf&auml;llig gew&auml;hlt sein.&nbsp;&nbsp;</li> # <li><strong>Tensorflow <a href="https://www.tensorflow.org/guide/datasets" target="_blank">Dataset</a></strong>: Sind die&nbsp;Daten klein genug, dass Sie&nbsp;in den Arbeitsspeicher, aber nicht mit einen Durchlauf durch das Netzwerk passen, k&ouml;nnen sie zun&auml;chst&nbsp;komplett in den Graphen geladen werden und von dort in <a href="https://www.tensorflow.org/guide/datasets#batching_dataset_elements" target="_blank">kleine Batches</a> zerlegt werden. Mithilfe von <a href="https://www.tensorflow.org/guide/datasets#creating_an_iterator" target="_blank">Iteratoren</a> können diese Batches dann einzeln in das Netzwerk geschickt werden.</li> # <li><strong>Tensorflow Estimator</strong>: Innerhalb der High-Level API von Tensorflow gibt es die Möglichkeit, Estimators zu verwenden. Diese übernehmen sämtliche Batching-Arbeiten, verlangen aber bestimmte Eigenschaften vom Computation-Graphen. So m&uuml;ssen Trainings- und Evaluierungsmethoden in einen sogenannten <a href="https://www.tensorflow.org/api_docs/python/tf/estimator/EstimatorSpec">EstimatorSpec</a> beschrieben werden, um sp&auml;ter mit einen <a href="http://www.tensorflow.org/api_docs/python/tf/estimator">Estimator Model</a> arbeiten zu k&ouml;nnen.</li> # </ul> # + id="I2Z4xzBKiGUt" # !pip install tensorflow-gpu==1.15.0 # !pip install deep-teaching-commons # + id="tf8aHW8YhnX9" import tensorflow as tf import numpy as np import time from matplotlib import pyplot as plt from tqdm import tqdm from shutil import copyfileobj from sklearn.datasets.base import get_data_home from deep_teaching_commons.data.fundamentals import mnist from sklearn.utils import check_random_state from sklearn.preprocessing import OneHotEncoder # + id="-R_fu0-_hnYJ" X_train, y_train, X_test, y_test = mnist.Mnist().get_all_data(normalized=True, flatten=False) X_train = X_train.reshape((-1, 28, 28, 1)) X_test = X_test.reshape((-1, 28, 28, 1)) # only shuffle train dataset random_state = check_random_state(0) permutation = random_state.permutation(X_train.shape[0]) X_train = X_train[permutation] y_train = y_train[permutation] print(X_train.shape, y_train.shape) print(X_test.shape, y_test.shape) enc = OneHotEncoder() y_train = enc.fit_transform(np.expand_dims(y_train, axis=1)).toarray() y_test = enc.fit_transform(np.expand_dims(y_test, axis=1)).toarray() print(y_train.shape, y_test.shape) # + id="sr4cPY8fhnYS" def minibatcher(inputs, targets, batchsize, shuffle=True): assert len(inputs) == len(targets) if shuffle: indices = np.arange(len(inputs)) np.random.shuffle(indices) for start_idx in range(0, len(inputs) - batchsize + 1, batchsize): if shuffle: excerpt = indices[start_idx:start_idx + batchsize] else: excerpt = slice(start_idx, start_idx + batchsize) yield inputs[excerpt], targets[excerpt] # + [markdown] id="FAJpMQ1shnYY" # <hr> # # <h2>Convolutional Neural Network mit MNIST Ziffern</h2> # # <p>Nachdem das neuronale Netzwerk mit Mini-Batches arbeitet, k&ouml;nnen die Fully-Connected (Dense) Layer mit Konvolutionsschichten ersetzt werden. Sinnvoll sind z.B. zwei Schichten mit 64 5x5 und 96 3x3 Filterkerneln. Um die Dimensionalit&auml;t der Daten langsam zu reduzieren, k&ouml;nnen entweder Schrittweiten bei den Konvolutionsschichten eingestellt werden oder Pooling angewendet werden. Zum Schluss ist es hilfreich, die hochdimensionalen Daten zu flatten, um sie in Dense Layern auf 10 Dimensionen herunterzubrechen. Berechnen Sie wieder den Trainingsfehler und die Testgenauigkeit. Zu erwarten sind Genauigkeiten von bis zu 99%.&nbsp;</p> # # <p>Je nachdem welche Tensorflow Version Sie nutzen (mindestens aber Version &gt;= 1.0), sind folgende Methoden hilfreich:</p> # # <ul> # <li><a href="https://www.tensorflow.org/api_docs/python/tf/nn/max_pool" target="_blank">tf.nn.max_pool</a> oder <a href="https://www.tensorflow.org/versions/master/api_docs/python/tf/layers/max_pooling2d" target="_blank">tf.layers.max_pooling2d</a></li> # <li><a href="https://www.tensorflow.org/versions/master/api_docs/python/tf/nn/conv2d" target="_blank">tf.nn.conv2d</a> oder <a href="https://www.tensorflow.org/versions/master/api_docs/python/tf/layers/conv2d" target="_blank">tf.layers.conv2d</a></li> # <li><a href="https://www.tensorflow.org/versions/master/api_docs/python/tf/reshape" target="_blank">tf.reshape</a> oder <a href="https://www.tensorflow.org/versions/master/api_docs/python/tf/layers/flatten" target="_blank">tf.layers.Flatten</a></li> # </ul> # # <p><strong>Optional</strong>: Yann LeCun hat vor fast 20 Jahren das MNIST Datenset herausgebracht und die Convolutionsnetzwerke erfunden. Damals gab es nicht die nötige Rechenleistung um in kurzer Zeit die notwendigen Filterkernel mittels Backpropagation und Gradient Descent zu erlernen. Seine Netzwerke sind daher sehr minimalistisch. Implementieren Sie das <a href="http://yann.lecun.com/exdb/publis/pdf/lecun-98.pdf" target="_blank">LeNet5</a> Netzwerk nach seinen Vorbild. Padden Sie dazu die&nbsp;Eingangsdaten, damit die Bilder 32x32 Pixel haben und verwenden Sie nur 6, 16 und 120 Filterkernel&nbsp;(je 5x5 Pixel gro&szlig;) f&uuml;r die drei Konvolutionsschichten in LeNet5. Natürlich können Sie auch LeCun's <a href="http://yann.lecun.com/exdb/publis/pdf/lecun-98b.pdf" target="_blank">Stochastic gradient descent</a> nutzen um ihr Netzwerk zu trainieren oder gar den <a href="https://arxiv.org/pdf/1412.6980v8.pdf" target="_blank">Adam Optimizer</a>.</p> # # <p>&nbsp;</p> # # ![LeNet5.png](attachment:LeNet5.png) # + id="OdeQA_3hhnYZ" # pixel count num_input = 28 # num of classes num_classes = 10 # learn rate learning_rate = 0.001 batch_size = 128 # + id="YhOJw9j3hnYf" # computation graph graph = tf.Graph() with graph.as_default(): # input data with fix shape to infer shapes of other graph nodes a build time x_input = tf.placeholder(dtype=tf.float32, shape=[None, num_input, num_input, 1], name='x') y_input = tf.placeholder(tf.int64, shape=[None, num_classes], name='y') layer1 = tf.layers.conv2d(inputs=x_input, filters=64, kernel_size=(5,5), activation=tf.nn.relu) layer2 = tf.layers.conv2d(inputs=layer1, filters=64, kernel_size=(5,5), activation=tf.nn.relu) flatten = tf.layers.flatten(layer2) dense = tf.layers.dense(inputs=flatten, units=128, activation=tf.nn.relu) prediction = tf.layers.dense(inputs=dense, units=num_classes) # compute trainings error cost = tf.losses.softmax_cross_entropy(onehot_labels=y_input, logits=prediction) # use the Adam optimizer to derive the cost function and update the weights optimizer = tf.train.AdamOptimizer(learning_rate).minimize(cost) # accuracy for multiple batches softmax = tf.nn.softmax(prediction) acc, update_acc = tf.metrics.accuracy(labels=tf.argmax(y_input, 1), predictions=tf.argmax(softmax, axis=-1)) # + id="dMkB6t8ThnYi" # start a new session with tf.Session(graph=graph) as session: # initialize weights and bias variables session.run(tf.group(tf.global_variables_initializer(), tf.local_variables_initializer())) # check against test set print("Test accuracy ", session.run(update_acc, feed_dict={x_input: X_test, y_input: y_test})) # reset accuracy session.run(tf.local_variables_initializer()) # train for a few iterations ts = time.time() train_errors = [] for i in range(100): train_batcher = minibatcher(X_train, y_train, batch_size) temp = [] for i, (X_batch, y_batch) in enumerate(train_batcher): c, _ = session.run([cost, optimizer], feed_dict={x_input: X_batch, y_input: y_batch}) temp.append(c) train_errors.append(np.mean(temp)) print("Improved train error from ", train_errors[0], " to ", train_errors[-1], " in ", str(time.time()-ts), "secs") test_batcher = minibatcher(X_test, y_test, batch_size) for i, (X_batch, y_batch) in enumerate(test_batcher): session.run(update_acc, feed_dict={x_input: X_batch, y_input: y_batch}) # check against test set print("Test accuracy ", session.run(acc)) # + id="D1YZPl1QhnYl" # plot the train errors plt.plot(train_errors) plt.show() # + [markdown] id="0Q-Jrlq7hnYn" # <hr /> # # <h2>Abgabe</h2> # # Bevor sie das Notebook in Moodle hochladen entfernen sie bitte über "Kernel" -> "Restart and Clear Output" sämtlichen von Python erstellten Inhalt und speichern anschließend das Notebook "File" -> "Save and Checkpoint" erneut ab. Sorgen sie bitte außerdem dafür das im Dateinamen ihr Vor- und Nachname steht, ich empfehle folgende Namensgebung: "06_Tensorflow_ConvNet_MNIST_VORNAME_NACHNAME.ipynb"
11,273
/Intermediate_Linear_Algebra_Assignment.ipynb
cdc63bf911818d2c2ae5993674435acd73614da3
[]
no_license
Captmoonshot/DS-Unit-2-Sprint-1-Linear-Algebra
https://github.com/Captmoonshot/DS-Unit-2-Sprint-1-Linear-Algebra
0
0
null
2019-01-07T13:22:27
2019-01-06T09:50:43
null
Jupyter Notebook
false
false
.py
209,020
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # New York City has published data on student SAT scores by high school, along with additional demographic data sets. we have to combine the following data sets into a single, clean pandas dataframe combined: # # ## SAT scores by school - SAT scores for each high school in New York City # ## School attendance - Attendance information for each school in New York City # ## Class size - Information on class size for each school # ## AP test results - Advanced Placement (AP) exam results for each high school (passing an optional AP exam in a particular subject can earn a student college credit in that subject) # ## Graduation outcomes - The percentage of students who graduated, and other outcome information # ## Demographics - Demographic information for each school # ## School survey - Surveys of parents, teachers, and students at each school # # The Goal : New York City has a significant immigrant population and is very diverse, so comparing demographic factors such as race, income, and gender with SAT scores is a good way to determine whether the SAT is a fair test. For example, if certain racial groups consistently perform better on the SAT, we would have some evidence that the SAT is unfair. # # Read in the data # # + import pandas as pd import numpy import re # %matplotlib inline data_files = [ "ap_2010.csv", "class_size.csv", "demographics.csv", "graduation.csv", "hs_directory.csv", "sat_results.csv" ] data = {} for f in data_files: d = pd.read_csv("schools/{0}".format(f)) data[f.replace(".csv", "")] = d # - # # Read in the surveys # + all_survey = pd.read_csv("schools/survey_all.txt", delimiter="\t", encoding='windows-1252') d75_survey = pd.read_csv("schools/survey_d75.txt", delimiter="\t", encoding='windows-1252') survey = pd.concat([all_survey, d75_survey], axis=0) survey["DBN"] = survey["dbn"] survey_fields = [ "DBN", "rr_s", "rr_t", "rr_p", "N_s", "N_t", "N_p", "saf_p_11", "com_p_11", "eng_p_11", "aca_p_11", "saf_t_11", "com_t_11", "eng_t_11", "aca_t_11", "saf_s_11", "com_s_11", "eng_s_11", "aca_s_11", "saf_tot_11", "com_tot_11", "eng_tot_11", "aca_tot_11", ] survey = survey.loc[:,survey_fields] data["survey"] = survey # - # # Add DBN columns # + data["hs_directory"]["DBN"] = data["hs_directory"]["dbn"] def pad_csd(num): string_representation = str(num) if len(string_representation) > 1: return string_representation else: return "0" + string_representation data["class_size"]["padded_csd"] = data["class_size"]["CSD"].apply(pad_csd) data["class_size"]["DBN"] = data["class_size"]["padded_csd"] + data["class_size"]["SCHOOL CODE"] # - # # Convert columns to numeric # + cols = ['SAT Math Avg. Score', 'SAT Critical Reading Avg. Score', 'SAT Writing Avg. Score'] for c in cols: data["sat_results"][c] = pd.to_numeric(data["sat_results"][c], errors="coerce") data['sat_results']['sat_score'] = data['sat_results'][cols[0]] + data['sat_results'][cols[1]] + data['sat_results'][cols[2]] def find_lat(loc): coords = re.findall("\(.+, .+\)", loc) lat = coords[0].split(",")[0].replace("(", "") return lat def find_lon(loc): coords = re.findall("\(.+, .+\)", loc) lon = coords[0].split(",")[1].replace(")", "").strip() return lon data["hs_directory"]["lat"] = data["hs_directory"]["Location 1"].apply(find_lat) data["hs_directory"]["lon"] = data["hs_directory"]["Location 1"].apply(find_lon) data["hs_directory"]["lat"] = pd.to_numeric(data["hs_directory"]["lat"], errors="coerce") data["hs_directory"]["lon"] = pd.to_numeric(data["hs_directory"]["lon"], errors="coerce") # - # # Condense datasets # + class_size = data["class_size"] class_size = class_size[class_size["GRADE "] == "09-12"] class_size = class_size[class_size["PROGRAM TYPE"] == "GEN ED"] class_size = class_size.groupby("DBN").agg(numpy.mean) class_size.reset_index(inplace=True) data["class_size"] = class_size data["demographics"] = data["demographics"][data["demographics"]["schoolyear"] == 20112012] data["graduation"] = data["graduation"][data["graduation"]["Cohort"] == "2006"] data["graduation"] = data["graduation"][data["graduation"]["Demographic"] == "Total Cohort"] # - # # Convert AP scores to numeric # + cols = ['AP Test Takers ', 'Total Exams Taken', 'Number of Exams with scores 3 4 or 5'] for col in cols: data["ap_2010"][col] = pd.to_numeric(data["ap_2010"][col], errors="coerce") # - # # Combine the datasets # + combined = data["sat_results"] combined = combined.merge(data["ap_2010"], on="DBN", how="left") combined = combined.merge(data["graduation"], on="DBN", how="left") to_merge = ["class_size", "demographics", "survey", "hs_directory"] for m in to_merge: combined = combined.merge(data[m], on="DBN", how="inner") combined = combined.fillna(combined.mean()) combined = combined.fillna(0) # - # # Add a school district column for mapping # + def get_first_two_chars(dbn): return dbn[0:2] combined["school_dist"] = combined["DBN"].apply(get_first_two_chars) # - # # Find correlations correlations = combined.corr() correlations = correlations["sat_score"] print(correlations) # # Plotting survey correlations # Remove DBN since it's a unique identifier, not a useful numerical value for correlation. combined[survey_fields] sur_corr1 =combined[survey_fields].copy() sur_corr1["sat_score"] = combined["sat_score"] corr_sur = sur_corr1.corr() corr_sur["sat_score"] combined.corr()["sat_score"][survey_fields].plot.bar() # some columns like N_s,N_t,N_p have high correlations and the com_p_11 has a negative correlation combined.plot.scatter("saf_s_11","sat_score") # It appears to be a correlation between SAT scores and safety, eventhough it isn't strong. It looks like there are some schools with high SAT scores and high safety scores. There are a few schools with low safety scores and low SAT scores. No school with a safety score lower than 6.5 has an average SAT score higher than 1500 or so # + import matplotlib.pyplot as plt from mpl_toolkits.basemap import Basemap districts = combined.groupby("school_dist").agg(numpy.mean) districts.reset_index(inplace=True) m = Basemap( projection='merc', llcrnrlat=40.496044, urcrnrlat=40.915256, llcrnrlon=-74.255735, urcrnrlon=-73.700272, resolution='i' ) m.drawmapboundary(fill_color='#85A6D9') m.drawcoastlines(color='#6D5F47', linewidth=.4) m.drawrivers(color='#6D5F47', linewidth=.4) longitudes = districts["lon"].tolist() latitudes = districts["lat"].tolist() m.scatter(longitudes, latitudes, s=50, zorder=2, latlon=True, c=districts["saf_s_11"], cmap="summer") plt.show() # - # # Analysis based on race race_fields = ["white_per", "asian_per", "black_per", "hispanic_per"] combined.corr()["sat_score"][race_fields].plot.bar() # It looks like a higher percentage of white or asian students at a school correlates positively with sat, whereas a higher percentage of black or hispanic students correlates negatively with sat score. combined.plot.scatter("hispanic_per", "sat_score") print(combined[combined["hispanic_per"] > 95]["SCHOOL NAME"]) print(combined[(combined["hispanic_per"] < 10) & (combined["sat_score"] > 1800)]["SCHOOL NAME"]) # The reason i think the schools perform well is the students are from all over New York who did well on a standardized test. # # Gender differences in SAT scores gender_fields = ["male_per", "female_per"] combined.corr()["sat_score"][gender_fields].plot.bar() # it is clear that high percentage of female positively correlates with the sat score where a high percent of the male students correlates negatively combined.plot.scatter("female_per", "sat_score") # Based on the scatterplot, there doesn't seem to be any real correlation between sat_score and female_per. However, there is a cluster of schools with a high percentage of females (60 to 80), and high SAT scores. print(combined[(combined["female_per"] > 60) & (combined["sat_score"] > 1700)]["SCHOOL NAME"]) # # AP Exam Scores vs SAT Scores # + combined["ap_per"] = combined["AP Test Takers "] / combined["total_enrollment"] combined.plot.scatter(x='ap_per', y='sat_score') # - # It appears that there is a relationship between the percentage of students who take the AP exam, and their average SAT scores. It's not a strong correlation, though.
8,717
/SF Salaries - LSR.ipynb
ac74dec2fd993173cbb78053c19e1d2c86d92d58
[]
no_license
Prabir1/python_files
https://github.com/Prabir1/python_files
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
13,322
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # + import requests import json url = "https://api.github.com/users/{}" username = input("Please privide your username : ") output = requests.get(url.format(username)) profile = json.loads(output.text) profile["name"] profile["avatar_url"] pic_out = requests.get(profile["avatar_url"]) data = pic_out.content f = open("{}.png".format(username), "wb") f.write(data) f.close() # - Year"].value_counts # ** Use the .info() method to find out how many entries there are.** # **What is the average BasePay ?** # ** What is the highest amount of OvertimePay in the dataset ? ** # ** What is the job title of JOSEPH DRISCOLL ? Note: Use all caps, otherwise you may get an answer that doesn't match up (there is also a lowercase Joseph Driscoll). ** # ** How much does JOSEPH DRISCOLL make (including benefits)? ** # ** What is the name of highest paid person (including benefits)?** # ** What is the name of lowest paid person (including benefits)? Do you notice something strange about how much he or she is paid?** # ** What was the average (mean) BasePay of all employees per year? (2011-2014) ? ** # ** How many unique job titles are there? ** # ** What are the top 5 most common jobs? ** # ** How many Job Titles were represented by only one person in 2013? (e.g. Job Titles with only one occurence in 2013?) **
1,625
/notebooks/TensorFlow/images/9-building-autoencoders-in-keras.ipynb
86c6f82d2558f25c65a8ea1b260348d5bf8f7229
[]
no_license
tex2e/notebook
https://github.com/tex2e/notebook
1
0
null
null
null
null
Jupyter Notebook
false
false
.py
213,628
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # [Building Autoencoders in Keras](https://blog.keras.io/building-autoencoders-in-keras.html) # Autoencoders について # # <img src="data:image/png;base64,/9j/4QvXRXhpZgAATU0AKgAAAAgABwESAAMAAAABAAEAAAEaAAUAAAABAAAAYgEbAAUAAAABAAAAagEoAAMAAAABAAIAAAExAAIAAAAkAAAAcgEyAAIAAAAUAAAAlodpAAQAAAABAAAArAAAANgALcbAAAAnEAAtxsAAACcQQWRvYmUgUGhvdG9zaG9wIENDIDIwMTUgKE1hY2ludG9zaCkAMjAxNjowNToxNCAxNTo1NzoyNgAAAAADoAEAAwAAAAH//wAAoAIABAAAAAEAAAK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ENib29sAAAAAABMYmxzYm9vbAAAAAAATmd0dmJvb2wAAAAAAEVtbERib29sAAAAAABJbnRyYm9vbAAAAAAAQmNrZ09iamMAAAABAAAAAAAAUkdCQwAAAAMAAAAAUmQgIGRvdWJAb+AAAAAAAAAAAABHcm4gZG91YkBv4AAAAAAAAAAAAEJsICBkb3ViQG/gAAAAAAAAAAAAQnJkVFVudEYjUmx0AAAAAAAAAAAAAAAAQmxkIFVudEYjUmx0AAAAAAAAAAAAAAAAUnNsdFVudEYjUHhsQHLAAAAAAAAAAAAKdmVjdG9yRGF0YWJvb2wBAAAAAFBnUHNlbnVtAAAAAFBnUHMAAAAAUGdQQwAAAABMZWZ0VW50RiNSbHQAAAAAAAAAAAAAAABUb3AgVW50RiNSbHQAAAAAAAAAAAAAAABTY2wgVW50RiNQcmNAWQAAAAAAAAAAABBjcm9wV2hlblByaW50aW5nYm9vbAAAAAAOY3JvcFJlY3RCb3R0b21sb25nAAAAAAAAAAxjcm9wUmVjdExlZnRsb25nAAAAAAAAAA1jcm9wUmVjdFJpZ2h0bG9uZwAAAAAAAAALY3JvcFJlY3RUb3Bsb25nAAAAAAA4QklNA+0AAAAAABABLAAAAAEAAQEsAAAAAQABOEJJTQQmAAAAAAAOAAAAAAAAAAAAAD+AAAA4QklNBA0AAAAAAAQAAABaOEJJTQQZAAAAAAAEAAAAHjhCSU0D8wAAAAAACQAAAAAAAAAAAQA4QklNJxAAAAAAAAoAAQAAAAAAAAABOEJJTQP1AAAAAABIAC9mZgABAGxmZgAGAAAAAAABAC9mZgABAKGZmgAGAAAAAAABADIAAAABAFoAAAAGAAAAAAABADUAAAABAC0AAAAGAAAAAAABOEJJTQP4AAAAAABwAAD/////////////////////////////A+gAAAAA/////////////////////////////wPoAAAAAP////////////////////////////8D6AAAAAD/////////////////////////////A+gAADhCSU0EAAAAAAAAAgAKOEJJTQQCAAAAAAAWAAAAAAAAAAAAAAAAAAAAAAAAAAAAADhCSU0EMAAAAAAACwEBAQEBAQEBAQE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JpZ2luYWwgaW5wdXQiIHBob3Rvc2hvcDpMYXllclRleHQ9Ik9yaWdpbmFsIGlucHV0Ii8+IDxyZGY6bGkgcGhvdG9zaG9wOkxheWVyTmFtZT0iUmVjb25zdHJ1Y3RlZCBpbnB1dCIgcGhvdG9zaG9wOkxheWVyVGV4dD0iUmVjb25zdHJ1Y3RlZCBpbnB1dCIvPiA8L3JkZjpCYWc+IDwvcGhvdG9zaG9wOlRleHRMYXllcnM+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDw/eHBhY2tldCBlbmQ9InciPz7/7gAOQWRvYmUAZEAAAAAB/9sAhAACAgICAgICAgICAwICAgMEAwICAwQFBAQEBAQFBgUFBQUFBQYGBwcIBwcGCQkKCgkJDAwMDAwMDAwMDAwMDAwMAQMDAwUEBQkGBgkNCgkKDQ8ODg4ODw8MDAwMDA8PDAwMDAwMDwwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAz/wAARCADcArwDAREAAhEBAxEB/90ABABY/8QApQABAAIDAQADAQAAAAAAAAAAAAgJBQYHCgIDBAEBAQAAAAAAAAAAAAAAAAAAAAAQAAAGAQMBAgUMDQUJCg8AAAABAgMEBQYRBwgSIRMxFLRYCSIVldUWNnaWF5cYOEFRI7PTdNQ1deVXeBlhcTKyN0KSMyS1xVaGd2JTk8NUlOQlp0iBkbHB0dJDg0SEVSa2aFkRAQAAAAAAAAAAAAAAAAAAAAD/2gAMAwEAAhEDEQA/AL/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH//Qv8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAf/9G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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB//2Q==" /> # + _cell_guid="79c7e3d0-c299-4dcb-8224-4455121ee9b0" _uuid="d629ff2d2480ee46fbb7e2d37f6b5fab8052498a" import matplotlib.pyplot as plt import tensorflow as tf from tensorflow.keras.layers import Input, Dense from tensorflow.keras.models import Model # - # ### MNISTの数字画像データの準備 from keras.datasets import mnist import numpy as np (x_train, _), (x_test, _) = mnist.load_data() # + # 正規化 x_train = x_train.astype('float32') / 255. x_test = x_test.astype('float32') / 255. # Flatten x_train = x_train.reshape((len(x_train), np.prod(x_train.shape[1:]))) x_test = x_test.reshape((len(x_test), np.prod(x_test.shape[1:]))) print(x_train.shape) print(x_test.shape) # - # ### モデルの構築 # + # 入力画像のサイズ IMG_SIZE = 28 # Autoencoderの作成 # 配列の要素数は 784 --encoder--> 32 --decoder--> 784 のように変化する autoencoder = tf.keras.models.Sequential([ Dense(32, activation='relu', input_shape=(IMG_SIZE*IMG_SIZE,)), Dense(IMG_SIZE*IMG_SIZE, activation='sigmoid') ]) autoencoder.compile(optimizer='adam', loss='binary_crossentropy') autoencoder.summary() # - autoencoder.fit(x_train, x_train, # データとラベルが同じであることに注意 epochs=10, batch_size=256, shuffle=True, validation_data=(x_test, x_test)) # ## 画像化して確認する # # - 上の行がオリジナルの画像 # - 下の行がAutoencoderによって再構築した画像 # + decoded_imgs = autoencoder.predict(x_test) n = 10 # 表示したい画像の個数 plt.figure(figsize=(20, 4)) for i in range(n): # display original ax = plt.subplot(2, n, i + 1) plt.imshow(x_test[i].reshape(IMG_SIZE, IMG_SIZE)) plt.gray() ax.get_xaxis().set_visible(False) ax.get_yaxis().set_visible(False) # display reconstruction ax = plt.subplot(2, n, i + 1 + n) plt.imshow(decoded_imgs[i].reshape(IMG_SIZE, IMG_SIZE)) plt.gray() ax.get_xaxis().set_visible(False) ax.get_yaxis().set_visible(False) plt.show() # - # ## Deep autoencoder # # 層の数を増やすことも可能 # + autoencoder = tf.keras.models.Sequential([ # Begin Encoder Dense(128, activation='relu', input_shape=(IMG_SIZE*IMG_SIZE,)), Dense(64, activation='relu'), Dense(32, activation='relu'), # End Encoder # Begin Decoder Dense(64, activation='relu'), Dense(128, activation='relu'), Dense(IMG_SIZE*IMG_SIZE, activation='sigmoid') # End Decoder ]) autoencoder.compile(optimizer='adam', loss='binary_crossentropy') autoencoder.summary() # - autoencoder.fit(x_train, x_train, # データとラベルが同じであることに注意 epochs=20, batch_size=256, shuffle=True, validation_data=(x_test, x_test)) # ### 画像化して確認する # # - 上の行がオリジナルの画像 # - 下の行がAutoencoderによって再構築した画像 # + decoded_imgs = autoencoder.predict(x_test) n = 10 # 表示したい画像の個数 plt.figure(figsize=(20, 4)) for i in range(n): # display original ax = plt.subplot(2, n, i + 1) plt.imshow(x_test[i].reshape(IMG_SIZE, IMG_SIZE)) plt.gray() ax.get_xaxis().set_visible(False) ax.get_yaxis().set_visible(False) # display reconstruction ax = plt.subplot(2, n, i + 1 + n) plt.imshow(decoded_imgs[i].reshape(IMG_SIZE, IMG_SIZE)) plt.gray() ax.get_xaxis().set_visible(False) ax.get_yaxis().set_visible(False) plt.show() # - # ### Convolutional autoencoder # # 畳み込みをすることも可能 # # (ただし、Dense層を使わないので Sequential でモデルを定義できない点に注意) # + from keras.layers import Input, Dense, Conv2D, MaxPooling2D, UpSampling2D from keras.models import Model input_img = Input(shape=(28, 28, 1)) # adapt this if using `channels_first` image data format x = Conv2D(16, (3, 3), activation='relu', padding='same')(input_img) x = MaxPooling2D((2, 2), padding='same')(x) x = Conv2D(8, (3, 3), activation='relu', padding='same')(x) x = MaxPooling2D((2, 2), padding='same')(x) x = Conv2D(8, (3, 3), activation='relu', padding='same')(x) encoded = MaxPooling2D((2, 2), padding='same')(x) # at this point the representation is (4, 4, 8) i.e. 128-dimensional x = Conv2D(8, (3, 3), activation='relu', padding='same')(encoded) x = UpSampling2D((2, 2))(x) x = Conv2D(8, (3, 3), activation='relu', padding='same')(x) x = UpSampling2D((2, 2))(x) x = Conv2D(16, (3, 3), activation='relu')(x) x = UpSampling2D((2, 2))(x) decoded = Conv2D(1, (3, 3), activation='sigmoid', padding='same')(x) autoencoder = Model(inputs=input_img, outputs=decoded) autoencoder.compile(optimizer='adadelta', loss='binary_crossentropy') autoencoder.summary() # + (x_train, _), (x_test, _) = mnist.load_data() # 正規化 x_train = x_train.astype('float32') / 255. x_test = x_test.astype('float32') / 255. # 次元を (?, 28, 28) から (?, 28, 28, 1) に変換する x_train = np.reshape(x_train, (len(x_train), 28, 28, 1)) x_test = np.reshape(x_test, (len(x_test), 28, 28, 1)) autoencoder.fit(x_train, x_train, # データとラベルが同じであることに注意 epochs=10, batch_size=128, shuffle=True, validation_data=(x_test, x_test)) # - # ### 画像化して確認する # # - 上の行がオリジナルの画像 # - 下の行がAutoencoderによって再構築した画像 # + decoded_imgs = autoencoder.predict(x_test) n = 10 # 表示したい画像の個数 plt.figure(figsize=(20, 4)) for i in range(n): # display original ax = plt.subplot(2, n, i + 1) plt.imshow(x_test[i].reshape(IMG_SIZE, IMG_SIZE)) plt.gray() ax.get_xaxis().set_visible(False) ax.get_yaxis().set_visible(False) # display reconstruction ax = plt.subplot(2, n, i + 1 + n) plt.imshow(decoded_imgs[i].reshape(IMG_SIZE, IMG_SIZE)) plt.gray() ax.get_xaxis().set_visible(False) ax.get_yaxis().set_visible(False) plt.show() # - # ### 画像のノイズ除去 # # Autoencodersの応用として、画像のノイズ除去がある # + # ノイズを加える noise_factor = 0.5 x_train_noisy = x_train + noise_factor * np.random.normal(loc=0.0, scale=1.0, size=x_train.shape) x_test_noisy = x_test + noise_factor * np.random.normal(loc=0.0, scale=1.0, size=x_test.shape) # 範囲が0〜1となるように、はみ出た値を最大値/最小値にする x_train_noisy = np.clip(x_train_noisy, 0., 1.) x_test_noisy = np.clip(x_test_noisy, 0., 1.) # ノイズを加えた画像の表示 n = 10 plt.figure(figsize=(20, 2)) for i in range(n): ax = plt.subplot(1, n, i+1) plt.imshow(x_test_noisy[i].reshape(28, 28)) plt.gray() ax.get_xaxis().set_visible(False) ax.get_yaxis().set_visible(False) plt.show() # + input_img = Input(shape=(28, 28, 1)) x = Conv2D(32, (3, 3), activation='relu', padding='same')(input_img) x = MaxPooling2D((2, 2), padding='same')(x) x = Conv2D(32, (3, 3), activation='relu', padding='same')(x) encoded = MaxPooling2D((2, 2), padding='same')(x) # at this point the representation is (7, 7, 32) x = Conv2D(32, (3, 3), activation='relu', padding='same')(encoded) x = UpSampling2D((2, 2))(x) x = Conv2D(32, (3, 3), activation='relu', padding='same')(x) x = UpSampling2D((2, 2))(x) decoded = Conv2D(1, (3, 3), activation='sigmoid', padding='same')(x) autoencoder = Model(inputs=input_img, outputs=decoded) autoencoder.compile(optimizer='adam', loss='binary_crossentropy') autoencoder.summary() # - # ### モデルの訓練 # # - 入力データ : ノイズを加えた画像 # - 教師データ : 元の画像 autoencoder.fit(x_train_noisy, x_train, epochs=5, batch_size=128, shuffle=True, validation_data=(x_test_noisy, x_test)) # ### 画像化して確認する # # - 上の行がオリジナルの画像 # - 下の行がAutoencoderによって再構築した画像 # + decoded_imgs = autoencoder.predict(x_train_noisy) n = 10 # 表示したい画像の個数 plt.figure(figsize=(20, 4)) for i in range(n): # display original ax = plt.subplot(2, n, i + 1) plt.imshow(x_train_noisy[i].reshape(IMG_SIZE, IMG_SIZE)) plt.gray() ax.get_xaxis().set_visible(False) ax.get_yaxis().set_visible(False) # display reconstruction ax = plt.subplot(2, n, i + 1 + n) plt.imshow(decoded_imgs[i].reshape(IMG_SIZE, IMG_SIZE)) plt.gray() ax.get_xaxis().set_visible(False) ax.get_yaxis().set_visible(False) plt.show() # - # 見た感じでは、上手にノイズ除去ができている
52,374
/dog-project/dog_app.ipynb
b51ee5a3140ed61073169be8b1a2e559ce37a756
[]
no_license
xuzhe0628/mlnd-projects
https://github.com/xuzhe0628/mlnd-projects
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
1,565,490
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python [default] # language: python # name: python3 # --- # + [markdown] deletable=true editable=true # # Artificial Intelligence Nanodegree # # ## Convolutional Neural Networks # # ## Project: Write an Algorithm for a Dog Identification App # # --- # # In this notebook, some template code has already been provided for you, and you will need to implement additional functionality to successfully complete this project. You will not need to modify the included code beyond what is requested. Sections that begin with **'(IMPLEMENTATION)'** in the header indicate that the following block of code will require additional functionality which you must provide. Instructions will be provided for each section, and the specifics of the implementation are marked in the code block with a 'TODO' statement. Please be sure to read the instructions carefully! # # > **Note**: Once you have completed all of the code implementations, you need to finalize your work by exporting the iPython Notebook as an HTML document. Before exporting the notebook to html, all of the code cells need to have been run so that reviewers can see the final implementation and output. You can then export the notebook by using the menu above and navigating to \n", # "**File -> Download as -> HTML (.html)**. Include the finished document along with this notebook as your submission. # # In addition to implementing code, there will be questions that you must answer which relate to the project and your implementation. Each section where you will answer a question is preceded by a **'Question X'** header. Carefully read each question and provide thorough answers in the following text boxes that begin with **'Answer:'**. Your project submission will be evaluated based on your answers to each of the questions and the implementation you provide. # # >**Note:** Code and Markdown cells can be executed using the **Shift + Enter** keyboard shortcut. Markdown cells can be edited by double-clicking the cell to enter edit mode. # # The rubric contains _optional_ "Stand Out Suggestions" for enhancing the project beyond the minimum requirements. If you decide to pursue the "Stand Out Suggestions", you should include the code in this IPython notebook. # # # # --- # ### Why We're Here # # In this notebook, you will make the first steps towards developing an algorithm that could be used as part of a mobile or web app. At the end of this project, your code will accept any user-supplied image as input. If a dog is detected in the image, it will provide an estimate of the dog's breed. If a human is detected, it will provide an estimate of the dog breed that is most resembling. The image below displays potential sample output of your finished project (... but we expect that each student's algorithm will behave differently!). # # ![Sample Dog Output](images/sample_dog_output.png) # # In this real-world setting, you will need to piece together a series of models to perform different tasks; for instance, the algorithm that detects humans in an image will be different from the CNN that infers dog breed. There are many points of possible failure, and no perfect algorithm exists. Your imperfect solution will nonetheless create a fun user experience! # # ### The Road Ahead # # We break the notebook into separate steps. Feel free to use the links below to navigate the notebook. # # * [Step 0](#step0): Import Datasets # * [Step 1](#step1): Detect Humans # * [Step 2](#step2): Detect Dogs # * [Step 3](#step3): Create a CNN to Classify Dog Breeds (from Scratch) # * [Step 4](#step4): Use a CNN to Classify Dog Breeds (using Transfer Learning) # * [Step 5](#step5): Create a CNN to Classify Dog Breeds (using Transfer Learning) # * [Step 6](#step6): Write your Algorithm # * [Step 7](#step7): Test Your Algorithm # # --- # <a id='step0'></a> # ## Step 0: Import Datasets # # ### Import Dog Dataset # # In the code cell below, we import a dataset of dog images. We populate a few variables through the use of the `load_files` function from the scikit-learn library: # - `train_files`, `valid_files`, `test_files` - numpy arrays containing file paths to images # - `train_targets`, `valid_targets`, `test_targets` - numpy arrays containing onehot-encoded classification labels # - `dog_names` - list of string-valued dog breed names for translating labels # + deletable=true editable=true from sklearn.datasets import load_files from keras.utils import np_utils import numpy as np from glob import glob # define function to load train, test, and validation datasets def load_dataset(path): data = load_files(path) dog_files = np.array(data['filenames']) dog_targets = np_utils.to_categorical(np.array(data['target']), 133) return dog_files, dog_targets # load train, test, and validation datasets train_files, train_targets = load_dataset('dogImages/train') valid_files, valid_targets = load_dataset('dogImages/valid') test_files, test_targets = load_dataset('dogImages/test') # load list of dog names dog_names = [item[20:-1] for item in sorted(glob("dogImages/train/*/"))] # print statistics about the dataset print('There are %d total dog categories.' % len(dog_names)) print('There are %s total dog images.\n' % len(np.hstack([train_files, valid_files, test_files]))) print('There are %d training dog images.' % len(train_files)) print('There are %d validation dog images.' % len(valid_files)) print('There are %d test dog images.'% len(test_files)) # + [markdown] deletable=true editable=true # ### Import Human Dataset # # In the code cell below, we import a dataset of human images, where the file paths are stored in the numpy array `human_files`. # + deletable=true editable=true import random random.seed(8675309) # load filenames in shuffled human dataset human_files = np.array(glob("lfw/*/*")) random.shuffle(human_files) # print statistics about the dataset print('There are %d total human images.' % len(human_files)) # + [markdown] deletable=true editable=true # --- # <a id='step1'></a> # ## Step 1: Detect Humans # # We use OpenCV's implementation of [Haar feature-based cascade classifiers](http://docs.opencv.org/trunk/d7/d8b/tutorial_py_face_detection.html) to detect human faces in images. OpenCV provides many pre-trained face detectors, stored as XML files on [github](https://github.com/opencv/opencv/tree/master/data/haarcascades). We have downloaded one of these detectors and stored it in the `haarcascades` directory. # # In the next code cell, we demonstrate how to use this detector to find human faces in a sample image. # + deletable=true editable=true import cv2 import matplotlib.pyplot as plt # %matplotlib inline # extract pre-trained face detector face_cascade = cv2.CascadeClassifier('haarcascades/haarcascade_frontalface_alt.xml') # load color (BGR) image img = cv2.imread(human_files[3]) # convert BGR image to grayscale gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) # find faces in image faces = face_cascade.detectMultiScale(gray) # print number of faces detected in the image print('Number of faces detected:', len(faces)) # get bounding box for each detected face for (x,y,w,h) in faces: # add bounding box to color image cv2.rectangle(img,(x,y),(x+w,y+h),(255,0,0),2) # convert BGR image to RGB for plotting cv_rgb = cv2.cvtColor(img, cv2.COLOR_BGR2RGB) # display the image, along with bounding box plt.imshow(cv_rgb) plt.show() # + [markdown] deletable=true editable=true # Before using any of the face detectors, it is standard procedure to convert the images to grayscale. The `detectMultiScale` function executes the classifier stored in `face_cascade` and takes the grayscale image as a parameter. # # In the above code, `faces` is a numpy array of detected faces, where each row corresponds to a detected face. Each detected face is a 1D array with four entries that specifies the bounding box of the detected face. The first two entries in the array (extracted in the above code as `x` and `y`) specify the horizontal and vertical positions of the top left corner of the bounding box. The last two entries in the array (extracted here as `w` and `h`) specify the width and height of the box. # # ### Write a Human Face Detector # # We can use this procedure to write a function that returns `True` if a human face is detected in an image and `False` otherwise. This function, aptly named `face_detector`, takes a string-valued file path to an image as input and appears in the code block below. # + deletable=true editable=true # returns "True" if face is detected in image stored at img_path def face_detector(img_path): img = cv2.imread(img_path) gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) faces = face_cascade.detectMultiScale(gray) return len(faces) > 0 # + [markdown] deletable=true editable=true # ### (IMPLEMENTATION) Assess the Human Face Detector # # __Question 1:__ Use the code cell below to test the performance of the `face_detector` function. # - What percentage of the first 100 images in `human_files` have a detected human face? # - What percentage of the first 100 images in `dog_files` have a detected human face? # # Ideally, we would like 100% of human images with a detected face and 0% of dog images with a detected face. You will see that our algorithm falls short of this goal, but still gives acceptable performance. We extract the file paths for the first 100 images from each of the datasets and store them in the numpy arrays `human_files_short` and `dog_files_short`. # # __Answer:__ # # Regarding the first 100 images in `human_files`, 99% of them have a detected human face.<br> # Regarding the first 100 images in `dog_files`, 11% of them have a detected human face.<br> # + deletable=true editable=true human_files_short = human_files[:100] dog_files_short = train_files[:100] # Do NOT modify the code above this line. ## TODO: Test the performance of the face_detector algorithm ## on the images in human_files_short and dog_files_short. human_result = np.array([face_detector(image) for image in human_files_short]) dog_result = np.array([face_detector(image) for image in dog_files_short]) print(np.count_nonzero(human_result)) print(np.count_nonzero(dog_result)) # + [markdown] deletable=true editable=true # __Question 2:__ This algorithmic choice necessitates that we communicate to the user that we accept human images only when they provide a clear view of a face (otherwise, we risk having unneccessarily frustrated users!). In your opinion, is this a reasonable expectation to pose on the user? If not, can you think of a way to detect humans in images that does not necessitate an image with a clearly presented face? # # __Answer:__ # # I think it is a resonable expectation to pose on the user as there is no perfect algorithm. No algorithm can achieve 100% accuracy without constraint on input. Although we can find another face detector that performs better on blurry images, I still think it will be more effiencient and effective to tell users that this function may not work well on blurry images. Tell user the limitation, it is good for managing users' expectation. # # We suggest the face detector from OpenCV as a potential way to detect human images in your algorithm, but you are free to explore other approaches, especially approaches that make use of deep learning :). Please use the code cell below to design and test your own face detection algorithm. If you decide to pursue this _optional_ task, report performance on each of the datasets. # + deletable=true editable=true ## (Optional) TODO: Report the performance of another ## face detection algorithm on the LFW dataset ### Feel free to use as many code cells as needed. # + [markdown] deletable=true editable=true # --- # <a id='step2'></a> # ## Step 2: Detect Dogs # # In this section, we use a pre-trained [ResNet-50](http://ethereon.github.io/netscope/#/gist/db945b393d40bfa26006) model to detect dogs in images. Our first line of code downloads the ResNet-50 model, along with weights that have been trained on [ImageNet](http://www.image-net.org/), a very large, very popular dataset used for image classification and other vision tasks. ImageNet contains over 10 million URLs, each linking to an image containing an object from one of [1000 categories](https://gist.github.com/yrevar/942d3a0ac09ec9e5eb3a). Given an image, this pre-trained ResNet-50 model returns a prediction (derived from the available categories in ImageNet) for the object that is contained in the image. # + deletable=true editable=true from keras.applications.resnet50 import ResNet50 # define ResNet50 model ResNet50_model = ResNet50(weights='imagenet') # + [markdown] deletable=true editable=true # ### Pre-process the Data # # When using TensorFlow as backend, Keras CNNs require a 4D array (which we'll also refer to as a 4D tensor) as input, with shape # # $$ # (\text{nb_samples}, \text{rows}, \text{columns}, \text{channels}), # $$ # # where `nb_samples` corresponds to the total number of images (or samples), and `rows`, `columns`, and `channels` correspond to the number of rows, columns, and channels for each image, respectively. # # The `path_to_tensor` function below takes a string-valued file path to a color image as input and returns a 4D tensor suitable for supplying to a Keras CNN. The function first loads the image and resizes it to a square image that is $224 \times 224$ pixels. Next, the image is converted to an array, which is then resized to a 4D tensor. In this case, since we are working with color images, each image has three channels. Likewise, since we are processing a single image (or sample), the returned tensor will always have shape # # $$ # (1, 224, 224, 3). # $$ # # The `paths_to_tensor` function takes a numpy array of string-valued image paths as input and returns a 4D tensor with shape # # $$ # (\text{nb_samples}, 224, 224, 3). # $$ # # Here, `nb_samples` is the number of samples, or number of images, in the supplied array of image paths. It is best to think of `nb_samples` as the number of 3D tensors (where each 3D tensor corresponds to a different image) in your dataset! # + deletable=true editable=true from keras.preprocessing import image from tqdm import tqdm def path_to_tensor(img_path): # loads RGB image as PIL.Image.Image type img = image.load_img(img_path, target_size=(224, 224)) # convert PIL.Image.Image type to 3D tensor with shape (224, 224, 3) x = image.img_to_array(img) # convert 3D tensor to 4D tensor with shape (1, 224, 224, 3) and return 4D tensor return np.expand_dims(x, axis=0) def paths_to_tensor(img_paths): list_of_tensors = [path_to_tensor(img_path) for img_path in tqdm(img_paths)] return np.vstack(list_of_tensors) # + [markdown] deletable=true editable=true # ### Making Predictions with ResNet-50 # # Getting the 4D tensor ready for ResNet-50, and for any other pre-trained model in Keras, requires some additional processing. First, the RGB image is converted to BGR by reordering the channels. All pre-trained models have the additional normalization step that the mean pixel (expressed in RGB as $[103.939, 116.779, 123.68]$ and calculated from all pixels in all images in ImageNet) must be subtracted from every pixel in each image. This is implemented in the imported function `preprocess_input`. If you're curious, you can check the code for `preprocess_input` [here](https://github.com/fchollet/keras/blob/master/keras/applications/imagenet_utils.py). # # Now that we have a way to format our image for supplying to ResNet-50, we are now ready to use the model to extract the predictions. This is accomplished with the `predict` method, which returns an array whose $i$-th entry is the model's predicted probability that the image belongs to the $i$-th ImageNet category. This is implemented in the `ResNet50_predict_labels` function below. # # By taking the argmax of the predicted probability vector, we obtain an integer corresponding to the model's predicted object class, which we can identify with an object category through the use of this [dictionary](https://gist.github.com/yrevar/942d3a0ac09ec9e5eb3a). # + deletable=true editable=true from keras.applications.resnet50 import preprocess_input, decode_predictions def ResNet50_predict_labels(img_path): # returns prediction vector for image located at img_path img = preprocess_input(path_to_tensor(img_path)) return np.argmax(ResNet50_model.predict(img)) # + [markdown] deletable=true editable=true # ### Write a Dog Detector # # While looking at the [dictionary](https://gist.github.com/yrevar/942d3a0ac09ec9e5eb3a), you will notice that the categories corresponding to dogs appear in an uninterrupted sequence and correspond to dictionary keys 151-268, inclusive, to include all categories from `'Chihuahua'` to `'Mexican hairless'`. Thus, in order to check to see if an image is predicted to contain a dog by the pre-trained ResNet-50 model, we need only check if the `ResNet50_predict_labels` function above returns a value between 151 and 268 (inclusive). # # We use these ideas to complete the `dog_detector` function below, which returns `True` if a dog is detected in an image (and `False` if not). # + deletable=true editable=true ### returns "True" if a dog is detected in the image stored at img_path def dog_detector(img_path): prediction = ResNet50_predict_labels(img_path) return ((prediction <= 268) & (prediction >= 151)) # + [markdown] deletable=true editable=true # ### (IMPLEMENTATION) Assess the Dog Detector # # __Question 3:__ Use the code cell below to test the performance of your `dog_detector` function. # - What percentage of the images in `human_files_short` have a detected dog? # - What percentage of the images in `dog_files_short` have a detected dog? # # __Answer:__ # # Regarding `human_files_short`, 1% of them have a detected dog.<br> # Regarding `dog_files_short`, 100% of them have a detected dog.<br> # + deletable=true editable=true ### TODO: Test the performance of the dog_detector function ### on the images in human_files_short and dog_files_short. human_result = np.array([dog_detector(image) for image in human_files_short]) dog_result = np.array([dog_detector(image) for image in dog_files_short]) print(np.count_nonzero(human_result)) print(np.count_nonzero(dog_result)) # + [markdown] deletable=true editable=true # --- # <a id='step3'></a> # ## Step 3: Create a CNN to Classify Dog Breeds (from Scratch) # # Now that we have functions for detecting humans and dogs in images, we need a way to predict breed from images. In this step, you will create a CNN that classifies dog breeds. You must create your CNN _from scratch_ (so, you can't use transfer learning _yet_!), and you must attain a test accuracy of at least 1%. In Step 5 of this notebook, you will have the opportunity to use transfer learning to create a CNN that attains greatly improved accuracy. # # Be careful with adding too many trainable layers! More parameters means longer training, which means you are more likely to need a GPU to accelerate the training process. Thankfully, Keras provides a handy estimate of the time that each epoch is likely to take; you can extrapolate this estimate to figure out how long it will take for your algorithm to train. # # We mention that the task of assigning breed to dogs from images is considered exceptionally challenging. To see why, consider that *even a human* would have great difficulty in distinguishing between a Brittany and a Welsh Springer Spaniel. # # Brittany | Welsh Springer Spaniel # - | - # <img src="images/Brittany_02625.jpg" width="100"> | <img src="images/Welsh_springer_spaniel_08203.jpg" width="200"> # # It is not difficult to find other dog breed pairs with minimal inter-class variation (for instance, Curly-Coated Retrievers and American Water Spaniels). # # Curly-Coated Retriever | American Water Spaniel # - | - # <img src="images/Curly-coated_retriever_03896.jpg" width="200"> | <img src="images/American_water_spaniel_00648.jpg" width="200"> # # # Likewise, recall that labradors come in yellow, chocolate, and black. Your vision-based algorithm will have to conquer this high intra-class variation to determine how to classify all of these different shades as the same breed. # # Yellow Labrador | Chocolate Labrador | Black Labrador # - | - # <img src="images/Labrador_retriever_06457.jpg" width="150"> | <img src="images/Labrador_retriever_06455.jpg" width="240"> | <img src="images/Labrador_retriever_06449.jpg" width="220"> # # We also mention that random chance presents an exceptionally low bar: setting aside the fact that the classes are slightly imabalanced, a random guess will provide a correct answer roughly 1 in 133 times, which corresponds to an accuracy of less than 1%. # # Remember that the practice is far ahead of the theory in deep learning. Experiment with many different architectures, and trust your intuition. And, of course, have fun! # # ### Pre-process the Data # # We rescale the images by dividing every pixel in every image by 255. # + deletable=true editable=true from PIL import ImageFile ImageFile.LOAD_TRUNCATED_IMAGES = True # pre-process the data for Keras train_tensors = paths_to_tensor(train_files).astype('float32')/255 valid_tensors = paths_to_tensor(valid_files).astype('float32')/255 test_tensors = paths_to_tensor(test_files).astype('float32')/255 # + [markdown] deletable=true editable=true # ### (IMPLEMENTATION) Model Architecture # # Create a CNN to classify dog breed. At the end of your code cell block, summarize the layers of your model by executing the line: # # model.summary() # # We have imported some Python modules to get you started, but feel free to import as many modules as you need. If you end up getting stuck, here's a hint that specifies a model that trains relatively fast on CPU and attains >1% test accuracy in 5 epochs: # # ![Sample CNN](images/sample_cnn.png) # # __Question 4:__ Outline the steps you took to get to your final CNN architecture and your reasoning at each step. If you chose to use the hinted architecture above, describe why you think that CNN architecture should work well for the image classification task. # # __Answer:__ # # I use the recommended CNN architecture considering the long training and testing time.The accuracy is 1.55%. I think this architecture is a good start as it is a good way to use a combination of convolutional layers with max pooling layers. It will reduce the spatial size of inputs and find local patterns. This architecture uses 16, 32 and 64 filters at each convolutional layers. I think this is a resonable parameters as we may need this number of filters to detect edges of dog legs, bodys and heads, which will help on deceide the dog breed. At last, we use a global average pooling layer to convert all arrays into an array with 64 features. The combination of 64 features will be enough for detecting different dog breeds. # + deletable=true editable=true from keras.layers import Conv2D, MaxPooling2D, GlobalAveragePooling2D from keras.layers import Dropout, Flatten, Dense from keras.models import Sequential model = Sequential() ### TODO: Define your architecture. model.add(Conv2D(filters=16, kernel_size=2, padding='same', activation='relu', input_shape=(224, 224, 3))) model.add(MaxPooling2D(pool_size=2)) model.add(Conv2D(filters=32, kernel_size=2, padding='same', activation='relu')) model.add(MaxPooling2D(pool_size=2)) model.add(Conv2D(filters=64, kernel_size=2, padding='same', activation='relu')) model.add(MaxPooling2D(pool_size=2)) model.add(GlobalAveragePooling2D()) model.add(Dense(133, activation='softmax')) model.summary() # + [markdown] deletable=true editable=true # ### Compile the Model # + deletable=true editable=true model.compile(optimizer='rmsprop', loss='categorical_crossentropy', metrics=['accuracy']) # + [markdown] deletable=true editable=true # ### (IMPLEMENTATION) Train the Model # # Train your model in the code cell below. Use model checkpointing to save the model that attains the best validation loss. # # You are welcome to [augment the training data](https://blog.keras.io/building-powerful-image-classification-models-using-very-little-data.html), but this is not a requirement. # + deletable=true editable=true from keras.callbacks import ModelCheckpoint ### TODO: specify the number of epochs that you would like to use to train the model. epochs = 3 ### Do NOT modify the code below this line. checkpointer = ModelCheckpoint(filepath='saved_models/weights.best.from_scratch.hdf5', verbose=1, save_best_only=True) model.fit(train_tensors, train_targets, validation_data=(valid_tensors, valid_targets), epochs=epochs, batch_size=20, callbacks=[checkpointer], verbose=1) # + [markdown] deletable=true editable=true # ### Load the Model with the Best Validation Loss # + deletable=true editable=true model.load_weights('saved_models/weights.best.from_scratch.hdf5') # + [markdown] deletable=true editable=true # ### Test the Model # # Try out your model on the test dataset of dog images. Ensure that your test accuracy is greater than 1%. # + deletable=true editable=true # get index of predicted dog breed for each image in test set dog_breed_predictions = [np.argmax(model.predict(np.expand_dims(tensor, axis=0))) for tensor in test_tensors] # report test accuracy test_accuracy = 100*np.sum(np.array(dog_breed_predictions)==np.argmax(test_targets, axis=1))/len(dog_breed_predictions) print('Test accuracy: %.4f%%' % test_accuracy) # + [markdown] deletable=true editable=true # --- # <a id='step4'></a> # ## Step 4: Use a CNN to Classify Dog Breeds # # To reduce training time without sacrificing accuracy, we show you how to train a CNN using transfer learning. In the following step, you will get a chance to use transfer learning to train your own CNN. # # ### Obtain Bottleneck Features # + deletable=true editable=true bottleneck_features = np.load('bottleneck_features/DogVGG16Data.npz') train_VGG16 = bottleneck_features['train'] valid_VGG16 = bottleneck_features['valid'] test_VGG16 = bottleneck_features['test'] # + [markdown] deletable=true editable=true # ### Model Architecture # # The model uses the the pre-trained VGG-16 model as a fixed feature extractor, where the last convolutional output of VGG-16 is fed as input to our model. We only add a global average pooling layer and a fully connected layer, where the latter contains one node for each dog category and is equipped with a softmax. # + deletable=true editable=true VGG16_model = Sequential() VGG16_model.add(GlobalAveragePooling2D(input_shape=train_VGG16.shape[1:])) VGG16_model.add(Dense(133, activation='softmax')) VGG16_model.summary() # + [markdown] deletable=true editable=true # ### Compile the Model # + deletable=true editable=true VGG16_model.compile(loss='categorical_crossentropy', optimizer='rmsprop', metrics=['accuracy']) # + [markdown] deletable=true editable=true # ### Train the Model # + deletable=true editable=true checkpointer = ModelCheckpoint(filepath='saved_models/weights.best.VGG16.hdf5', verbose=1, save_best_only=True) VGG16_model.fit(train_VGG16, train_targets, validation_data=(valid_VGG16, valid_targets), epochs=20, batch_size=20, callbacks=[checkpointer], verbose=1) # + [markdown] deletable=true editable=true # ### Load the Model with the Best Validation Loss # + deletable=true editable=true VGG16_model.load_weights('saved_models/weights.best.VGG16.hdf5') # + [markdown] deletable=true editable=true # ### Test the Model # # Now, we can use the CNN to test how well it identifies breed within our test dataset of dog images. We print the test accuracy below. # + deletable=true editable=true # get index of predicted dog breed for each image in test set VGG16_predictions = [np.argmax(VGG16_model.predict(np.expand_dims(feature, axis=0))) for feature in test_VGG16] # report test accuracy test_accuracy = 100*np.sum(np.array(VGG16_predictions)==np.argmax(test_targets, axis=1))/len(VGG16_predictions) print('Test accuracy: %.4f%%' % test_accuracy) # + [markdown] deletable=true editable=true # ### Predict Dog Breed with the Model # + deletable=true editable=true from extract_bottleneck_features import * def VGG16_predict_breed(img_path): # extract bottleneck features bottleneck_feature = extract_VGG16(path_to_tensor(img_path)) # obtain predicted vector predicted_vector = VGG16_model.predict(bottleneck_feature) # return dog breed that is predicted by the model return dog_names[np.argmax(predicted_vector)] # + [markdown] deletable=true editable=true # --- # <a id='step5'></a> # ## Step 5: Create a CNN to Classify Dog Breeds (using Transfer Learning) # # You will now use transfer learning to create a CNN that can identify dog breed from images. Your CNN must attain at least 60% accuracy on the test set. # # In Step 4, we used transfer learning to create a CNN using VGG-16 bottleneck features. In this section, you must use the bottleneck features from a different pre-trained model. To make things easier for you, we have pre-computed the features for all of the networks that are currently available in Keras: # - [VGG-19](https://s3-us-west-1.amazonaws.com/udacity-aind/dog-project/DogVGG19Data.npz) bottleneck features # - [ResNet-50](https://s3-us-west-1.amazonaws.com/udacity-aind/dog-project/DogResnet50Data.npz) bottleneck features # - [Inception](https://s3-us-west-1.amazonaws.com/udacity-aind/dog-project/DogInceptionV3Data.npz) bottleneck features # - [Xception](https://s3-us-west-1.amazonaws.com/udacity-aind/dog-project/DogXceptionData.npz) bottleneck features # # The files are encoded as such: # # Dog{network}Data.npz # # where `{network}`, in the above filename, can be one of `VGG19`, `Resnet50`, `InceptionV3`, or `Xception`. Pick one of the above architectures, download the corresponding bottleneck features, and store the downloaded file in the `bottleneck_features/` folder in the repository. # # ### (IMPLEMENTATION) Obtain Bottleneck Features # # In the code block below, extract the bottleneck features corresponding to the train, test, and validation sets by running the following: # # bottleneck_features = np.load('bottleneck_features/Dog{network}Data.npz') # train_{network} = bottleneck_features['train'] # valid_{network} = bottleneck_features['valid'] # test_{network} = bottleneck_features['test'] # + deletable=true editable=true ### TODO: Obtain bottleneck features from another pre-trained CNN. bottleneck_features = np.load('bottleneck_features/DogResnet50Data.npz') train_Resnet50 = bottleneck_features['train'] valid_Resnet50 = bottleneck_features['valid'] test_Resnet50 = bottleneck_features['test'] # + [markdown] deletable=true editable=true # ### (IMPLEMENTATION) Model Architecture # # Create a CNN to classify dog breed. At the end of your code cell block, summarize the layers of your model by executing the line: # # <your model's name>.summary() # # __Question 5:__ Outline the steps you took to get to your final CNN architecture and your reasoning at each step. Describe why you think the architecture is suitable for the current problem. # # __Answer:__ # # As Resnet50 is a tested and effective architecture in image recognition, I would like to use it as feature extractor. Thus, I use Resnet50 output as my model's input. It will provide good features for recognizing dogs. Then I add a global averaging layer to reduce the spacial size of the features, which will increase the computing speed. At last, I add a dense layer as the output layer with 133 possible labels, which is the number of all dog breeds in our data. # # I believe it will work or at least imrpove the performance as Resnet50 extracts good features from images that clearly reflect patterns of different dog breads. # + deletable=true editable=true ### TODO: Define your architecture. Resnet50_model = Sequential() Resnet50_model.add(GlobalAveragePooling2D(input_shape=train_Resnet50.shape[1:])) Resnet50_model.add(Dense(133, activation='softmax')) Resnet50_model.summary() # + [markdown] deletable=true editable=true # ### (IMPLEMENTATION) Compile the Model # + deletable=true editable=true ### TODO: Compile the model. Resnet50_model.compile(loss='categorical_crossentropy', optimizer='rmsprop', metrics=['accuracy']) # + [markdown] deletable=true editable=true # ### (IMPLEMENTATION) Train the Model # # Train your model in the code cell below. Use model checkpointing to save the model that attains the best validation loss. # # You are welcome to [augment the training data](https://blog.keras.io/building-powerful-image-classification-models-using-very-little-data.html), but this is not a requirement. # + deletable=true editable=true ### TODO: Train the model. checkpointer = ModelCheckpoint(filepath='saved_models/weights.best.Resnet50.hdf5', verbose=1, save_best_only=True) Resnet50_model.fit(train_Resnet50, train_targets, validation_data=(valid_Resnet50, valid_targets), epochs=20, batch_size=20, callbacks=[checkpointer], verbose=1) # + [markdown] deletable=true editable=true # ### (IMPLEMENTATION) Load the Model with the Best Validation Loss # + deletable=true editable=true ### TODO: Load the model weights with the best validation loss. Resnet50_model.load_weights('saved_models/weights.best.Resnet50.hdf5') # + [markdown] deletable=true editable=true # ### (IMPLEMENTATION) Test the Model # # Try out your model on the test dataset of dog images. Ensure that your test accuracy is greater than 60%. # + deletable=true editable=true ### TODO: Calculate classification accuracy on the test dataset. # get index of predicted dog breed for each image in test set Resnet50_predictions = [np.argmax(Resnet50_model.predict(np.expand_dims(feature, axis=0))) for feature in test_Resnet50] # report test accuracy test_accuracy = 100*np.sum(np.array(Resnet50_predictions)==np.argmax(test_targets, axis=1))/len(Resnet50_predictions) print('Test accuracy: %.4f%%' % test_accuracy) # + [markdown] deletable=true editable=true # ### (IMPLEMENTATION) Predict Dog Breed with the Model # # Write a function that takes an image path as input and returns the dog breed (`Affenpinscher`, `Afghan_hound`, etc) that is predicted by your model. # # Similar to the analogous function in Step 5, your function should have three steps: # 1. Extract the bottleneck features corresponding to the chosen CNN model. # 2. Supply the bottleneck features as input to the model to return the predicted vector. Note that the argmax of this prediction vector gives the index of the predicted dog breed. # 3. Use the `dog_names` array defined in Step 0 of this notebook to return the corresponding breed. # # The functions to extract the bottleneck features can be found in `extract_bottleneck_features.py`, and they have been imported in an earlier code cell. To obtain the bottleneck features corresponding to your chosen CNN architecture, you need to use the function # # extract_{network} # # where `{network}`, in the above filename, should be one of `VGG19`, `Resnet50`, `InceptionV3`, or `Xception`. # + deletable=true editable=true ### TODO: Write a function that takes a path to an image as input ### and returns the dog breed that is predicted by the model. def Resnet50_predict_breed(img_path): # extract bottleneck features bottleneck_feature = extract_Resnet50(path_to_tensor(img_path)) # obtain predicted vector predicted_vector = Resnet50_model.predict(bottleneck_feature) # return dog breed that is predicted by the model return dog_names[np.argmax(predicted_vector)] # + [markdown] deletable=true editable=true # --- # <a id='step6'></a> # ## Step 6: Write your Algorithm # # Write an algorithm that accepts a file path to an image and first determines whether the image contains a human, dog, or neither. Then, # - if a __dog__ is detected in the image, return the predicted breed. # - if a __human__ is detected in the image, return the resembling dog breed. # - if __neither__ is detected in the image, provide output that indicates an error. # # You are welcome to write your own functions for detecting humans and dogs in images, but feel free to use the `face_detector` and `dog_detector` functions developed above. You are __required__ to use your CNN from Step 5 to predict dog breed. # # Some sample output for our algorithm is provided below, but feel free to design your own user experience! # # ![Sample Human Output](images/sample_human_output.png) # # # ### (IMPLEMENTATION) Write your Algorithm # + deletable=true editable=true ### TODO: Write your algorithm. ### Feel free to use as many code cells as needed. def dog_breed_classifier(image_path): img = cv2.imread(image_path) cv_rgb = cv2.cvtColor(img, cv2.COLOR_BGR2RGB) plt.imshow(cv_rgb) if dog_detector(image_path): print('Hello, dog.') print('You are a ...{}'.format(Resnet50_predict_breed(image_path))) elif face_detector(image_path): print('Hello, human!') print('You look like a ...{}'.format(Resnet50_predict_breed(image_path))) else: print('Neighter dog or human face detected.') # + [markdown] deletable=true editable=true # --- # <a id='step7'></a> # ## Step 7: Test Your Algorithm # # In this section, you will take your new algorithm for a spin! What kind of dog does the algorithm think that __you__ look like? If you have a dog, does it predict your dog's breed accurately? If you have a cat, does it mistakenly think that your cat is a dog? # # ### (IMPLEMENTATION) Test Your Algorithm on Sample Images! # # Test your algorithm at least six images on your computer. Feel free to use any images you like. Use at least two human and two dog images. # # __Question 6:__ Is the output better than you expected :) ? Or worse :( ? Provide at least three possible points of improvement for your algorithm. # # __Answer:__ # # I use 3 images of Labrador, 1 image of bulldog and 3 images of famous people. The algorithm successfully dectect all dogs and 2 of 3 humans. The dog breed are successfully detected. I think the output is better than my expectation. To increase the algorithm, I can use image augmentation and use more deep architectures and include dropout to avoid overfitting. # + deletable=true editable=true ## TODO: Execute your algorithm from Step 6 on ## at least 6 images on your computer. ## Feel free to use as many code cells as needed. # + deletable=true editable=true dog_breed_classifier('test_images/Labrador1.jpg') # + deletable=true editable=true dog_breed_classifier('test_images/Labrador2.jpg') # + deletable=true editable=true dog_breed_classifier('test_images/Labrador3.jpg') # + deletable=true editable=true dog_breed_classifier('test_images/bulldog.jpg') # + deletable=true editable=true dog_breed_classifier('test_images/eminem.jpg') # + deletable=true editable=true dog_breed_classifier('test_images/trump.jpg') # + deletable=true editable=true dog_breed_classifier('test_images/putin.jpg')
39,748
/Assignment1_Nevin.ipynb
f72cb4d7fa2c92421b6217d1eb99ab5bca18fbdd
[]
no_license
nevinmathews/assignment
https://github.com/nevinmathews/assignment
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
2,568
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # # Introductory applied machine learning (INFR10069) # # Assignment 3 (Part B): Mini-Challenge [25%] # ## Important Instructions # # **It is important that you follow the instructions below to the letter - we will not be responsible for incorrect marking due to non-standard practices.** # # 1. <font color='red'>We have split Assignment 3 into two parts to make it easier for you to work on them separately and for the markers to give you feedback. This is part B of Assignment 3 - Part A is an introduction to Object Recognition. Both Assignments together are still worth 50% of CourseWork 2. **Remember to submit both notebooks (you can submit them separately).**</font> # # 1. You *MUST* have your environment set up as in the [README](https://github.com/michael-camilleri/IAML2018) and you *must activate this environment before running this notebook*: # ``` # source activate py3iaml # # cd [DIRECTORY CONTAINING GIT REPOSITORY] # jupyter notebook # # Navigate to this file # ``` # # 1. Read the instructions carefully, especially where asked to name variables with a specific name. Wherever you are required to produce code you should use code cells, otherwise you should use markdown cells to report results and explain answers. In most cases we indicate the nature of answer we are expecting (code/text), and also provide the code/markdown cell where to put it # # 1. This part of the Assignment is the same for all students i.e. irrespective of whether you are taking the Level 10 version (INFR10069) or the Level-11 version of the course (INFR11182 and INFR11152). # # 1. The .csv files that you will be using are located at `./datasets` (i.e. use the `datasets` directory **adjacent** to this file). # # 1. In the textual answer, you are given a word-count limit of 600 words: exceeding this will lead to penalisation. # # 1. Make sure to distinguish between **attributes** (columns of the data) and **features** (which typically refers only to the independent variables, i.e. excluding the target variables). # # 1. Make sure to show **all** your code/working. # # 1. Write readable code. While we do not expect you to follow [PEP8](https://www.python.org/dev/peps/pep-0008/) to the letter, the code should be adequately understandable, with plots/visualisations correctly labelled. **Do** use inline comments when doing something non-standard. When asked to present numerical values, make sure to represent real numbers in the appropriate precision to exemplify your answer. Marks *WILL* be deducted if the marker cannot understand your logic/results. # # 1. **Collaboration:** You may discuss the assignment with your colleagues, provided that the writing that you submit is entirely your own. That is, you must NOT borrow actual text or code from others. We ask that you provide a list of the people who you've had discussions with (if any). Please refer to the [Academic Misconduct](http://web.inf.ed.ac.uk/infweb/admin/policies/academic-misconduct) page for what consistutes a breach of the above. # # # ### SUBMISSION Mechanics # # **IMPORTANT:** You must submit this assignment by **Thursday 15/11/2018 at 16:00**. # # **Late submissions:** The policy stated in the School of Informatics is that normally you will not be allowed to submit coursework late. See the [ITO webpage](http://web.inf.ed.ac.uk/infweb/student-services/ito/admin/coursework-projects/late-coursework-extension-requests) for exceptions to this, e.g. in case of serious medical illness or serious personal problems. # # **Resubmission:** If you submit your file(s) again, the previous submission is **overwritten**. We will mark the version that is in the submission folder at the deadline. # # **N.B.**: This Assignment requires submitting **two files (electronically as described below)**: # 1. This Jupyter Notebook (Part B), *and* # 1. The Jupyter Notebook for Part A # # All submissions happen electronically. To submit: # # 1. Fill out this notebook (as well as Part A), making sure to: # 1. save it with **all code/text and visualisations**: markers are NOT expected to run any cells, # 1. keep the name of the file **UNCHANGED**, *and* # 1. **keep the same structure**: retain the questions, **DO NOT** delete any cells and **avoid** adding unnecessary cells unless absolutely necessary, as this makes the job harder for the markers. This is especially important for the textual description and probability output (below). # # 1. Submit it using the `submit` functionality. To do this, you must be on a DICE environment. Open a Terminal, and: # 1. **On-Campus Students**: navigate to the location of this notebook and execute the following command: # # ```submit iaml cw2 03_A_ObjectRecognition.ipynb 03_B_MiniChallenge.ipynb``` # # 1. **Distance Learners:** These instructions also apply to those students who work on their own computer. First you need to copy your work onto DICE (so that you can use the `submit` command). For this, you can use `scp` or `rsync` (you may need to install these yourself). You can copy files to `student.ssh.inf.ed.ac.uk`, then ssh into it in order to submit. The following is an example. Replace entries in `[square brackets]` with your specific details: i.e. if your student number is for example s1234567, then `[YOUR USERNAME]` becomes `s1234567`. # # ``` # scp -r [FULL PATH TO 03_A_ObjectRecognition.ipynb] [YOUR USERNAME]@student.ssh.inf.ed.ac.uk:03_A_ObjectRecognition.ipynb # scp -r [FULL PATH TO 03_B_MiniChallenge.ipynb] [YOUR USERNAME]@student.ssh.inf.ed.ac.uk:03_B_MiniChallenge.ipynb # ssh [YOUR USERNAME]@student.ssh.inf.ed.ac.uk # ssh student.login # submit iaml cw2 03_A_ObjectRecognition.ipynb 03_B_MiniChallenge.ipynb # ``` # # What actually happens in the background is that your file is placed in a folder available to markers. If you submit a file with the same name into the same location, **it will *overwrite* your previous submission**. You should receive an automatic email confirmation after submission. # # # # ### Marking Breakdown # # The Level 10 and Level 11 points are marked out of different totals, however these are all normalised to 100%. Note that Part A (Object Recognition) is worth 75% of the total Mark for Assignment 3, while Part B (this notebook) is worth 25%. Keep this in mind when allocating time for this assignment. # # **70-100%** results/answer correct plus extra achievement at understanding or analysis of results. Clear explanations, evidence of creative or deeper thought will contribute to a higher grade. # # **60-69%** results/answer correct or nearly correct and well explained. # # **50-59%** results/answer in right direction but significant errors. # # **40-49%** some evidence that the student has gained some understanding, but not answered the questions # properly. # # **0-39%** serious error or slack work. # # Note that while this is not a programming assignment, in questions which involve visualisation of results and/or long cold snippets, some marks may be deducted if the code is not adequately readable. # ## Imports # # Use the cell below to include any imports you deem necessary. # + # Nice Formatting within Jupyter Notebook # %matplotlib inline from IPython.display import display # Allows multiple displays from a single code-cell # System functionality import sys sys.path.append('..') # Import Here any Additional modules you use. To import utilities we provide, use something like: # from utils.plotter import plot_hinton # Your Code goes here: import os import sys import sklearn import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns from sklearn.dummy import DummyClassifier from sklearn.metrics import accuracy_score from sklearn.metrics import log_loss from sklearn.preprocessing import StandardScaler,normalize from sklearn.metrics import log_loss from sklearn.svm import SVC from sklearn.linear_model import LogisticRegression from sklearn.ensemble import RandomForestClassifier from numpy import savetxt from sklearn.decomposition import PCA from sklearn.cluster import KMeans from utils.plotter import plot_voronoi from sklearn.model_selection import GridSearchCV # - # # Mini challenge # # In this second part of the assignment we will have a mini object-recognition challenge. Using the same type of data as in Part A, you are asked to find the best classifier for the person/no person classification task. You can apply any preprocessing steps to the data that you think fit and employ any classifier you like (with the provision that you can explain what the classifier is/preprocessing steps are doing). You can also employ any lessons learnt during the course, either from previous Assignments, the Labs or the lecture material to try and squeeze out as much performance as you possibly can. The only restriction is that all steps must be performed in `Python` by using the `numpy`, `pandas` and `sklearn` packages. You can also make use of `matplotlib` and `seaborn` for visualisation. # # ### DataSet Description # # The datasets we use here are similar in composition but not the same as the ones used in Part A: *it will be useful to revise the description in that notebook*. Specifically, you have access to three new datasets: a training set (`Images_C_Train.csv`), a validation set (`Images_C_Validate.csv`), and a test set (`Images_C_Test.csv`). You must use the former two for training and evaluating your models (as you see fit). As before, the full data-set has 520 attributes (dimensions). Of these you only have access to the 500 features (`dim1` through `dim500`) to test your model on: i.e. the test set does not have any of the class labels. # # ### Model Evaluation # # Your results will be evaluated in terms of the logarithmic loss metric, specifically the [logloss](http://scikit-learn.org/0.19/modules/model_evaluation.html#log-loss) function from SKLearn. You should familiarise yourself with this. To estimate this metric you will need to provide probability outputs, as opposed to discrete predictions which we have used so far to compute classification accuracies. Most models in `sklearn` implement a `predict_proba()` method which returns the probabilities for each class. For instance, if your test set consists of `N` datapoints and there are `K` class-labels, the method will return an `N` x `K` matrix (with rows summing to 1). # # ### Submission and Scoring # # This part of Assignment 3 carries 25% of the total marks. Within this, you will be scored on two criteria: # 1. 80% of the mark will depend on the thoroughness of the exploration of various approaches. This will be assessed through your code, as well as a brief description (<600 words) justifying the approaches you considered, your exploration pattern and your suggested final approach (and why you chose it). # 1. 20% of the mark will depend on the quality of your predictions: this will be evaluated based on the logarithmic loss metric. # Note here that just getting exceptional performance is not enough: in fact, you should focus more on analysing your results that just getting the best score! # # You have to submit the following: # 1. **All Code-Cells** which show your **working** with necessary output/plots already generated. # 1. In **TEXT** cell `#ANSWER_TEXT#` you are to write your explanation (<600 words) as described above. Keep this brief and to the point. **Make sure** to keep the token `#ANSWER_TEXT#` as the first line of the cell! # 1. In **CODE** cell `#ANSWER_PROB#` you are to submit your predictions. To do this: # 1. Once you have chosen your favourite model (and pre-processing steps) apply it to the test-set and estimate the posterior proabilities for the data points in the test set. # 1. Store these probabilities in a 2D numpy array named `pred_probabilities`, with predictions along the rows i.e. each row should be a complete probability distribution over whether the image contains a person or not. Note that due to the encoding of the `is_person` class, the negative case (i.e. there is no person) comes first. # 1. Execute the `#ANSWER_PROB#` code cell, making sure to not change anything. This cell will do some checks to ensure that you are submitting the right shape of array. # # You may create as many code cells as you need (within reason) for training your models, evaluating the data etc: however, the text cell `#ANSWER_TEXT#` and code-cell `#ANSWER_PROB#` showing your answers must be the last two cells in the notebook. # ## Exploring the datatsets # + # This is where your working code should start. Fell free to add as many code-cells as necessary. # Make sure however that all working code cells come BEFORE the #ANSWER_TEXT# and #ANSWER_PROB# # cells below. # Your Code goes here: # Loading the dataset data_path_train = os.path.join(os.getcwd(), "datasets", "Images_C_Train.csv") C_Train= pd.read_csv(data_path_train, delimiter = ",") data_path_valid = os.path.join(os.getcwd(), "datasets", "Images_C_Validate.csv") C_Val = pd.read_csv(data_path_valid, delimiter = ",") data_path_test = os.path.join(os.getcwd(), "datasets", "Images_C_Test.csv") C_Test = pd.read_csv(data_path_test, delimiter = ",") print(C_Train.info()) print(C_Val.info()) print(C_Test.info()) # - C_Train.head(3) C_Val.head(3) C_Test.head(3) C_Train.describe() dims=C_Train[C_Train.columns[pd.Series(C_Train.columns).str.startswith('dim')]] X_tr =pd.concat([dims], axis=1) dims=C_Val[C_Val.columns[pd.Series(C_Val.columns).str.startswith('dim')]] X_val = pd.concat([dims], axis=1) dims=C_Test[C_Test.columns[pd.Series(C_Test.columns).str.startswith('dim')]] X_tst =pd.concat([dims], axis=1) y_tr = C_Train["is_person"].values y_val = C_Val["is_person"].values y_tst = C_Test["is_person"].values # ## Scatter plots plt.scatter(x=X_tr["dim1"],y=y_tr) plt.scatter(x=X_tr["dim500"],y=y_tr) # ## Preprocessing # + #StandardScaler stc = StandardScaler() stc.fit(X_tr) X_tr_std = stc.transform(X_tr) X_val_std = stc.transform(X_val) #Normalisation X_tr_norm = normalize(X_tr, norm='l2') X_val_norm = normalize(X_val, norm='l2') # - # ## Supervised Techniques # ### Dummy Classifier # # + #with Standard Scaler dummy = DummyClassifier()#strategy='prior') dummy.fit(X_tr_std,y_tr) dummy_pred = dummy.predict(X_val_std) print("Accuracy Score for X_val_std using the Dummy Classifier: {:.5f}".format(accuracy_score(y_val,dummy_pred))) print("Logarithmic Loss for X_val_std using the Dummy Classifier: {:.5f}".format(log_loss(y_val,dummy_pred))) #with Normalisation dummy = DummyClassifier()#strategy='prior') dummy.fit(X_tr_norm,y_tr) dummy_pred = dummy.predict(X_val_norm) print("Accuracy Score for X_val_norm using the Dummy Classifier: {:.5f}".format(accuracy_score(y_val,dummy_pred))) print("Logarithmic Loss for X_val_norm using the Dummy Classifier: {:.5f}".format(log_loss(y_val,dummy_pred))) # - # ### Trying Logistic Regression, the RandomForestClassifier, and SVC. # + # Logistic Regression with StandardScale LR = LogisticRegression(solver='lbfgs') LR.fit(X_tr_std,y_tr) LR_pred = LR.predict(X_val_std) print("Accuracy Score for X_val_std using Logistic Regression: {:.5f}".format(accuracy_score(y_val,LR_pred))) print("Logarithmic Loss for X_val_std using Logistic Regression: {:.5f}".format(log_loss(y_val,LR_pred))) # Logistic Regression with Normalization LR = LogisticRegression(solver='lbfgs') LR.fit(X_tr_norm,y_tr) LR_pred = LR.predict(X_val_norm) print("\nAccuracy Score for X_val_norm using Logistic Regression: {:.5f}".format(accuracy_score(y_val,LR_pred))) print("Logarithmic Loss for X_val_norm using Logistic Regression: {:.5f}".format(log_loss(y_val,LR_pred))) # Random Forrest Classifier with StandardScale RFM = RandomForestClassifier(random_state=0,n_estimators=250) RFM .fit(X_tr_std,y_tr) RFM_pred = RFM.predict(X_val_std) print("\nAccuracy Score for X_val_std using a Random Forest Classifier: {:.5f}".format(accuracy_score(y_val,RFM_pred))) print("Logarithmic Loss for X_val_std using a Random Forest Classifierr: {:.5f}".format(log_loss(y_val,RFM_pred))) # Random Forrest Classifier with Normalization RFM = RandomForestClassifier(random_state=0,n_estimators=250) RFM .fit(X_tr_norm,y_tr) RFM_pred = RFM.predict(X_val_norm) print("\nAccuracy Score for X_val_norm using a Random Forest Classifier: {:.5f}".format(accuracy_score(y_val,RFM_pred))) print("Logarithmic Loss for X_val_norm using a Random Forest Classifierr: {:.5f}".format(log_loss(y_val,RFM_pred))) from sklearn.svm import SVC # SVC with StandardScale SVC = SVC(kernel='rbf', probability=True) SVC.fit(X_tr_std,y_tr) SVC_pred = SVC.predict(X_val_std) print("\nAccuracy Score for X_val using SVC: {:.5f}".format(accuracy_score(y_val,SVC_pred))) print("Logarithmic Loss for X_val_std using SVC: {:.5f}".format(log_loss(y_val,SVC_pred))) from sklearn.svm import SVC # SVC with Normalization SVC = SVC(kernel='rbf', probability=True) SVC.fit(X_tr_norm,y_tr) SVC_pred = SVC.predict(X_val_norm) print("\nAccuracy Score for X_val_norm using SVC: {:.5f}".format(accuracy_score(y_val,SVC_pred))) print("Logarithmic Loss for X_val_norm using SVC: {:.5f}".format(log_loss(y_val,SVC_pred))) # - # ## Unsupervised Techniques # ### KMeans with PCA print("Number of photos classified as a person: {}".format(len(y_tr[y_tr==1]))) print("Number of photos classified as not a person: {}".format(len(y_tr[y_tr==0]))) # + reduced_data = PCA(n_components=2).fit_transform(X_tr_std) kmeans_pca1 = KMeans(n_clusters=2, random_state=1000) kmeans_pca1.fit(reduced_data) centrocolor=['blue', 'magenta'] x_min, x_max = reduced_data[:, 0].min() - 1, reduced_data[:, 0].max() + 1 y_min, y_max = reduced_data[:, 1].min() - 1, reduced_data[:, 1].max() + 1 plt.figure(figsize=(10,8)) plot_voronoi(kmeans_pca1,[x_min,x_max,y_min,y_max]) # Plot the centroids as X centroids = kmeans_pca1.cluster_centers_ plt.plot(reduced_data [:,0],reduced_data [:,1],".w",markersize=6) plt.title('K-means clustering on the training dataset (PCA-reduced data)\n' 'Centroids are marked with a cross') labels= ["not_person","person"] for it in range(centroids.shape[0]): plt.scatter(centroids[it,0], centroids[it,1], marker='x', s=169, linewidths=3, color=centrocolor[it], zorder=10, label=labels[it]) plt.legend(loc='center left', scatterpoints=1, bbox_to_anchor=[1.01, 0.5]) # - # ## Parameter estimation using grid search with cross-validation # ### Optimising Logistic Regressor # + clf2 = LogisticRegression(solver='lbfgs',class_weight=None, dual=False, fit_intercept=True, intercept_scaling=1, max_iter=100, multi_class='ovr', n_jobs=1, random_state=0, tol=0.0001, verbose=0, warm_start=False) param_grid2 = {'C': np.logspace(-6,8,20) } grid_search2 = GridSearchCV(clf2, param_grid=param_grid2,scoring='neg_log_loss') # Use default 3 fold cross validation grid_search2.fit(X_tr_norm, y_tr) pass # - top1 = pd.DataFrame.from_dict(grid_search2.cv_results_) top1[top1['rank_test_score']<6] # show top 5 # From the above table, we can identify that including an optimal value for the paramter C would increase the accuracy. optimalC = top1[top1['rank_test_score'] == 1]['param_C'].real[0] LR_new = LogisticRegression(solver='lbfgs',C=optimalC) LR_new.fit(X_tr_norm,y_tr) LR_new_pred = LR_new.predict(X_val_norm) print("Accuracy Score for X_val_norm using Logistic Regression: {:.5f}".format(accuracy_score(y_val,LR_new_pred))) print("Logarithmic Loss for X_val_norm using Logistic Regression: {:.5f}".format(log_loss(y_val,LR_new_pred))) # + clf = RandomForestClassifier(n_estimators=250,random_state=0) param_grid = {"max_depth": [None, 5], "max_features": ['auto','log2'], "bootstrap": [True, False], "criterion": ["gini", "entropy"]} grid_search = GridSearchCV(clf, param_grid=param_grid,scoring='neg_log_loss') # Use default 3 fold cross validation grid_search.fit(X_tr_norm, y_tr) pass # - top2 = pd.DataFrame.from_dict(grid_search.cv_results_) top2[top2['rank_test_score']<6] # show top 5 # From the above table, we can identify which parameters it would be best to include in our RandomForestClassifier model for higher accuracy. # The paramters are: # * bootstrap=False # * criterion='entropy' # * max_depth=None # * max_features='auto' RFM_new = RandomForestClassifier(random_state=0,n_estimators=500,bootstrap=False,criterion='entropy',max_depth=None,max_features='auto') RFM_new.fit(X_tr_norm,y_tr) RFM_new_pred = RFM_new.predict(X_val_norm) print("\nAccuracy Score for X_val using a Random Forest Classifier: {:.5f}".format(accuracy_score(y_val,RFM_new_pred))) print("Logarithmic Loss for X_val_std using a Random Forest Classifier: {:.5f}".format(log_loss(y_val,RFM_new_pred))) # + from sklearn.svm import SVC clf3 = SVC(kernel='rbf',probability=True) param_grid3 = {"C": np.logspace(-2,2,10), "gamma": np.logspace(-4,0,10)} # scoring is socre instead of neg_log_loss grid_search3 = GridSearchCV(clf3, param_grid=param_grid3,scoring='neg_log_loss',n_jobs=8) # Use default 3 fold cross validation grid_search3.fit(X_tr_norm, y_tr) pass # - top3 = pd.DataFrame.from_dict(grid_search3.cv_results_) top3[top3['rank_test_score']<6] # show top 5 # + # SVC_new = SVC(kernel='rbf', probability=True) # SVC_new.fit(X_tr_std,y_tr) # SVC_new_pred = SVC.predict(X_val_std) # print("\nAccuracy Score for X_val using SVC: {:.5f}".format(accuracy_score(y_val,SVC_new_pred))) # print("Logarithmic Loss for X_val_std using SVC: {:.5f}".format(log_loss(y_val,SVC_new_pred))) opt_c2 = top3[top3['rank_test_score'] == 1]['param_C'].real[0] opt_gamma = top3[top3['rank_test_score'] == 1]['param_gamma'].real[0] svc = SVC(kernel='rbf',C=opt_c2,gamma=opt_gamma,probability=True) svc.fit(X_tr_norm, y_tr) pp3 = svc.predict_proba(X_val_norm) print('Optimal SVC with C = {}, gamma = {} has a log loss = {}.'.format(opt_c2,opt_gamma, log_loss(y_val,pp3))) print('Score with this classifier = {:.3f}.'.format(svc.score(X_val_norm,y_val))) # - # #ANSWER_TEXT# # # ***Your answer goes here:*** # First, I start by exploring the datasets. # ### Description # All three datasets, are very similar. Their common attributes are the 500 dimensions and the is_person. Training and Validation sets have some more attributes like is_dog,is_cow and so on. # The training set has 2113 entries while the Validation set has 1113. Following that the Testing set has 1114 entries. # # ### Preprocessing # # From my observations above, I concluded that it would be best to drop some attributes from the Training and Testing sets as they don't affect in any way if the observation is a person or not. The attribues I decided to drop are: # # * is_cow # * is_distingtable # * is_dog # * is_horse # * is_motorbike # * is_pottedplant # * is_sheep # * is_sofa # * is_tvmonitor # # # ### Splitting the Data # Following that, I split my data into training and testing sets(as we did in the labs) # The training sets contain all observations from each data set yet only the attributes that represent the dimensions. # The testing sets contain all observation but only the is_person attribute. # # ### Scatter plots # # I also tried to see some scatter plots in order to see if there are any outliers in the data. I created 2, one for the first dimension and one for the last dimension. From the plots above we can see that most likely there are no outliers in the dataset. # # ### Preprocessing (II) # I also decided to use both the StandardScaler and Normalization and see which one produces the highest accuracy. # # ### Supervised Techniques # I then started using some supervised techniques to see which one gives the highest accuracy # #### Baseline Classifier # My dummy classifier with the stratified method gave the following results: # # *`Accuracy Score for X_val_std using the Dummy Classifier: 0.52291 # Logarithmic Loss for X_val_std using the Dummy Classifier: 16.47825 # Accuracy Score for X_val_norm using the Dummy Classifier: 0.50584 # Logarithmic Loss for X_val_norm using the Dummy Classifier: 17.06785`* # # From this we can see that Normalisation may be a better method for preprocessing to carry out. # # ### Logistic Regression, RandomForestClassifier, SVC # # Logistic Regression Results : # # *`Accuracy Score for X_val_std using Logistic Regression: 0.60737 # Logarithmic Loss for X_val_std using Logistic Regression: 13.56107 # Accuracy Score for X_val_norm using Logistic Regression: 0.69452 # Logarithmic Loss for X_val_norm using Logistic Regression: 10.55102`* # # Random Forrest Classifier Results: # # *`Accuracy Score for X_val_std using a Random Forest Classifier: 0.69003 # Logarithmic Loss for X_val_std using a Random Forest Classifierr: 10.70619 # Accuracy Score for X_val_norm using a Random Forest Classifier: 0.69452 # Logarithmic Loss for X_val_norm using a Random Forest Classifierr: 10.55103`* # # SVC Results: # # *`Accuracy Score for X_val using SVC: 0.52650 # Logarithmic Loss for X_val_std using SVC: 16.35394 # Accuracy Score for X_val_norm using SVC: 0.52650 # Logarithmic Loss for X_val_norm using SVC: 16.35394`* # # From the above metrics,we can identify that the Random Forest Classifier is more accurate. It's accuracy is highest when compared with Logistic Regression or an SVC and its Logarithmic Loss is lower than the others. Also, Normalisation seems to be a better methos to use when comapred with Standard Scale. # # ### Unsupervised Techniques # #### KMeans with PCA # # Note: 947 documents in the training set are marked as person and 1166 documents are marked as not a person. # # From the voronoi plot above we can conclude that an unsupervised classification technique such that kmeans with pca shouldn't being used.The reason is that only one document is classified as not a person where as this is completely wrong if we compare it with their actual labels. # # ### Parameter estimation using grid search with cross-validation # # #### Logistic Regression: # Using grid search, cross-validation and the normalized datasets we get: # # *`Accuracy Score for X_val_norm using Logistic Regression: 0.69452 # Logarithmic Loss for X_val_norm using Logistic Regression: 10.55103`* # # These results are much higher than by not using the grid-search. # # #### Random Forrest Classifier: # Using grid search, cross-validation and the normalized datasets we get: # # *`Accuracy Score for X_val using a Random Forest Classifier: 0.69362 # Logarithmic Loss for X_val_std using a Random Forest Classifier: 10.58206`* # # #### SVC # Using grid search, cross-validation and the normalized datasets we get: # # *` Optimal SVC with C = 1.6681005372000592, gamma = 1.0 has a log loss = 0.5599244408904153. # Score with this classifier = 0.708. `* # # ## FINAL model selected # # From the results above, I concluded that it would be best to use the svc model using the grid search, cross-validation and the normalized dataset of X_tst. # I also saved the probabilities in a text file called 'assignment_3_predictions.txt'. X_tst_norm = normalize(X_tst, norm='l2') pred_probabilities=svc.predict_proba(X_tst_norm) print(pred_probabilities.shape) savetxt('assignment_3_predictions.txt', pred_probabilities) # + #ANSWER_PROB# # Run this cell when you are ready to submit your test-set probabilities. This cell will generate some # warning messages if something is not right: make sure to address them! if pred_probabilities.shape != (1114, 2): print('Array is of incorrect shape. Rectify this before submitting.') elif (pred_probabilities.sum(axis=1) != 1.0).all(): print('Submitted values are not correct probabilities. Rectify this before submitting.') else: for _prob in pred_probabilities: print('{:.8f}, {:.8f}'.format(_prob[0], _prob[1]))
28,205
/Lecture Materials/Day 1/PMIM102_Day_1/PMIM102_Tidyverse_4.ipynb
e6e2a65e6fb4ac2562b10547c024449f5a633d6a
[]
no_license
codingWithAndy/PMIM102
https://github.com/codingWithAndy/PMIM102
0
0
null
null
null
null
Jupyter Notebook
false
false
.r
26,987
# --- # jupyter: # jupytext: # text_representation: # extension: .r # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: R # language: R # name: ir # --- # <table width='100%'><tr> # <td style='background-color:red; text-align:center; color: white;'><!--Foundation<!--hr size='5' style='border-color:red; background-color:red;'--></td> # <td style='background-color:yellow; text-align:center;'><!--Level 1<!--hr size='5' style='border-color:yellow; background-color:yellow;'--></td> # <td style='background-color:orange; text-align:center;'><!--Level 2<!--hr size='5' style='border-color:orange; background-color:orange;'--></td> # <td style='background-color:green; text-align:center; color: white;'><!--Level 3<!--hr size='5' style='border-color:orange; background-color:orange;'--></td> # <td style='background-color:blue; text-align:center; color: white;'><!--Level 4<!--hr size='5' style='border-color:orange; background-color:orange;'--></td> # <td style='background-color:purple; text-align:center; color: white;'><!--Level 5<!--hr size='5' style='border-color:orange; background-color:orange;'--></td> # <td style='background-color:brown; text-align:center; color: white;'><!--Level 6<!--hr size='5' style='border-color:orange; background-color:orange;'--></td> # <td style='background-color:black; text-align:center; color: white;'><!--Level 7<!--hr size='5' style='border-color:orange; background-color:orange;'--></td> # </tr></table> # <table style='border-left:10px solid orange;'><tr> # <td style='padding-left:20px;'> # <h2><i>Swansea University Medical School</i><br/><b>MSc Health Data Science</b></h2> # <h3>PMIM-102 Introduction to Scientific Computing in Healthcare</h3> # <h1><b>Introduction to Programming in R</b></h1> # <h2><b>3. The Tidyverse</b></h2> # <h2><i>Part 4: Data types in the tidyverse.</i></h2> # <h3><i>September 2020</i></h3> # <h3><b>To-do</b></h3> # <ul><li>Nothing.</li></ul> # </td> # <td><img height='300' width='500' src='images/cover.jpg'/></td> # </tr></table> # ## __Aim__: Use the tools available in R to manipulate tables of data. # # The aim of this session is to concentrate on the core activities in working with large datasets: moving, cleaning and transforming table data to facilitate analyses. Whilst this is possible using base-R, the facilities provided by the libraries in the __Tidyverse__ make it considerably __easier__ and the resulting code __more readable__. # # ### __A map of where we're going__ # # 1. <b>Introduction</b> - What is the process, the problems with standard R and the structure of 'tidy' data. # # 1. <b>Acquiring data</b> - Getting data into R from files (<b>readr</b>). # # 1. <b>Tidying the data</b> - Handling missing data and reshaping the tables (<b>tidyr</b>). # # 1. <b>Transforming the data</b> - Selecting and converting the data ready to analyse (<b>dplyr</b>). # # 1. <div style="background-color:yellow;"><b>Working with specific data types in tidyverse</b>: strings (<b>stringr</b>), dates (<b>lubridate</b>), factors (<b>forcats</b>).</div> # # 1. <b>Plotting &amp; Data visualisation</b> - beyond the simple R plot etc. (<b>ggplot2</b>). # # 1. <b>Extras</b> - Things worth knowing of so that you can use them if you ever need them. # * Applying functions and working with lists (purrr). # * Tidy evaluation (rlang). # * Communicating your results with a dynamic, R-based website (shiny). # ## __Load the Tidyverse__ # # The first thing to do is make sure the library is loaded. If you have not already installed it, do so not using the <code>install.packages()</code> function. # + ## install.packages('tidyverse') #library(tidyverse) # - # ## __Working with specific data types: strings (stringr), dates (lubridate), factors (forcats)__ # # There are three different data types in R that often introduce additional problems or subtleties to the work: strings, dates and factors. # # ### __Strings__ # # Strings are sequences of characters: words, text etc. As such they are naturally used to convey meaning and naturally subject to spelling mistakes, odd use of capitalisation etc. and we frequently need to process text to make sure all variations of any text are caught (which is one of the strengths of regular expressions). Often it is simply a case of making sure we catch the outliers, for example, with the gleason codes used in prostate cancer, we expect: # # `GLEASON 3+4=7` # # but we might get: # # `3+4=7`, `3+4`, `-+-=7`, `7`, `GLEASON 4+3=8` # # and we have to spot these and do something defined in all cases. # # [See the stringr cheatsheet.](https://github.com/rstudio/cheatsheets/blob/master/strings.pdf) # # Searching, creating or changing strings is simplified in R with the `stringr` library. There are functions to find, count or locate matches in strings, to select parts of strings and to measure or adjust the length of strings. We can also change parts of strings, join or split them and sort them. A full list of these functions is shown in the cheatsheet. # # The most useful functions are: # * `str_length(x)` which returns the length of the string, x. # * `str_sub(x, start, stop)` which returns the substring in x that starts at position start (left-most is 1) and ends at position stop. You can use negative numbers to count from the end of the string (right-most is -1). # + #str_sub('GLEASON 3+4=7', 1, 7) #str_sub('GLEASON 3+4=7', 9, -1) #str_sub('GLEASON 3+4=7', -5, -3) # + ## library(stringr) #pregnancy <- read_csv(file="data/pregnancy.csv") #head(pregnancy) #string_test <- pregnancy %>% select(PARENT_ID, DATE_OF_BIRTH, OTHER_LANGUAGE, OTHER_ETHNICITY) %>% filter(!is.na(OTHER_LANGUAGE)|!is.na(OTHER_ETHNICITY)) #string_test %>% filter(str_detect(OTHER_LANGUAGE, str_sub('Polish', 2, str_length('Polish')))) # + #x <- tibble(Gleason=c('GLEASON 3+4=7', 'DUKES=B', 'T1a')) #x #x %>% mutate(Gleason=ifelse(str_detect(str_sub(Gleason, 1, 7), 'GLEASON'), str_sub(Gleason, 9, str_length(Gleason)), NA)) %>% # mutate(Gleason=str_sub(Gleason, str_locate(Gleason, '=')[,1] + 1, str_length(Gleason))) # - # ## __Exercise__: Something devilish to do with string handling. # # 1. List the number of attacks which involved each shirt colour and each monster type with: 'The \<monster\> attacked redshirts \<number\> times.' # 1. Choose a monster and find out how many attacks it made and on which shirt colours. # 1. Create a list of words and their frequencies. # + #events <- c( # 'The redshirt was bitten by a red vampire.', # 'The basilisk froze seven securty officers', # 'Spock was attacked by the zombies', # 'Werewolves ate four redshirts and one yellowshirt', # 'The captain spontaneously combusted' #) #str_length(events) #events[str_detect(events, 'vampire')] #str_locate(events[str_detect(events, 'vampire')], 'red') #str_locate_all(events[str_detect(events, 'vampire')], 'red') #str_sub(events[str_detect(events, 'vampire')], str_locate(events[str_detect(events, 'vampire')], 'red')) <-'blue' #str_sub(events[str_detect(events, 'vampire')], str_locate(events[str_detect(events, 'vampire')], 'vampire')) <- 'green' #events[str_detect(events, 'vampire')] #word <- str_to_lower(unlist(str_split(events, ' '))) #word #t <- table(word) #print(t) #class(t) #u <- as.data.frame(t) #print(u %>% arrange(desc(Freq))) # - # ## _Regular Expressions_ # Regular expressions are a way to describe pattern in strings and is the defaullt form of the 'pattern' used in stringr, e.g. `str_match(string, pattern)`. They may seem obscure to start with but you quickly get used to them with practice. The rules define the patterns that match: # # * 'x' --- match the character x # * 'x|y' --- match the character x or the character y # * '\[xyz\]' --- match any one of x, y or z # * '\[^xyz\]' --- match anything but x, y or z # * '\[t-z\]' --- match anything from t to z # * '^a' --- match anything that starts with a # * 'a\$' --- match anything that ends with a # * '^abcdef\$' --- match abcdef only # * 'a?' --- match zero or one a # * 'a*' --- match zero or more a's # * 'a+' --- match one or more a's # * 'a{n}' --- match exactly n a's # * 'a{n,}' --- match n or more a's # * 'a{n,m}' --- match n to m a's # * '.' --- match any character (except a new-line) # * '\[:digit:\]' --- match a digit (see also: alpha, lower, upper, alnum, punct, graph, space, blank) # * '(ab|c)(d|ef)' --- match the first group followed by the second group i.e. 'ab' or 'c' followed by 'd' or 'ef' # # For example, if we wish to find the character, 'x', we simply use 'x'. If we want to find 'x' or 'y', we use 'x|y'. If we want to find one of a set of characters, we use '\[xyz\]' which will find one of 'x', ''y' or 'z'. If we want to find 'abc' or 'd' followed by 'e', we use '(abc|d)e'. # # | Regular Expression | Matches, for example | # | --- | --- | # | ^a | a, apple, aardvark, a00001 | # | \[a\] | a, baa, people with a problem, aaaaaaaaaaaaaa | # | \[ab\] | a, baa, boo, oboe | # | \[a\]\*\[b\]\* | bbb, aaa, aaaabbbb, aaaaacccc | # | \[a\]+\[b\]+ | abbbb, aaaaab, abc | # | \[A-Za-z\]+ | any, word, butnotanumberbyitself | # | ^\[a-z-\]+\[@\]{1}\[a-z\]+(\[.\]{1}\[a-z\]+)*$ | [email protected], [email protected] | # # You can use other forms of pattern if you convert them with one of the helper functions: # * regex() --- the default # * fixed() --- matches raw bytes but, some characters can be represented in multiple ways and these will be missed # * coll() --- matches raw bytes and uses locale collation rules to match multiply represented characters (slow) # * boundary() --- matches boundaries between characters # + #s <- 'How many redshirts were killed in episode 7?' #p <- '7\\?$' #str_match(s, p) #str_split(s, boundary('word')) # - # ## __Exercise__: Using regular expressions to find codes. # Load the package, 'pccc' and use regular expressions to look for specific codes in the 'pcc_icd10_dataset' data. # + ##install.packages('pccc') ##install.packages('data.table') #library(pccc) #head(pccc_icd10_dataset) #p <- pccc_icd10_dataset[str_which(pccc_icd10_dataset$dx1, '^S66'),] #head(p) # - # <table style="text-align:center;"><tr><td width="100" height="20" style="background-color:greenyellow"></td><td width="100" height="20" style="background-color:hotpink"></td></tr></table> # ### __Dates__ # # As we found in earlier exercises, dates in R can require considerable care, not only are their formats likely to vary but R will not always treat dates as you would like it to. In addition, people frequently enter dates badly as strings (for example, 31.06.2005 where someone may simply have added 3 to 31.03.2005 to indicate a date 3 months later). There are further complications when you need to calculate intervals from dates - leap years, what is a month, a year etc. # # The `lubridate` package has been designed to make handling dates easier and to provide a simple way to perform mathematical functions. # # [See the lubridate cheatsheet.](https://github.com/rstudio/cheatsheets/raw/master/lubridate.pdf) Especially for additional information on timestamps and timezones. # # There are three components in a lubridate date/time: # 1. A datetime which is stored as the number of seconds since January 1st 1970 and represents a date with a time. # 1. A date is stored as the number of days since January 1st 1970. # 1. An hms is the number of seconds since 00:00 and represents the time. # + #library(lubridate) ## datetime #dt <- as_datetime('2020-09-22 12:00:00') #dt #as.integer(dt) ## date #dt <- as_date('2019-09-22') #dt #as.integer(dt) ## hms #hms <- hms::as_hms('12:00:00') #hms #as.integer(hms) # - # ### _Specifying datetimes_ # # You can specify datetimes with string and numbers using a series of functions that match the format of the strings and numbers you want to use: # 1. ymd_hms(), ymd_hm(), ymd_h(), ymd() # 1. ydm_hms() etc. # 1. mdy_hms() etc. # 1. yq(), hms(), hm(), ms() (may need to specify lubridate here, for example, lubridate::hms() rather than hms::hms()) # + #dt <- ymd_hms('2020/09/22 17:26:30') #dt # - # ### _Getting and setting components_ # # It is straightforward to set the components of a datetime, such as date(), year(), month(), day(), wday(), hour(), minute(), second(), week(), semester() and check values such as am(), pm(), dst() - daylight saving time?, leap_year(). # + #semester(dt) #wday(dt) #pm(dt) #leap_year(dt) #dst(dt) #month(dt) <- 12 #dt # - # ### _Maths with dates_ # # Date calculations are a series of traps and problems. You need to consider: # 1. Leap days and leap seconds # 1. Daylight saving hours # 1. Adding months when on 31st of the month (31st February --> NA) # # The Tidyverse tries to help by including three kinds of timespan: # 1. Period --- tracks the change in clock time # 1. Duration --- tracks the actual amount of time irrespective of clock manipulations, so not clock time when changes occur # 1. Interval --- represents specific intervals on the timeline, bounded by a start and end datetime. # # To create one of these timespans, you can use the constructor: # * `period()` # * `duration()` # * `interval()` (or, in this case, %--%) # # or the and the conversion functions: # * `as.period()` # * `as.duration()` # * `as.interval()` # # Some functions are also provided to help round dates appropriately: # * floor_date(x, unit='second') --- rounds down to the specified unit # * round_date(x, unit='second') --- rounds to the nearest unit # * ceiling_date(x, unit='second') --- rounds up to the nearest unit # * rollback(dates, roll_to_first=FALSE, preserve_hms=TRUE) -- rollback to the last day of the previous month (this is also done with the operators, %m+% and %m-%) # + #per <- months(2) #per #dur <- dweeks(4) #dur #int <- interval(ymd('2019-09-28'), ymd('2019-09-01')) #int #dt <- ymd('2016-01-31') + months(1) #dt #dt <- ymd('2016-01-31') %m+% months(1) #dt # - # And there are some handy extra functions: # * now() --- current time # * today() --- current date # + #today() + dur #now() + dminutes(10) # - # ## __Exercise__: Play with dates and durations. # What happens if you add or subtract a day, a month, a year? # + #n <- now() #n #m <- months(1) #m #m1 <- as.duration(m) #m1 #m2 <- as.period(m) #m2 #m3 <- as.interval(m, now()) #m3 #n <- n + months(1) #n # - # ## __Exercise__: Convert the dates in the `pregnancy` dataset to a date type and process them. # Convert all (some) of the date fields in the pregnancy dataset to dates. Check for problems. Determine how many children were born in the summer months. Calculate the interval between children for those parents with more than one child. # + #library(lubridate) #p <- pregnancy %>% select(PARENT_ID, DOBCHILD1, DOBCHILD2, DOBCHILD3, DOBCHILD4, DOBCHILD5, DOBCHILD6) %>% # mutate(DOBCHILD1 = as.Date(DOBCHILD1, format='%d/%m/%Y')) %>% # mutate(MONTH_CHILD1 = month(DOBCHILD1)) %>% # mutate(SUMMER_CHILD1 = (MONTH_CHILD1 >= 6 & MONTH_CHILD1 <= 8)) #table(p$SUMMER_CHILD1) #head(p, 20) #q <- pregnancy %>% select(PARENT_ID, DOBCHILD1, DOBCHILD2, DOBCHILD3, DOBCHILD4, DOBCHILD5, DOBCHILD6) %>% # mutate(DOBCHILD1 = as.Date(DOBCHILD1, format='%d/%m/%Y')) %>% # mutate(DOBCHILD2 = as.Date(DOBCHILD2, format='%d/%m/%Y')) %>% # mutate(GAP_12 = ifelse(!is.na(DOBCHILD1) & !is.na(DOBCHILD2), DOBCHILD2 - DOBCHILD1, NA)) #head(q, 20) # - # <table style="text-align:center;"><tr><td width="100" height="20" style="background-color:greenyellow"></td><td width="100" height="20" style="background-color:hotpink"></td></tr></table> # ### __Factors__ # # [See the forcats cheatsheet.](https://github.com/rstudio/cheatsheets/raw/master/factors.pdf) # # The Tidyverse provides a library, `forcats`, with a number of utilities for handling factors. # # A factor is a categorical variable (a vector with a fixed set of values). In R a factor is displayed with string values but stored as integers with a hidden look-up table to do the conversion. This avoids spelling mistakes and problems with capitalisation (or, rather, these things show up as errors). # # The factors are usually ordered alphabetically which can be inconvenient when it comes to plotting by categories for example. # # We create a factor with `factor(x=character(), levels)` or from a vector with `as.factor()`. The levels can be seen and set by calling `levels(x)`. # + #bmi <- factor(c('healthy', 'underweight', 'obese', 'healthy', 'healthy', 'overweight', 'healthy', 'obese', 'overweight')) #bmi ## Notice that the levels are listed alphabetically. Note also that the print(bmi) automatically prints the levels. #levels(bmi) #bmi <- factor(c('healthy', 'underweight', 'obese', 'healthy', 'healthy', 'overweight', 'healthy', 'obese', 'overweight'), # levels=c('underweight', 'healthy', 'overweight', 'obese')) #bmi ## Notice that the levels are listed ordinally. #levels(bmi) ## Notice that the following changes the labels not the order of the labels so the data has changed too. #levels(bmi) <- c('obese', 'overweight', 'healthy', 'underweight') #bmi #levels(bmi) # - # There are some useful forcats functions: # * fct_count() --- count the frequency of each level # * fct_unique() --- get the unique values # * fct_c() --- combine factors (with possibly different levels) # * fct_unify() --- unify the levels across different factors # * fct_relevel() --- relevel the factor # * fct_infreq() --- relevel the factor by th efrequency eacch occurs # * fct_collapse() --- collapse the specified levels into a new (or existing) level # * fct_other() --- allows you to select some levels to keep, the rest collapsed into a level, 'Other' # # There are several additional re-ordering functions - see the cheatsheet. # + #library(forcats) #bmi <- factor(c('healthy', 'underweight', 'obese', 'healthy', 'healthy', 'overweight', 'healthy', 'obese', 'overweight')) #fct_count(bmi) #fct_unique(bmi) ## Note that the order of the levels below has changed not the data. #fct_relevel(bmi, c('obese', 'overweight', 'healthy', 'underweight')) ## Now re-ordered according to frequency of each factor (useful for listing and plotting). #fct_infreq(bmi) ## Collapse some factors into the same value. #fct_collapse(bmi, heavy=c('overweight', 'obese')) # - # ## __Exercise__: Factors in the pregnancy dataset. # 1. Create a factor for season of child birth. # 1. Create a factor for length of gap between births with a non-linear increment, e.g. <1 year, <18 months, <2 years, <3 years, <5 years, >5 years. # + #head(pregnancy) #seasons <- pregnancy %>% select(PARENT_ID, INFANT_ID, EDD) %>% mutate(CHILD_BIRTH=dmy(EDD)) #seasons <- seasons %>% mutate(SEASON=ifelse(month(CHILD_BIRTH) %in% c(12, 1, 2), 'winter', # ifelse(month(CHILD_BIRTH) %in% c(3, 4, 5), 'spring', # ifelse(month(CHILD_BIRTH) %in% c(6, 7, 8), 'summer', # 'autumn')))) #seasons <- seasons %>% mutate(SEASON=as.factor(SEASON)) #head(seasons) # - # <table style="text-align:center;"><tr><td width="100" height="20" style="background-color:greenyellow"></td><td width="100" height="20" style="background-color:hotpink"></td></tr></table> # <table width='100%'><tr> # <td style='background-color:red; text-align:center; color: white;'><!--Foundation<!--hr size='5' style='border-color:red; background-color:red;'--></td> # <td style='background-color:yellow; text-align:center;'><!--Level 1<!--hr size='5' style='border-color:yellow; background-color:yellow;'--></td> # <td style='background-color:orange; text-align:center;'><!--Level 2<!--hr size='5' style='border-color:orange; background-color:orange;'--></td> # <td style='background-color:green; text-align:center; color: white;'><!--Level 3<!--hr size='5' style='border-color:orange; background-color:orange;'--></td> # <td style='background-color:blue; text-align:center; color: white;'><!--Level 4<!--hr size='5' style='border-color:orange; background-color:orange;'--></td> # <td style='background-color:purple; text-align:center; color: white;'><!--Level 5<!--hr size='5' style='border-color:orange; background-color:orange;'--></td> # <td style='background-color:brown; text-align:center; color: white;'><!--Level 6<!--hr size='5' style='border-color:orange; background-color:orange;'--></td> # <td style='background-color:black; text-align:center; color: white;'><!--Level 7<!--hr size='5' style='border-color:orange; background-color:orange;'--></td> # </tr></table>
20,712
/TASK1.ipynb
0e9dc8d79f2e318fe09bab08c2a5b2ae1834e574
[]
no_license
apurvakadam28/TASK-1_Linear_Regression
https://github.com/apurvakadam28/TASK-1_Linear_Regression
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
51,866
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # # Neural networks with PyTorch # # Deep learning networks tend to be massive with dozens or hundreds of layers, that's where the term "deep" comes from. You can build one of these deep networks using only weight matrices as we did in the previous notebook, but in general it's very cumbersome and difficult to implement. PyTorch has a nice module `nn` that provides a nice way to efficiently build large neural networks. # + # Import necessary packages # %matplotlib inline # %config InlineBackend.figure_format = 'retina' import numpy as np import torch import helper import matplotlib.pyplot as plt # - # # Now we're going to build a larger network that can solve a (formerly) difficult problem, identifying text in an image. Here we'll use the MNIST dataset which consists of greyscale handwritten digits. Each image is 28x28 pixels, you can see a sample below # # <img src='assets/mnist.png'> # # Our goal is to build a neural network that can take one of these images and predict the digit in the image. # # First up, we need to get our dataset. This is provided through the `torchvision` package. The code below will download the MNIST dataset, then create training and test datasets for us. Don't worry too much about the details here, you'll learn more about this later. # + ### Run this cell from torchvision import datasets, transforms # Define a transform to normalize the data transform = transforms.Compose([transforms.ToTensor(), transforms.Normalize((0.5,), (0.5,)), ]) # Download and load the training data trainset = datasets.MNIST('~/.pytorch/MNIST_data/', download=True, train=True, transform=transform) trainloader = torch.utils.data.DataLoader(trainset, batch_size=64, shuffle=True) # - # We have the training data loaded into `trainloader` and we make that an iterator with `iter(trainloader)`. Later, we'll use this to loop through the dataset for training, like # # ```python # for image, label in trainloader: # ## do things with images and labels # ``` # # You'll notice I created the `trainloader` with a batch size of 64, and `shuffle=True`. The batch size is the number of images we get in one iteration from the data loader and pass through our network, often called a *batch*. And `shuffle=True` tells it to shuffle the dataset every time we start going through the data loader again. But here I'm just grabbing the first batch so we can check out the data. We can see below that `images` is just a tensor with size `(64, 1, 28, 28)`. So, 64 images per batch, 1 color channel, and 28x28 images. dataiter = iter(trainloader) images, labels = dataiter.next() print(type(images)) print(images.shape) print(labels.shape) # This is what one of the images looks like. plt.imshow(images[1].numpy().squeeze(), cmap='Greys_r'); # First, let's try to build a simple network for this dataset using weight matrices and matrix multiplications. Then, we'll see how to do it using PyTorch's `nn` module which provides a much more convenient and powerful method for defining network architectures. # # The networks you've seen so far are called *fully-connected* or *dense* networks. Each unit in one layer is connected to each unit in the next layer. In fully-connected networks, the input to each layer must be a one-dimensional vector (which can be stacked into a 2D tensor as a batch of multiple examples). However, our images are 28x28 2D tensors, so we need to convert them into 1D vectors. Thinking about sizes, we need to convert the batch of images with shape `(64, 1, 28, 28)` to a have a shape of `(64, 784)`, 784 is 28 times 28. This is typically called *flattening*, we flattened the 2D images into 1D vectors. # # Previously you built a network with one output unit. Here we need 10 output units, one for each digit. We want our network to predict the digit shown in an image, so what we'll do is calculate probabilities that the image is of any one digit or class. This ends up being a discrete probability distribution over the classes (digits) that tells us the most likely class for the image. That means we need 10 output units for the 10 classes (digits). We'll see how to convert the network output into a probability distribution next. # # > **Exercise:** Flatten the batch of images `images`. Then build a multi-layer network with 784 input units, 256 hidden units, and 10 output units using random tensors for the weights and biases. For now, use a sigmoid activation for the hidden layer. Leave the output layer without an activation, we'll add one that gives us a probability distribution next. def activation(x): """ Sigmoid activation function Arguments --------- x: torch.Tensor """ return 1/(1+torch.exp(-x)) # + ## Your solution # Flatten the input images inputs = images.view(images.shape[0], -1) # inputs.shape # Create parameters w1 = torch.randn(784, 256) b1 = torch.randn(256) w2 = torch.randn(256, 10) b2 = torch.randn(10) h = activation(torch.mm(inputs, w1) + b1) out = torch.mm(h, w2) + b2 # output of your network, should have shape (64,10) out.shape # - # Now we have 10 outputs for our network. We want to pass in an image to our network and get out a probability distribution over the classes that tells us the likely class(es) the image belongs to. Something that looks like this: # <img src='assets/image_distribution.png' width=500px> # # Here we see that the probability for each class is roughly the same. This is representing an untrained network, it hasn't seen any data yet so it just returns a uniform distribution with equal probabilities for each class. # # To calculate this probability distribution, we often use the [**softmax** function](https://en.wikipedia.org/wiki/Softmax_function). Mathematically this looks like # # $$ # \Large \sigma(x_i) = \cfrac{e^{x_i}}{\sum_k^K{e^{x_k}}} # $$ # # What this does is squish each input $x_i$ between 0 and 1 and normalizes the values to give you a proper probability distribution where the probabilites sum up to one. # # > **Exercise:** Implement a function `softmax` that performs the softmax calculation and returns probability distributions for each example in the batch. Note that you'll need to pay attention to the shapes when doing this. If you have a tensor `a` with shape `(64, 10)` and a tensor `b` with shape `(64,)`, doing `a/b` will give you an error because PyTorch will try to do the division across the columns (called broadcasting) but you'll get a size mismatch. The way to think about this is for each of the 64 examples, you only want to divide by one value, the sum in the denominator. So you need `b` to have a shape of `(64, 1)`. This way PyTorch will divide the 10 values in each row of `a` by the one value in each row of `b`. Pay attention to how you take the sum as well. You'll need to define the `dim` keyword in `torch.sum`. Setting `dim=0` takes the sum across the rows while `dim=1` takes the sum across the columns. # + def softmax(x): ## TODO: Implement the softmax function here a = torch.exp(x) # print(a.shape) b = torch.exp(x).sum(dim=1).view(-1,1) # print(b.shape) return a/b # Here, out should be the output of the network in the previous excercise with shape (64,10) probabilities = softmax(out) # Does it have the right shape? Should be (64, 10) print(probabilities.shape) # Does it sum to 1? print(probabilities.sum(dim=1)) # - # ## Building networks with PyTorch # # PyTorch provides a module `nn` that makes building networks much simpler. Here I'll show you how to build the same one as above with 784 inputs, 256 hidden units, 10 output units and a softmax output. from torch import nn class Network(nn.Module): def __init__(self): super().__init__() # Inputs to hidden layer linear transformation self.hidden = nn.Linear(784, 256) # Output layer, 10 units - one for each digit self.output = nn.Linear(256, 10) # Define sigmoid activation and softmax output self.sigmoid = nn.Sigmoid() self.softmax = nn.Softmax(dim=1) def forward(self, x): # Pass the input tensor through each of our operations x = self.hidden(x) x = self.sigmoid(x) x = self.output(x) x = self.softmax(x) return x # Let's go through this bit by bit. # # ```python # class Network(nn.Module): # ``` # # Here we're inheriting from `nn.Module`. Combined with `super().__init__()` this creates a class that tracks the architecture and provides a lot of useful methods and attributes. It is mandatory to inherit from `nn.Module` when you're creating a class for your network. The name of the class itself can be anything. # # ```python # self.hidden = nn.Linear(784, 256) # ``` # # This line creates a module for a linear transformation, $x\mathbf{W} + b$, with 784 inputs and 256 outputs and assigns it to `self.hidden`. The module automatically creates the weight and bias tensors which we'll use in the `forward` method. You can access the weight and bias tensors once the network (`net`) is created with `net.hidden.weight` and `net.hidden.bias`. # # ```python # self.output = nn.Linear(256, 10) # ``` # # Similarly, this creates another linear transformation with 256 inputs and 10 outputs. # # ```python # self.sigmoid = nn.Sigmoid() # self.softmax = nn.Softmax(dim=1) # ``` # # Here I defined operations for the sigmoid activation and softmax output. Setting `dim=1` in `nn.Softmax(dim=1)` calculates softmax across the columns. # # ```python # def forward(self, x): # ``` # # PyTorch networks created with `nn.Module` must have a `forward` method defined. It takes in a tensor `x` and passes it through the operations you defined in the `__init__` method. # # ```python # x = self.hidden(x) # x = self.sigmoid(x) # x = self.output(x) # x = self.softmax(x) # ``` # # Here the input tensor `x` is passed through each operation and reassigned to `x`. We can see that the input tensor goes through the hidden layer, then a sigmoid function, then the output layer, and finally the softmax function. It doesn't matter what you name the variables here, as long as the inputs and outputs of the operations match the network architecture you want to build. The order in which you define things in the `__init__` method doesn't matter, but you'll need to sequence the operations correctly in the `forward` method. # # Now we can create a `Network` object. # Create the network and look at it's text representation model = Network() model # You can define the network somewhat more concisely and clearly using the `torch.nn.functional` module. This is the most common way you'll see networks defined as many operations are simple element-wise functions. We normally import this module as `F`, `import torch.nn.functional as F`. # + import torch.nn.functional as F class Network(nn.Module): def __init__(self): super().__init__() # Inputs to hidden layer linear transformation self.hidden = nn.Linear(784, 256) # Output layer, 10 units - one for each digit self.output = nn.Linear(256, 10) def forward(self, x): # Hidden layer with sigmoid activation x = F.sigmoid(self.hidden(x)) # Output layer with softmax activation x = F.softmax(self.output(x), dim=1) return x # - # ### Activation functions # # So far we've only been looking at the sigmoid activation function, but in general any function can be used as an activation function. The only requirement is that for a network to approximate a non-linear function, the activation functions must be non-linear. Here are a few more examples of common activation functions: Tanh (hyperbolic tangent), and ReLU (rectified linear unit). # # <img src="assets/activation.png" width=700px> # # In practice, the ReLU function is used almost exclusively as the activation function for hidden layers. # ### Your Turn to Build a Network # # <img src="assets/mlp_mnist.png" width=600px> # # > **Exercise:** Create a network with 784 input units, a hidden layer with 128 units and a ReLU activation, then a hidden layer with 64 units and a ReLU activation, and finally an output layer with a softmax activation as shown above. You can use a ReLU activation with the `nn.ReLU` module or `F.relu` function. # # It's good practice to name your layers by their type of network, for instance 'fc' to represent a fully-connected layer. As you code your solution, use `fc1`, `fc2`, and `fc3` as your layer names. # + ## Your solution here ## Your solution here import torch.nn.functional as F class MyNetwork(nn.Module): def __init__(self): super().__init__() # inputs to first hidden layer linear transformation self.fc1 = nn.Linear(784, 128) # inputs to second hidden layer linear transformation self.fc2 = nn.Linear(128, 64) # Output layer, 10 units - one for each digit self.output = nn.Linear(64, 10) def forward(self, x): # Hidden layer 1 with relu activation x = F.relu(self.fc1(x)) # Hidden layer 2 with relu activation x = F.relu(self.fc2(x)) # Output layer with softmax activation x = F.softmax(self.output(x), dim=1) return x # Create the network and look at it's text representation model = MyNetwork() model # - # ### Initializing weights and biases # # The weights and such are automatically initialized for you, but it's possible to customize how they are initialized. The weights and biases are tensors attached to the layer you defined, you can get them with `model.fc1.weight` for instance. print(model.fc1.weight) print(model.fc1.bias) # For custom initialization, we want to modify these tensors in place. These are actually autograd *Variables*, so we need to get back the actual tensors with `model.fc1.weight.data`. Once we have the tensors, we can fill them with zeros (for biases) or random normal values. # Set biases to all zeros model.fc1.bias.data.fill_(0) # sample from random normal with standard dev = 0.01 model.fc1.weight.data.normal_(std=0.01) # ### Forward pass # # Now that we have a network, let's see what happens when we pass in an image. # + # Grab some data dataiter = iter(trainloader) images, labels = dataiter.next() # Resize images into a 1D vector, new shape is (batch size, color channels, image pixels) images.resize_(64, 1, 784) # or images.resize_(images.shape[0], 1, 784) to automatically get batch size # Forward pass through the network img_idx = 0 ps = model.forward(images[img_idx,:]) img = images[img_idx] helper.view_classify(img.view(1, 28, 28), ps) # - # As you can see above, our network has basically no idea what this digit is. It's because we haven't trained it yet, all the weights are random! # # ### Using `nn.Sequential` # # PyTorch provides a convenient way to build networks like this where a tensor is passed sequentially through operations, `nn.Sequential` ([documentation](https://pytorch.org/docs/master/nn.html#torch.nn.Sequential)). Using this to build the equivalent network: # + # Hyperparameters for our network input_size = 784 hidden_sizes = [128, 64] output_size = 10 # Build a feed-forward network model = nn.Sequential(nn.Linear(input_size, hidden_sizes[0]), nn.ReLU(), nn.Linear(hidden_sizes[0], hidden_sizes[1]), nn.ReLU(), nn.Linear(hidden_sizes[1], output_size), nn.Softmax(dim=1)) print(model) # Forward pass through the network and display output images, labels = next(iter(trainloader)) images.resize_(images.shape[0], 1, 784) ps = model.forward(images[0,:]) helper.view_classify(images[0].view(1, 28, 28), ps) # - # Here our model is the same as before: 784 input units, a hidden layer with 128 units, ReLU activation, 64 unit hidden layer, another ReLU, then the output layer with 10 units, and the softmax output. # # The operations are available by passing in the appropriate index. For example, if you want to get first Linear operation and look at the weights, you'd use `model[0]`. print(model[0]) model[0].weight # You can also pass in an `OrderedDict` to name the individual layers and operations, instead of using incremental integers. Note that dictionary keys must be unique, so _each operation must have a different name_. from collections import OrderedDict model = nn.Sequential(OrderedDict([ ('fc1', nn.Linear(input_size, hidden_sizes[0])), ('relu1', nn.ReLU()), ('fc2', nn.Linear(hidden_sizes[0], hidden_sizes[1])), ('relu2', nn.ReLU()), ('output', nn.Linear(hidden_sizes[1], output_size)), ('softmax', nn.Softmax(dim=1))])) model # Now you can access layers either by integer or the name print(model[0]) print(model.fc1) # In the next notebook, we'll see how we can train a neural network to accuractly predict the numbers appearing in the MNIST images.
17,423
/assignment3/assignment3.ipynb
074967e2b369b02f275169bac1bcf8264774db09
[]
no_license
Weijiang-Xiong/DLcourse
https://github.com/Weijiang-Xiong/DLcourse
3
0
null
null
null
null
Jupyter Notebook
false
false
.py
162,308
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # name: python3 # --- # + [markdown] id="vIv32qoYkoCO" # ## Global Terrorism Database # + [markdown] id="n-eYfhnokz0b" # ### GTD # + colab={"base_uri": "https://localhost:8080/"} id="OSPLoKjTOITa" outputId="af1be95b-68fe-48cd-ad0d-19d1849a36d1" from google.colab import drive drive.mount("/content/gdrive") # + colab={"base_uri": "https://localhost:8080/"} id="SPjF0a4sOoqH" outputId="d3932e45-2bf1-4257-d46c-6e762d87c705" import pandas as pd df = pd.read_csv('/content/gdrive/My Drive/CPE-695/Crime Data/GTD/globalterrorismdb.csv') # + [markdown] id="H5Hd-m1blImz" # ### Understanding the dataframe # # # + colab={"base_uri": "https://localhost:8080/"} id="pS_-LcFhiRJW" outputId="6c4da565-be83-4f2c-c3ea-c046f25a94ea" # GTD pd.set_option('display.max_columns', None) df.head() # + colab={"base_uri": "https://localhost:8080/"} id="ndVvaW9Fix1w" outputId="bd14e7f7-6687-415f-ef6e-4823c9349bde" type(df) # + colab={"base_uri": "https://localhost:8080/"} id="EeJ9erKFi9b-" outputId="2bde5f23-5d1f-4b27-8415-e76b7009828f" # Datatypes pd.set_option('display.max_rows', None) df.dtypes # + colab={"base_uri": "https://localhost:8080/"} id="OmqbXSyrjCqr" outputId="dcfc1774-e89a-42b5-8098-032ff8399e2e" # Basic statistical details df.describe() # + colab={"base_uri": "https://localhost:8080/"} id="u8mzuw_1jFD7" outputId="6af924bb-e2b4-42eb-e016-ebb8a4c96341" # Dataframe information df.info() # + colab={"base_uri": "https://localhost:8080/"} id="3Egt___5jK09" outputId="784c1944-53c9-4598-d6db-e9d5bd5dd112" # Range index of the dataframe df.index # + colab={"base_uri": "https://localhost:8080/"} id="36XO8wpJjNby" outputId="fcac652f-94ca-4cec-e2e9-e65069b613e6" # Length of the dataframe len(df) # + colab={"base_uri": "https://localhost:8080/"} id="WXsqyQ4Hf6B0" outputId="0a3c3302-5c9e-404d-8fe3-b3c5e43c4a3c" # Checking if there are any missing values in the dataframe df.isna().any().any() # + colab={"base_uri": "https://localhost:8080/"} id="T2yZWqirfb36" outputId="7c115432-99be-4a41-a32b-723269bf0db2" # Counting the number of missing values in the dataframe df.isna().sum().sum() # + colab={"base_uri": "https://localhost:8080/"} id="vPFWahoWXV7Z" outputId="b1b84143-a4e9-4928-e775-fa0329337507" # Identifying columns with missing values pd.options.display.max_seq_items = 200 df.loc[:, df.isnull().any()].columns # + colab={"base_uri": "https://localhost:8080/"} id="yVD3Nx4VlNAx" outputId="786a9713-c163-464f-e261-1f277fad67ad" # Counting the number of missing values in each column of the dataframe pd.set_option('display.max_rows', None) df.isna().sum() # + colab={"base_uri": "https://localhost:8080/"} id="slB6XnkLc-Ee" outputId="2b40e072-b4ab-4faf-f934-6073820fe610" # The relative frequency of missings per column pd.set_option('display.max_rows', None) df.isna().sum()/(len(df))*100 # + [markdown] id="WbdFZrAcs-nj" # ### Exploratory Data Analysis # + id="CFthpA49XWVk" import matplotlib.pyplot as plt import matplotlib.patches as mpatches import seaborn as sb import io # + [markdown] id="x7EgQw0nu0et" # #### General Analysis # + colab={"base_uri": "https://localhost:8080/"} id="nQa48HtuvMHY" outputId="b1e36c9d-dd6d-4555-de7b-a2cd46e7dd2b" pd.set_option('display.max_columns', None) df.head() # + colab={"base_uri": "https://localhost:8080/"} id="M-ys77uw3_kA" outputId="c578b212-5305-4cd1-ca8d-cf329ca2ae01" print('Country with Highest Terrorist Attacks:',df['country_txt'].value_counts().index[0]) print('Region with Highest Terrorist Attacks:',df['region_txt'].value_counts().index[0]) print('Maximum people killed in an attack:',df['nkill'].max(),'that took place in',df.loc[df['nkill'].idxmax()].country_txt) print('Maximum people injured in an attack:',df['nwound'].max(),'that took place in',df.loc[df['nwound'].idxmax()].country_txt,'in',df.loc[df['nwound'].idxmax()].iyear) df['casualities']=df['nkill']+df['nwound'] print('Maximum casualities in an attack:',df['casualities'].max(),'that took place in',df.loc[df['casualities'].idxmax()].country_txt) print('Maximum property damage in an attack (in USD):',df['propvalue'].max(),'that took place in',df.loc[df['propvalue'].idxmax()].country_txt) print('Most common weapon type:',df['weaptype1_txt'].value_counts().index[0]) print('Most common target type:',df['targtype1_txt'].value_counts().index[0]) # + colab={"base_uri": "https://localhost:8080/"} id="U-sFpMwbWyAI" outputId="a54cc5ba-1a18-4874-935d-535f3cace141" plt.subplots(figsize=(15,10)) sb.set(font_scale=1.3) sb.set(style='darkgrid', rc={"grid.linewidth": 0.1}) plt_nattacks = sb.countplot(x='iyear', data=df, palette='seismic', edgecolor=sb.color_palette('dark',7)) plt.xlabel('Year', fontsize = 14) plt.ylabel('Count', fontsize = 14) plt.xticks(rotation=60) plt.title('Number Of Terrorist Activities by Year', fontsize = 18) plt.show() # + [markdown] id="eZPJQGoLc-im" # **Inference**: Terrorism has only increased through the years. # # * 1970 - 1992: increase in terror activity # * 1994 - 2004: fluctuating activity # * 2004 - 2014: steep rise in terror activity # * 2015 - 2018: decrease in terror activity in relation to the period (2004 - 2014) # + colab={"base_uri": "https://localhost:8080/"} id="gTw875BufJO7" outputId="380fc0f8-d818-46dc-a58d-6578b82fa6a2" plt.subplots(figsize=(15,6)) sb.set(font_scale=1.3) sb.set(style='darkgrid', rc={"grid.linewidth": 0.1}) plt_nattacks = sb.countplot(y='region_txt', data=df, palette='nipy_spectral', edgecolor=sb.color_palette('dark',7)) plt.xlabel('Region', fontsize = 14) plt.ylabel('Count', fontsize = 14) plt.xticks(rotation=0) plt.title('Number Of Terrorist Activities by Region', fontsize = 18) plt.tight_layout(pad=4.0) plt.show() # + [markdown] id="WHhOHLHJfUVW" # **Inference**: The following regions are prone to terror the most, # # * Middle East & North Africa # * South Asia # * Sub-Saharan Africa # * South America # + colab={"base_uri": "https://localhost:8080/"} id="7ZR7XWHNvDGV" outputId="b4c27dd5-c7c2-4616-fcaa-0e2bc3f6de6a" pd.crosstab(df.iyear, df.region_txt).plot.line(color=sb.color_palette('tab20', 10), linewidth=2.5) fig = plt.gcf() fig.set_size_inches(15, 10) plt.xlabel('Year', fontsize = 14) fig.suptitle('Trends in Terror Activity by Region', fontsize = 18) plt.legend(title='Region') plt.subplots_adjust(top=0.95) plt.show() # + [markdown] id="hgjiAHP3f0Qi" # **Inference**: This plot reinforces inferences drawn from the previous ones and provides the following insights in addition, # # * South America dominated the world of terror during the period (1980 - 1993); it saw a steep decrease in terror activity following this period. This is an interesting trend because the region has managed to reduce terror activity over the years. # * Middle East & North Africa and South Asia see a sharp, amplified increase in terror activity during the period (2000 - 2014) # * Sub-Saharan Africa sees periods of fluctuating terror over the years with a sharp increase (on average) in terror during the period (2005 - 2018) # + colab={"base_uri": "https://localhost:8080/"} id="vctJP5ShvGit" outputId="622edd93-06bb-4b77-ef7f-743c5d12cc7e" fig, ax = plt.subplots(figsize=(15, 5)) sb.set(font_scale=1.25) w2 = sb.countplot(y='country_txt', data=df, palette='gist_ncar',order=df['country_txt'].value_counts()[:10].index) w2.set(ylabel='Country', xlabel='Terror Count') ax.tick_params(labelrotation=0) fig.autofmt_xdate() fig.tight_layout() plt.suptitle('Countries most affected by Terrorism', fontsize = 18) plt.subplots_adjust(top=0.92) plt.show() # + [markdown] id="zFzM2D2skwtH" # **Inference**: The following countries have suffered the most, # # * Iraq # * Pakistan # * Afghanistan # * India # * Colombia # * Philippines # + [markdown] id="CRPwI7tSxKsU" # #### Terror Groups # + colab={"base_uri": "https://localhost:8080/"} id="eJxZjx7bxsBy" outputId="65b2db78-037b-4ad8-805e-8fbc6cd031de" sb.scatterplot(x=df['gname'].value_counts()[1:15].values, y=df['gname'].value_counts()[1:15].index, s=200) sb.set(font_scale=1.3) plt.xticks(rotation=0) fig=plt.gcf() fig.set_size_inches(10, 5) plt.title('Most Notorious Terror Groups') plt.show() # + [markdown] id="6r4yfngJlO-R" # **Inference**: The following are the most notorious terrorist organizations, # # * Taliban # * Islamic State of Iraq and the Levant (ISIL) # * Shining Path (ISL) # * Al-Shabaab # * Farabundo Marti National Liberation Front (FMLN) # * New People's Army # * Irish Republican Army (IRA) # + colab={"base_uri": "https://localhost:8080/"} id="r9YwEhQoyAvR" outputId="5bb24e51-d062-4e8d-b850-30458ad3deb9" fig, ax = plt.subplots(nrows=3, ncols=1, figsize=(20, 12)) sb.set(font_scale=1.5) sb.set(style='darkgrid', rc={"grid.linewidth": 0.1}) g1 = sb.countplot(y='gname', data=df, palette='bright',order=df['gname'].value_counts().index[:7], ax=ax[0]) g2 = sb.countplot(y='gname2', data=df, palette='muted',order=df['gname2'].value_counts().index[:7], ax=ax[1]) g3 = sb.countplot(y='gname3', data=df, palette='pastel',order=df['gname3'].value_counts().index[:7], ax=ax[2]) g1.set(ylabel='Primary Perpetrators of Terror', xlabel='Incident Count') g2.set(ylabel='Secondary Perpetrators of Terror', xlabel='Incident Count') g3.set(ylabel='Tertiary Perpetrators of Terror', xlabel='Incident Count') for ax in fig.axes: ax.tick_params(labelrotation=0) fig.tight_layout(pad=5.0) plt.suptitle('Notorious Terror Groups, Multiple Perpetrators', fontsize = 18) plt.subplots_adjust(top=0.95) plt.show() # + [markdown] id="HU8RPMWurgAa" # **Background**: These plots apply individually (standalone) and also when responsibility for an attack is attributed to more than one perpetrator. Primary perpetrators of terror are terror groups that are most notorious for organizing a terror attack. Secondary and tertiary perpetrator groups are terror groups that either aided or contributed to an attack. # # NOTE: Multiple perpetrator group attributions do not necessarily indicate that perpetrator groups collaborated to execute an attack. This could represent competing attributions, competing claims of responsibility, competing accusations, or a combination of these. # # **Inference**: Most notorious groups of terror, # # * Taliban # * Islamic State of Iraq and the Levant (ISIL) # * Shining Path (ISL) # * Al-Shabaab # * Farabundo Marti National Liberation Front (FMLN) # * New People's Army (NPA) # * Khorasan Chapter of the Islamic State # * Al-Nusrah Front # * Lashkar-e-Taiba (LeT) # * Badr Brigades # * National Liberation Army of Colombia # * National Democratic Alliance Army (NDAA-ESSA) # + colab={"base_uri": "https://localhost:8080/"} id="3KBBSqfT3B-u" outputId="7c221938-db18-49d4-e7db-bcaa116a0bab" df_filter = df[df['gname'] == "Taliban"] df_filter = df_filter.groupby(['region_txt','iyear'])['gname'].count().unstack() df_filter = df_filter.sort_values([2018], ascending=False) df_filter = df_filter.fillna(0) f, ax = plt.subplots(figsize=(20, 5)) g = sb.heatmap(df_filter[0:3],cmap='YlGnBu',linewidths=.6,vmin=0.01) plt.xlabel('Year', fontsize = 14) plt.ylabel('Region', fontsize = 14) fig = plt.gcf() fig.suptitle('Taliban, Region of Operation', fontsize = 18) plt.show() # + colab={"base_uri": "https://localhost:8080/"} id="WZWtg2b_ztAz" outputId="cff5b3c2-c037-477d-d768-e13faf8e9c7b" df_filter = df[df['gname'] == "Taliban"] df_filter = df_filter.groupby(['country_txt','iyear'])['gname'].count().unstack() df_filter = df_filter.sort_values([2018], ascending=False) df_filter = df_filter.fillna(0) f, ax = plt.subplots(figsize=(20, 5)) g = sb.heatmap(df_filter[0:3],cmap='YlGnBu',linewidths=.6,vmin=0.01) plt.xlabel('Year', fontsize = 14) plt.ylabel('Country', fontsize = 14) fig = plt.gcf() fig.suptitle('Countries affected by Taliban', fontsize = 18) plt.show() # + [markdown] id="bL3dZCRrv4s5" # **Inference**: Taliban operates in South Asia. It predominantly wages terror in the country of Afghanistan. # + colab={"base_uri": "https://localhost:8080/"} id="2Z8Fz_4J3TlM" outputId="a1cf0530-bc86-4312-fec7-0e7965d37918" df_filter = df[df['gname'] == "Islamic State of Iraq and the Levant (ISIL)"] df_filter = df_filter.groupby(['region_txt','iyear'])['gname'].count().unstack() df_filter = df_filter.sort_values([2018], ascending=False) df_filter = df_filter.fillna(0) f, ax = plt.subplots(figsize=(20, 5)) g = sb.heatmap(df_filter[0:3],cmap='YlGnBu',linewidths=.6,vmin=0.01) plt.xlabel('Year', fontsize = 14) plt.ylabel('Region', fontsize = 14) fig = plt.gcf() fig.suptitle('Islamic State of Iraq and the Levant (ISIL), Region of Operation', fontsize = 18) plt.show() # + colab={"base_uri": "https://localhost:8080/"} id="ArfUB2Dt2dL_" outputId="e680b37b-e254-4665-c29e-2ebb52a98b51" df_filter = df[df['gname'] == "Islamic State of Iraq and the Levant (ISIL)"] df_filter = df_filter.groupby(['country_txt','iyear'])['gname'].count().unstack() df_filter = df_filter.sort_values([2018], ascending=False) df_filter = df_filter.fillna(0) f, ax = plt.subplots(figsize=(20, 5)) g = sb.heatmap(df_filter[0:3],cmap='YlGnBu',linewidths=.6,vmin=0.01) plt.xlabel('Year', fontsize = 14) plt.ylabel('Country', fontsize = 14) fig = plt.gcf() fig.suptitle('Countries affected by Islamic State of Iraq and the Levant (ISIL)', fontsize = 18) plt.show() # + [markdown] id="SPIuFNC-wjqo" # **Inference**: Islamic State of Iraq and the Levant (ISIL) operates in Middle East & North Africa. It predominantly wages terror in Iraq and Syria. # + colab={"base_uri": "https://localhost:8080/"} id="qHiPjXH43tx0" outputId="6dfbb823-f824-406b-a87d-e1af58e0d9e1" df_filter = df[df['gname'] == "Shining Path (SL)"] df_filter = df_filter.groupby(['region_txt','iyear'])['gname'].count().unstack() df_filter = df_filter.sort_values([2018], ascending=False) df_filter = df_filter.fillna(0) f, ax = plt.subplots(figsize=(30, 5)) g = sb.heatmap(df_filter[0:3],cmap='YlGnBu',linewidths=.6,vmin=0.01) plt.xlabel('Year', fontsize = 14) plt.ylabel('Region', fontsize = 14) fig = plt.gcf() fig.suptitle('Shining Path (SL), Region of Operation', fontsize = 18) plt.show() # + colab={"base_uri": "https://localhost:8080/"} id="4jaQkErq2kdU" outputId="e35001a1-2bed-403c-f228-b3f758e27340" df_filter = df[df['gname'] == "Shining Path (SL)"] df_filter = df_filter.groupby(['country_txt','iyear'])['gname'].count().unstack() df_filter = df_filter.sort_values([2018], ascending=False) df_filter = df_filter.fillna(0) f, ax = plt.subplots(figsize=(30, 5)) g = sb.heatmap(df_filter[0:3],cmap='YlGnBu',linewidths=.6,vmin=0.01) plt.xlabel('Year', fontsize = 14) plt.ylabel('Country', fontsize = 14) ax.tick_params(labelrotation=0) fig.tight_layout() fig = plt.gcf() fig.suptitle('Countries affected by Shining Path (SL)', fontsize = 18) plt.show() # + [markdown] id="N_kFi9KmxBhz" # **Inference**: Shining Path (ISL) operates in South America. It predominantly wages terror in Peru. # + [markdown] id="tzggCbOD46-k" # #### Terror Targets # + colab={"base_uri": "https://localhost:8080/"} id="-eYhmg265Mxu" outputId="69051884-fce5-4527-b0d8-154b70f4817a" fig, ax = plt.subplots(nrows=1, ncols=3, figsize=(20, 10)) sb.set(font_scale=1.25) sb.set(style='darkgrid', rc={"grid.linewidth": 0.1}) a1 = sb.countplot(y='targtype1_txt', data=df, palette='bright',order=df['targtype1_txt'].value_counts().index, ax=ax[0]) a2 = sb.countplot(y='targtype2_txt', data=df, palette='muted',order=df['targtype2_txt'].value_counts().index, ax=ax[1]) a3 = sb.countplot(y='targtype3_txt', data=df, palette='pastel',order=df['targtype3_txt'].value_counts().index, ax=ax[2]) a1.set(xlabel='Primary Target Types', ylabel='Count') a2.set(xlabel='Secondary Target Types', ylabel='Count') a3.set(xlabel='Tertiary Target Types', ylabel='Count') for ax in fig.axes: ax.tick_params(labelrotation=0) fig.tight_layout(pad=4.0) fig.autofmt_xdate() plt.suptitle('Terror Target Types, Multiple Targets', fontsize = 18) plt.subplots_adjust(top=0.93) plt.show() # + [markdown] id="IBbpaDOkxyLI" # **Background**: The target/victim type field captures the general type of target/victim. When a victim is attacked specifically because of his or her relationship to a particular person, such as a prominent figure, the target type reflects that motive. For example, if a family member of a government official is attacked because of his or her relationship to that individual, the type of target is “government.” This variable consists of 22 different categories. # # **Inference**: Primary Terror Targets, # # * Private Citizens & Property # * Military # * Police # * Government (General) # * Business # * Transportation # # Secondary and Tertiary Terror Targets are second and third target types in terror attacks or incidents. The field target type contains information on both intended targets and incidental bystanders, and therefore, intentionality should be carefully considered in each case. # + colab={"base_uri": "https://localhost:8080/"} id="AzMPBZJb5bdp" outputId="c460e028-e223-460f-a4a1-fb74258ca757" df_filter = df[df['targtype1_txt'] == "Private Citizens & Property"] df_filter = df_filter.groupby(['country_txt','iyear'])['targtype1_txt'].count().unstack() df_filter = df_filter.sort_values([2018], ascending=False) df_filter = df_filter.fillna(0) f, ax = plt.subplots(figsize=(15, 10)) g = sb.heatmap(df_filter[0:10],cmap='Blues',linewidths=.6,vmin=0.01) plt.xlabel('Year', fontsize = 14) plt.ylabel('Country', fontsize = 14) fig = plt.gcf() fig.suptitle('Time Series Analysis for Target Type: Private Citizens & Property', fontsize = 18) plt.show() # + [markdown] id="QYGGupPuzLrH" # **Inference**: Private Citizens & Property in the following countries suffered the maximum amount of damage, # # * Iraq # * India # * Pakistan # * Nigeria # * Afghanistan # + colab={"base_uri": "https://localhost:8080/"} id="QQN0DJal6AKY" outputId="11f5a896-ad8b-4182-9449-90a68899493a" df_filter = df[df['targtype1_txt'] == "Military"] df_filter = df_filter.groupby(['country_txt','iyear'])['targtype1_txt'].count().unstack() df_filter = df_filter.sort_values([2018], ascending=False) df_filter = df_filter.fillna(0) f, ax = plt.subplots(figsize=(15, 10)) g = sb.heatmap(df_filter[0:10],cmap='BuPu',linewidths=.6,vmin=0.01) plt.xlabel('Year', fontsize = 14) plt.ylabel('Country', fontsize = 14) fig = plt.gcf() fig.suptitle('Time Series Analysis for Target Type: Military', fontsize = 18) plt.show() # + [markdown] id="hWrOcCRtzqG4" # **Inference**: Military groups targeted the most by terror groups belong to the following countries, # # * Afghanistan # * Iraq # * Somalia # * Philippines # * Pakistan # * India # * Yemen # + colab={"base_uri": "https://localhost:8080/"} id="o5mc1wZS5823" outputId="8c343fa0-aaa6-4221-9ee6-c2482a986163" df_filter = df[df['targtype1_txt'] == "Police"] df_filter = df_filter.groupby(['country_txt','iyear'])['targtype1_txt'].count().unstack() df_filter = df_filter.sort_values([2018], ascending=False) df_filter = df_filter.fillna(0) f, ax = plt.subplots(figsize=(15, 10)) g = sb.heatmap(df_filter[0:10],cmap='Greens',linewidths=.6,vmin=0.01) plt.xlabel('Year', fontsize = 14) plt.ylabel('Country', fontsize = 14) fig = plt.gcf() fig.suptitle('Time Series Analysis for Target Type: Police', fontsize = 18) plt.show() # + [markdown] id="oLGgstNa0IlC" # **Inference**: Police groups targeted the most by terror groups belong to the following countries, # # * Afghanistan # * Iraq # * Pakistan # * India # * Colombia # + colab={"base_uri": "https://localhost:8080/"} id="uGQXmwv46F5-" outputId="7d5f763d-aac2-4f52-becc-cc2d56839b07" df_filter = df[df['targtype1_txt'] == "Government (General)"] df_filter = df_filter.groupby(['country_txt','iyear'])['targtype1_txt'].count().unstack() df_filter = df_filter.sort_values([2018], ascending=False) df_filter = df_filter.fillna(0) f, ax = plt.subplots(figsize=(15, 10)) g = sb.heatmap(df_filter[0:10],cmap='Purples',linewidths=.6,vmin=0.01) plt.xlabel('Year', fontsize = 14) plt.ylabel('Country', fontsize = 14) fig = plt.gcf() fig.suptitle('Time Series Analysis for Target Type: Government (General)', fontsize = 18) plt.show() # + [markdown] id="OW5DB56Z1irO" # **Inference**: Governments of the following countries suffered the most damage due to terrorism, # # * Afghanistan # * Philippines # * Iraq # * Yemen # * Somalia # * India # * Pakistan # * Nigeria # * Yemen # * Mali # + colab={"base_uri": "https://localhost:8080/"} id="hOhAgPjC2Vaz" outputId="d7935ebb-3101-4d3f-ee83-1f1d4ad3a2b5" df_filter = df[df['targtype1_txt'] == "Government (Diplomatic)"] df_filter = df_filter.groupby(['country_txt','iyear'])['targtype1_txt'].count().unstack() df_filter = df_filter.sort_values([2018], ascending=False) df_filter = df_filter.fillna(0) f, ax = plt.subplots(figsize=(15, 10)) g = sb.heatmap(df_filter[0:10],cmap='Reds',linewidths=.6,vmin=0.01) plt.xlabel('Year', fontsize = 14) plt.ylabel('Country', fontsize = 14) fig = plt.gcf() fig.suptitle('Time Series Analysis for Target Type: Government (Diplomatic)', fontsize = 18) plt.show() # + [markdown] id="kivyueFK0iWX" # **Inference**: Attacks carried out against foreign missions, including embassies, consulates, etc. in the following countries make them the most vulnerable to terror attacks on Government personnel or property etc. # # * Mali # * Central African Republic # * Democratic Republic of the Congo # * Yemen # * Somalia # * South Sudan # * Afghanistan # * Iraq # * Pakistan # * Nigeria # + colab={"base_uri": "https://localhost:8080/"} id="Bf85xqec6L9T" outputId="e2c0ee05-a64b-4cd9-cf61-cb3223111bd0" df_filter = df[df['targtype1_txt'] == "Business"] df_filter = df_filter.groupby(['country_txt','iyear'])['targtype1_txt'].count().unstack() df_filter = df_filter.sort_values([2018], ascending=False) df_filter = df_filter.fillna(0) f, ax = plt.subplots(figsize=(15, 10)) g = sb.heatmap(df_filter[0:10],cmap='Oranges',linewidths=.6,vmin=0.01) plt.xlabel('Year', fontsize = 14) plt.ylabel('Country', fontsize = 14) fig = plt.gcf() fig.suptitle('Time Series Analysis for Target Type: Business', fontsize = 18) plt.show() # + [markdown] id="1gr4Q6ha2xZW" # **Inference**: Businesses in the following countries suffered the most due to terrorism, # # * India # * Iraq # * Philippines # * Afghanistan # * Thailand # * Chile # * Libya # + [markdown] id="P5Z7eSJM67u7" # #### Attack Types and Weaponry # + colab={"base_uri": "https://localhost:8080/"} id="4O4_CEc17B83" outputId="384494ef-fb68-4af5-feda-ebe89394dec6" fig, ax = plt.subplots(nrows=3, ncols=1, figsize=(20, 10)) sb.set(font_scale=1.25) sb.set(style='darkgrid', rc={"grid.linewidth": 0.1}) a1 = sb.countplot(y='attacktype1_txt', data=df, palette='bright',order=df['attacktype1_txt'].value_counts().index, ax=ax[0]) a2 = sb.countplot(y='attacktype2_txt', data=df, palette='muted',order=df['attacktype2_txt'].value_counts().index, ax=ax[1]) a3 = sb.countplot(y='attacktype3_txt', data=df, palette='pastel',order=df['attacktype3_txt'].value_counts().index, ax=ax[2]) a1.set(ylabel='Primary Attack Types') a2.set(ylabel='Secondary Attack Types') a3.set(ylabel='Tertiary Attack Types') for ax in fig.axes: ax.tick_params(labelrotation=0) fig.tight_layout(pad=4.0) plt.suptitle('Multiple Attack Methods used by Terrorists', fontsize = 18) plt.subplots_adjust(top=0.93) plt.show() # + [markdown] id="CjmF2m2JwJcL" # **Background**: This field captures the general method of attack and often reflects the broad class of tactics used. It consists of nine categories, given below. Up to three attack types can be recorded for each incident. Typically, only one attack type is recorded for each incident unless the attack is comprised of a sequence of events. When multiple attack types may apply, the most appropriate value is determined based on the hierarchy below. # # Attack Type Hierarchy: # * Assassination # * Hijacking # * Kidnapping # * Barricade Incident # * Bombing/Explosion # * Armed Assault # * Unarmed Assault # * Facility/Infrastructure Attack # * Unknown # # **Inference**: As can be inferred from the plots above, the most popular attack types used by terrorists are (in descending order), # # * Bombing/Explossion # * Armed Assault # * Assassination # * Hostage Taking (Kidnapping) # * Facility/Infrastructure Attack # * Unarmed Assault # + colab={"base_uri": "https://localhost:8080/"} id="E4faOGaQ7KuR" outputId="46651167-081a-4e98-d57c-4d4591b0d0b0" pd.crosstab(df.targtype1_txt, df.attacktype1_txt).plot.barh(stacked=True, width=1.0, color=sb.color_palette('dark', 10)) fig = plt.gcf() fig.set_size_inches(20, 10) plt.ylabel('Target Type', fontsize = 14) fig.suptitle('Common Attack Types used for Prominent Terror Targets', fontsize = 18) plt.legend(title='Attack Types') plt.subplots_adjust(top=0.93) plt.show() # + [markdown] id="ZIgV-JM_xFtM" # **Inference**: The plot is self-evident. For example, it can be inferred that the three most popular attack types on "Private Citizens & Property" are, # # * Bombing/Explosion # * Armed Assault # * Hostage Taking (Kidnapping) # + colab={"base_uri": "https://localhost:8080/"} id="uMoxuMwntnil" outputId="c8515957-25ba-4628-94af-71c5d6bb3825" sb.set(font_scale=1.25) region_dictionary = {3: 'South America', 6: 'South Asia', 10: 'Middle East and North Africa'} def generate_graph(by_region_list): fig = plt.figure(figsize=(15,50)) i = 1 for element in by_region_list: ax1 = fig.add_subplot(11,2,i) ax1.set(title = 'Attack Region: %s ' % region_dictionary[element[2]], ylabel = 'Attack Count', xlabel = 'Year') #entering data ax1.plot(element[0].index, element[0].eventid, label = 'Successfull attacks' ) ax1.plot(element[1].index, element[1].eventid, label = 'Failed attacks' ) i+=1 #add legend ax1.legend(loc = 'upper center', frameon = True, edgecolor = 'black', bbox_to_anchor =(-0.1,-0.4)) plt.subplots_adjust(top=0.95) ax1.tick_params(labelrotation=30) fig.tight_layout() plt.show() def by_region(): for region_number in region_dictionary: region_df = df[(df.region == region_number)] #for each region group data by year region_grouped_success = region_df[(region_df.success == 1)].groupby('iyear').count() #filter on success and group by year region_grouped_failure = region_df[(region_df.success == 0)].groupby('iyear').count() #filter on failure and group by year by_region_list.append([region_grouped_success, region_grouped_failure, region_number]) #create line plot for region grouped by year generate_graph(by_region_list) by_region_list = [] by_region() # + [markdown] id="ACJ_l6yL9cyH" # **Inference**: Plots show no clear trend through time. South Asia and Middle & North Africa display strong increase in terror activity from the year 2005 and beyond. South America has a similar increase during the years 1970 to 1994. # + colab={"base_uri": "https://localhost:8080/"} id="YhW5OJF0B59L" outputId="2102b762-43ed-479f-a3b0-2c0e36e7da44" fig, ax = plt.subplots(figsize=(10, 15)) sb.set(font_scale=1.25) w1 = sb.countplot(y='weaptype1_txt', hue='weapsubtype1_txt', data=df, palette='bright',order=df['weaptype1_txt'].value_counts()[:5].index) w1.set(xlabel='Count', ylabel='Weapon Types') ax.tick_params(labelrotation=0) plt.legend(title='Weapon Subtypes', fontsize='small', loc='lower right') fig.tight_layout(pad=3.0) fig.autofmt_xdate() plt.suptitle('Favorite Weapon Types, Primary', fontsize = 18) plt.subplots_adjust(top=0.95) plt.show() # + colab={"base_uri": "https://localhost:8080/"} id="wz9mYxtaB8er" outputId="0ac01c73-4996-4f64-b9cc-03fc889f6b69" fig, ax = plt.subplots(figsize=(10, 15)) sb.set(font_scale=1.25) w2 = sb.countplot(y='weaptype2_txt', hue='weapsubtype2_txt', data=df, palette='Paired',order=df['weaptype2_txt'].value_counts()[:5].index) w2.set(ylabel='Weapon Types', xlabel='Count') ax.tick_params(labelrotation=0) plt.legend(title='Weapon Subtypes', fontsize='small', loc='lower right') fig.tight_layout(pad=3.0) fig.autofmt_xdate() plt.suptitle('Favorite Weapon Types, Secondary', fontsize = 18) plt.subplots_adjust(top=0.95) plt.show() # + colab={"base_uri": "https://localhost:8080/"} id="tzboJGpSB_eg" outputId="0ddbb358-aed6-4f54-a8f2-fb3549e8d131" fig, ax = plt.subplots(figsize=(10, 15)) sb.set(font_scale=1.25) w3 = sb.countplot(y='weaptype3_txt', hue='weapsubtype3_txt', data=df, palette='pastel',order=df['weaptype3_txt'].value_counts()[:5].index) w3.set(ylabel='Weapon Types', xlabel='Count') ax.ti
28,668
/R-basics/03_R_Basic _Data _Types.ipynb
ec9329490b8b803ba79877366f85db396992c339
[]
no_license
anatulea/R-Udemy
https://github.com/anatulea/R-Udemy
0
0
null
null
null
null
Jupyter Notebook
false
false
.r
6,027
# -*- coding: utf-8 -*- # --- # jupyter: # jupytext: # text_representation: # extension: .r # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: R # language: R # name: ir # --- # # R Data Types # Numerics # # Decimal (floating point values) are part of the numeric class in R n <- 2.2 # Integers # # Natural (whole) numbers are known as integers and are also part of the numeric class i <- 5 # Logical # # Boolean values (True and False) are part of the logical class. In R these are written in All Caps. t <- TRUE f <- FALSE t f # Characters # # Text/string values are known as characters in R. You use quotation marks to create a text character string: char <- "Hello World!" char # # Checking Data Type Classes¶ class(t) class(f) class(char) class(n) class(i)
877
/Radar_plot.ipynb
6bc2ac6bf03a2f6c5905d2afd914fc3f5e4e5521
[]
no_license
nirmitktripathii/Football-Dataset-Analysis
https://github.com/nirmitktripathii/Football-Dataset-Analysis
0
0
null
2020-08-08T08:10:38
2020-07-01T12:19:29
null
Jupyter Notebook
false
false
.py
2,845,075
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # + # This mounts your Google Drive to the Colab VM. from google.colab import drive drive.mount('/content/drive') # TODO: Enter the foldername in your Drive where you have saved the unzipped # assignment folder, e.g. 'cs231n/assignments/assignment1/' FOLDERNAME = None assert FOLDERNAME is not None, "[!] Enter the foldername." # Now that we've mounted your Drive, this ensures that # the Python interpreter of the Colab VM can load # python files from within it. import sys sys.path.append('/content/drive/My Drive/{}'.format(FOLDERNAME)) # This downloads the CIFAR-10 dataset to your Drive # if it doesn't already exist. # %cd /content/drive/My\ Drive/$FOLDERNAME/cs231n/datasets/ # !bash get_datasets.sh # %cd /content/drive/My\ Drive/$FOLDERNAME # - # This downloads the CIFAR-10 dataset to your Drive # if it doesn't already exist. # %cd cs231n/datasets/ # !bash get_datasets.sh # %cd - # # Multi-Layer Fully Connected Network # In this exercise, you will implement a fully connected network with an arbitrary number of hidden layers. # Read through the `FullyConnectedNet` class in the file `cs231n/classifiers/fc_net.py`. # # Implement the network initialization, forward pass, and backward pass. Throughout this assignment, you will be implementing layers in `cs231n/layers.py`. You can re-use your implementations for `affine_forward`, `affine_backward`, `relu_forward`, `relu_backward`, and `softmax_loss` from Assignment 1. For right now, don't worry about implementing dropout or batch/layer normalization yet, as you will add those features later. # # + tags=["pdf-ignore"] # Setup cell. import time import numpy as np import matplotlib.pyplot as plt from cs231n.classifiers.fc_net import * from cs231n.data_utils import get_CIFAR10_data from cs231n.gradient_check import eval_numerical_gradient, eval_numerical_gradient_array from cs231n.solver import Solver # %matplotlib inline plt.rcParams["figure.figsize"] = (10.0, 8.0) # Set default size of plots. plt.rcParams["image.interpolation"] = "nearest" plt.rcParams["image.cmap"] = "gray" # %load_ext autoreload # %autoreload 2 def rel_error(x, y): """Returns relative error.""" return np.max(np.abs(x - y) / (np.maximum(1e-8, np.abs(x) + np.abs(y)))) # - # Load the (preprocessed) CIFAR-10 data. data = get_CIFAR10_data() for k, v in list(data.items()): print(f"{k}: {v.shape}") # ## Initial Loss and Gradient Check # # As a sanity check, run the following to check the initial loss and to gradient check the network both with and without regularization. This is a good way to see if the initial losses seem reasonable. # # For gradient checking, you should expect to see errors around 1e-7 or less. # + np.random.seed(231) N, D, H1, H2, C = 2, 15, 20, 30, 10 X = np.random.randn(N, D) y = np.random.randint(C, size=(N,)) for reg in [0, 3.14]: print("Running check with reg = ", reg) model = FullyConnectedNet( [H1, H2], input_dim=D, num_classes=C, reg=reg, weight_scale=5e-2, dtype=np.float64 ) loss, grads = model.loss(X, y) print("Initial loss: ", loss) # Most of the errors should be on the order of e-7 or smaller. # NOTE: It is fine however to see an error for W2 on the order of e-5 # for the check when reg = 0.0 for name in sorted(grads): f = lambda _: model.loss(X, y)[0] grad_num = eval_numerical_gradient(f, model.params[name], verbose=False, h=1e-5) print(f"{name} relative error: {rel_error(grad_num, grads[name])}") # - # As another sanity check, make sure your network can overfit on a small dataset of 50 images. First, we will try a three-layer network with 100 units in each hidden layer. In the following cell, tweak the **learning rate** and **weight initialization scale** to overfit and achieve 100% training accuracy within 20 epochs. # + # TODO: Use a three-layer Net to overfit 50 training examples by # tweaking just the learning rate and initialization scale. num_train = 50 small_data = { "X_train": data["X_train"][:num_train], "y_train": data["y_train"][:num_train], "X_val": data["X_val"], "y_val": data["y_val"], } weight_scale = 1e-2 # Experiment with this! learning_rate = 5e-3 # Experiment with this! model = FullyConnectedNet( [100, 100], weight_scale=weight_scale, dtype=np.float64 ) solver = Solver( model, small_data, print_every=10, num_epochs=20, batch_size=25, update_rule="sgd", optim_config={"learning_rate": learning_rate}, ) solver.train() plt.plot(solver.loss_history) plt.title("Training loss history") plt.xlabel("Iteration") plt.ylabel("Training loss") plt.grid(linestyle='--', linewidth=0.5) plt.show() # - # Now, try to use a five-layer network with 100 units on each layer to overfit on 50 training examples. Again, you will have to adjust the learning rate and weight initialization scale, but you should be able to achieve 100% training accuracy within 20 epochs. # + # TODO: Use a five-layer Net to overfit 50 training examples by # tweaking just the learning rate and initialization scale. num_train = 50 small_data = { 'X_train': data['X_train'][:num_train], 'y_train': data['y_train'][:num_train], 'X_val': data['X_val'], 'y_val': data['y_val'], } learning_rate = 5e-4 # Experiment with this! weight_scale = 7e-2 # Experiment with this! model = FullyConnectedNet( [100, 100, 100, 100], weight_scale=weight_scale, dtype=np.float64 ) solver = Solver( model, small_data, print_every=10, num_epochs=20, batch_size=25, update_rule='sgd', optim_config={'learning_rate': learning_rate}, ) solver.train() plt.plot(solver.loss_history) plt.title('Training loss history') plt.xlabel('Iteration') plt.ylabel('Training loss') plt.grid(linestyle='--', linewidth=0.5) plt.show() # + [markdown] tags=["pdf-inline"] # ## Inline Question 1: # Did you notice anything about the comparative difficulty of training the three-layer network vs. training the five-layer network? In particular, based on your experience, which network seemed more sensitive to the initialization scale? Why do you think that is the case? # # ## Answer: # Training deeper network is harder to train since the early layers are more likely to suffer from diminishing gradients. # # - # # Update rules # So far we have used vanilla stochastic gradient descent (SGD) as our update rule. More sophisticated update rules can make it easier to train deep networks. We will implement a few of the most commonly used update rules and compare them to vanilla SGD. # ## SGD+Momentum # Stochastic gradient descent with momentum is a widely used update rule that tends to make deep networks converge faster than vanilla stochastic gradient descent. See the Momentum Update section at http://cs231n.github.io/neural-networks-3/#sgd for more information. # # Open the file `cs231n/optim.py` and read the documentation at the top of the file to make sure you understand the API. Implement the SGD+momentum update rule in the function `sgd_momentum` and run the following to check your implementation. You should see errors less than e-8. # + from cs231n.optim import sgd_momentum N, D = 4, 5 w = np.linspace(-0.4, 0.6, num=N*D).reshape(N, D) dw = np.linspace(-0.6, 0.4, num=N*D).reshape(N, D) v = np.linspace(0.6, 0.9, num=N*D).reshape(N, D) config = {"learning_rate": 1e-3, "velocity": v} next_w, _ = sgd_momentum(w, dw, config=config) expected_next_w = np.asarray([ [ 0.1406, 0.20738947, 0.27417895, 0.34096842, 0.40775789], [ 0.47454737, 0.54133684, 0.60812632, 0.67491579, 0.74170526], [ 0.80849474, 0.87528421, 0.94207368, 1.00886316, 1.07565263], [ 1.14244211, 1.20923158, 1.27602105, 1.34281053, 1.4096 ]]) expected_velocity = np.asarray([ [ 0.5406, 0.55475789, 0.56891579, 0.58307368, 0.59723158], [ 0.61138947, 0.62554737, 0.63970526, 0.65386316, 0.66802105], [ 0.68217895, 0.69633684, 0.71049474, 0.72465263, 0.73881053], [ 0.75296842, 0.76712632, 0.78128421, 0.79544211, 0.8096 ]]) # Should see relative errors around e-8 or less print("next_w error: ", rel_error(next_w, expected_next_w)) print("velocity error: ", rel_error(expected_velocity, config["velocity"])) # - # Once you have done so, run the following to train a six-layer network with both SGD and SGD+momentum. You should see the SGD+momentum update rule converge faster. # + num_train = 4000 small_data = { 'X_train': data['X_train'][:num_train], 'y_train': data['y_train'][:num_train], 'X_val': data['X_val'], 'y_val': data['y_val'], } solvers = {} for update_rule in ['sgd', 'sgd_momentum']: print('Running with ', update_rule) model = FullyConnectedNet( [100, 100, 100, 100, 100], weight_scale=5e-2 ) solver = Solver( model, small_data, num_epochs=5, batch_size=100, update_rule=update_rule, optim_config={'learning_rate': 5e-3}, verbose=True, ) solvers[update_rule] = solver solver.train() fig, axes = plt.subplots(3, 1, figsize=(15, 15)) axes[0].set_title('Training loss') axes[0].set_xlabel('Iteration') axes[1].set_title('Training accuracy') axes[1].set_xlabel('Epoch') axes[2].set_title('Validation accuracy') axes[2].set_xlabel('Epoch') for update_rule, solver in solvers.items(): axes[0].plot(solver.loss_history, label=f"loss_{update_rule}") axes[1].plot(solver.train_acc_history, label=f"train_acc_{update_rule}") axes[2].plot(solver.val_acc_history, label=f"val_acc_{update_rule}") for ax in axes: ax.legend(loc="best", ncol=4) ax.grid(linestyle='--', linewidth=0.5) plt.show() # - # ## RMSProp and Adam # RMSProp [1] and Adam [2] are update rules that set per-parameter learning rates by using a running average of the second moments of gradients. # # In the file `cs231n/optim.py`, implement the RMSProp update rule in the `rmsprop` function and implement the Adam update rule in the `adam` function, and check your implementations using the tests below. # # **NOTE:** Please implement the _complete_ Adam update rule (with the bias correction mechanism), not the first simplified version mentioned in the course notes. # # [1] Tijmen Tieleman and Geoffrey Hinton. "Lecture 6.5-rmsprop: Divide the gradient by a running average of its recent magnitude." COURSERA: Neural Networks for Machine Learning 4 (2012). # # [2] Diederik Kingma and Jimmy Ba, "Adam: A Method for Stochastic Optimization", ICLR 2015. # + # Test RMSProp implementation from cs231n.optim import rmsprop N, D = 4, 5 w = np.linspace(-0.4, 0.6, num=N*D).reshape(N, D) dw = np.linspace(-0.6, 0.4, num=N*D).reshape(N, D) cache = np.linspace(0.6, 0.9, num=N*D).reshape(N, D) config = {'learning_rate': 1e-2, 'cache': cache} next_w, _ = rmsprop(w, dw, config=config) expected_next_w = np.asarray([ [-0.39223849, -0.34037513, -0.28849239, -0.23659121, -0.18467247], [-0.132737, -0.08078555, -0.02881884, 0.02316247, 0.07515774], [ 0.12716641, 0.17918792, 0.23122175, 0.28326742, 0.33532447], [ 0.38739248, 0.43947102, 0.49155973, 0.54365823, 0.59576619]]) expected_cache = np.asarray([ [ 0.5976, 0.6126277, 0.6277108, 0.64284931, 0.65804321], [ 0.67329252, 0.68859723, 0.70395734, 0.71937285, 0.73484377], [ 0.75037008, 0.7659518, 0.78158892, 0.79728144, 0.81302936], [ 0.82883269, 0.84469141, 0.86060554, 0.87657507, 0.8926 ]]) # You should see relative errors around e-7 or less print('next_w error: ', rel_error(expected_next_w, next_w)) print('cache error: ', rel_error(expected_cache, config['cache'])) # + # Test Adam implementation from cs231n.optim import adam N, D = 4, 5 w = np.linspace(-0.4, 0.6, num=N*D).reshape(N, D) dw = np.linspace(-0.6, 0.4, num=N*D).reshape(N, D) m = np.linspace(0.6, 0.9, num=N*D).reshape(N, D) v = np.linspace(0.7, 0.5, num=N*D).reshape(N, D) config = {'learning_rate': 1e-2, 'm': m, 'v': v, 't': 5} next_w, _ = adam(w, dw, config=config) expected_next_w = np.asarray([ [-0.40094747, -0.34836187, -0.29577703, -0.24319299, -0.19060977], [-0.1380274, -0.08544591, -0.03286534, 0.01971428, 0.0722929], [ 0.1248705, 0.17744702, 0.23002243, 0.28259667, 0.33516969], [ 0.38774145, 0.44031188, 0.49288093, 0.54544852, 0.59801459]]) expected_v = np.asarray([ [ 0.69966, 0.68908382, 0.67851319, 0.66794809, 0.65738853,], [ 0.64683452, 0.63628604, 0.6257431, 0.61520571, 0.60467385,], [ 0.59414753, 0.58362676, 0.57311152, 0.56260183, 0.55209767,], [ 0.54159906, 0.53110598, 0.52061845, 0.51013645, 0.49966, ]]) expected_m = np.asarray([ [ 0.48, 0.49947368, 0.51894737, 0.53842105, 0.55789474], [ 0.57736842, 0.59684211, 0.61631579, 0.63578947, 0.65526316], [ 0.67473684, 0.69421053, 0.71368421, 0.73315789, 0.75263158], [ 0.77210526, 0.79157895, 0.81105263, 0.83052632, 0.85 ]]) # You should see relative errors around e-7 or less print('next_w error: ', rel_error(expected_next_w, next_w)) print('v error: ', rel_error(expected_v, config['v'])) print('m error: ', rel_error(expected_m, config['m'])) # - # Once you have debugged your RMSProp and Adam implementations, run the following to train a pair of deep networks using these new update rules: # + learning_rates = {'rmsprop': 1e-4, 'adam': 1e-3} for update_rule in ['adam', 'rmsprop']: print('Running with ', update_rule) model = FullyConnectedNet( [100, 100, 100, 100, 100], weight_scale=5e-2 ) solver = Solver( model, small_data, num_epochs=5, batch_size=100, update_rule=update_rule, optim_config={'learning_rate': learning_rates[update_rule]}, verbose=True ) solvers[update_rule] = solver solver.train() print() fig, axes = plt.subplots(3, 1, figsize=(15, 15)) axes[0].set_title('Training loss') axes[0].set_xlabel('Iteration') axes[1].set_title('Training accuracy') axes[1].set_xlabel('Epoch') axes[2].set_title('Validation accuracy') axes[2].set_xlabel('Epoch') for update_rule, solver in solvers.items(): axes[0].plot(solver.loss_history, label=f"{update_rule}") axes[1].plot(solver.train_acc_history, label=f"{update_rule}") axes[2].plot(solver.val_acc_history, label=f"{update_rule}") for ax in axes: ax.legend(loc='best', ncol=4) ax.grid(linestyle='--', linewidth=0.5) plt.show() # + [markdown] tags=["pdf-inline"] # ## Inline Question 2: # # AdaGrad, like Adam, is a per-parameter optimization method that uses the following update rule: # # ``` # cache += dw**2 # w += - learning_rate * dw / (np.sqrt(cache) + eps) # ``` # # John notices that when he was training a network with AdaGrad that the updates became very small, and that his network was learning slowly. Using your knowledge of the AdaGrad update rule, why do you think the updates would become very small? Would Adam have the same issue? # # # ## Answer: # The variable cache gets increasingly larger which has a learning rate decay effect. Adam eliminates this issue by keeping a moving average of this cache that is not necessarily increasing, same as RMSprop. # # - # # Train a Good Model! # Train the best fully connected model that you can on CIFAR-10, storing your best model in the `best_model` variable. We require you to get at least 50% accuracy on the validation set using a fully connected network. # # If you are careful it should be possible to get accuracies above 55%, but we don't require it for this part and won't assign extra credit for doing so. Later in the assignment we will ask you to train the best convolutional network that you can on CIFAR-10, and we would prefer that you spend your effort working on convolutional networks rather than fully connected networks. # # **Note:** You might find it useful to complete the `BatchNormalization.ipynb` and `Dropout.ipynb` notebooks before completing this part, since those techniques can help you train powerful models. # + best_model = None ################################################################################ # TODO: Train the best FullyConnectedNet that you can on CIFAR-10. You might # # find batch/layer normalization and dropout useful. Store your best model in # # the best_model variable. # ################################################################################ # *****START OF YOUR CODE (DO NOT DELETE/MODIFY THIS LINE)***** lrs = [5e-4] regs = [1e1, 1e2, 5e2, 1e3] #learning_rate = 5e-4 # Experiment with this! #weight_scale = 7e-2 # Experiment with this! best_acc = -1 best_params = None for lr in lrs: for reg in regs: model = FullyConnectedNet([100, 100, 100, 100], weight_scale=7e-2) solver = Solver( model, data, num_epochs=50, batch_size=100, update_rule='adam', optim_config={'learning_rate': lr}, verbose=True ) solver.train() res = 'lr: {}, reg: {}, val_acc: {}'.format(lr, reg, solver.best_val_acc) print(res) if solver.best_val_acc > best_acc: best_acc = solver.best_val_acc best_params = solver.best_params best_hyperp = {'lr': lr, 'reg': reg} best_model = model # *****END OF YOUR CODE (DO NOT DELETE/MODIFY THIS LINE)***** ################################################################################ # END OF YOUR CODE # ################################################################################ # - best_acc best_hyperp # # Test Your Model! # Run your best model on the validation and test sets. You should achieve at least 50% accuracy on the validation set. y_test_pred = np.argmax(best_model.loss(data['X_test']), axis=1) y_val_pred = np.argmax(best_model.loss(data['X_val']), axis=1) print('Validation set accuracy: ', (y_val_pred == data['y_val']).mean()) print('Test set accuracy: ', (y_test_pred == data['y_test']).mean())
18,444
/LoadBostonReg.ipynb
c384dc651c50b5109eaecb69142a14bab390274e
[]
no_license
Wadiprasetyo/Boston_Regression
https://github.com/Wadiprasetyo/Boston_Regression
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
61,704
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # sklern toy datasets import pandas as pd import numpy as np from sklearn.datasets import load_boston import matplotlib.pyplot as plt from sklearn.linear_model import LinearRegression # + # load Boston house prices dataset # + dataBoston = load_boston() # print(dataBoston) # print(dir(dataBoston)) # ['DESCR', 'data', 'feature_names', 'filename', 'target'] # print(dataBoston['DESCR']) # print(dataBoston['data'].shape) # print(dataBoston['data'][0]) df = pd.DataFrame( dataBoston['data'], columns= dataBoston['feature_names'] ) df['price'] = dataBoston['target'] df # + korelasi = df.corr() plt.imshow(korelasi, cmap='BuPu_r') plt.colorbar() plt.xticks(np.arange(14), list(df.columns), rotat) plt.yticks(np.arange(14), list(df.columns)) plt.show() # - model = LinearRegression() model.fit(df[['ZN','CHAS','RM','DIS','B']], df['price']) model.predict(df.head(1)[['ZN','CHAS','RM','DIS','B']]) df.head(1)['price']
1,195
/melspectrum_Turnkey.ipynb
ad230bfb3acb20db0c93e735becb45d4b8bc87d4
[]
no_license
sujitha-msit/CGL3
https://github.com/sujitha-msit/CGL3
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
37,125
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # name: python3 # --- # + [markdown] id="view-in-github" colab_type="text" # <a href="https://colab.research.google.com/github/sujitha-msit/CGL3/blob/main/melspectrum_Turnkey.ipynb" target="_parent"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/></a> # + id="_bNIHMBzGICK" # !pip install -q kaggle # + colab={"resources": {"http://localhost:8080/nbextensions/google.colab/files.js": {"data": "Ly8gQ29weXJpZ2h0IDIwMTcgR29vZ2xlIExMQwovLwovLyBMaWNlbnNlZCB1bmRlciB0aGUgQXBhY2hlIExpY2Vuc2UsIFZlcnNpb24gMi4wICh0aGUgIkxpY2Vuc2UiKTsKLy8geW91IG1heSBub3QgdXNlIHRoaXMgZmlsZSBleGNlcHQgaW4gY29tcGxpYW5jZSB3aXRoIHRoZSBMaWNlbnNlLgovLyBZb3UgbWF5IG9idGFpbiBhIGNvcHkgb2YgdGhlIExpY2Vuc2UgYXQKLy8KLy8gICAgICBodHRwOi8vd3d3LmFwYWNoZS5vcmcvbGljZW5zZXMvTElDRU5TRS0yLjAKLy8KLy8gVW5sZXNzIHJlcXVpcmVkIGJ5IGFwcGxpY2FibGUgbGF3IG9yIGFncmVlZCB0byBpbiB3cml0aW5nLCBzb2Z0d2FyZQovLyBkaXN0cmlidXRlZCB1bmRlciB0aGUgTGljZW5zZSBpcyBkaXN0cmlidXRlZCBvbiBhbiAiQVMgSVMiIEJBU0lTLAovLyBXSVRIT1VUIFdBUlJBTlRJRVMgT1IgQ09ORElUSU9OUyBPRiBBTlkgS0lORCwgZWl0aGVyIGV4cHJlc3Mgb3IgaW1wbGllZC4KLy8gU2VlIHRoZSBMaWNlbnNlIGZvciB0aGUgc3BlY2lmaWMgbGFuZ3VhZ2UgZ292ZXJuaW5nIHBlcm1pc3Npb25zIGFuZAovLyBsaW1pdGF0aW9ucyB1bmRlciB0aGUgTGlj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5KG51bGwsIGNodW5rKSk7CiAgICAgIHlpZWxkIHsKICAgICAgICByZXNwb25zZTogewogICAgICAgICAgYWN0aW9uOiAnYXBwZW5kJywKICAgICAgICAgIGZpbGU6IGZpbGUubmFtZSwKICAgICAgICAgIGRhdGE6IGJhc2U2NCwKICAgICAgICB9LAogICAgICB9OwogICAgICBwZXJjZW50LnRleHRDb250ZW50ID0KICAgICAgICAgIGAke01hdGgucm91bmQoKHBvc2l0aW9uIC8gZmlsZURhdGEuYnl0ZUxlbmd0aCkgKiAxMDApfSUgZG9uZWA7CiAgICB9CiAgfQoKICAvLyBBbGwgZG9uZS4KICB5aWVsZCB7CiAgICByZXNwb25zZTogewogICAgICBhY3Rpb246ICdjb21wbGV0ZScsCiAgICB9CiAgfTsKfQoKc2NvcGUuZ29vZ2xlID0gc2NvcGUuZ29vZ2xlIHx8IHt9OwpzY29wZS5nb29nbGUuY29sYWIgPSBzY29wZS5nb29nbGUuY29sYWIgfHwge307CnNjb3BlLmdvb2dsZS5jb2xhYi5fZmlsZXMgPSB7CiAgX3VwbG9hZEZpbGVzLAogIF91cGxvYWRGaWxlc0NvbnRpbnVlLAp9Owp9KShzZWxmKTsK", "headers": [["content-type", "application/javascript"]], "ok": true, "status": 200, "status_text": ""}}, "base_uri": "https://localhost:8080/", "height": 90} id="XZhMiAONGebA" outputId="8a31c9b7-4cb3-40c1-f777-06c2cda744e1" from google.colab import files files.upload() # + id="lRd7TCslGo56" # !mkdir ~/.kaggle # ! cp kaggle.json ~/.kaggle/ # ! chmod 600 ~/.kaggle/kaggle.json # + colab={"base_uri": "https://localhost:8080/"} id="e5Rm347ZHCJI" outputId="9942c5bf-cc5d-4be0-be1c-b5c89bf2435c" # ! kaggle competitions download -c '11785-Spring2021-Hw1P2' # + id="QHGPRNNcHOqp" # !mkdir test # !mkdir train # !mkdir dev # + colab={"background_save": true, "base_uri": "https://localhost:8080/"} id="6O9ixy1nHf9u" outputId="807b2be0-48a0-4ed5-9625-176ae9c72bab" # ! unzip train.npy.zip -d train # !unzip test.npy.zip -d test # !unzip dev.npy.zip -d dev # + colab={"base_uri": "https://localhost:8080/"} id="wxHY4V-eIWlS" outputId="77788797-f83d-4aa2-cb9a-a6961b3bd261" # !unzip dev_labels.npy.zip -d dev # + id="FzfUSXoCJYcc" colab={"base_uri": "https://localhost:8080/"} outputId="c32541fd-0db0-4544-a31c-c3f272c8a5a7" import numpy as np # !rm *.npy.zip # + id="umSnKIrQIaYo" import numpy as np train_data=np.load('train/train.npy',allow_pickle=True) train_labels=np.load('train_labels.npy',allow_pickle=True) # test_data=np.load('test/test.npy',allow_pickle=True) # validation_data=np.load('dev/dev.npy',allow_pickle=True) # validation_labels=np.load('dev/dev_labels.npy',allow_pickle=True) # + id="7I9qsA1oKPLN" # print("train_data",train_data[1]) # print("test_data",test_data[1].shape) # print("train_labels",train_labels[1].shape) # print("validation_data",validation_data[1].shape) # print("validation_labels",validation_labels[1].shape) # + id="DsPkaEhHQK0D" # + colab={"base_uri": "https://localhost:8080/"} id="2uu0W6qJD67i" outputId="1881650d-956a-472e-973a-629ab79d8ca5" # import numpy as np # np.vstack(data_x) # data_x.shape # + colab={"base_uri": "https://localhost:8080/"} id="NkafjeEeYtbC" outputId="d2adb1cd-6300-40f1-fd72-5fa5258b2df2" # validation_data.shape # validation_labels.shape # + id="D-tDLqK-Y4-v" import numpy as np train_data=np.concatenate(train_data,axis=0) # + colab={"base_uri": "https://localhost:8080/", "height": 166} id="UZn8SweOUw22" outputId="12ae92e1-6d18-4912-a227-1191d22a7e17" # + id="X7SkWAtGLmnC" import numpy as np import torch torch.utils.data.Dataset class MyDataset(torch.utils.data.Dataset): def __init__(self, X, Y, context): # Store paramters as class variables self.X=X self.Y=Y self.context=context # Taking the data in variable x and arraning all the frames in one list da=[] for x in X: for i in x: da.append(i) self.X=np.array(da,dtype=np.float) # padding the data at starting of the data and ending of the data with context no of rows self.X=np.pad(self.X,pad_width=((self.context,self.context),(0,0)),mode="constant",constant_values=0) da=[] for y in Y: for j in y: da.append(j) self.Y=np.array(da,dtype=np.float) # print("self.Y at index 0 istype is:",self.Y[0]) def __len__(self): # print(self.Y.shape[0]) return len(self.Y) def __getitem__(self,index): start_index=index end_index=index+2*self.context+1 xx=self.X[start_index:end_index,:].flatten() # print(xx) # xx=self.X[index] yy=self.Y[index] return xx,yy def collate_fn(batch): ### Select all data from batch (1 line) batch_x = [x for x,y in batch] # print(batch_x) ### Select all labels from batch (1 line) batch_y = [y for x,y in batch] ### Convert batched data and labels to tensors (2 lines) batch_x = torch.as_tensor(batch_x) batch_y = torch.as_tensor(batch_y) ### Return batched data and labels (1 line) return batch_x, batch_y # + id="-GZQd4z6QDOz" # + id="2qos8mt5GJqu" # dataset4 = MyDataset(data_x, data_y,context=2) # dataloader4 = torch.utils.data.DataLoader(dataset4, # batch_size=3, # shuffle=False, # collate_fn=MyDataset.collate_fn) # for i, batch in enumerate(dataloader4): # if i==0: # print("Batch", i, ":\n", batch, "\n") # + id="Ic1Y3-L5Y61k" # + id="D_ExjvMuOTDf" cuda = torch.cuda.is_available() num_workers=2 if cuda else 0 context=5 dataset=MyDataset(train_data,train_labels,context) train_loader_args = dict(shuffle=True, batch_size=512, num_workers=num_workers, pin_memory=True) if cuda\ else dict(shuffle=True, batch_size=64) train_loader=torch.utils.data.DataLoader(dataset,**train_loader_args) # + id="fattWZv9UXw0" import torch.nn as nn class Simple_MLP(nn.Module): def __init__(self,input_output_data): super(Simple_MLP, self).__init__() self.input_output_data=input_output_data layers=[] for i in range(len(self.input_output_data)-2): layers.append(nn.Linear(input_output_data[i],input_output_data[i+1])) layers.append(nn.ReLU()) layers.append(nn.Linear(input_output_data[-2],input_output_data[-1])) self.net=nn.Sequential(*layers) def forward(self, x): # make sure to return the output after # call the network created above return self.net(x.float()) # + id="q8A8ZFZxZu7V" import torch.optim as optim model=Simple_MLP([440,320,225,71]) criterion=nn.CrossEntropyLoss() optimizer=optim.Adam(model.parameters()) device=torch.device("cuda" if cuda else "cpu") model.to(device) print(model) # + id="saR5bL5Pb64r" import time def train_epoch(model, train_loader, criterion, optimizer): print("Training....") model.train() running_loss=0.0 total_predictions=0.0 correct_predictions=0.0 start_time=time.time() for batch_idx, (data, target) in enumerate(train_loader): print(batch_idx) optimizer.zero_grad() #hackward() accumulates gradients data=data.to(device) target=target.to(device) #data & sodel on same device outputs=model(data) loss=criterion(outputs, target.long()) running_loss+=loss.item() loss.backward() optimizer.step() # Here the accuracy can be calculaated with the no training examples being # correclty predicted i,e target is the y and outputs is y^) # correct_predictions=torch.sum(outputs==target) # total_predictions=outputs.shape[0] # print(accuracy) # print(outputs.shape,target.shape) value,index=torch.max(outputs,1) correct_predictions=torch.sum(index==target) total_predictions=outputs.shape[0] # print(value,index,"--------------------") # print(outputs[1],target[1],"===============================","index is :",value) # if index==target[1]: # print(index,target[1]) # # ,target[1]) end_time=time.time() running_loss/=len(train_loader) print("Training Loss:", running_loss, "Time: ",end_time-start_time,'s') acc=(correct_predictions/total_predictions)*100.0 print('Training Accuracy:', acc, "% ") return running_loss ,acc # + id="XSDC4v9JWVV7" cuda = torch.cuda.is_available() num_workers=2 if cuda else 0 context=5 val_dataset=MyDataset(validation_data,validation_labels,context) val_loader_args = dict(shuffle=False, batch_size=512, num_workers=num_workers, pin_memory=True) if cuda\ else dict(shuffle=False, batch_size=64) val_loader=torch.utils.data.DataLoader(val_dataset,**val_loader_args) # + id="h9Wc-RV4WLDf" # validation data model lis tested. import time def val_epoch(model, val_loader, criterion, optimizer): print("validating....") model.eval() running_loss=0.0 total_predictions=0.0 correct_predictions=0.0 start_time=time.time() for batch_idx, (data, target) in enumerate(train_loader): print(batch_idx) optimizer.zero_grad() #hackward() accumulates gradients data=data.to(device) target=target.to(device) #data & sodel on same device outputs=model(data) loss=criterion(outputs, target.long()) running_loss+=loss.item() loss.backward() optimizer.step() # Here the accuracy can be calculaated with the no training examples being # correclty predicted i,e target is the y and outputs is y^) # correct_predictions=torch.sum(outputs==target) # total_predictions=outputs.shape[0] # print(accuracy) # print(outputs.shape,target.shape) value,index=torch.max(outputs,1) correct_predictions=torch.sum(index==target) total_predictions=outputs.shape[0] # print(value,index,"--------------------") # print(outputs[1],target[1],"===============================","index is :",value) # if index==target[1]: # print(index,target[1]) # # ,target[1]) end_time=time.time() running_loss/=len(train_loader) print("testing Loss:", running_loss, "Time: ",end_time-start_time,'s') acc=(correct_predictions/total_predictions)*100.0 print('Testing Accuracy:', acc, "% ") return running_loss ,acc # + id="OQRy0igEfRBk" train_epoch(model, train_loader, criterion, optimizer) # + id="8-otQq28VfGx" val_epoch(model, val_loader, criterion, optimizer) # + id="e25u3Sx6q3Tj" import numpy as np import torch torch.utils.data.Dataset class MyDatasettest(torch.utils.data.Dataset): def __init__(self, X, context): # Store paramters as class variables self.X=X self.context=context # Taking the data in variable x and arraning all the frames in one list da=[] for x in X: for i in x: da.append(i) self.X=np.array(da,dtype=np.float) # padding the data at starting of the data and ending of the data with context no of rows self.length=self.X.shape[0] self.X=np.pad(self.X,pad_width=((self.context,self.context),(0,0)),mode="constant",constant_values=0) # da=[] # for y in Y: # for j in y: # da.append(j) # self.Y=np.array(da,dtype=np.float) # print("self.Y at index 0 istype is:",self.Y[0]) def __len__(self): # print(self.Y.shape[0]) return self.length def __getitem__(self,index): start_index=index end_index=index+2*self.context+1 xx=self.X[start_index:end_index,:].flatten() # print(xx) # xx=self.X[index] # yy=self.Y[index] return xx def collate_fn(batch): ### Select all data from batch (1 line) batch_x =batch # print(batch_x) ### Select all labels from batch (1 line) # batch_y = [y for x in batch] ### Convert batched data and labels to tensors (2 lines) batch_x = torch.as_tensor(batch_x) # batch_y = torch.as_tensor(batch_y) ### Return batched data and labels (1 line) return batch_x # + id="k9SSEj97qT4R" cuda = torch.cuda.is_available() num_workers=2 if cuda else 0 context=5 dataset=MyDatasettest(test_data,context) train_loader_args = dict(shuffle=True, batch_size=512, num_workers=num_workers, pin_memory=True) if cuda\ else dict(shuffle=True, batch_size=64) test_loader=torch.utils.data.DataLoader(dataset,**train_loader_args) # + id="39_yKimypIZx" # test data model is tested. import time def test_epoch(model, test_loader): indexes=[] print("testing data is taken....") model.eval() running_loss=0.0 total_predictions=0.0 correct_predictions=0.0 start_time=time.time() result=[] for batch_idx, data in enumerate(test_loader): data=data.to(device) outputs=model(data) # print(outputs.shape) value,index=torch.max(outputs,1) result.append(index.tolist()) return result # Here the accuracy can be calculaated with the no training examples being # correclty predicted i,e target is the y and outputs is y^) # correct_predictions=torch.sum(outputs==target) # total_predictions=outputs.shape[0] # print(accuracy) # print(outputs.shape,target.shape) # print(value,index,"--------------------") # print(outputs[1],target[1],"===============================","index is :",value) # if index==target[1]: # print(index,target[1]) # # ,target[1]) result=test_epoch(model, test_loader) # + id="zgCpZIt20Ans" tensor_result=torch.as_tensor(result[0:-1]).flatten() tensor_result.shape last=torch.as_tensor(result[-1]) final_tensor=torch.hstack((tensor_result,last)) final=final_tensor.tolist() from pandas import DataFrame # your_list = ['item1', 'item2', 'item3',...] df = DataFrame (final,columns=['labels']) df.to_csv("sample.csv",index_label='id') df.head # + colab={"base_uri": "https://localhost:8080/"} id="Yq1FDsXimwDS" outputId="78fe427b-bb79-4734-b07d-c97770b9711a" import torch import numpy as np X = np.array([ np.array([[ 2, 3, 4], [ 4, 6, 8], [ 6, 9, 12], [ 8, 12, 16]]), np.array([[10, 15, 20], [12, 18, 24]]) ], dtype=object) Y = np.array([ np.array([1, 2, 3, 4]), np.array([5, 6])], dtype=object) X.shape np.vstack(X)
20,909
/Week 2/Course_3_Week_2_Lesson_1.ipynb
0d4eb572894c3985b4d1e1c7a91b545cac54802e
[]
no_license
AbdulBasit0044/Natural-Language-Processing-in-Tensorflow
https://github.com/AbdulBasit0044/Natural-Language-Processing-in-Tensorflow
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
870,294
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # name: python3 # --- # + id="P-AhVYeBWgQ3" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 79} outputId="a5279239-e64c-4e8f-a418-54c45ee16cd3" # NOTE: PLEASE MAKE SURE YOU ARE RUNNING THIS IN A PYTHON3 ENVIRONMENT import tensorflow as tf print(tf.__version__) # This is needed for the iterator over the data # But not necessary if you have TF 2.0 installed # #!pip install tensorflow==2.0.0-beta0 tf.enable_eager_execution() # # !pip install -q tensorflow-datasets # + id="_IoM4VFxWpMR" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 319, "referenced_widgets": ["829124bafa424805b223526624278661", "03ba532711c94af49cb7588202860031", "3e1b9332b4f4432c917455dd46edeed6", "a1d9c3b786b44e2db0341dc40169c454", "18540577e0fb41dbb4431d4fa3418dd5", "bc65c4848c594ada97601d9fc1c1cc9a", "2887246df0bb4987926d12d41bf40b82", "78bb5fd3370c48998a4a801f29c60a07", "bd68128c201846fc9f4c1d18c5e90082", "f42d669872514c56871a3a2ab5f0275d", "6102d789ada8488da590b1c845f346e2", "b23526637d284e8f991b07d9d53c00e5", "730d92d54e904daa9f1632a14bfd2489", "cb4406b7124c44a4b390223ee1ad3386", "b11bffb8cf544ac19a11b29436a8a444", "fbe1a0404c11454a852c83a43b8c8f51", "dc532453b63b4002b24fa82332b7c36e", "dcdede60476d4686ad81b9ce374b7588", "558b828c523741e79a74feb8b27a46f6", "495d5ae0d6844dd5b5c0c048ed7c342f", "f9b85383a4be4a258d65181a6ddad1db", "b549a340ba78443cb70c150fb2d38ade", "7ce553fa1f854ba08705f962387a9af6", "35996a90745e4c73ae1700418a9143a6", "95ac3938efde47fda3ee2b86f23bb8ae", "33516468ee0944739fdaabac25f8c3e3", "ef5788bc3f564644b07ed0faa114d164", "bc73eac8841848a9bc490ffb2f5a14de", "509d66f8a93c480dbf800d524aa5cd87", "29479d2a202b4737977e94673f3f488d", "4b75bbb64fbe4f6089a98847fec3efff", "3d58f7345c5848b4bc36dccba719cd42", "dafe0c7a42144f1ba46bf9b6a1597a5a", "b8614c5156c440fd889013a5486d6307", "58f13035404a4e95b2a2760986411b29", "d60a16ec75b64736a28e3f60dbc07e7d", "d611a9711024452886a05aebc0fdf46d", "b79a88e2aab847e8b9c2c1bef53d3841", "78deeb1960bd4f0e90d4f0d63a7d1267", "52a057483ef54264876245e9411c1b31", "d8db64af8e3840c1a4da5757bfc6f890", "d27aad78afc24f4b80d117c19a471002", "aa6e98ba8c6d4a708cbaf2c9748fbdb6", "2bce7de04eeb47efad50c3609a44021d", "6c9f3b1e971a411fbb76bd7fbacbf729", "a8ae4fe42b1f490198e705ddbcd5589c", "ffade1e91c3945acb391c356efe97c5c", "15addce4da3643a38d531f8a44d33fa1", "78bb34d59bf340a98513d985b15dfe12", "ffd04404372a43e4ac4b5a91698f02ac", "8d3b7e4e42604677b199b48687230ab1", "fdd7279c5dd942a28766c0399369577c", "35656a209437455183c22956aa6175fc", "a880a331bbaf42498036f0d4fb8104e3", "fd4f84f1ae7e4b28baef7f54b6965766", "1fe1e8bf8c5a4127a925aa3fa9a54752", "da98ec06e34945639672a4a7e401705d", "0444f9969fab4e05b90a51cb2c06e98d", "b8ba93a371c342a59f89c716c643cc2a", "317207be359847fa88cf0ffadc8bc84e", "36b031b08e934bafbea7a21128adf2e1", "9d1a47e04f6f46acb6dd501328795181", "93bce95bf018453c8f1cce315cf63b11", "4509be0678394cff92bf9655efb863ba", "31d792cad46f465aba5490e8d3661083", "4d1ce6720b0149efbe1676e6ec2c59d7", "cf0ea6f5dce64774a411328261cbe7e7", "0666869a85ff4796a0600375a6b09181", "fe830a85d4a8470a8418171b12041b06", "c68cf0a9cafe49bfa6e068e92554abe5", "4b729aadecf54247b58331659b6e2657", "ab805d3571314e28b316f4a4cd466c5e", "1712f4e3350342869566fe70ba3f6f9c", "56c70313b8064c54bfa389cdb4b34991", "7c84b213cd28438cba525a4f1028b5e1", "6db32779ada34c4da20fb41f957fb0b8", "d35482f5636e409f97e721de84f2cbf5", "e591357ecd2b43559d6756e78e148907", "d7b43b6e63764758a94b3563d972d299", "b701443f84304a3780e9d3a349419453", "842fcae6bf674a99a4bb89dc761723f2", "9f63d32f1ab340faae4133ef3e96e297", "927407b1d54748f9896abab635f39a28", "1592276db52c4b0eb5f100993cb4ca40", "1ad4004c10f044a1a53ad040d4d30f32", "2f9eb70f580d4f52a4043897a30b9e1f", "b534724810234e8f87a7f07a0c6eb1d3", "30c72f52477749f08a3d35ca1bcfef20", "38376316e39c4cf3953e3936e5f1423c", "67babdb3de7449978b07f53cc36d968a", "5073c2d622704762944efb269b1a7366", "c69d5a4b39574774a95582bae22e57a9", "b61e70c20af54c9b9aa9dde044dd13b2", "210fc65c82be45a8a4ac4b6f32cdbf87", "1d7dea52fc084521b627a32a53d548f7", "97b94c2a70014d10a13a45b18fd6508f", "48b133ddbc0644459afba107dbae9c4e", "05f825aba4b04e419eb5f701f2f80f05", "b7a54ea1af04487aa8b459b94c44eb22", "c715c159767d4b1ebab04178803c6042", "62ec2ec4e1794819b3a7b85962c8739b", "872a2019156b4a35b29c1d534203a2f2", "f7756b43648b4b63819d9ad96cb164d1", "c151b940e24e41fda02b1f200ee8dd48", "a5258a28554e429485ae9d0e1f6e05c2", "e82e0f6d743042c1b0538cd43310e02b", "fdf14d8efdc84f1b87abbb359ad8c6a1", "9f221b883d63427fa63a9f8756967769", "4407753f14924bdebb49831a31a01806", "d8a1680238f54ce496a476260c1e0d77", "9bacb23410514828824966564d434e75", "9e3af21b072d44a483b76d2a22ed658f", "37e4ba36173b403abe0b968a2be2aa0c", "d2dfff855f034f9c9702a07f4283a35b", "3069bfdc5e7e4e58b5dc56041bf09f3b", "5823faac947945ac80fd3cbde76837c2", "784f139fc3594c01a2e0e10247ef6c4a", "545307a262f14d5b80308515d490deaf", "fb0189b049994e5a879c480cc2bdf573", "2bc953c95fa7434f9e796b92f525717a", "636ae756e294492996b9cd59ee813d4d", "200f92ed6d844f589cd32731dcee71a3", "c13b8a61815b43068f40c01af2607f44", "bb19ba2772a041e0aab674b2aea829a7", "05cb7522fc394c7f9aef7736137c7997", "b6effb21dce74da5a77d9d455db84b0f", "1800680a9cb84e8d9dc8a94a372423a6", "f0e4c8702fbe48a08bc3dfb071e5bbf6", "655a036c23eb470893905a74e2c9e432", "d6174d48c19044ad9f05ca58f6fae07c", "1177980f5e354fd19ddf124418bdef97", "c4139288a4ad47cda43de272063dd89f", "eb5995be28d84a5c8524975f34e39716", "d1f7dbd202b643beb37d5b403c1fca99", "7e9e0e9f57c045c6b6e426a64d642419", "7f12c539d3ac45cc8ce8f695720ed972", "1bb7b5dedf1446e9a8f415560d7184f2", "c145a241cb55478eb70eb8cc4b377d5c", "7b7134ebb3994864a5ee699646f9acd4", "98682574a9a042f0bf02b39ff8d7e6fa", "aaa336b63ff44cc7b78a904f20a4d5e8", "9395d0b92bae40e5a59cfc5eed2c06c5", "9338ba9a95d74aae89faee7384654f44", "b9d7c8e056a04017ad15d548e3a8355b", "74fd285a5d6f4df4ab3b99987f8ee499", "5621e8b833f54ff0982524c9a4816821", "b8f12f947b7e4200b8bfd002b20e12e6", "2a17c5f71ab640b797264bab0c920e76", "63fac6a20ae247518f50904c1d8f6b22", "a7841e97b8684bb7b05a18231bb93d9f", "072d1fdd1b354cce8b3c600041dc0d4a", "04a657731fea49d1a853618827f6941f", "50f8510fd30e4bcebeb85780c039d923", "26a3c1a2de5a4207b288a20c7c1934df", "f936ab35f2cc497b91da953d97ad50d8", "f3ab24f20ccf4b2e893c4a24f63d4603", "d0ad73b65d9348bca0cc2cd487f1293b", "83de2cc3c11e435fbd63310f1e2c9ba3", "ac151a2122d847e0a2f6e2686cb60991", "f8ee8f2f89ba46f6be89496682d8d230", "fa8309d2c619493eb0b4b7b1e335b620", "15d2b036a766477abf31d46efe250811", "2694fabb3e6443b3894a4d4f24dd870c", "876269de29844a8195a27ab29a6e9327", "57e1076a688f40fda52d7182d47a09dd", "af5ccc4c9ce0422598e35430a44feb35", "1127890eae9b46bda9c2b790bc4f152b", "d5629d081eca47a6b5f7d51b1f2fc601", "3028c257f74b44a7895b94fc4ce7ee15", "57adf774234440c9814d1cdc19d1d124", "4e24d131cc0d40ba815f03bccd0131db", "c245255c2e6e4063bbc0d0e6a13b9d0c", "b2cf3dadca8b4c23a1abfb0bcd3ba3bb", "f798abb5f37f40ea9792589b527b55c9", "7837052831864fcdb7103de6543e9be4", "994dd6d8289843178a56b1e0238f2bb1", "81527b4145814b7facb1842d0f657571", "1a0e8a3869bf4bb180cb5047b639d8c5", "16da8202217f413cb6d9b5543ec498ba", "04b172507dda40e98a847b9db06c626c", "7faba5eff79147e18229555d871f0fa6", "52a26e221a0d4333b507fb46ce4ce596", "f518d09ad25f4b1bac2891cfd6f669f2", "85957946c12e4866afdf43ff0c4385c6", "8eba9ed9bc7640619e8b14dcde205d7c", "37adba6dfea445a79889312ac2ad8b39", "b7c80cc567404cdd9d48f0172f78b595", "93dc10feb5c3438d8981672a8f2ab670", "8270e1efe86e49b0971edcb2261dc716", "dec4680046024ba68e8b85b4028e2de7", "5b7d73bfaec7428fa896fd60dcc32115", "c905ef2c10cb4648bf7c5727af15c5ee", "843a687b932b4f9e81ed97aa44bdb664", "b3e29dd6ce76418b8c60abd28c60685a", "b76e7b9d7817400897c9b4ddfbfa4c13", "9696267b664c4afa99f19add25d16a8c", "2a3d7f23589941cf8fb52deea4a6a4cf", "2d3a05acb77440d4b114b69f3ee0f1f6", "d022220656ef404ea82541ee3c1dc88f", "6c068ee507e1470eac72a7876ca7eb75", "903cfb35852e4a4a989edc1aeec46845", "8559d311824743d296ca8b0d9ef7bafa", "5774b33c79f54ffb9f4cde524b93ba58", "a54e5c12ae08418c9ed9efeb137b9e66", "88dcbd40625945659d65cff729d835f7", "7829a2e30fbb448ba95b04adfc343d82", "e6f65aaa250d4c48bcb0109ae2188787", "d73b25bde2194b6585f8b6a1aa57a7bd", "dc9cd78284644686ac7130155739f487", "f1535bb264ad4447b8067237b6e3988e", "8f7315806bc04c238fd72eb7dbb2a240", "20566662f32846f7b7c6d3899f8ae2ed", "2c330a39b0f04e9a948295c1cbb89f14", "d679411555db48f28236e52f20af0152", "cb320ee0ff6545e4b9b5e6c2dc99a332", "f377fc6655584ec2a4b66f51e51f8f98", "fa23ffad638c403b8a2bb24d4adaeb8a", "20f417d9decd41cfaf2e6f9ae3b829db", "b165935fdcb443058632cdbf1897edeb", "fc7e2a1e1ae54128a03b44df1a418de6", "da09f975e4ad49a5a8a037186815d29a", "a47c57ee15f449c39d008f233d2159cf", "4252d51f925749069ccc514ab72f644e", "2c489c6406f346e0af8810c729836a40", "502f90d32fc64cc0b207be9abac8a222", "1496fa6dc0ae43d4a6e9444f3f0afb0d", "9f51dfec81c349e8ab913c9b41072864", "3c3b840dd3ae43bf93514ff7bc69b3e5", "628c0dd9055142c3a1181fb7c4e354f9", "5520e3e942ad42a49ec4858f49a1afa1", "b2b70c1eecf1495a8cd94f598f6af702", "e4b10521ac0347d4adae0178645cc209", "d6429919e36e48e8a82b1839ca6e60df", "95d1dc57c41149048380baf99e9be26e", "b526ed15cb5f48dd98d438acd7df2c89", "5814e5edeb034e0aa160b87b483a6a6b", "43c06ce7c144446cb1cc4df7190b09b8", "45ced1bcae714fecaddf804df0d604b1", "3293c7524ef34f9fbb830c096778201c", "f0478375292a448e8212289b61c380d7", "6c44489886354bed8140928fce3acaac", "1a623ccacf27419cad63eb147e41c793", "ad127be7cb714901929e6899ae55801e", "4d0d10047dad444b9f1b32a080c84214", "249676c7f4ef451394fd208e8e2445cd", "ebd7afd405ef4f37baea40e5180d2b25", "c4e5ab3acbb04b3bbcbb2ca600cf511a", "7b7d68c5dae5495a8f8b495bf89efc7f", "6363442a6eb242848889bcae4e7d49e2", "df1c96b0d88e4a4db9c6450058b76bab", "c9c446149bfc4e748875f17e3f093f9a", "d85acb4417754b84afc3bfad5ffb13de", "10b156b95b5d400aaf9851d59ce5ce79", "193f6a0d88034434841b3022afe80d6a", "582f06cfb92b4b218085329535f4d430", "2b78e1f829a1450990e0763c32ff7119", "1faec7858b694b2599b236e1ad6bcf14", "c55f60cd8e3a43cb9988e3b7f3e35b4e", "416b868da5244abcbb767aaeb1b4d968", "0ba8b69ae6ee43b5ad9ae2cd7276b377", "969520a630c648459f9c80057a9ff15a", "8ff73f824709407b8b3ba1e339ad5bf0", "b6532bbbc1c94f56ac92f17d8d654ff7", "7cf7f132df5d4b51b7773674f65f1dab", "abe018740b174db4b22fcaaddf03fc08", "8ff88d7b411b47a192e0e2dc9d0a8f15", "c563cc5627634181bec26af003e57c74", "7f1519faee104edfa08401e68c8116c3", "3fa1bbea6c1c4fb286eb30f066fc061e", "8fa809dc250a49bdabc1f4ae335ed148", "22dde5a2fdd24cf1a013a320c179e06f", "e71149fd0ae14bdb9e4f53a19118026e", "bd4b23fc41084ae1b8d73212a229edbf", "5822601023b9477eaef627a97c86ccf0", "c26fa95624f34f3db03598adbf2fcb34", "57f8a20cbc214dda845c541b45104f66", "a364e548d9e9403190fefaa12638a2cf", "7095140b7b6547b88b1593473475423a", "ad49e0f0ab304028ab643130d3c9a6a9", "df99ff422d284f63a8adc2e0f0bbc96c", "e118bd66303942c18128777d5bc45afb", "75c2affc8bbb43fa96ca2c0868dd022d", "130663e56de745e987164f75f993532c", "6fb591cee4dd4df0bc2cf42f27a1b0cb", "3e026cbf5d74482fa8ef7c92abda8237", "0861c9febec6429791017a535636614d", "fcde946a4dfa4fd8b46c1c71adcb11f4", "2d4b9bd285fe4a9498a090007a4b7895", "7d924c4c588e4bed9c1aadd5533f12f3", "3a67e6979fa9467f901af2f39c652a2c", "83f63554f90b4d6d800f91a0b7f8622d", "eb80a56864f740169c3d54760ed392ce", "ba2b4f96d1074eb7a23fd3696e690851", "658722ff808543afb921573f8bec1889", "97e4ffb745dc44fdabd3d77c65fd441a", "2e5128d0d777445dacb72e7e0cbac0ba", "2e6927f561d8474e9cffc1331b7db1eb", "9e3b479ad5c841588336d9b76c955500", "debbd669ff384408a0a4e05a7f474e72", "9c9be49122ba434abf65e652abfaa252", "ff77bba5f4184313be24af55fd8f9e6e", "20a4c22d4e1142c78bf7f266c70a3d9f", "6417b84ff0f544dda2e211ecb405caca", "684cae6b9b2e4f52b53c9592ac68530e", "73eb015a578748f2b3d3a87b73e4f0ba", "24b4a1ad0379488c954cb6ad0df898a8", "acaebe07b1464bcca4cfb4ef84ad1ac8", "9435387b913a4ebebf20760c3f508a9e", "295c443c0e2046d08b91867978e59840", "8314e7eb725649b08c1ad6d845a70c1c", "b07aaed6f04641749f1212f696196f67", "712d706bab1f430a913a6c62dfbb8711", "7dddb82a1c2c4b9e90175c4b315193a9", "98d3b5c30bb548fb9b5d9e5e6d7deef9", "7a9b1facc1fa46be9847abdf45ce2e20", "2c4cbacd038e4b0483de2f320f99de48", "73c1accf943b4285a3b28c0c1571c851", "f59bb6803d0e4d959289119b7a3f28c3", "eb4c973474064f53ab1edf2bae80d95e", "ea3acf579b8d446383444b9bad84acf3", "49b56268afcb4cd2bdcbef908fecea20", "66753e8347fb4a75abef3f5408128fa4", "12185a9122a74c019358fa2385a7848e", "7aa0175e1e5e4c54873df53bd3904975", "b2bf3e5b843c40c08a35484e8dab45e0", "cfb791de17e4438b90bfe1de71d6fbfd", "a3f62faf27624cd2aabec58df2a2b893", "12deaca898a24b5597304264a50a95ad", "30c31f724d234675b804eda80d3bffb7", "fb1c3adc76c54095a32fdd84aac28b6c", "7bea4dfbc3844e82af5863ed4f0f0637", "e97ebf9bb3f74bc1b5a6c80e2e5ae9b6", "7acf1f8fd193412a8ddd9bd7d7f67b40", "5a1e34cf8fec44269a3d36f5e21a772e", "708b445092964aa0af87a74ec468d949", "78f306d3c00b4153b572a5094a55b579", "cddb0e2924a34fdcb87ddb8d3fe1e06a", "cb05730211064f01acd79f469004d434", "a845ba9b95354e7e8d26efc75c7dd5ac", "ac7de8dbf1df4ed9941ee3cc7d1d2578", "372f43dd339c4cc591834033bb288820", "16f6956430084d24be02542a2ee1c2b9", "90bba3b35caa4f6f872ae7ba57ae7992", "f74351b674c14bbeb640d62f0bee8ff4", "d3688b17d3f9445d8fad66c5490d1927", "ead73001b01d4d4d88cd841775b05186", "d9112a4becc94a91801f6ced361429e6", "c15e6201b2334f27887359a748c37dac", "962acdd18a394eaabc66512c4dc7ff51", "7745c494c9e043b8818ff4944d4917d3", "00f63aa99bb748febd8dd9e4abd6802b", "791f451453984cdcb413032de4dbec88", "8f41225a776f4bbcb38ac691a6945814", "ac40f5b8cc524b20843312ed5358a463", "b00966158b7a43bdac7c9ca463584170", "bf30deee44094ff4be7837f3f33ac751", "d2ae808f969444cfa5b711b700bf7ef5", "8b8204a615d64dae8deeb8bee749e0f4", "27e4275077914b768852c4f2fd14355d", "ed21993441804db98ea1e34a70e6069d", "483817468f4a4b3ca56bd979c9d146b6", "584ae9c9edf946109c78454223343ffd", "3662cc579e4945a89160e1c5d8c171aa", "e2fe915fe86b4e76b8828d430af6ab82", "e2121e7308724bcb8d2bce34eb5acb9d", "fddf1e9342c1451f82d73fcc4abb8c4d", "b69d4c56e0f24ed4b0e176d80f174a0c", "f7b6cd5684534b29af447d1535eba144", "bc26e8e8908648bf8e01636805391fb1", "bbeaa941d11542159f8f054619fd2eb3", "6ab0d33d25914025825535739123fc2f", "cc9db798be7a4ceaa78535acae05d48a", "bc82aaf154964b848174585d2a11ff2f", "79a9a34cd5b3488d8f5059b050c5032b", "8fcd9a27a9254802b31e12f20fa0c3c8", "0758bbbaae4d4554b2790081ae160e7c", "8bb9d853ba58475d967518425811615a", "1989325078c7478b961bf7777a477573", "c6cd61efc43f4a0b88240befb59f69c1", "57070230d8d64bce80ead37a51545d5d", "86399aafd76f4136a9b5d395881206c6", "147be0e03b1d4f859d1513f0de76913a", "9fae4aec4c254ede9a6f9482158cefcc", "9f0c4af0a9cd4e5a9088810981a8ba09", "fd819a3bac884496b8f78b063a08a0a3", "201393da1cdc4749b8d30bb49ad99d18", "fbe8a1a9ba264db495732a344e0da34b", "1f7af9f0dff843c4a71a1e1f4f32151e", "dfff21712ead4290a742bdd3179bda81", "b4b812bc37bd4c2fa6bb4107c051eafc", "76a9b2cf11db47f5971d380cc6b12b7c", "6ebc05c993b8494885eaadfbae9af61d", "26e4efc9660a4f3d8054179559825824", "eb9c03d5271f40aaac3294c93f5767dd", "76a517dccd804842bdb8637eae7ede4e", "ed503b4284d94e289755341640bda998", "300c90cf6415445fa0b38d9f5f196662", "b321cfa1897f4a109a63b204a348a792", "b3286b5f9f034f2cb2585833afd4443e", "9ebdb2915e86441c990c1f649e2074e5", "cd52c43005c34054936332f2fd717edd", "cf13df03b3304a309b7cb910266550a5", "b1af0d15c0504ed7ace86bf38769a313", "b8d24b32fa0e4f11819e3f375b6ad05b", "50015cbf79b84e2b95dabec562639a33", "0c2a2caf380f41f5b597fc1889cc39fc", "2273baf7536647098b687a5690545be7", "7db4be3315294cf1b0881ab8dafee5b1", "033954f0185a441a9e6443b2c199bdc8", "a8fba1f0855043a0be86312176361a14", "914124d9a663406eb55d519226eafd4c", "c0fa46b337fc4887b653f62222908880", "2ea4998f66674430bd4dd73ec7d8b0c2", "a38082457fff4d948693405f586ffd7c", "b29ec481ae544285bb6660a9ae0de9d5", "31527443008e4d3a87c91d898ed08341", "b140a8a1ad91497ba8b4f2a6c79a31cd", "db56fef74e634e7a8fb76aa5b72ba018", "5a4d48fbfd7044269beeb3193f8d6a62", "dbb3c9a8ff6a4e6ebf8a4bc63d546981", "53f43d06ee684cecac71601c58702f5f", "fd30c5536f824da3940829791e001c85", "78ea1875a36942d89e4852153bc5f277", "74c30f0cd1624a65848d01b03376ba3e", "c8da0a311f6c412098cba417e4a491f8", "cfd2e900a97b4e67b642932543d71242", "3b8e6cd819de47a6a7e58358df88aa21", "46dc81d52ac44d04980e306d7bacc7c0", "39a1c79a1d6e490c93e2e5467aa1487b", "d2aeffc94fda4bc7a0a74d8872554dea", "9e4cf1d0c97c4d38b594674e25f7fbdb", "45eef4e1ed0940599982516dd11ff453", "a923f686b02c470abf2ccd690c2be5c6", "c9bd3388e29442ad86338dfc8ad70398", "1d2ac7e9c590405194c850386f5eed6e", "dc74d15fd7f643a99f20cdaf9a5bcbdf", "fbb5a869ee3d4cb79b32d8bf16fbc80e", "4322fc4e2d514daa935d3e7485fd6f51", "7cbbea2cbd2a4ede97136cb17ccbb53e", "6b6a74be241343209770acd130bab027", "382d92117c0e44bd986b3d517313c2d6", "4b3bc0092eda445487d84df1cc6d47a9", "61c21fd203334825a99e7df22176d7e2", "484b8cea3ae249d28b1473f11069ffd8", "d9247e44a46e45a599b520a2a80585df", "b2a9a09516d043a79ffb30ca5eafc40a", "d5f8c1edf5c947eeace864b884530743", "d9cdcba0147a4e7ea3043fed2ede4f90", "e6cb35821d9f487d830085b12c54bf06", "96a70f0d2996455e83369fd69cee9646", "590e40fa86874297b32b2d64a507cca2", "254ff4c3cec24080abd858addb951898", "87418c217bca4151bad700941c6a01e3", "507bbad9b218436fbbe3c4ec2ccdb5f8", "59b757f7de124e2881c42c6aecaff7dc", "ae181f07dbbd44478e6cfd84710ad004", "915802675b2e4d70b3e5fbb9a7b200ad", "8a8d01386d204b508ece0e0776a056d0", "5b5e9564c53d4a09b3799998450112a4", "389ba8db186c401382bccac77d6caec0", "d8419625b17c4225b2e31022e8907f13", "087de3b1cbfc4c479c9007e60c2096c6", "4f48778cd8eb4a1d9c211724c33b69e4", "06853b731bc24c98a524ad45dc2886dd", "2ccb213437f945a59ecbc630967b0564", "9342fc45508f4557b870d35949553c03", "a22d97db09cb4e91807b7578fcafd72b", "2d0098f0135e49dab217eaa4c908c165", "4e9ca850980e4b8ba5de87a37e044d5e", "248308efdc8a4485b742c11a2ed4a876", "15220ca6fae340c1a54705ecb66f734e", "64a687883a42477b9f975395bbfec5dc", "0b1fe7d2a7a14c8e90bda3dc98663ebc", "12d936f52db442c89c5d0079b0bfce14", "ab03a4821941417da90f59fab0b4cf66", "99d9594205954777a3fa052ec949aef8", "1833b6f5e6a74846a69b2d440917ad66", "702cbaebc33045c68a7b5b0014d21ab2", "b05d640fa1f7419aaf93f532d1a27d92", "e610314f9e184bd4b855d247cbc2c42a", "ec7f78021f8a444dab0894b273b909c9", "f3df8d57f51241ccab5fee7961bbce57", "1038fba2cfdc4cc88b27ba6038615c5d", "f7113b8d42334e54938cb731b54ee62e", "0917e5ef5e05417684deb35f8a5367c5", "d71ec352da974df5993f2bad77fc8e70", "8d027dc28358442ba09b7a382c7b0ab2", "03e3f73bb792423a968205db70df901e", "bebe6703bcb3496da76528c4a442f005", "4a8ad847285c41e0a874eb23c7d7d406", "b5810d5b4c1942e09e6d2ad498396cde", "57b36a4bf55c4e78b9d15ba57d037c4b", "647e4c787b414f58b0adfd5876734388", "2cefd736bb7a4e569bc87c1970973e3d", "31f86554505f4f7abc7f661a4861f919", "082963b91e304c98b1f3dc48827a5857", "0d6aef9be0d74c82b9cac76ecba78bfa", "05a3df0fb4e24f3e93a3ec109884111e", "dd29f6e962df404284ca55e60730d1c0", "01044d2b3cf64b70bd03af7dae6df22a", "afd3d53b9d52498b8a494d325b312f2f", "a2b8cb59d52f43d889fb246f391ed2f6", "e4b543086ec945ee905c4c6aa9dee146", "a6bf8caf2f8c433ca4a15b348692fff7", "984d1f70abdb45beb51c0c63f30f838d", "4839eac5127b4ab0810a4801cada506a", "f459ebff72a64e2eb6bf39e75646fb92", "84e7b364203f45c58b76a956cb5314ec", "76ba6b2227c54ae9acf98bd2d7c94bc1", "f46a762ab48d478784d9db78d53167dc", "0528adc788fb43da9c23470e708750c2", "23a754ca79aa43dbbd058929c249c6b7", "3860ec8a8a8843c5ac00ea8d5a3e6a5d", "64692c5108d446278d2cbeb4fa7bfd52", "62e873f4bd674b2f96eb7ce80ec9b79c", "78bc013cda3745ad9e0cc76c0d8eb7af", "9fbd1dc8442743cc84e7e71b8e4dd786", "ea44dccf059d493ca4288a175fde2011", "c834d0c5f45d4a44989b118baa20d42e", "9444e7bdcd674a92aceee81fed350828", "407612e8f8734763ac6d7c52c23f721b", "e3a1cc8cf7fb4f9381337058bb8ea8da", "75f8c902891e475e9711456e41eb66a4", "ff55a1912bcc4b56910e4712903decdb", "176bd0e7e0ea487181c4a68eb579729c", "f70175b623324cfe895016d66542b4fa", "ad287b66bc4947f88431ddc493fff013", "8ac987b5c3cc430ba92854ef189fa8fe", "4c33a33a753348dcad2b3288c706ba91", "0b5521a901584c75b4e42332ef20c8c2", "ad802cc73b9a4894810c08a1e6301bbf", "2417e109af384312b4943c47ae657f8c", "7ad147c4340547ec8d08d8b656b2f212", "e6cf556ef24a48139dc8feadb5773376", "bdb32a8e8e7a4071a325754b1807000c", "e4940fa5f3034d5b94f4903afe918e06", "478d6d0dba76497ba6dc2beec2d082e1", "4ba825334557437abc652fe300b2f1b2", "d08a36f0de394ec5835c735492019cc9", "74747d3f4f044df5a2537476852b44df", "065b378e961c4bcebf12e6d742d457d0", "110a5172de1940fb86fb0d6803943142", "4cb7b25869c14d2f9493ab19fec004b1", "c8531bed73864081afe999383bfcbf4d", "ebb2d1a211024153bc7674f5ed175edb", "237332d6c0de4df8a4526570ae046877", "bb96d898a0d84e19879cb285d4cfadbc", "2252cd7aee7d4639a08c9abd6175193f", "b81a7fffc7e8476a9a5502a17ee565e4", "187f60a28d954ab5900a586c04e5a12e", "8d4e30897b424ae6beb57300cbf82346", "068309f9b45149a3862510d3428c154c", "c46d24caea604f6f8b1205301b840daa", "f0c1fdb7a0a24d7eb19b3211410f928c", "d7880d6b02d944e6a39ef0d9012516cc", "dba2014d64e842a8bea08ab42afe60b5", "df2aa934afdc427b85220432e8094bed", "f9371814fef6413f96edcb9283a25e9e", "a53b76bdba194082bb572115805187a9", "a65afb379b6b445f93480c06e117052b", "4f377dbde1804d4290ff2206efcdb051", "6407a76ff0d94239b18fe0c8cc27c823", "b07f4ce64f5343bfacdaa59eb047f290", "9d79d1746c164bc3901f30435e3a9d71", "75187328463f496d8595eab0cef57c46", "1ddd4b0a34aa4e9c8a41348f41d2871f", "3ac4337ab44a4689bd9f6b17570aacd4", "7cda0cf940894f4ca042e92071b7d572", "bd824e4df31747349074263eef6311ed", "dc191f49dc574de984d84ab7af0d937b", "de09856004504e7ba6ab1fd00ed7cb1d", "20c7a7a9d2e4477089f6b8c75c211c93", "04e695190ef74bc08f333acc23aec20a", "2f2abc683d85495ea4a24aa713211386", "701ea8da56cb4b189456bed09cf56ffc", "73d678fcae2b410cb08962060147fa8e", "f26cb7b9992b48b8bac8534214ddec12", "f01774ad324d4a0d876660ff36843f8a", "e4c585f6c98b45819780fbb7b0c39586", "149ee3427ddc4797945120b93d9768a2", "dd507d66d5be45d38154c5954d5fb802", "d7be70bc73e34f82801b052594621c00", "1872fc5b639247c085e1c7077790a3e2", "9c1bdeaa6902496ea3566297891a03de", "3ac16caf403e4adcbcedec800099292b", "454a2180129e40e1ae864e748eecaba7", "e204c2971ad7413c8db2bba60ecc6943", "16a28beb04194160a9a65d4f1bd4bf46", "f2f4c3468c044861a27c0c80266f39f4", "789f498b892b49f080eb0508c59e1982", "d436bcd75174484b8c21ce209828277b", "b0d2edcb2e214f2495f0a58b37fa5383", "b5b6b26657f0439685dcefc0bd2ada36", "dbefb4aa339d484aa1ff6aa8c6cb3f5c", "5841bc391c9a451f8fa2aff2f8df0686", "d9b19e58079a46d89d68be610db17082", "a9ce4d27cad749559623601730f9d6c1", "ce5d576e89b14483a2eeee188f593643", "9463c21f25c2435698e8f5cdc4c9924d", "f3e50a23ad8e4cf48a0ceeae89159a36", "8683e3b2972e4a1c864b72a4e95ea959", "f309186897e749e7ad00f0ae5c9a6c52", "502a573c4dca4df58cc5391205dddd7d", "4151f7f3d9574d489acb0e9e903da388", "0e5c3e0b8e2a4e27a7e9f598a73d640f", "c4731c25f0ab4e8ca95aa9383ca7b9a4", "b51219c67fc541669e865121268d873b", "60b22b6d7c034faeb6c11485031bf9d1", "6e5dd7af21344db7a1a2047d8d96afd4", "b9ccc405a0f646ed81741b0eaf624248", "d7de36ab7dfb44ea96369273931d2fe9", "9301fe588b7345ab9cdd334bb6244ae0", "58877673f4eb4387959fdf9e9ff8f284", "63cab90e07ed4665a9ac89d3c3229c07", "25d7fc24e9434aeea54c2ab9bea25be8", "9f3f9168f2c74c08b2dced62a5f77f2b", "a1b2a9aa74ec49e29dce505216ca0357", "634f4f684f144048ba1cb2767928d58f", "b4fa052ae2c043d48e342dfcf5b59ed6", "2b817d624c534219bb77b962f1d54ddd", "c5df52cf096f4489a702016661849a1b", "a1401312366849a0a844618b1c2fbd26", "150371db5ff54dd08e40826e77b9b132", "608de030443d41b8ba82c8ce576ed0f0", "41549c72133f42309d8f0f2ba22bb524", "209305a825264611aea4dd0de2d20b92", "ba01c9df7fa846ea9eb5b4c8f4103ebb", "063c1540d4f24e4d8589b91fa3d8db9d", "e4e98a8bd41f4b8c9fc21724b18bc365", "70e4f29eee20437eae31ec1daa4d4587", "988f61fc4cb5452587ef503bc1574494", "5d615f6efc704b1ea3d76a8214f5b1b2", "2383e29cd1cc4d0ba008df7360d0f28b", "e74c2e608812459a8aa4a890901c62dd", "41c618e54a7c4eff9575455a34f39da2", "df447005c5f249e2b5237ce638b3feba", "f10a627f65d445c1ad1cf340c0ade44b", "a684aa56b69c405b9812f74e320944cb", "bff56b23b9b34aad9d46dada127bb4f7", "8f26ecbf4855450f923759f2ca7f1b8c", "26dc984903b3408da7dde6a291c50eef", "b444933f21ad45ae87bc7f5384f17401", "bca2920a735f437189ee491abc07df91", "00b263fe856141548a11983c88cbf885", "19cc8b5c2a5d44fbbccdeb2cad8850cf", "b8fb92ac356246ec894abd2e097cb9dd", "b7ff07e535fa44bbaa0590dcbc880fa8", "fe06862a46774498a60373964b4e8026", "4eb0c0db8b304d139a15d56ee1c8fc1b", "40aea4fd4e2d4f04949f27d854876c9b", "fa240ce4e9b14252b7b7537ea481d047", "fd97806d844d4571957407aa8c17a361", "814c2308eb9742eca969aa30bb2c97cf", "e4687033c0d1491fbf0ee7bd71f1d01f", "380093a0d97149d299515eb1f2c71f2a", "eeb1ec18eb58448aa9a0963ca4a1d5b3", "c749c6631b214c599052ab2939f9d147", "02e94bdbbb7d45f28eede0e7fee65921", "bbc03c0c66d5405880fa9606f3257018", "93e76caa883c4511a56a357235950ba1", "0e5951a41ec448d6be89e824f31cbc90", "e6ca9c6b3f16456b901318b8403d3dbb", "e72b5ad93da0481e88c15b564b999ced", "2663dee251f14441b337a7abfa236afa", "1d4d606d62564ee4b68de8f85ccb6a77", "298c46a7d8ad469cb1c6ccc1b41d8299", "0504791841c34b648c10c6811685bd5f", "64a19f440b554fc7ba7347af5a6156da", "5857c7e1daf04d59915b48bd5fb01f2d", "f7e5b8e10d454a50a6ce914eab11eb9f", "e4a0715dccb444e982103d28c80b447c", "6b555fda3fe44cea918ebe554050c0d6", "036f955668a5437381833ca6a0d6371d", "a015d30565814237a4dd4f0dadcb689c", "731d0126c35540b9b8fa1b02a25dadb4", "d577b2c4223b4bb396b3c1462f324a20", "5ce00b7f6bd149eab3486322f366351e", "447b6d5210f84dc08d5c634023c7453f", "3560ef4a21dc4353b89f57427bc089de", "aa2da6ed7dd644cf92eb2b58506d94b1", "efb4d7fb4f9a473eb4d287f5d507781e", "d19b1888123c481db4af9e886c8ab8b9", "c880f4f983064426bde5f529a0a881e2", "c482792dc7e64113bf9a201b52e936de", "186da99333cc4434a7ade226a7e0de5b", "d5adb90946f848d695e1428e80d86c86", "39f47e8f46b1460e86b81104c8e8889f", "5f1aebc46565476ca45fb2dac665d32e", "addfdeeaad7141b3adc5cee148633aca", "3f6fef0e849d4ca2b513c3163e25d33c", "a03633f3c3f14de89df93902925257ce", "f668d1f90d0140e4ba414ae802546243", "b0214503fe67428a8018754d728e6071", "c52a92d0160e4c0f942d01c71f9d84b4", "98b625c8b8cf481ab133cba64396e429", "21017ef0da184688861ee9f0867d7505", "a7a0b1758b2c4e8fba3e87d8aae4ad79", "98bd6b13db084832bead597e5ffb0153", "0da112468fbc4cb29fb22c85b90db02e", "37c2be85c7844127a6100641bcd3f97d", "90fdc39bdaaf42a797cb08e5f55dec3a", "fa3a6e93d453426ab671487073fbde09", "0e4be0cc0e9348349ea6526df5811762", "b1fdbfcbb81f4f16a029bdf5d63d820a"]} outputId="158a376c-8b35-47b5-d82e-b7459284300f" import tensorflow_datasets as tfds imdb, info = tfds.load("imdb_reviews", with_info=True, as_supervised=True) # + id="wHQ2Ko0zl7M4" colab_type="code" colab={} import numpy as np train_data, test_data = imdb['train'], imdb['test'] training_sentences = [] training_labels = [] testing_sentences = [] testing_labels = [] # str(s.tonumpy()) is needed in Python3 instead of just s.numpy() for s,l in train_data: training_sentences.append(str(s.numpy())) training_labels.append(l.numpy()) for s,l in test_data: testing_sentences.append(str(s.numpy())) testing_labels.append(l.numpy()) training_labels_final = np.array(training_labels) testing_labels_final = np.array(testing_labels) # + id="7n15yyMdmoH1" colab_type="code" colab={} vocab_size = 10000 embedding_dim = 16 max_length = 120 trunc_type='post' oov_tok = "<OOV>" from tensorflow.keras.preprocessing.text import Tokenizer from tensorflow.keras.preprocessing.sequence import pad_sequences tokenizer = Tokenizer(num_words = vocab_size, oov_token=oov_tok) tokenizer.fit_on_texts(training_sentences) word_index = tokenizer.word_index sequences = tokenizer.texts_to_sequences(training_sentences) padded = pad_sequences(sequences,maxlen=max_length, truncating=trunc_type) testing_sequences = tokenizer.texts_to_sequences(testing_sentences) testing_padded = pad_sequences(testing_sequences,maxlen=max_length) # + colab_type="code" id="9axf0uIXVMhO" colab={"base_uri": "https://localhost:8080/", "height": 70} outputId="a52faac6-d5e1-4071-a29b-f6ce8b5aaef4" reverse_word_index = dict([(value, key) for (key, value) in word_index.items()]) def decode_review(text): return ' '.join([reverse_word_index.get(i, '?') for i in text]) print(decode_review(padded[1])) print(training_sentences[1]) # + id="5NEpdhb8AxID" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 286} outputId="a2501426-5bae-4acc-a6a8-c53837c1ffa5" model = tf.keras.Sequential([ tf.keras.layers.Embedding(vocab_size, embedding_dim, input_length=max_length), tf.keras.layers.Flatten(), tf.keras.layers.Dense(6, activation='relu'), tf.keras.layers.Dense(1, activation='sigmoid') ]) model.compile(loss='binary_crossentropy',optimizer='adam',metrics=['accuracy']) model.summary() # + id="V5LLrXC-uNX6" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 507} outputId="110fd2a4-3c46-403e-91d6-af4607f85fff" num_epochs = 10 model.fit(padded, training_labels_final, epochs=num_epochs, validation_data=(testing_padded, testing_labels_final)) # + id="yAmjJqEyCOF_" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 34} outputId="690ee156-96c9-4d3e-9088-42563623718e" e = model.layers[0] weights = e.get_weights()[0] print(weights.shape) # shape: (vocab_size, embedding_dim) # + id="jmB0Uxk0ycP6" colab_type="code" colab={} import io out_v = io.open('vecs.tsv', 'w', encoding='utf-8') out_m = io.open('meta.tsv', 'w', encoding='utf-8') for word_num in range(1, vocab_size): word = reverse_word_index[word_num] embeddings = weights[word_num] out_m.write(word + "\n") out_v.write('\t'.join([str(x) for x in embeddings]) + "\n") out_v.close() out_m.close() # + id="VDeqpOCVydtq" colab_type="code" colab={} try: from google.colab import files except ImportError: pass else: files.download('vecs.tsv') files.download('meta.tsv') # + id="YRxoxc2apscY" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 54} outputId="252745c2-5d47-49dc-da24-76366a11999e" sentence = "I really think this is amazing. honest." sequence = tokenizer.texts_to_sequences(sentence) print(sequence)
29,875
/opencv/12_colorspaces.ipynb
3e87962fb8a24e48ec63ec9297b5f3d3b66a5cd8
[]
no_license
GreenGhostMan/ml
https://github.com/GreenGhostMan/ml
1
0
null
null
null
null
Jupyter Notebook
false
false
.py
153,616
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # + # BGR VS RGB # COLORSPACES ==> GRAY,RGB,BGR,CMY,CMYK,HSV(Hue,Satuation,Value) import cv2 as cv import matplotlib.pyplot as plt def main(): img = cv.imread('images/lena_color_512.tif',1) img = cv.cvtColor(img,cv.COLOR_BGR2RGB) plt.imshow(img) plt.title('Color') plt.xticks([]) plt.yticks([]) plt.show() if __name__ == "__main__": main() # -
667
/voice/train classifier active passive proxy bert.ipynb
ba9bd0d65f2d210516fa839831bfef69389bca73
[]
no_license
kai-pinckard/thesis
https://github.com/kai-pinckard/thesis
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
950,767
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # + import torch # If there's a GPU available... if torch.cuda.is_available(): # Tell PyTorch to use the GPU. device = torch.device("cuda") print('There are %d GPU(s) available.' % torch.cuda.device_count()) print('We will use the GPU:', torch.cuda.get_device_name(0)) # If not... else: print('No GPU available, using the CPU instead.') device = torch.device("cpu") # + import json with open("\\Users\\kaidpinck\\thesis\\thesis\\classifier\\semeval2010task8\\voice_dataset.json", "r") as f: data = json.load(f) print(data) print(len(data)) # - sentences = [ item["sent"].lower() for item in data] sentences[0] labels = [ item["label"] for item in data] labels[0] # 1 corresponds to active and 0 to passive # + from transformers import BertTokenizer # Load the BERT tokenizer. print('Loading BERT tokenizer...') tokenizer = BertTokenizer.from_pretrained('bert-base-uncased', do_lower_case=True) # + # Print the original sentence. print(' Original: ', sentences[0]) # Print the sentence split into tokens. print('Tokenized: ', tokenizer.tokenize(sentences[0])) # Print the sentence mapped to token ids. print('Token IDs: ', tokenizer.convert_tokens_to_ids(tokenizer.tokenize(sentences[0]))) # + max_len = 0 # For every sentence... for sent in sentences: # Tokenize the text and add `[CLS]` and `[SEP]` tokens. input_ids = tokenizer.encode(sent, add_special_tokens=True) # Update the maximum sentence length. max_len = max(max_len, len(input_ids)) print('Max sentence length: ', max_len) # + # Tokenize all of the sentences and map the tokens to thier word IDs. input_ids = [] attention_masks = [] # For every sentence... for sent in sentences: # `encode_plus` will: # (1) Tokenize the sentence. # (2) Prepend the `[CLS]` token to the start. # (3) Append the `[SEP]` token to the end. # (4) Map tokens to their IDs. # (5) Pad or truncate the sentence to `max_length` # (6) Create attention masks for [PAD] tokens. encoded_dict = tokenizer.encode_plus( sent, # Sentence to encode. add_special_tokens = True, # Add '[CLS]' and '[SEP]' max_length = 128, # Pad & truncate all sentences. pad_to_max_length = True, return_attention_mask = True, # Construct attn. masks. return_tensors = 'pt', # Return pytorch tensors. truncation=True, padding="max_length" ) # Add the encoded sentence to the list. input_ids.append(encoded_dict['input_ids']) # And its attention mask (simply differentiates padding from non-padding). attention_masks.append(encoded_dict['attention_mask']) # Convert the lists into tensors. input_ids = torch.cat(input_ids, dim=0) attention_masks = torch.cat(attention_masks, dim=0) labels = torch.tensor(labels) # Print sentence 0, now as a list of IDs. print('Original: ', sentences[0]) print('Token IDs:', input_ids[0]) # + from torch.utils.data import TensorDataset, random_split # Combine the training inputs into a TensorDataset. dataset = TensorDataset(input_ids, attention_masks, labels) # Create a 90-10 train-validation split. # Calculate the number of samples to include in each set. train_size = int(0.9 * len(dataset)) val_size = len(dataset) - train_size # Divide the dataset by randomly selecting samples. train_dataset, val_dataset = random_split(dataset, [train_size, val_size]) print('{:>5,} training samples'.format(train_size)) print('{:>5,} validation samples'.format(val_size)) # + from torch.utils.data import DataLoader, RandomSampler, SequentialSampler # The DataLoader needs to know our batch size for training, so we specify it # here. For fine-tuning BERT on a specific task, the authors recommend a batch # size of 16 or 32. batch_size = 8 # Create the DataLoaders for our training and validation sets. # We'll take training samples in random order. train_dataloader = DataLoader( train_dataset, # The training samples. sampler = RandomSampler(train_dataset), # Select batches randomly batch_size = batch_size # Trains with this batch size. ) # For validation the order doesn't matter, so we'll just read them sequentially. validation_dataloader = DataLoader( val_dataset, # The validation samples. sampler = SequentialSampler(val_dataset), # Pull out batches sequentially. batch_size = batch_size # Evaluate with this batch size. ) # + from transformers import BertForSequenceClassification, AdamW, BertConfig # Load BertForSequenceClassification, the pretrained BERT model with a single # linear classification layer on top. model = BertForSequenceClassification.from_pretrained( "bert-base-uncased", # Use the 12-layer BERT model, with an uncased vocab. num_labels = 2, # The number of output labels--2 for binary classification. # You can increase this for multi-class tasks. output_attentions = False, # Whether the model returns attentions weights. output_hidden_states = False, # Whether the model returns all hidden-states. ) # Tell pytorch to run this model on the GPU. model.cuda() # - # Note: AdamW is a class from the huggingface library (as opposed to pytorch) # I believe the 'W' stands for 'Weight Decay fix" optimizer = AdamW(model.parameters(), lr = 2e-5, # args.learning_rate - default is 5e-5, our notebook had 2e-5 eps = 1e-8 # args.adam_epsilon - default is 1e-8. ) # + from transformers import get_linear_schedule_with_warmup # Number of training epochs. The BERT authors recommend between 2 and 4. # We chose to run for 4, but we'll see later that this may be over-fitting the # training data. epochs = 1 # Total number of training steps is [number of batches] x [number of epochs]. # (Note that this is not the same as the number of training samples). total_steps = len(train_dataloader) * epochs # Create the learning rate scheduler. scheduler = get_linear_schedule_with_warmup(optimizer, num_warmup_steps = 0, # Default value in run_glue.py num_training_steps = total_steps) # + import numpy as np # Function to calculate the accuracy of our predictions vs labels def flat_accuracy(preds, labels): pred_flat = np.argmax(preds, axis=1).flatten() labels_flat = labels.flatten() return np.sum(pred_flat == labels_flat) / len(labels_flat) # + import time import datetime def format_time(elapsed): ''' Takes a time in seconds and returns a string hh:mm:ss ''' # Round to the nearest second. elapsed_rounded = int(round((elapsed))) # Format as hh:mm:ss return str(datetime.timedelta(seconds=elapsed_rounded)) # + import random import numpy as np # This training code is based on the `run_glue.py` script here: # https://github.com/huggingface/transformers/blob/5bfcd0485ece086ebcbed2d008813037968a9e58/examples/run_glue.py#L128 # Set the seed value all over the place to make this reproducible. seed_val = 42 random.seed(seed_val) np.random.seed(seed_val) torch.manual_seed(seed_val) torch.cuda.manual_seed_all(seed_val) # We'll store a number of quantities such as training and validation loss, # validation accuracy, and timings. training_stats = [] # Measure the total training time for the whole run. total_t0 = time.time() # For each epoch... for epoch_i in range(0, epochs): # ======================================== # Training # ======================================== # Perform one full pass over the training set. print("") print('======== Epoch {:} / {:} ========'.format(epoch_i + 1, epochs)) print('Training...') # Measure how long the training epoch takes. t0 = time.time() # Reset the total loss for this epoch. total_train_loss = 0 # Put the model into training mode. Don't be mislead--the call to # `train` just changes the *mode*, it doesn't *perform* the training. # `dropout` and `batchnorm` layers behave differently during training # vs. test (source: https://stackoverflow.com/questions/51433378/what-does-model-train-do-in-pytorch) model.train() # For each batch of training data... for step, batch in enumerate(train_dataloader): # Progress update every 40 batches. if step % 40 == 0 and not step == 0: # Calculate elapsed time in minutes. elapsed = format_time(time.time() - t0) # Report progress. print(' Batch {:>5,} of {:>5,}. Elapsed: {:}.'.format(step, len(train_dataloader), elapsed)) # Unpack this training batch from our dataloader. # # As we unpack the batch, we'll also copy each tensor to the GPU using the # `to` method. # # `batch` contains three pytorch tensors: # [0]: input ids # [1]: attention masks # [2]: labels b_input_ids = batch[0].to(device) b_input_mask = batch[1].to(device) b_labels = batch[2].to(device) # Always clear any previously calculated gradients before performing a # backward pass. PyTorch doesn't do this automatically because # accumulating the gradients is "convenient while training RNNs". # (source: https://stackoverflow.com/questions/48001598/why-do-we-need-to-call-zero-grad-in-pytorch) model.zero_grad() # Perform a forward pass (evaluate the model on this training batch). # The documentation for this `model` function is here: # https://huggingface.co/transformers/v2.2.0/model_doc/bert.html#transformers.BertForSequenceClassification # It returns different numbers of parameters depending on what arguments # arge given and what flags are set. For our useage here, it returns # the loss (because we provided labels) and the "logits"--the model # outputs prior to activation. loss, logits = model(b_input_ids, token_type_ids=None, attention_mask=b_input_mask, labels=b_labels) # Accumulate the training loss over all of the batches so that we can # calculate the average loss at the end. `loss` is a Tensor containing a # single value; the `.item()` function just returns the Python value # from the tensor. total_train_loss += loss.item() # Perform a backward pass to calculate the gradients. loss.backward() # Clip the norm of the gradients to 1.0. # This is to help prevent the "exploding gradients" problem. torch.nn.utils.clip_grad_norm_(model.parameters(), 1.0) # Update parameters and take a step using the computed gradient. # The optimizer dictates the "update rule"--how the parameters are # modified based on their gradients, the learning rate, etc. optimizer.step() # Update the learning rate. scheduler.step() # Calculate the average loss over all of the batches. avg_train_loss = total_train_loss / len(train_dataloader) # Measure how long this epoch took. training_time = format_time(time.time() - t0) print("") print(" Average training loss: {0:.2f}".format(avg_train_loss)) print(" Training epcoh took: {:}".format(training_time)) # ======================================== # Validation # ======================================== # After the completion of each training epoch, measure our performance on # our validation set. print("") print("Running Validation...") t0 = time.time() # Put the model in evaluation mode--the dropout layers behave differently # during evaluation. model.eval() # Tracking variables total_eval_accuracy = 0 total_eval_loss = 0 nb_eval_steps = 0 # Evaluate data for one epoch for batch in validation_dataloader: # Unpack this training batch from our dataloader. # # As we unpack the batch, we'll also copy each tensor to the GPU using # the `to` method. # # `batch` contains three pytorch tensors: # [0]: input ids # [1]: attention masks # [2]: labels b_input_ids = batch[0].to(device) b_input_mask = batch[1].to(device) b_labels = batch[2].to(device) # Tell pytorch not to bother with constructing the compute graph during # the forward pass, since this is only needed for backprop (training). with torch.no_grad(): # Forward pass, calculate logit predictions. # token_type_ids is the same as the "segment ids", which # differentiates sentence 1 and 2 in 2-sentence tasks. # The documentation for this `model` function is here: # https://huggingface.co/transformers/v2.2.0/model_doc/bert.html#transformers.BertForSequenceClassification # Get the "logits" output by the model. The "logits" are the output # values prior to applying an activation function like the softmax. (loss, logits) = model(b_input_ids, token_type_ids=None, attention_mask=b_input_mask, labels=b_labels) # Accumulate the validation loss. total_eval_loss += loss.item() # Move logits and labels to CPU logits = logits.detach().cpu().numpy() label_ids = b_labels.to('cpu').numpy() # Calculate the accuracy for this batch of test sentences, and # accumulate it over all batches. total_eval_accuracy += flat_accuracy(logits, label_ids) # Report the final accuracy for this validation run. avg_val_accuracy = total_eval_accuracy / len(validation_dataloader) print(" Accuracy: {0:.2f}".format(avg_val_accuracy)) # Calculate the average loss over all of the batches. avg_val_loss = total_eval_loss / len(validation_dataloader) # Measure how long the validation run took. validation_time = format_time(time.time() - t0) print(" Validation Loss: {0:.2f}".format(avg_val_loss)) print(" Validation took: {:}".format(validation_time)) # Record all statistics from this epoch. training_stats.append( { 'epoch': epoch_i + 1, 'Training Loss': avg_train_loss, 'Valid. Loss': avg_val_loss, 'Valid. Accur.': avg_val_accuracy, 'Training Time': training_time, 'Validation Time': validation_time } ) print("") print("Training complete!") print("Total training took {:} (h:mm:ss)".format(format_time(time.time()-total_t0))) # + import pandas as pd # Display floats with two decimal places. pd.set_option('precision', 2) # Create a DataFrame from our training statistics. df_stats = pd.DataFrame(data=training_stats) # Use the 'epoch' as the row index. df_stats = df_stats.set_index('epoch') # A hack to force the column headers to wrap. #df = df.style.set_table_styles([dict(selector="th",props=[('max-width', '70px')])]) # Display the table. df_stats # + import matplotlib.pyplot as plt # %matplotlib inline import seaborn as sns # Use plot styling from seaborn. sns.set(style='darkgrid') # Increase the plot size and font size. sns.set(font_scale=1.5) plt.rcParams["figure.figsize"] = (12,6) # Plot the learning curve. plt.plot(df_stats['Training Loss'], 'b-o', label="Training") plt.plot(df_stats['Valid. Loss'], 'g-o', label="Validation") # Label the plot. plt.title("Training & Validation Loss") plt.xlabel("Epoch") plt.ylabel("Loss") plt.legend() plt.xticks([1, 2, 3, 4]) plt.show() # + #Option 1 previously handwritten causal sentences with open("\\Users\\kaidpinck\\thesis\\thesis\\benchmark\\statements.json", "r") as f: data = json.load(f) #print(data) # Report the number of sentences. print('Number of test sentences: {:,}\n'.format(len(data))) # Create sentence and label lists sentences = [ item["sent"].lower() for item in data] labels = [ 1 for item in data] for i in range(len(data)//2,len(data)): labels[i] = 0 print(sentences) print(labels) # + #Option 2 previously handwritten causal sentences with open("voice_dataset.json", "r") as f: data = json.load(f) #print(data) # Report the number of sentences. print('Number of test sentences: {:,}\n'.format(len(data))) # Create sentence and label lists sentences = [ item["sent"].lower() for item in data] labels = [ item["label"] for item in data] for i in range(len(data)//2,len(data)): labels[i] = 0 print(sentences) print(labels) # + # Tokenize all of the sentences and map the tokens to thier word IDs. input_ids = [] attention_masks = [] # For every sentence... for sent in sentences: # `encode_plus` will: # (1) Tokenize the sentence. # (2) Prepend the `[CLS]` token to the start. # (3) Append the `[SEP]` token to the end. # (4) Map tokens to their IDs. # (5) Pad or truncate the sentence to `max_length` # (6) Create attention masks for [PAD] tokens. encoded_dict = tokenizer.encode_plus( sent, # Sentence to encode. add_special_tokens = True, # Add '[CLS]' and '[SEP]' max_length = 128, # Pad & truncate all sentences. pad_to_max_length = True, return_attention_mask = True, # Construct attn. masks. return_tensors = 'pt', # Return pytorch tensors. truncation=True, padding="max_length" ) # Add the encoded sentence to the list. input_ids.append(encoded_dict['input_ids']) # And its attention mask (simply differentiates padding from non-padding). attention_masks.append(encoded_dict['attention_mask']) # Convert the lists into tensors. input_ids = torch.cat(input_ids, dim=0) attention_masks = torch.cat(attention_masks, dim=0) labels = torch.tensor(labels) # Set the batch size. batch_size = 8 # Create the DataLoader. prediction_data = TensorDataset(input_ids, attention_masks, labels) prediction_sampler = SequentialSampler(prediction_data) prediction_dataloader = DataLoader(prediction_data, sampler=prediction_sampler, batch_size=batch_size) # + # Prediction on test set print('Predicting labels for {:,} test sentences...'.format(len(input_ids))) # Put model in evaluation mode model.eval() # Tracking variables predictions , true_labels = [], [] # Predict for batch in prediction_dataloader: # Add batch to GPU batch = tuple(t.to(device) for t in batch) # Unpack the inputs from our dataloader b_input_ids, b_input_mask, b_labels = batch # Telling the model not to compute or store gradients, saving memory and # speeding up prediction with torch.no_grad(): # Forward pass, calculate logit predictions outputs = model(b_input_ids, token_type_ids=None, attention_mask=b_input_mask) logits = outputs[0] # Move logits and labels to CPU logits = logits.detach().cpu().numpy() label_ids = b_labels.to('cpu').numpy() # Store predictions and true labels predictions.append(logits) true_labels.append(label_ids) print(' DONE.') # + from sklearn.metrics import matthews_corrcoef matthews_set = [] # Evaluate each test batch using Matthew's correlation coefficient print('Calculating Matthews Corr. Coef. for each batch...') # For each input batch... for i in range(len(true_labels)): # The predictions for this batch are a 2-column ndarray (one column for "0" # and one column for "1"). Pick the label with the highest value and turn this # in to a list of 0s and 1s. pred_labels_i = np.argmax(predictions[i], axis=1).flatten() # Calculate and store the coef for this batch. matthews = matthews_corrcoef(true_labels[i], pred_labels_i) matthews_set.append(matthews) # + # Create a barplot showing the MCC score for each batch of test samples. ax = sns.barplot(x=list(range(len(matthews_set))), y=matthews_set, ci=None) plt.title('MCC Score per Batch') plt.ylabel('MCC Score (-1 to +1)') plt.xlabel('Batch #') plt.show() # + # Combine the results across all batches. flat_predictions = np.concatenate(predictions, axis=0) # For each sample, pick the label (0 or 1) with the higher score. flat_predictions = np.argmax(flat_predictions, axis=1).flatten() print("flat predictions:", flat_predictions ) # Combine the correct labels for each batch into a single list. flat_true_labels = np.concatenate(true_labels, axis=0) print("true labels:", flat_true_labels) # Calculate the MCC mcc = matthews_corrcoef(flat_true_labels, flat_predictions) print('Total MCC: %.3f' % mcc) # + # Accuracy by type #Correctly identified active #overall accuracy total = 0 total_active = 0 total_passive = 0 correct = 0 num_correct_active = 0 num_correct_passive = 0 for i, pred in enumerate(flat_predictions): if flat_true_labels[i] == 1: total_active += 1 if pred == 1: num_correct_active += 1 correct += 1 else: total_passive += 1 if pred == 0: num_correct_passive += 1 correct += 1 total += 1 print("overall accuracy", float(correct)/total) print("active voice accuracy", float(num_correct_active)/total_active) print("passive voice accuracy", float(num_correct_passive)/total_passive) # - and backward propagation. You need to compute the cost, because you want to check if your model is actually learning. # # **Exercise**: Compute the cross-entropy cost $J$, using the following formula: $$-\frac{1}{m} \sum\limits_{i = 1}^{m} (y^{(i)}\log\left(a^{[L] (i)}\right) + (1-y^{(i)})\log\left(1- a^{[L](i)}\right)) \tag{7}$$ # # + # GRADED FUNCTION: compute_cost def compute_cost(AL, Y): """ Implement the cost function defined by equation (7). Arguments: AL -- probability vector corresponding to your label predictions, shape (1, number of examples) Y -- true "label" vector (for example: containing 0 if non-cat, 1 if cat), shape (1, number of examples) Returns: cost -- cross-entropy cost """ m = Y.shape[1] # Compute loss from aL and y. ### START CODE HERE ### (≈ 1 lines of code) cost = (np.dot(Y, np.log(AL.T)) + np.dot(1 - Y, np.log(1 - AL.T)))/-m ### END CODE HERE ### cost = np.squeeze(cost) # To make sure your cost's shape is what we expect (e.g. this turns [[17]] into 17). assert(cost.shape == ()) return cost # + Y, AL = compute_cost_test_case() print("cost = " + str(compute_cost(AL, Y))) # - # **Expected Output**: # # <table> # # <tr> # <td>**cost** </td> # <td> 0.2797765635793422</td> # </tr> # </table> # ## 6 - Backward propagation module # # Just like with forward propagation, you will implement helper functions for backpropagation. Remember that back propagation is used to calculate the gradient of the loss function with respect to the parameters. # # **Reminder**: # <img src="images/backprop_kiank.png" style="width:650px;height:250px;"> # <caption><center> **Figure 3** : Forward and Backward propagation for *LINEAR->RELU->LINEAR->SIGMOID* <br> *The purple blocks represent the forward propagation, and the red blocks represent the backward propagation.* </center></caption> # # <!-- # For those of you who are expert in calculus (you don't need to be to do this assignment), the chain rule of calculus can be used to derive the derivative of the loss $\mathcal{L}$ with respect to $z^{[1]}$ in a 2-layer network as follows: # # $$\frac{d \mathcal{L}(a^{[2]},y)}{{dz^{[1]}}} = \frac{d\mathcal{L}(a^{[2]},y)}{{da^{[2]}}}\frac{{da^{[2]}}}{{dz^{[2]}}}\frac{{dz^{[2]}}}{{da^{[1]}}}\frac{{da^{[1]}}}{{dz^{[1]}}} \tag{8} $$ # # In order to calculate the gradient $dW^{[1]} = \frac{\partial L}{\partial W^{[1]}}$, you use the previous chain rule and you do $dW^{[1]} = dz^{[1]} \times \frac{\partial z^{[1]} }{\partial W^{[1]}}$. During the backpropagation, at each step you multiply your current gradient by the gradient corresponding to the specific layer to get the gradient you wanted. # # Equivalently, in order to calculate the gradient $db^{[1]} = \frac{\partial L}{\partial b^{[1]}}$, you use the previous chain rule and you do $db^{[1]} = dz^{[1]} \times \frac{\partial z^{[1]} }{\partial b^{[1]}}$. # # This is why we talk about **backpropagation**. # !--> # # Now, similar to forward propagation, you are going to build the backward propagation in three steps: # - LINEAR backward # - LINEAR -> ACTIVATION backward where ACTIVATION computes the derivative of either the ReLU or sigmoid activation # - [LINEAR -> RELU] $\times$ (L-1) -> LINEAR -> SIGMOID backward (whole model) # ### 6.1 - Linear backward # # For layer $l$, the linear part is: $Z^{[l]} = W^{[l]} A^{[l-1]} + b^{[l]}$ (followed by an activation). # # Suppose you have already calculated the derivative $dZ^{[l]} = \frac{\partial \mathcal{L} }{\partial Z^{[l]}}$. You want to get $(dW^{[l]}, db^{[l]}, dA^{[l-1]})$. # # <img src="images/linearback_kiank.png" style="width:250px;height:300px;"> # <caption><center> **Figure 4** </center></caption> # # The three outputs $(dW^{[l]}, db^{[l]}, dA^{[l-1]})$ are computed using the input $dZ^{[l]}$.Here are the formulas you need: # $$ dW^{[l]} = \frac{\partial \mathcal{J} }{\partial W^{[l]}} = \frac{1}{m} dZ^{[l]} A^{[l-1] T} \tag{8}$$ # $$ db^{[l]} = \frac{\partial \mathcal{J} }{\partial b^{[l]}} = \frac{1}{m} \sum_{i = 1}^{m} dZ^{[l](i)}\tag{9}$$ # $$ dA^{[l-1]} = \frac{\partial \mathcal{L} }{\partial A^{[l-1]}} = W^{[l] T} dZ^{[l]} \tag{10}$$ # # **Exercise**: Use the 3 formulas above to implement linear_backward(). # + # GRADED FUNCTION: linear_backward def linear_backward(dZ, cache): """ Implement the linear portion of backward propagation for a single layer (layer l) Arguments: dZ -- Gradient of the cost with respect to the linear output (of current layer l) cache -- tuple of values (A_prev, W, b) coming from the forward propagation in the current layer Returns: dA_prev -- Gradient of the cost with respect to the activation (of the previous layer l-1), same shape as A_prev dW -- Gradient of the cost with respect to W (current layer l), same shape as W db -- Gradient of the cost with respect to b (current layer l), same shape as b """ A_prev, W, b = cache m = A_prev.shape[1] ### START CODE HERE ### (≈ 3 lines of code) dW = np.dot(dZ, A_prev.T) / m db = np.sum(dZ, axis = 1, keepdims = True) / m dA_prev = np.dot(W.T, dZ) ### END CODE HERE ### assert (dA_prev.shape == A_prev.shape) assert (dW.shape == W.shape) assert (db.shape == b.shape) return dA_prev, dW, db # + # Set up some test inputs dZ, linear_cache = linear_backward_test_case() dA_prev, dW, db = linear_backward(dZ, linear_cache) print ("dA_prev = "+ str(dA_prev)) print ("dW = " + str(dW)) print ("db = " + str(db)) # - # ** Expected Output**: # # ``` # dA_prev = # [[-1.15171336 0.06718465 -0.3204696 2.09812712] # [ 0.60345879 -3.72508701 5.81700741 -3.84326836] # [-0.4319552 -1.30987417 1.72354705 0.05070578] # [-0.38981415 0.60811244 -1.25938424 1.47191593] # [-2.52214926 2.67882552 -0.67947465 1.48119548]] # dW = # [[ 0.07313866 -0.0976715 -0.87585828 0.73763362 0.00785716] # [ 0.85508818 0.37530413 -0.59912655 0.71278189 -0.58931808] # [ 0.97913304 -0.24376494 -0.08839671 0.55151192 -0.10290907]] # db = # [[-0.14713786] # [-0.11313155] # [-0.13209101]] # ``` # ### 6.2 - Linear-Activation backward # # Next, you will create a function that merges the two helper functions: **`linear_backward`** and the backward step for the activation **`linear_activation_backward`**. # # To help you implement `linear_activation_backward`, we provided two backward functions: # - **`sigmoid_backward`**: Implements the backward propagation for SIGMOID unit. You can call it as follows: # # ```python # dZ = sigmoid_backward(dA, activation_cache) # ``` # # - **`relu_backward`**: Implements the backward propagation for RELU unit. You can call it as follows: # # ```python # dZ = relu_backward(dA, activation_cache) # ``` # # If $g(.)$ is the activation function, # `sigmoid_backward` and `relu_backward` compute $$dZ^{[l]} = dA^{[l]} * g'(Z^{[l]}) \tag{11}$$. # # **Exercise**: Implement the backpropagation for the *LINEAR->ACTIVATION* layer. # + # GRADED FUNCTION: linear_activation_backward def linear_activation_backward(dA, cache, activation): """ Implement the backward propagation for the LINEAR->ACTIVATION layer. Arguments: dA -- post-activation gradient for current layer l cache -- tuple of values (linear_cache, activation_cache) we store for computing backward propagation efficiently activation -- the activation to be used in this layer, stored as a text string: "sigmoid" or "relu" Returns: dA_prev -- Gradient of the cost with respect to the activation (of the previous layer l-1), same shape as A_prev dW -- Gradient of the cost with respect to W (current layer l), same shape as W db -- Gradient of the cost with respect to b (current layer l), same shape as b """ linear_cache, activation_cache = cache if activation == "relu": ### START CODE HERE ### (≈ 2 lines of code) dZ = relu_backward(dA, activation_cache) dA_prev, dW, db = linear_backward(dZ, linear_cache) ### END CODE HERE ### elif activation == "sigmoid": ### START CODE HERE ### (≈ 2 lines of code) dZ = sigmoid_backward(dA, activation_cache) dA_prev, dW, db = linear_backward(dZ, linear_cache) ### END CODE HERE ### return dA_prev, dW, db # + dAL, linear_activation_cache = linear_activation_backward_test_case() dA_prev, dW, db = linear_activation_backward(dAL, linear_activation_cache, activation = "sigmoid") print ("sigmoid:") print ("dA_prev = "+ str(dA_prev)) print ("dW = " + str(dW)) print ("db = " + str(db) + "\n") dA_prev, dW, db = linear_activation_backward(dAL, linear_activation_cache, activation = "relu") print ("relu:") print ("dA_prev = "+ str(dA_prev)) print ("dW = " + str(dW)) print ("db = " + str(db)) # - # **Expected output with sigmoid:** # # <table style="width:100%"> # <tr> # <td > dA_prev </td> # <td >[[ 0.11017994 0.01105339] # [ 0.09466817 0.00949723] # [-0.05743092 -0.00576154]] </td> # # </tr> # # <tr> # <td > dW </td> # <td > [[ 0.10266786 0.09778551 -0.01968084]] </td> # </tr> # # <tr> # <td > db </td> # <td > [[-0.05729622]] </td> # </tr> # </table> # # # **Expected output with relu:** # # <table style="width:100%"> # <tr> # <td > dA_prev </td> # <td > [[ 0.44090989 0. ] # [ 0.37883606 0. ] # [-0.2298228 0. ]] </td> # # </tr> # # <tr> # <td > dW </td> # <td > [[ 0.44513824 0.37371418 -0.10478989]] </td> # </tr> # # <tr> # <td > db </td> # <td > [[-0.20837892]] </td> # </tr> # </table> # # # ### 6.3 - L-Model Backward # # Now you will implement the backward function for the whole network. Recall that when you implemented the `L_model_forward` function, at each iteration, you stored a cache which contains (X,W,b, and z). In the back propagation module, you will use those variables to compute the gradients. Therefore, in the `L_model_backward` function, you will iterate through all the hidden layers backward, starting from layer $L$. On each step, you will use the cached values for layer $l$ to backpropagate through layer $l$. Figure 5 below shows the backward pass. # # # <img src="images/mn_backward.png" style="width:450px;height:300px;"> # <caption><center> **Figure 5** : Backward pass </center></caption> # # ** Initializing backpropagation**: # To backpropagate through this network, we know that the output is, # $A^{[L]} = \sigma(Z^{[L]})$. Your code thus needs to compute `dAL` $= \frac{\partial \mathcal{L}}{\partial A^{[L]}}$. # To do so, use this formula (derived using calculus which you don't need in-depth knowledge of): # ```python # dAL = - (np.divide(Y, AL) - np.divide(1 - Y, 1 - AL)) # derivative of cost with respect to AL # ``` # # You can then use this post-activation gradient `dAL` to keep going backward. As seen in Figure 5, you can now feed in `dAL` into the LINEAR->SIGMOID backward function you implemented (which will use the cached values stored by the L_model_forward function). After that, you will have to use a `for` loop to iterate through all the other layers using the LINEAR->RELU backward function. You should store each dA, dW, and db in the grads dictionary. To do so, use this formula : # # $$grads["dW" + str(l)] = dW^{[l]}\tag{15} $$ # # For example, for $l=3$ this would store $dW^{[l]}$ in `grads["dW3"]`. # # **Exercise**: Implement backpropagation for the *[LINEAR->RELU] $\times$ (L-1) -> LINEAR -> SIGMOID* model. # + # GRADED FUNCTION: L_model_backward def L_model_backward(AL, Y, caches): """ Implement the backward propagation for the [LINEAR->RELU] * (L-1) -> LINEAR -> SIGMOID group Arguments: AL -- probability vector, output of the forward propagation (L_model_forward()) Y -- true "label" vector (containing 0 if non-cat, 1 if cat) caches -- list of caches containing: every cache of linear_activation_forward() with "relu" (it's caches[l], for l in range(L-1) i.e l = 0...L-2) the cache of linear_activation_forward() with "sigmoid" (it's caches[L-1]) Returns: grads -- A dictionary with the gradients grads["dA" + str(l)] = ... grads["dW" + str(l)] = ... grads["db" + str(l)] = ... """ grads = {} L = len(caches) # the number of layers m = AL.shape[1] Y = Y.reshape(AL.shape) # after this line, Y is the same shape as AL # Initializing the backpropagation ### START CODE HERE ### (1 line of code) dAL = - (np.divide(Y, AL) - np.divide(1 - Y, 1 - AL)) ### END CODE HERE ### # Lth layer (SIGMOID -> LINEAR) gradients. Inputs: "dAL, current_cache". Outputs: "grads["dAL-1"], grads["dWL"], grads["dbL"] ### START CODE HERE ### (approx. 2 lines) current_cache = caches[L-1] grads["dA" + str(L-1)], grads["dW" + str(L)], grads["db" + str(L)] = linear_activation_backward(dAL, current_cache, "sigmoid") ### END CODE HERE ### # Loop from l=L-2 to l=0 for l in reversed(range(L-1)): # lth layer: (RELU -> LINEAR) gradients. # Inputs: "grads["dA" + str(l + 1)], current_cache". Outputs: "grads["dA" + str(l)] , grads["dW" + str(l + 1)] , grads["db" + str(l + 1)] ### START CODE HERE ### (approx. 5 lines) current_cache = caches[l] dA_prev_temp, dW_temp, db_temp = linear_activation_backward(grads["dA" + str(l + 1)], current_cache, "relu") grads["dA" + str(l)] = dA_prev_temp grads["dW" + str(l + 1)] = dW_temp grads["db" + str(l + 1)] = db_temp ### END CODE HERE ### return grads # - AL, Y_assess, caches = L_model_backward_test_case() grads = L_model_backward(AL, Y_assess, caches) print_grads(grads) # **Expected Output** # # <table style="width:60%"> # # <tr> # <td > dW1 </td> # <td > [[ 0.41010002 0.07807203 0.13798444 0.10502167] # [ 0. 0. 0. 0. ] # [ 0.05283652 0.01005865 0.01777766 0.0135308 ]] </td> # </tr> # # <tr> # <td > db1 </td> # <td > [[-0.22007063] # [ 0. ] # [-0.02835349]] </td> # </tr> # # <tr> # <td > dA1 </td> # <td > [[ 0.12913162 -0.44014127] # [-0.14175655 0.48317296] # [ 0.01663708 -0.05670698]] </td> # # </tr> # </table> # # # ### 6.4 - Update Parameters # # In this section you will update the parameters of the model, using gradient descent: # # $$ W^{[l]} = W^{[l]} - \alpha \text{ } dW^{[l]} \tag{16}$$ # $$ b^{[l]} = b^{[l]} - \alpha \text{ } db^{[l]} \tag{17}$$ # # where $\alpha$ is the learning rate. After computing the updated parameters, store them in the parameters dictionary. # **Exercise**: Implement `update_parameters()` to update your parameters using gradient descent. # # **Instructions**: # Update parameters using gradient descent on every $W^{[l]}$ and $b^{[l]}$ for $l = 1, 2, ..., L$. # # + # GRADED FUNCTION: update_parameters def update_parameters(parameters, grads, learning_rate): """ Update parameters using gradient descent Arguments: parameters -- python dictionary containing your parameters grads -- python dictionary containing your gradients, output of L_model_backward Returns: parameters -- python dictionary containing your updated parameters parameters["W" + str(l)] = ... parameters["b" + str(l)] = ... """ L = len(parameters) // 2 # number of layers in the neural network # Update rule for each parameter. Use a for loop. ### START CODE HERE ### (≈ 3 lines of code) for l in range(L): parameters["W" + str(l+1)] = parameters["W" + str(l+1)] - learning_rate * grads["dW" + str(l+1)] parameters["b" + str(l+1)] = parameters["b" + str(l+1)] - learning_rate * grads["db" + str(l+1)] ### END CODE HERE ### return parameters # + parameters, grads = update_parameters_test_case() parameters = update_parameters(parameters, grads, 0.1) print ("W1 = "+ str(parameters["W1"])) print ("b1 = "+ str(parameters["b1"])) print ("W2 = "+ str(parameters["W2"])) print ("b2 = "+ str(parameters["b2"])) # - # **Expected Output**: # # <table style="width:100%"> # <tr> # <td > W1 </td> # <td > [[-0.59562069 -0.09991781 -2.14584584 1.82662008] # [-1.76569676 -0.80627147 0.51115557 -1.18258802] # [-1.0535704 -0.86128581 0.68284052 2.20374577]] </td> # </tr> # # <tr> # <td > b1 </td> # <td > [[-0.04659241] # [-1.28888275] # [ 0.53405496]] </td> # </tr> # <tr> # <td > W2 </td> # <td > [[-0.55569196 0.0354055 1.32964895]]</td> # </tr> # # <tr> # <td > b2 </td> # <td > [[-0.84610769]] </td> # </tr> # </table> # # # ## 7 - Conclusion # # Congrats on implementing all the functions required for building a deep neural network! # # We know it was a long assignment but going forward it will only get better. The next part of the assignment is easier. # # In the next assignment you will put all these together to build two models: # - A two-layer neural network # - An L-layer neural network # # You will in fact use these models to classify cat vs non-cat images!
39,732
/lab11-students/lab11-students/Lab 1 Load Prediction in ERCOT Markets-Students.ipynb
a01cb1a2d066491d245fe11d8c76fceef6b33432
[]
no_license
YichenZhou113/ECE398BD
https://github.com/YichenZhou113/ECE398BD
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
554,963
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # # Lab 1: Day-ahead load prediction for ERCOT (Texas) markets. # # In this lab, you train a neural network to predict 24-hour aggregate load from Texas for a day using history of demands. The goals for this lab are: # 1. Load the data and analyze to find patterns. # 2. Define a neural network for the regression. Try different number of layers, learning rates, linear v/s nonlinear regression, activation functions, number of epochs, etc. # 3. Explore the effects of wind energy on load prediction. # + import os import tensorflow as tf import numpy as np import pandas as pd import random import datetime from sklearn.model_selection import train_test_split from sklearn import preprocessing import matplotlib.pyplot as plt # The following line suppresses certain warnings. os.environ['TF_CPP_MIN_LOG_LEVEL']='2' # - # ## Load the ERCOT data from 2015. # # The load data is given in the column named 'ERCOT Load, MW' in the csv file provided. # + year = 2015 dfDemand = pd.read_csv("ERCOT_Hourly_Wind_Output_" + str(year) + ".csv") demands = dfDemand['ERCOT Load, MW'] # Count the number of days for which we have demand data. numberOfDays = int(len(demands)/24) print("Hourly demand data loaded for %d days." % numberOfDays) # - # ## Understand the data. # # It is always useful to get accustomed to the data you are trying to learn. Visualize it if you can. # # #### Q1. How does load vary over the year in Texas? # + fig = plt.figure() plt.plot([hour/24 for hour in range(numberOfDays * 24)], demands.values) plt.xlabel("Days in " + str(year)) plt.ylabel("Net demand of Texas (in MW)") # - # **Fact.** A significant portion of the demand is usually thermal, i.e., for air conditioners and heating systems. # # **Question (5 points).** From the above plot, what can you infer about the climate of Texas? What would you expect if you plotted the same in Illinois? # # **Your answer.** The climate is hot during the summer in Texas, because the demand in Summer is much higher than other time. For Illinois, I expect a plot with higher peaks at the two sides, because the climate here is cold and demand during winter would be larger. # # #### Q2. How does day of week affect the load profiles? # + # Plot the load data of the same day of the week over several weeks. dayStart = 30 numberOfWeeks = 4 DayOfWeek = ['Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday'] print("The first day in the first plot is Jan 31, " + str(year) + ".") print("Day 1", "was a", DayOfWeek[datetime.date(year, 1, 31).weekday()] + ".") fig, axs = plt.subplots(7, 1, sharex=True, figsize=(5,10)) axs = axs.ravel() for dayInFirstWeek in range(7): for week in range(numberOfWeeks): axs[dayInFirstWeek].plot(range(24), dfDemand.loc[(dayStart + 7 * week + dayInFirstWeek) * 24: (dayStart + 7 * week + dayInFirstWeek + 1) * 24 - 1, 'ERCOT Load, MW'].values.flatten()) axs[dayInFirstWeek].set_ylim(bottom=20000, top=60000) axs[dayInFirstWeek].set_title("Day " + str(dayInFirstWeek + 1)) fig.tight_layout() plt.show() # - # **Question (5 points).** Can you find any discernible change in the load profiles of different days of the week? # # **Your answer.** The demand in first two days are generally lower. And in those two days between the weeks, the demands are more identical. # **Question (15 points).** Redo the above exercise for the month of August. Make 'Day 1' correspond to August 15th. What do you observe differently? Do your observations agree with Q1? # # **Your answer (comments here, code below).** I noticed the overall demand is much larger than what is in January and Feburary, I need to change the y lim because the peak demand is bigger than 60000. This observation agrees with Q1 in that the demand in summer is much larger. # + print(datetime.date(year, 8, 15)) dayStart = 227 numberOfWeeks = 4 DayOfWeek = ['Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday'] print("The first day in the first plot is Aug 15th, " + str(year) + ".") print("Day 1", "was a", DayOfWeek[datetime.date(year, 8, 15).weekday()] + ".") fig, axs = plt.subplots(7, 1, sharex=True, figsize=(5,10)) axs = axs.ravel() for dayInFirstWeek in range(7): for week in range(numberOfWeeks): axs[dayInFirstWeek].plot(range(24), dfDemand.loc[(dayStart + 7 * week + dayInFirstWeek) * 24: (dayStart + 7 * week + dayInFirstWeek + 1) * 24 - 1, 'ERCOT Load, MW'].values.flatten()) axs[dayInFirstWeek].set_ylim(bottom=30000, top=70000) axs[dayInFirstWeek].set_title("Day " + str(dayInFirstWeek + 1)) fig.tight_layout() plt.show() # - # ## Define the demand prediction module. # # Use past demand profiles to predict demands a day in advance. We draw two conclusions from the above analysis: # 1. Demand profiles have seasonal effects. Therefore, data from the past few days will help in predicting the demands tomorrow. # 2. Demand profiles have weekly dependencies. Therefore, data from the same days but a week or two before can be useful in load prediction. # # How much past data you want to train over depends on two considerations: # 1. Which data in the past is useful in prediction? # 2. How complex you want your training process to be? The more features of past data you want to train on, the more complex your neural network should be, and it will require more time to train it. # # To strike a balance, use the demand profile from $d-7, d-2, d-1$ to predict the load profile of day $d$. # + daysToTrainOn = [-7, -2, -1] rangeOfDays = range(-np.min(daysToTrainOn), numberOfDays) X = [np.concatenate([dfDemand.loc[(day + h) * 24: (day + h + 1) * 24 -1, 'ERCOT Load, MW'].values.flatten() for h in daysToTrainOn]) for day in rangeOfDays] Y = [dfDemand.loc[day * 24: (day + 1) * 24 - 1, 'ERCOT Load, MW'].values.flatten() for day in rangeOfDays] # - # When you perform regression, it is often desirable to scale the inputs so that it has zero mean and unit variance. Other types of scaling are possible. Here, we cheat a little and scale both the training and test data together. Ideally, they should be scaled separately. # # Split the data into two sets: training set and testing set. Train the neural network on the training set, and test how well it performs on the testing set. You should typically never sample from the training set to test your algorithms. The learnt model for prediction should work well on data that the algorithm has never encountered before. # # The function 'train_test_split' helps you to split the data into two parts, where 'test_size' # indicates the fraction of the data you want to test on. # + X = preprocessing.StandardScaler().fit_transform(X) trainX, testX, trainY, testY = train_test_split(X, Y, test_size=0.2) print("Scaled and split the data into two parts:") nTrain = np.shape(trainX)[0] nTest = np.shape(testX)[0] print("Neural network will train on data from %d days, and test on %d days." % (nTrain, nTest)) # - # ### Design the neural network (NN) for demand prediction with only one hidden layer. # # Recall that TensorFlow defines a computation graph where the weights and biases associated with the NN are variables. The goal is to optimize the weights and biases of the NN to minimize prediction error using data. # # # To define the computation graph, create the inputs and outputs as 'placeholders'. # The algorithm only expects them to be specified at the time of computation. The # first element of the shape attribute for both inputs and outputs are 'None'. This # means that they are left unspecified, and will be provided at runtime. It will help # in batch training for prediction, where the size of the batch will determine # this value. Batch training is useful because training the NN with one data point at a # time can be time consuming. # # In this lab, we begin with a 'relu' activation. We additionally implement 'dropouts' that basically # prevents certain paramters from updating in each round. This is known to prevent overfitting. The number'0.995' in the description below updates 99.5% of all weights, leaving out 0.5%. # # Design the optimizer and the loss. For reporting the accuracy of prediction, we choose in this lab the idea of mean absolute error (MAE). For a data set, if the true values are scalars $y_1, \ldots, y_m$ and the predictions are $\hat{y}_1, \ldots, \hat{y}_m$, then its MAE is given by # $$ MAE = \frac{1}{m}\sum|y_i - \hat{y}_i|.$$ # If $y$ and $\hat{y}$ are multidimensional, it computes the average across each coordinate of $y$ and $\hat{y}$. # # **Question (5 points). Insert a line of code for the output of layer 1 below (use the relu function)** # + nHidden = 150 # Store the dimension of each row of 'X' in 'nDimX' and that of 'Y' in 'nDimY' . nDimX = np.shape(trainX)[1] nDimY = np.shape(trainY)[1] # Define the inputs and the target outputs for the NN. inputNN = tf.placeholder(dtype=tf.float32, shape=[None, nDimX]) targetOutputNN = tf.placeholder(dtype=tf.float32, shape=[None, nDimY]) # Define the weights and biases of the first layer. W1 = tf.Variable(tf.truncated_normal(shape=[nDimX, nHidden])) b1 = tf.Variable(tf.zeros(nHidden)) # Define the output of layer 1. ## use the function 'tf.nn.relu' to define 'OutputLayer1'. # .... outputLayer1 = tf.nn.relu(tf.matmul(inputNN, W1) + b1) outputLayer1 = tf.nn.dropout(outputLayer1, 0.995) # Define the weights and biases of the second layer. W2 = tf.Variable(tf.truncated_normal(shape=[nHidden, nDimY])) b2 = tf.Variable(tf.zeros(nDimY)) # Define the output of layer 2. outputNN = tf.nn.dropout((tf.matmul(outputLayer1, W2) + b2), 0.995) # Define the loss function and the optimizer. loss = tf.losses.mean_squared_error(labels=targetOutputNN, predictions=outputNN) optimizer = tf.train.AdagradOptimizer(learning_rate=0.25).minimize(loss) # Compute the MAE metric to judge accuracy of prediction. _, maeY = tf.metrics.mean_absolute_error(labels=targetOutputNN, predictions=outputNN) # - # # ### Train the neural network. # # Create the training module for the NN. Feed the training data in batches of size 'batchSize' # and ask Tensorflow to run the function 'optimizer'. The number of batches, denoted by 'nBatches' # is then given by the size of your training dataset divided by 'batchSize. Usually, going through # the training data once does not train your NN. You train over the same data multiple # times. More precisely, train it 'nEpochs' times. It is similar to the idea that you never learn # a material by reading through it once! # + batchSize = 50 nBatches = int(nTrain/batchSize) nEpochs = 7000 # Define a session. sess = tf.Session() with sess.as_default(): # Initialize the computation graph. sess.run(tf.global_variables_initializer()) sess.run(tf.local_variables_initializer()) print("Started the training module.") for epoch in range(nEpochs): lossEpoch = 0 # In each epoch, use 'optimizer' to reduce the 'loss' over batches of data. for n in range(nBatches): # Define the batch to train on. batchX = trainX[n * batchSize: (n + 1) * batchSize] batchY = trainY[n * batchSize: (n + 1) * batchSize] # Run the optimizer, and specify the placeholders with the inputs and # target outputs from the batch. _, lossBatch = sess.run([optimizer, loss], feed_dict={inputNN: batchX, targetOutputNN: batchY}) # Keep track of the total loss over an entire epoch. lossEpoch += lossBatch if (epoch + 1) % 200 == 0: # Output the loss over an epoch, every few epochs or so. print("Epoch: %d - Average loss in last epoch = %1.1f" % (epoch + 1, lossEpoch/nBatches)) print("Training process completed.") # - # ### Test the accuracy of prediction via NN. # # Here, you report the mean absolute error of your predictions over the 'testX' dataset. Finally, plot the actual demand profile versus the predicted demand profile for a few days from the test data. predictedY, maeOfPrediction = sess.run([outputNN, maeY], feed_dict={inputNN: testX, targetOutputNN: testY}) print("Mean absolute error of forecast = ", maeOfPrediction) # **Question (5 points).** Comment whether your MAE is high or low. # # **Hint.** Compare the mean absolute error to the maximum demands. # # **Your answer.** My MAE is low, only 2414 comparing to the maximum demands of more than 60000. # ### Let us visualize the results. # # Plot the predicted load and compare against the actual load from the test data. assert(nTest >= 16) days = random.sample(range(nTest), 16) fig, axs = plt.subplots(4, 4, sharex=True, sharey=True, figsize=(10,10)) axs = axs.ravel() for dd, day in enumerate(days): testYDay = testY[day] predictedYDay = predictedY[day] l1 = axs[dd].plot(range(1, 25), testYDay, label='Measured') l2 = axs[dd].plot(range(1, 25), predictedYDay, label='Predicted') axs[dd].set_ylim(bottom=0, top=75000) axs[dd].legend() fig.text(0.5, 0.07, 'Time of day (in hour)', ha='center') fig.text(0.04, 0.5, 'Demand in Texas (in MW)', va='center', rotation='vertical') plt.show() # **Question (20 points).** Explore how the number of epochs affects the accuracy and speed of training. Start with 10 epochs, and increase it to 100, 1000, 5000, 10000, and maybe more (do not exceed 20000 unless you have a powerful computer, you are only required to do up to 10000 for this lab). Make comments based on your observations. As an engineer, what is your favorite number of epochs, and why? # # **Your answer.** As the number of epochs become larger, at first the predicted Demand is more identical to the measured ones, However, when the number of epochs comes bigger to for example 10000, the MAE slightly increases, and the predicted value have some great errors on the plot. The speed becomes slower as I increase number of epochs. My favorite number of epochs is 7000 becaue the MAE at this case is only 2117 and the plot looks fine. # # **Question (20 points).** Fix the number of echos to your favorite one, and then explore how the number of neurons affects the accuracy and speed of training. Start with 6 , and increase it to 12, 24, 48, 100, and more. Make comments based on your observations. As an engineer, what is your favorite number of neurons, and why? # # **Your answer.** First when the number of neuron increases, the accuracy becomes higher. However, the accuracy goes down after certain threshold. And the speed is always becoming slower as the number of neurons increases. My favorite number of neurons is 150 because it gives the smallest MAE. # # **Question (30 points).** Fix the number of epochs and neurons to your favorite ones. Then, add another layer to the network. Discuss what your observe in terms of speed and accuracy. If the training becomes too slow, you may alter the number of epochs/neurons. # # **Your answer (comments here, code below)**. I observed that the speed becomes slower. My MAE becomes drops by 20 which means the accuracy raises. # # # # **Your code should show the results for the 2 layers case. Go back to the codes above for the 1 layer case and run it again for the same number of epochs/neurons** # + nHidden = 150 # Store the dimension of each row of 'X' in 'nDimX' and that of 'Y' in 'nDimY' . nDimX = np.shape(trainX)[1] nDimY = np.shape(trainY)[1] # Define the inputs and the target outputs for the NN. inputNN = tf.placeholder(dtype=tf.float32, shape=[None, nDimX]) targetOutputNN = tf.placeholder(dtype=tf.float32, shape=[None, nDimY]) # Define the weights and biases of the first layer. W1 = tf.Variable(tf.truncated_normal(shape=[nDimX, nHidden])) b1 = tf.Variable(tf.zeros(nHidden)) # Define the output of layer 1. ## use the function 'tf.nn.relu' to define 'OutputLayer1'. # .... outputLayer1 = tf.nn.relu(tf.matmul(inputNN, W1) + b1) outputLayer1 = tf.nn.dropout(outputLayer1, 0.995) print(outputLayer1.shape) # Define the weights and biases of the second layer. W2 = tf.Variable(tf.truncated_normal(shape=[nHidden, nHidden])) b2 = tf.Variable(tf.zeros(nHidden)) # Define the output of layer 2. outputLayer2 = tf.nn.relu(tf.matmul(outputLayer1, W2) + b2) outputLayer2 = tf.nn.dropout(outputLayer2, 0.995) print(outputLayer2.shape) W3 = tf.Variable(tf.truncated_normal(shape=[nHidden, nDimY])) b3 = tf.Variable(tf.zeros(nDimY)) # Define the output of layer 3. outputNN = tf.nn.dropout((tf.matmul(outputLayer2, W3) + b3), 0.995) print(outputNN.shape) # Define the loss function and the optimizer. loss = tf.losses.mean_squared_error(labels=targetOutputNN, predictions=outputNN) optimizer = tf.train.AdagradOptimizer(learning_rate=0.25).minimize(loss) # Compute the MAE metric to judge accuracy of prediction. _, maeY = tf.metrics.mean_absolute_error(labels=targetOutputNN, predictions=outputNN) # + batchSize = 50 nBatches = int(nTrain/batchSize) nEpochs = 7000 # Define a session. sess = tf.Session() with sess.as_default(): # Initialize the computation graph. sess.run(tf.global_variables_initializer()) sess.run(tf.local_variables_initializer()) print("Started the training module.") for epoch in range(nEpochs): lossEpoch = 0 # In each epoch, use 'optimizer' to reduce the 'loss' over batches of data. for n in range(nBatches): # Define the batch to train on. batchX = trainX[n * batchSize: (n + 1) * batchSize] batchY = trainY[n * batchSize: (n + 1) * batchSize] # Run the optimizer, and specify the placeholders with the inputs and # target outputs from the batch. _, lossBatch = sess.run([optimizer, loss], feed_dict={inputNN: batchX, targetOutputNN: batchY}) # Keep track of the total loss over an entire epoch. lossEpoch += lossBatch if (epoch + 1) % 200 == 0: # Output the loss over an epoch, every few epochs or so. print("Epoch: %d - Average loss in last epoch = %1.1f" % (epoch + 1, lossEpoch/nBatches)) print("Training process completed.") # - predictedY, maeOfPrediction = sess.run([outputNN, maeY], feed_dict={inputNN: testX, targetOutputNN: testY}) print("Mean absolute error of forecast = ", maeOfPrediction) # Plot the predicted load and compare against the actual load from the test data. assert(nTest >= 16) days = random.sample(range(nTest), 16) fig, axs = plt.subplots(4, 4, sharex=True, sharey=True, figsize=(10,10)) axs = axs.ravel() for dd, day in enumerate(days): testYDay = testY[day] predictedYDay = predictedY[day] l1 = axs[dd].plot(range(1, 25), testYDay, label='Measured') l2 = axs[dd].plot(range(1, 25), predictedYDay, label='Predicted') axs[dd].set_ylim(bottom=0, top=75000) axs[dd].legend() fig.text(0.5, 0.07, 'Time of day (in hour)', ha='center') fig.text(0.04, 0.5, 'Demand in Texas (in MW)', va='center', rotation='vertical') plt.show() # ### The effect of wind energy (bonus). #Let's check the raw data dfDemand = pd.read_csv("ERCOT_Hourly_Wind_Output_" + str(year) + ".csv") dfDemand[:] # Note that in addition to the load data, we have some wind data! # # **Question (20 points).** Subtract the wind data from the load, and redo the above experiment and observe how does wind energy affect the forecasting process. How does the accuracy change? Why? Write down your MAE before and after considering wind energy. # # The accuracy drops. The MAE before was 2414, now it is 2589. The MAE did not raise that much because the wind output is mainly only 2 percent of the total load. # # **Your answer (comments here, code below).** # + daysToTrainOn = [-7, -2, -1] rangeOfDays = range(-np.min(daysToTrainOn), numberOfDays) X = [np.concatenate([(dfDemand.loc[(day + h) * 24: (day + h + 1) * 24 -1, 'ERCOT Load, MW']-dfDemand.loc[(day + h) * 24: (day + h + 1) * 24 -1, 'Total Wind Output, MW']).values.flatten() for h in daysToTrainOn]) for day in rangeOfDays] Y = [(dfDemand.loc[day * 24: (day + 1) * 24 - 1, 'ERCOT Load, MW']-dfDemand.loc[day * 24: (day + 1) * 24 - 1, 'Total Wind Output, MW']).values.flatten() for day in rangeOfDays] # + X = preprocessing.StandardScaler().fit_transform(X) trainX, testX, trainY, testY = train_test_split(X, Y, test_size=0.2) print("Scaled and split the data into two parts:") nTrain = np.shape(trainX)[0] nTest = np.shape(testX)[0] print("Neural network will train on data from %d days, and test on %d days." % (nTrain, nTest)) # + nHidden = 150 # Store the dimension of each row of 'X' in 'nDimX' and that of 'Y' in 'nDimY' . nDimX = np.shape(trainX)[1] nDimY = np.shape(trainY)[1] # Define the inputs and the target outputs for the NN. inputNN = tf.placeholder(dtype=tf.float32, shape=[None, nDimX]) targetOutputNN = tf.placeholder(dtype=tf.float32, shape=[None, nDimY]) # Define the weights and biases of the first layer. W1 = tf.Variable(tf.truncated_normal(shape=[nDimX, nHidden])) b1 = tf.Variable(tf.zeros(nHidden)) # Define the output of layer 1. ## use the function 'tf.nn.relu' to define 'OutputLayer1'. # .... outputLayer1 = tf.nn.relu(tf.matmul(inputNN, W1) + b1) outputLayer1 = tf.nn.dropout(outputLayer1, 0.995) # Define the weights and biases of the second layer. W2 = tf.Variable(tf.truncated_normal(shape=[nHidden, nDimY])) b2 = tf.Variable(tf.zeros(nDimY)) # Define the output of layer 2. outputNN = tf.nn.dropout((tf.matmul(outputLayer1, W2) + b2), 0.995) # Define the loss function and the optimizer. loss = tf.losses.mean_squared_error(labels=targetOutputNN, predictions=outputNN) optimizer = tf.train.AdagradOptimizer(learning_rate=0.25).minimize(loss) # Compute the MAE metric to judge accuracy of prediction. _, maeY = tf.metrics.mean_absolute_error(labels=targetOutputNN, predictions=outputNN) # + batchSize = 50 nBatches = int(nTrain/batchSize) nEpochs = 7000 # Define a session. sess = tf.Session() with sess.as_default(): # Initialize the computation graph. sess.run(tf.global_variables_initializer()) sess.run(tf.local_variables_initializer()) print("Started the training module.") for epoch in range(nEpochs): lossEpoch = 0 # In each epoch, use 'optimizer' to reduce the 'loss' over batches of data. for n in range(nBatches): # Define the batch to train on. batchX = trainX[n * batchSize: (n + 1) * batchSize] batchY = trainY[n * batchSize: (n + 1) * batchSize] # Run the optimizer, and specify the placeholders with the inputs and # target outputs from the batch. _, lossBatch = sess.run([optimizer, loss], feed_dict={inputNN: batchX, targetOutputNN: batchY}) # Keep track of the total loss over an entire epoch. lossEpoch += lossBatch if (epoch + 1) % 200 == 0: # Output the loss over an epoch, every few epochs or so. print("Epoch: %d - Average loss in last epoch = %1.1f" % (epoch + 1, lossEpoch/nBatches)) print("Training process completed.") # - predictedY, maeOfPrediction = sess.run([outputNN, maeY], feed_dict={inputNN: testX, targetOutputNN: testY}) print("Mean absolute error of forecast = ", maeOfPrediction) # Plot the predicted load and compare against the actual load from the test data. assert(nTest >= 16) days = random.sample(range(nTest), 16) fig, axs = plt.subplots(4, 4, sharex=True, sharey=True, figsize=(10,10)) axs = axs.ravel() for dd, day in enumerate(days): testYDay = testY[day] predictedYDay = predictedY[day] l1 = axs[dd].plot(range(1, 25), testYDay, label='Measured') l2 = axs[dd].plot(range(1, 25), predictedYDay, label='Predicted') axs[dd].set_ylim(bottom=0, top=75000) axs[dd].legend() fig.text(0.5, 0.07, 'Time of day (in hour)', ha='center') fig.text(0.04, 0.5, 'Demand in Texas (in MW)', va='center', rotation='vertical') plt.show()
24,645
/Practice on Sites/Hackerrank Practices/Python.py4e/Find a string.ipynb
cf5fa2d50e0d5e90080e822576e33402ba291db1
[]
no_license
suryaanshah/My-Programming-Practices
https://github.com/suryaanshah/My-Programming-Practices
0
0
null
2021-03-06T08:27:51
2021-02-26T03:31:44
Python
Jupyter Notebook
false
false
.py
3,328
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # name: python3 # --- # + [markdown] id="rlQ4BfarSqsz" # [Finding Sub string in a string.](https://www.hackerrank.com/challenges/find-a-string/problem) # + [markdown] id="cwPciRCOTjTj" # # Method 1(simple to understand, for loops) # 1. Defining a variable count. # 2. Repeating the indented text length of the string times. # 3. If we found our sustring from i(the iterator) to the last letter in our string, we add 1 to the string. # + id="j8e_AsMJSn1p" colab={"base_uri": "https://localhost:8080/"} outputId="51054e5e-be7f-4e78-ae2a-b83ce27b47cf" def count_substring(string, sub_string): count = 0 for i in range(len(string)): if string[i:].startswith(sub_string): count += 1 return(count) if __name__ == '__main__': string = input().strip() sub_string = input().strip() count = count_substring(string, sub_string) print(count) # + [markdown] id="BZTJmP0_VY7s" # # Method 2(List comprehensions|Sophisticated|One-Liner|Complex) # 1. Computing the count by substracting the length of smaller string from bigger string. # 2. For each slide, we compare that part of bigger string with our smaller string and append 1 in a list if match found. # 3. Adding the list elements and getting the total number. # ## Note: In method 1, to count the number of times, we created a variale and kept adding 1 to it. But here, we made a list and kept appending 1 to it and them summed up all those 1s. # + colab={"base_uri": "https://localhost:8080/"} id="5lyAaDExWqgK" outputId="89d51d36-a2f6-4bfb-b117-0672555a522e" string, substring = (input().strip(), input().strip()) print(sum([ 1 for i in range(len(string)-len(substring)+1) if string[i:i+len(substring)] == substring]))
1,941
/AttackClassifier_train_valid_set.ipynb
b0c055a6cf9bfcc651445d6a790c2cc71a04eaa1
[]
no_license
sweagle07/attack_classification
https://github.com/sweagle07/attack_classification
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
139,916
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # + import time import queue from pysnmp.hlapi.asyncore import * t = time.time() myq = queue.Queue() def getOID(strword): s1 = "." strword = strword.replace("SNMPv2-SMI::mib-2", "1.3.6.1.2.1") arr = strword.split(".") del arr[-1] return s1.join(arr) #回调函数。在有数据返回时触发 def cbFun(snmpEngine, sendRequestHandle, errorIndication, errorStatus, errorIndex, varBinds, cbCtx): myq.put((time.time()-t, varBinds, errorIndication, errorStatus, errorIndex)) hosts = ["140.134.207.74","140.134.207.73"] oids = ['1.3.6.1.2.1.1','1.3.6.1.2.1.2.2','1.3.6.1.2.1.25.1','1.3.6.1.2.1.25.2','1.3.6.1.2.1.25.4','1.3.6.1.2.1.25.4.2.1.1','1.3.6.1.2.1.25.4.2.1.2','1.3.6.1.2.1.25.5','1.3.6.1.2.1.25.6'] snmpEngine = SnmpEngine() #添加任务 for oid in oids: for h in hosts: print("ip:", h) nextCmd(snmpEngine, CommunityData('rmc2772'), UdpTransportTarget((h, 161), timeout=3, retries=0,), ContextData(), ObjectType(ObjectIdentity(oid)), cbFun=cbFun) time1 = time.time() - t #执行异步获取snmp snmpEngine.transportDispatcher.runDispatcher() #打印结果 while True: try: info = myq.get(block=False) # print(info) if info[2]: # SNMP agent errors print("errorIndication:", info[2]) else: if info[3]: print("here") print('%s at %s' % (info[3].prettyPrint(), info[1][int(info[4])-1] if info[4] else '?')) else: for row in info[1]: #print("row:", row) for oid, val in row: print("oid:", getOID(oid.prettyPrint()), "val:", val.prettyPrint()) except queue.Empty: print(time1) print(time.time() - t) break # - creations', 'num_shells', 'num_access_files', 'num_outbound_cmds', 'is_host_login', 'is_guest_login', 'count', 'srv_count', 'serror_rate', 'srv_serror_rate', 'rerror_rate', 'srv_rerror_rate', 'same_srv_rate', 'diff_srv_rate', 'srv_diff_host_rate', 'dst_host_count', 'dst_host_srv_count', 'dst_host_same_srv_rate', 'dst_host_diff_srv_rate', 'dst_host_same_src_port_rate', 'dst_host_srv_diff_host_rate', 'dst_host_serror_rate', 'dst_host_srv_serror_rate', 'dst_host_rerror_rate', 'dst_host_srv_rerror_rate','category']) # + # saved off copies of the data with headers added #train_df.to_csv('train_df.csv') #train_df.to_pickle('train_df.pkl') # - # ### Get and load the data into a DF train_df_orig.shape # + #### Save off a clean copy of imported data frame # - train_df = train_df_orig.copy() train_df.head() train_df.describe() train_df.info(verbose=True,null_counts=True) # ### Create overarching groups of attacks and prep data for modelling DOS = ['back.','land.','neptune.','pod.','smurf.','teardrop.'] R2L = ['ftp_write.','guess_passwd.','imap.','multihop.','phf.','spy.','warezclient.','warezmaster.'] U2R = ['buffer_overflow.', 'loadmodule.','perl.','rootkit.'] probing = ['ipsweep.','nmap.','portsweep.','satan.'] normal = 'normal.' def get_group(x): if x in R2L: return 4 elif x in U2R: return 3 elif x in DOS: return 2 elif x in probing: return 1 elif x == normal: return 0 else: return 10 # #### Add column with mapping to various Attack Types # #### Will build the model based on these Attack Types train_df['attack_type'] = train_df['category'].apply(get_group) train_df.head() # #### Found that "num_outbound_cmds" is always 0 # #### Since it's constant, won't help with prediction, train_df.num_outbound_cmds.value_counts() # #### Remove initial columns I won't use in the model train_df.drop(columns=['category','num_outbound_cmds'], inplace=True) # #### Encode catagorical features cat_feats = ['protocol_type','flag','service' ] final_data_df = pd.get_dummies(train_df,columns=cat_feats,drop_first=True) final_data_df.head() final_data_df.shape # ### Create train and validation sets for iniital training/test X = final_data_df.drop(['attack_type'],axis=1) y = final_data_df['attack_type'] # + # separate train and validation sets X_train, X_valid, y_train, y_valid = train_test_split(X, y, test_size=0.2, random_state=10) # - X_train.shape, X_valid.shape y_train.shape, y_valid.shape # ### Check for correlated features # #### I didn't end up using this feature selection technique as it did not significantly improve the performance of the model. # #### Leaving the code in for reference, if I want to try it again at a later stage # + # # find and remove correlated features # def correlation(dataset, threshold): # col_corr = set() # Set of all the names of correlated columns # corr_matrix = dataset.corr() # for i in range(len(corr_matrix.columns)): # for j in range(i): # if abs(corr_matrix.iloc[i, j]) > threshold: # we are interested in absolute coeff value # colname = corr_matrix.columns[i] # getting the name of column # col_corr.add(colname) # return col_corr # corr_features = correlation(X_train, 0.90) # print('correlated features: ', len(set(corr_features)) ) # + # corr_features # + # corrmat = X_train.corr() # # we can make a heatmap with the package seaborn # # and customise the colours of searborn's heatmap # cmap = sns.diverging_palette(220, 20, as_cmap=True) # # some more parameters for the figure # fig, ax = plt.subplots() # fig.set_size_inches(11,11) # # and now plot the correlation matrix # sns.heatmap(corrmat, cmap=cmap) # + # X_train.drop(labels=corr_features, axis=1, inplace=True) # X_valid.drop(labels=corr_features, axis=1, inplace=True) # - # ### Select Feature by importance using random forest algorithm # + sel_ = SelectFromModel(RandomForestClassifier(n_estimators=50, random_state=10)) tic = time.perf_counter() sel_.fit(X_train, y_train) toc = time.perf_counter() print(f"Time to fit feature selection: {toc - tic:0.4f} seconds") # remove features with zero coefficient from dataset # and parse again as dataframe X_train_rf = pd.DataFrame(sel_.transform(X_train)) X_test_rf = pd.DataFrame(sel_.transform(X_valid)) # add the columns name X_train_rf.columns = X_train.columns[(sel_.get_support())] X_test_rf.columns = X_train.columns[(sel_.get_support())] # - X_train_rf.head() X_test_rf.head() # #### List of features recommended below; there are 21 X_test_rf.columns len(X_train.columns[(sel_.get_support())]) tic = time.perf_counter() rfc = RandomForestClassifier(n_estimators=200, random_state=10, max_depth=4) rfc.fit(X_train_rf, y_train) toc = time.perf_counter() print(f"Time to train classifier {toc - tic:0.4f} seconds") # ## Save model to disk for re-use w_file = open(model_file_name,'wb') pickle.dump(rfc,w_file) w_file.close() y_pred_test = rfc.predict(X_test_rf) X_test_rf.shape #y_pred_test X_test_rf.head() # ## Evaluating the model # #### The model performed quite well with an F1 score of 99% and 100% for normal and DOS, respecitively # #### it was pretty good at classifying probing attacks with 87% F1 score. # #### The model did not perform well at all for the U2R and R2L attacks. # #### More data to balance the tree, or perhaps create separate models # normal= 0 # probing = 1 # DOS = 2 # U2R = 3 # R2L = 4 print(confusion_matrix(y_valid,y_pred_test)) print(classification_report(y_valid, y_pred_test)) # ## Test exported model to confirm saved appropiately # #### Do this by comparing confusion matrix and report numbers i_file = open(model_file_name,'rb') loaded_model = pickle.load(i_file) i_file.close() loaded_model_pred_test = loaded_model.predict(X_test_rf) print(confusion_matrix(y_valid,loaded_model_pred_test)) print(classification_report(y_valid, loaded_model_pred_test))
8,361
/python3/1.5.ipynb
20e40e2d796ba396a5ec87dd90f5f5320cee4e96
[]
no_license
rygao/cryptopals
https://github.com/rygao/cryptopals
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
3,392
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # # Implement repeating-key XOR # Here is the opening stanza of an important work of the English language: # ``` # Burning 'em, if you ain't quick and nimble # I go crazy when I hear a cymbal # ``` # Encrypt it, under the key "ICE", using repeating-key XOR. # # In repeating-key XOR, you'll sequentially apply each byte of the key; the first byte of plaintext will be XOR'd against I, the next C, the next E, then I again for the 4th byte, and so on. # # It should come out to: # ``` # 0b3637272a2b2e63622c2e69692a23693a2a3c6324202d623d63343c2a26226324272765272 # a282b2f20430a652e2c652a3124333a653e2b2027630c692b20283165286326302e27282f # ``` # Encrypt a bunch of stuff using your repeating-key XOR function. Encrypt your mail. Encrypt your password file. Your .sig file. Get a feel for it. I promise, we aren't wasting your time with this. from cryptopals import * # + def repeating_key_xor(bs, key): '''Encrypts a byte array using repeating-key (byte array) XOR''' key_multiplier = len(bs) // len(key) + 1 repeated_key = (key * key_multiplier)[:len(bs)] return fixed_xor(bs, repeated_key) def repeating_strkey_xor(bs, strkey): '''Encrypts a byte array using repeating-key (string) XOR''' return repeating_key_xor(bs, strkey.encode()) # - pt = "Burning 'em, if you ain't quick and nimble\nI go crazy when I hear a cymbal" ct = '0b3637272a2b2e63622c2e69692a23693a2a3c6324202d623d63343c2a26226324272765272a282b2f20430a652e2c652a3124333a653e2b2027630c692b20283165286326302e27282f' print(bytes_to_hex(repeating_strkey_xor(pt.encode(), 'ICE'))) print(ct) print(bytes_to_hex(repeating_strkey_xor(pt.encode(), 'ICE')) == ct)
1,924
/08_convolutional_networks/homework_cnn_old.ipynb
42f3260bb933aa98169aaca0a676f5f849a800cb
[]
no_license
nalysann/dlschool
https://github.com/nalysann/dlschool
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
44,780
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # + [markdown] colab_type="text" id="view-in-github" # <a href="https://colab.research.google.com/github/pabloinsente/CovNet_Human_Drawings/blob/master/code/baseline_binary_classification_methods_MDA.ipynb" target="_parent"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/></a> # + [markdown] colab_type="text" id="IkqvnxR44en3" # #Baseline for binary classification of child/adult from drawings with MDA vectors # + colab={"base_uri": "https://localhost:8080/", "height": 193} colab_type="code" id="SR14WE_QlF76" outputId="4e7a9d4a-728c-4377-ccc3-75a8f7376a7d" # !pip install rarfile # + [markdown] colab_type="text" id="UzsmE5Ez4-1n" # ##Data Preparation # + colab={} colab_type="code" id="NKxEuVPy4ykq" from sklearn.model_selection import train_test_split from sklearn.metrics import confusion_matrix from sklearn.metrics import classification_report from sklearn.metrics import accuracy_score from imblearn.over_sampling import RandomOverSampler from imblearn.over_sampling import SMOTE import rarfile, csv from numpy import genfromtxt import pandas as pd from collections import Counter import matplotlib.pyplot as plt # + colab={} colab_type="code" id="VfHNxgoP7kf0" # Clone the data into Colab # ! git clone https://github.com/pabloinsente/CovNet_Human_Drawings # + colab={"base_uri": "https://localhost:8080/", "height": 139} colab_type="code" id="TvCowCOIlRkg" outputId="3c85f16e-2054-4860-c376-90ce5516906a" # Read csv files from compressed rar file and convert into a dataframe rar_path = rarfile.RarFile("CovNet_Human_Drawings/data/merged_dataframes_prediction/x_drawings_features_max_pool_5.rar") csv_file_name = "x_drawings_features_max_pool_5.csv" rar_file = rarfile.RarFile.open(rar_path, csv_file_name) x = pd.read_csv(rar_file, sep=",", header=None) print(x.shape) print(x.iloc[0:5,0:5]) # + colab={"base_uri": "https://localhost:8080/", "height": 52} colab_type="code" id="1ImOc2dx4XE3" outputId="daf27582-d4c5-4321-ae76-d21621781e5b" # Read labels vector y_path = 'CovNet_Human_Drawings/data/merged_dataframes_prediction/y_age_adult_labels.csv' y = genfromtxt(y_path, delimiter=',') print(y.shape) print(y[0:5]) # + [markdown] colab_type="text" id="kq5L5JR-9N4-" # ##Multidimensional scaling # + colab={} colab_type="code" id="uVE9ztLQ9KJx" from sklearn.manifold import MDS # + colab={"base_uri": "https://localhost:8080/", "height": 35} colab_type="code" id="TyExc3Qi9P9L" outputId="1f584cdf-1a72-4483-ff6c-cf72460ff8f3" from sklearn.manifold import MDS embedding = MDS(n_components=2) x_transformed = embedding.fit_transform(x) x = x_transformed x.shape # + colab={"base_uri": "https://localhost:8080/", "height": 87} colab_type="code" id="lt-ai_0r-oR5" outputId="50b1e5fe-d16c-4135-b69f-2de59a6dea1e" # Split data into train and test sets # Since we have an small sample, we will do a 70/30 split x_train, x_test, y_train, y_test = train_test_split(x, y, test_size = 0.3, random_state=44, stratify=y) print(x_train.shape) print(y_train.shape) print(x_test.shape) print(y_test.shape) # + [markdown] colab_type="text" id="Vucc_DCC_cXb" # ##Resampling Imbalanced Data # Since our classes are imbalanced, we will use oversampling of the "adult" class **on the training set** to help training on that class. *imblearn* implement oversampling for us # # **See documentantion at** https://imbalanced-learn.readthedocs.io/en/stable/generated/imblearn.over_sampling.RandomOverSampler.html # + colab={"base_uri": "https://localhost:8080/", "height": 69} colab_type="code" id="oG3pLrJa_c3w" outputId="752d6b0e-e994-44fb-ed27-dd99b083ea86" #ros = RandomOverSampler(random_state=42) ros = SMOTE(random_state=42) x_train_res, y_train_res = ros.fit_resample(x_train, y_train) print(x_train_res.shape) # (258, 200) print(y_train_res.shape) # (258,) print('Resampled dataset shape %s' % Counter(y_train_res)) # Now we have 50/50 balanced classes # + colab={"base_uri": "https://localhost:8080/", "height": 299} colab_type="code" id="iadb3lSSAB5w" outputId="e0152dee-9ad2-4d72-8253-500208495678" x_train = x_train_res y_train = y_train_res print('Resampled dataset shape %s' % Counter(y_train)) plt.hist(y_train, bins='auto') # arguments are passed to np.histogram plt.title("Histogram train dataset classes") plt.show() # + colab={"base_uri": "https://localhost:8080/", "height": 299} colab_type="code" id="1IYy8P6KADpB" outputId="9cda18a4-466d-40c8-cff1-f205d4408afb" print('Test dataset shape %s' % Counter(y_test)) plt.hist(y_test, bins='auto') # arguments are passed to np.histogram plt.title("Histogram test dataset classes") plt.show() # + [markdown] colab_type="text" id="ZISSB87_CIpk" # ## Logistic Regression # + colab={} colab_type="code" id="jKy9gzK5CHgp" from sklearn.linear_model import LogisticRegression # + [markdown] colab_type="text" id="w5LJ8GSzCdAM" # ###Train logistic regression # + colab={"base_uri": "https://localhost:8080/", "height": 72} colab_type="code" id="ZaAiRnI2CTfd" outputId="13741d59-f49d-4bff-fa97-77e8667ae89f" #Train classifier log_classifier = LogisticRegression(random_state=0) log_classifier.fit(x_train, y_train) y_pred = log_classifier.predict(x_test) # + [markdown] colab_type="text" id="WDcHvUIACZJ5" # ###Test logistic regression # + colab={"base_uri": "https://localhost:8080/", "height": 312} colab_type="code" id="gZheMsJHCT8D" outputId="ac1901ee-e21e-4d33-e9fb-5ebfd6452068" # Accuracy acc = accuracy_score(y_test, y_pred) print("Accuracy", "\n", acc, "\n") # Confusion matrix cm = confusion_matrix(y_test, y_pred) print("Confusion Matrix", "\n", cm, "\n") # Classification report target_names = ['Child', 'Adult'] cr = classification_report(y_test, y_pred, target_names=target_names) print("Calssification report", "\n", cr) # + [markdown] colab_type="text" id="7PurYKkGCuXK" # ##Suport Vector Machine # + colab={} colab_type="code" id="2vPQz84eCvfw" from sklearn.svm import SVC # + [markdown] colab_type="text" id="fVTvtM5dEfHP" # ###Training SVM # + colab={} colab_type="code" id="rWghQTHECyQr" svm = SVC(gamma='auto') svm.fit(x_train, y_train) y_pred = svm.predict(x_test) # + [markdown] colab_type="text" id="DSwUg50xEhpU" # ###Testing SVM # + colab={"base_uri": "https://localhost:8080/", "height": 312} colab_type="code" id="rJ4k2RikC0Cj" outputId="1547c811-f9ed-4598-aadf-829992dfe585" # Accuracy acc = accuracy_score(y_test, y_pred) print("Accuracy", "\n", acc, "\n") # Confusion matrix cm = confusion_matrix(y_test, y_pred) print("Confusion Matrix", "\n", cm, "\n") # Classification report target_names = ['Child', 'Adult'] cr = classification_report(y_test, y_pred, target_names=target_names) print("Calssification report", "\n", cr) # + [markdown] colab_type="text" id="qAzWQqEMDBo4" # ##Decision Tree # + colab={} colab_type="code" id="nJlaghTyC3CP" from sklearn import tree # + [markdown] colab_type="text" id="4Zp6zihOEkNp" # ###Training Decision Tree # + colab={} colab_type="code" id="28D1jnNtDE2-" d_tree = tree.DecisionTreeClassifier() d_tree.fit(x_train, y_train) y_pred = d_tree.predict(x_test) # + [markdown] colab_type="text" id="givblE85EnI4" # ###Testing Decision Tree # + colab={"base_uri": "https://localhost:8080/", "height": 312} colab_type="code" id="m-ozyzjVDGss" outputId="37741498-055b-40c3-8e4b-015e3aa9cf91" # Accuracy acc = accuracy_score(y_test, y_pred) print("Accuracy", "\n", acc, "\n") # Confusion matrix cm = confusion_matrix(y_test, y_pred) print("Confusion Matrix", "\n", cm, "\n") # Classification report target_names = ['Child', 'Adult'] cr = classification_report(y_test, y_pred, target_names=target_names) print("Calssification report", "\n", cr) # + [markdown] colab_type="text" id="0Qe5iaLxDRk0" # ##Gaussian Naive Bayes # + colab={} colab_type="code" id="LSQUQeQ3DY6K" from sklearn.naive_bayes import GaussianNB # + [markdown] colab_type="text" id="Z_LcphfnEqSn" # ###Training Naive Bayes # + colab={} colab_type="code" id="NBqmF9G4DJ3e" bayes = GaussianNB() bayes.fit(x_train, y_train) y_pred = bayes.predict(x_test) # + [markdown] colab_type="text" id="MFWkaQ4EEtAr" # ###Testing Naive Bayes # + colab={"base_uri": "https://localhost:8080/", "height": 312} colab_type="code" id="mwMIZR5ODVJh" outputId="5fd6b7a2-025f-4cea-ae89-b40be5b0774e" # Accuracy acc = accuracy_score(y_test, y_pred) print("Accuracy", "\n", acc, "\n") # Confusion matrix cm = confusion_matrix(y_test, y_pred) print("Confusion Matrix", "\n", cm, "\n") # Classification report target_names = ['Child', 'Adult'] cr = classification_report(y_test, y_pred, target_names=target_names) print("Calssification report", "\n", cr) # + [markdown] colab_type="text" id="ycNH1eTHDlLt" # ##Random Forest # + colab={} colab_type="code" id="ineHNAqiDgF-" from sklearn.ensemble import RandomForestClassifier # + [markdown] colab_type="text" id="8xrxdERbEwDw" # ###Training Random Forest # + colab={} colab_type="code" id="yQGZoKO9DnWi" forest = RandomForestClassifier(n_estimators=100) forest.fit(x_train, y_train) y_pred = forest.predict(x_test) # + [markdown] colab_type="text" id="xRR861gKE8e3" # ###Testing Random Forest # + colab={"base_uri": "https://localhost:8080/", "height": 312} colab_type="code" id="RGgcTBsgDpB5" outputId="3b391d45-e70d-47f2-8a6a-d7b432d20f99" # Accuracy acc = accuracy_score(y_test, y_pred) print("Accuracy", "\n", acc, "\n") # Confusion matrix cm = confusion_matrix(y_test, y_pred) print("Confusion Matrix", "\n", cm, "\n") # Classification report target_names = ['Child', 'Adult'] cr = classification_report(y_test, y_pred, target_names=target_names) print("Calssification report", "\n", cr) # + [markdown] colab_type="text" id="XUQ6PtNODudA" # ##Gradient Boosting Classifier # + colab={} colab_type="code" id="ZW8juoFqDq8O" from sklearn.ensemble import GradientBoostingClassifier # + [markdown] colab_type="text" id="M_nOyh3jE_0L" # ###Training Boosting # + colab={} colab_type="code" id="0YGye5LyDwxO" boosting = GradientBoostingClassifier(n_estimators=100, learning_rate = 0.1) boosting.fit(x_train, y_train) boosting = forest.predict(x_test) # + [markdown] colab_type="text" id="bUAOJs3NFL3-" # ###Testing Boosting # + colab={"base_uri": "https://localhost:8080/", "height": 312} colab_type="code" id="EzoXGDhtD2NQ" outputId="d892edae-d0bb-48f0-a390-4ea86f2b7ec3" # Accuracy acc = accuracy_score(y_test, y_pred) print("Accuracy", "\n", acc, "\n") # Confusion matrix cm = confusion_matrix(y_test, y_pred) print("Confusion Matrix", "\n", cm, "\n") # Classification report target_names = ['Child', 'Adult'] cr = classification_report(y_test, y_pred, target_names=target_names) print("Calssification report", "\n", cr) =3,label="null distribution") plt.plot(xn,stats.beta.pdf(xn,0.2,1)+1-0.3,color=newcol[0],lw=3,label="alternative distribution") plt.xlim([0,1]) plt.ylim([0,4]) plt.title("") plt.xlabel("") plt.ylabel("") plt.legend(loc="upper right",frameon=False) plt.show() plt.figure(figsize=(5,3)) plt.xlim([2,6]) plt.ylim([0,1]) plt.plot(xn,neuropower.nulprobdens(2,xn)*0.3,color=newcol[3],lw=3,label="null distribution") plt.plot(xn,neuropower.altprobdens(3,1,2,xn)*0.7,color=newcol[1],lw=3, label="alternative distribution") plt.plot(xn,neuropower.mixprobdens(3,1,0.7,2,xn),color=newcol[0],lw=3,label="total distribution") plt.title("") plt.xlabel("") plt.ylabel("") plt.legend(loc="upper right",frameon=False) plt.show() # + y1 = [] ran = range(10,51) for n in ran: delta = 3/10**0.5 new = delta*n**0.5 y1.append(1-neuropower.altcumdens(new,1,2,4)) plt.figure(figsize=(5,3)) plt.plot(ran,y1,color=newcol[0],lw=3) plt.xlim([10,np.max(ran)]) plt.ylim([0,1]) plt.title("") plt.xlabel("") plt.ylabel("") plt.show() # - рую Вы сделали выше и замените сумму на произвдение. Это очень просто сделать, если свертка реализована как два вложенных цикла """ kernel_y, kernel_x = kernel.shape[:2] img_y, img_x = img.shape[:2] <Ваш код здесь> return result # + colab={} colab_type="code" id="R6c718sVGnFb" outputId="31ee6815-91b4-4ca7-e00d-324c78806465" # применим новую свертку и возьмем сумму <Ваш код здесь> # + [markdown] colab_type="text" id="zq1AfqrdGnFe" # ## Свертка для извлечения локальной информации # + [markdown] colab_type="text" id="z25YaUWaGnFf" # **[Advanced]** # # Если еще раз посмотреть на определение свертки, то мы видим, что ее значение в точке является взвешенной суммой значений функции $f(x)$, но с одним интересным свойством, чтобы получить значение свертки в точке x, мы двигаем функцию $g(x)$, которая и задает веса, на х. (Чуть позже будет иллюстрация, которая поможет понять, что это значит). # $$(f*g)(x) = \int \limits^{+\infty}_{-\infty} f(\tau)g(x - \tau) d\tau$$ # # # **[Not advanced]** # # # Теперь вернемся к сверткам в нейронных сетях. На лекции было сказано, что сверточные слои намного лучше обрабатывают картинки, чем полносвязные. Причина в том, что сверточные слои эксплуатируют внешние знания о структуре данных: # # * Пиксели находящиеся рядом намного сильнее связаны между собой, чем дальние. # * Мы можем сдвинуть объект на картинке и он останется собой. # # Эти предположения можно переформулировать в более сжатом виде: в данных важна именно локальная структура. Такие жесткие ограничения позволяют сверточным слоям использовать намного меньше весов, применяя один и тот же небольшой фильтр ко всем частям картинки. Это, в свою очередь, упрощает обучение нейронной сети. # + [markdown] colab_type="text" id="h9HlHk-QGnFg" # ## Свертка для нахождения похожих паттернов # + [markdown] colab_type="text" id="WzCYjxzzGnFh" # Давайте посмотрим на небольшую иллюстрацию того, как просчитывается свертка в одномерном случае # + code_folding=[0, 7] colab={} colab_type="code" id="P0Lkm6TgGnFi" def f(x): """ Просто красивая функция. """ return 1/(2 + x**2 * (0.1 + np.sin(x)**2)) def g(x): """ Эта функци - немного измененная плотность нормального распределения, потому что она тоже красивая. """ return np.exp(-x**2/2) / np.sqrt(2 * np.pi) x = np.linspace(-10, 10, 100) @interact(g_offset=FloatSlider(min=-10, max=10, step=0.5)) def plot_and_calc(g_offset): plt.figure(figsize=(10, 7)) f_val = f(x) g_val = g(g_offset - x) mul_vals = f_val * g_val plt.plot(x, f_val, label='f(x)') plt.plot(x, g_val, label='g(x)') plt.plot(x, mul_vals, label='f(x)*g(x)') plt.gca().fill_between(x, 0, mul_vals) plt.legend() plt.text(-10.5, 0.55, "Approximate conv value at {} = {:.2f}".format(g_offset, mul_vals.sum())) # + [markdown] colab_type="text" id="-Hc5GnPbGnFl" # Перемещая ползунок, Вы видите как перемещается функция $g(x)$, задающая веса для аггрегирования. Значение свертки в точке, которую Вы задаете g_offset, равно площади под кривой $f(x)\cdot g(x)$. # # Легко заметить, что чем лучше совпадают две функции, чем более они похожи, тем выше значение свертки. Максимум доостигается при нулевом сдвиге $g(x)$, когда совпадают два толстых пика. Но большие значения получаются и при совпадении малых пиков с $g(x)$. # # **Посмотрев на значения свертки мы можем догадаться, где на функции $f(x)$ находятся пики.** # + [markdown] colab_type="text" id="P5uzZB1BGnFl" # Использование свертки для нахождения каких-то особых частей в функции - одна из самых интересных трактовок с точки зрения Deep Learning. В случае картинок в качестве $f(x)$ выступает картинка, а в качестве $g(x)$ кернел, который мы перемещаем по картинке и ищем совпадения. Только кернелы не заданы заранее, а выучиваются самой нейронной сетью в зависимости от того, какие паттерны ей понадобятся. # # У хорошо обученных нейросетей на первом слое можно увижеть паттерны, которые они распознают: # <img src="http://cs231n.github.io/assets/nn3/cnnweights.jpg" width=600> # (Изображение взято из http://cs231n.github.io/neural-networks-3/#vis) # + [markdown] colab_type="text" id="CRtdGvwIGnFm" # # [Задание 2] # + [markdown] colab_type="text" id="x8ETT-mXGnFn" # <img src="https://i.imgflip.com/2yq5nl.jpg"> # + colab={} colab_type="code" id="oZkCIfc8GnFo" # Пришло время поиграть в сыщиков # Загрузите файл noisy_data.txt и с помощью свертки найдите в нем кресты(плюсики) высотой 5 и шириной 5. # Такие кресты состоят из одинаковых положительных чисел и их можно легко найти, подобрав нужный паттерн. # Все значения, кроме крестов, являются числами из нормального распределения со средним 0 и норм. отклонением 1 noise = np.loadtxt('./noisy_data.txt') # Для начала зададим паттерн размера 5*5 для поиска. # Учитывая описание данных вверху, попробуйте подобрать нужный паттерн. pattern = <Ваш код здесь> # Лучше всего использовать свою свертку, написанную ранее. convolution_activation = <Ваш код здесь> # + colab={} colab_type="code" id="ko_EXM-8GnFr" # Выберем среди активаций три наибольших (потому что крестов именно три :) # В нахождении индексов этих максимальных активаций Вам может помочь функция numpy.where и оператор сравнения <Ваш код здесь> # + [markdown] colab_type="text" id="qo1YlH-dGnFw" # **!!!Чтобы получить ответ, Вы должны найти центры трех крестов и сложить все их координаты. Будьте внимательны, потому что координаты, которые вы получили выше могут не являются центрами крестов!!!** # + [markdown] colab_type="text" id="7Ox73PZ3GnFx" # ## Сверточный слой # + [markdown] colab_type="text" id="CpnIcJNXGnFz" # Надеюсь, что вы уже поняли, что такое свертка и как она считается. Теперь перейдем к применению сверток в нейросетях. Для начала мы сами напишем свой сверточный слой. Вы уже писали свертку, но только для двумерной картинки, # пришло время понять, как это делать для батча картинок с несколькими фильтрами. **Так как теперь у нашей картинки есть несколько каналов, то и фильтры теперь имеют несколько каналов, по одному на каждый канал входной картинки, чтобы их все так же можно было накладывать друг на друга, поэлементно умножать и складывать.** # # Сейчас вам предстоит написать ConvLayer(in_channels, out_channels, kernel_size). Я думаю, что лучше всего это получится сделать опираясь на иллюстрацию, находящуюся на этой странице http://cs231n.github.io/convolutional-networks (чтобы перейти к ней нажмите Ctrl+F и введите Convolution Demo). # + colab={} colab_type="code" id="JOnnPFj_GnF0" outputId="f877e9d1-2fdc-41b5-dd1d-22470de1d2dc" class ConvLayer: def __init__(self, in_channels, out_channels, kernel_size): self.in_channels = in_channels self.out_channels = out_channels self.kernel_size = kernel_size # Теперь инициализируем массив с кернелами self.kernels =seed_random((out_channels, kernel_size, kernel_size, in_channels), 42) # Чтобы разобраться, что здесь написано, вспомним, что происзодит в сверточном слое. # 1) В сверточном слое применеяется несколько фильтров, каждый из них ищет в картинке какую-то особенность, # каждый фильтр производит свою двумерную картинку, состоящую из активаций. На иллюстрации, которая # приложена выше это как раз можно наблюдать. После этого каждая карта активаций становится каналом # в новой катинке, которая и является выходом сети. Поэтому число фильтров равно числу выходных каналов. # 2) При этом каждый фильтр содержит несколько шаблонов размера kernel_size*kernel_size, чтобы # собираться информацию с каждого из входных каналов. Количество таких двумерных шаблонов равно количеству # каналов во входной картинке. self.biases = seed_random((out_channels), 13) def forward(self, X): # Инициализируем массив с реузльтатом работы всертки res = np.zeros((X.shape[0], X.shape[1] - self.kernel_size + 1, X.shape[2] - self.kernel_size + 1, self.out_channels)) # используем четыре вложенных цикла, чтобы посчитать свертку. Сначала по картинкам в батче, потом по # фильтрам, а потом по координатам. !!!Не забудьте добавить bias!!! # применять функцию активации не нужно. for i, img in enumerate(X): <Ваш код здесь> return res # + [markdown] colab_type="text" id="V5tasERfGnF5" # Чтобы протестировать свертку опять вернемся к картинке с котиком и попробуем сделать так, чтобы после применения фильтра резкости у нас получалась не серая картинка. Самый простой способ - применить фильтр отедеьно к каждому каналу. Для этого нужно сделать три кернела, каждый из которых работает только со своим каналом в исходной картинке. # + colab={} colab_type="code" id="D3k89BHDGnF6" # Создадим наш слой conv = ConvLayer(3, 3, 3) r_filter = np.zeros((3, 3, 3)) r_filter[:, :, 0] = blur_filter g_filter = np.zeros((3, 3, 3)) g_filter[:, :, 1] = blur_filter b_filter = np.zeros((3, 3, 3)) b_filter[:, :, 2] = blur_filter # Поставим в качестве кернелов фильтры, которые мы уже определили и применим к картинке # Мы добавляем им новое измерение, чтобы их можно было применять к трехмерным картинкам conv.kernels = np.array([r_filter, g_filter, b_filter]) conv.biases = np.zeros((3)) # + colab={} colab_type="code" id="O8nrA7qeGnF9" img = load_img('./img.jpeg') res = conv.forward(img[np.newaxis, :, :, :]) # Выведем размытую картинку show_img((res[0]).clip(0, 1)) # + [markdown] colab_type="text" id="loStoqcpGnF_" # # [Задание 3] # + [markdown] colab_type="text" id="aon37VnkGnGB" # А теперь протестируем, что вы правильно написали свертку и она хорошо работает. # # **!!!Как и в задании 1 скопируйте весь код свертки в класс ниже и замените сумму на умножение. (сумму на умножение нужно менять только внутри подсчета кернела, bias все так же нужно добавлять)!!!** # # **Создайте слой, применяющий модифицированную свертку с тремя фильтрами, примените ее к картинке с котиком и возьмите сумму всех чисел в выходе, клипать не нужно. (не забудьте добавить массиву img еще одно измерение, так как наш класс рассчитан на работу с батчами картинок)** # + colab={} colab_type="code" id="K2i44vtoGnGB" class ModifiedConvLayer: def __init__(self, in_channels, out_channels, kernel_size): self.in_channels = in_channels self.out_channels = out_channels self.kernel_size = kernel_size # Теперь инициализируем массив с кернелами self.kernels =seed_random((out_channels, kernel_size, kernel_size, in_channels), 42) self.biases = seed_random((out_channels), 13) def forward(self, X): # Инициализируем массив с реузльтатом работы всертки res = np.zeros((X.shape[0], X.shape[1] - self.kernel_size + 1, X.shape[2] - self.kernel_size + 1, self.out_channels)) # испоьзуем четыре вложенных цикла, чтобы посчитать свертку. Сначала по картинкам в батче, потом по # фильтрам, а потом по координатам. Не забудьте добавить bias!!! <Ваш код здесь> return res # + colab={} colab_type="code" id="P715Wi7uGnGH" # Создайте объект ModifiedConvLayer с тремя фильтрами и размером фильтров 3 и примените его к котику, а потом # посчитайте нужную статистику. Изменять сгенерированный в конструкторе фильтр не нужно. img = load_img('./img.jpeg') <Ваш код здесь> # + [markdown] colab_type="text" id="AyOT0DExGnGJ" # ## Pytorch Convolutions # + [markdown] colab_type="text" id="ST6co4gxGnGK" # ### Реализации сверток # Вы уже достаточно много поработали со сверткой, реализованной на for циклах, и понимаете, что она работает слишком долго. Обработка одной кратинки среднего размера занимает около 10 секунд, что непозволительно долго. В реальном мире свертки реализованы с помощью продвинутых алгоритмов. # # Для маленьких размеров фильтров обычно используется метод, в котором свертка заменяется на одно матричное умножение. Это можно сделать, потому что на свертку можно смотреть как на полносвязный слой с некоторыми ограничениями. # # Для больших фильтров используется агоритм быстрого преобразования Фурье, с помощью которого также можно выполнить свертку. # # Это достатчоно сложные вещи и поэтому не стоит обраoать на них внимание, если вы только начали изучать Deep Learning. Если же Вам интересно, то на arxiv есть статья про то, какие эффективные методы для подсчета сверток существуют https://arxiv.org/abs/1509.09308. # + [markdown] colab_type="text" id="vp-4auh5GnGM" # ### PyTorch # # Хорошая новость заключается в том, что в PyTorch уже есть быстрые свертки и нам не придется писать их самим. # # Давайте потренируемся писать сверточные нейросети в PyTorch. # + [markdown] colab_type="text" id="E5mGZdmXGnGN" # # [Задание 4 и 5] # # **4. В этом задании мы хотим выбрать лучшую модель для работы с cifar10. Ниже будет несколько возможных архитектур, реализуйте их, потренируйте по 3 эпохи и выберите ту, которая в конце обучения достигает наименьшего лосса на тренировочном датасете (имеется в виду последний выведенный функцией train лосс)** # # **5. Ответом на задание 5 является лосс на !!!тестовом!!! датасете модели, которую Вы выбрали в задании 4. (средений лосс по кртинке, который выводит print_test_loss)** # + colab={} colab_type="code" id="TU-K0w7BGnGO" import torch.nn as nn import torch.nn.functional as F import torch import torchvision from torchvision import transforms from tqdm import tqdm_notebook # + colab={} colab_type="code" id="FqWcskLaGnGR" transform = transforms.Compose( [transforms.ToTensor(), transforms.Normalize((0.5, 0.5, 0.5), (0.5, 0.5, 0.5))]) trainset = torchvision.datasets.CIFAR10(root='./data', train=True, download=True, transform=transform) trainloader = torch.utils.data.DataLoader(trainset, batch_size=4, shuffle=True, num_workers=2) testset = torchvision.datasets.CIFAR10(root='./data', train=False, download=True, transform=transform) testloader = torch.utils.data.DataLoader(testset, batch_size=4, shuffle=False, num_workers=2) classes = ('plane', 'car', 'bird', 'cat', 'deer', 'dog', 'frog', 'horse', 'ship', 'truck') # + code_folding=[] colab={} colab_type="code" id="iRGU4srbGnGU" def print_test_loss(net): # выбираем функцию потерь loss_fn = torch.nn.CrossEntropyLoss() running_loss = 0.0 for i, batch in enumerate(tqdm_notebook(testloader)): # так получаем текущий батч <Ваш код здесь> # forward + loss calc <Ваш код здесь> # добавляем лосс <Ваш код здесь> print("Test Loss: {}".format(running_loss / len(testloader))) def train(net): # выбираем функцию потерь <Ваш код здесь> # выбираем алгоритм оптимизации и learning_rate learning_rate = 1e-4 optimizer = torch.optim.Adam(net.parameters(), lr=learning_rate) # итерируемся for epoch in tqdm_notebook(range(3)): running_loss = 0.0 for i, batch in enumerate(tqdm_notebook(trainloader)): # так получаем текущий батч <Ваш код здесь> # обнуляем градиент <Ваш код здесь> # forward + backward + optimize <Ваш код здесь> # добавим лосс <Ваш код здесь> # выведем качество каждые 2000 батчей if i % 2000 == 1999: print('[%d, %5d] loss: %.3f' % (epoch + 1, i + 1, running_loss / 2000)) running_loss = 0.0 print('Обучение закончено') return net # + [markdown] colab_type="text" id="AUfEH7_kGnGW" # # Простые архитектуры # + [markdown] colab_type="text" id="oRiWK6b7GnGX" # **!!!ВАЖНО, Чтобы добиться воспроизводимости результатов, вставьте перед кажджым объявлением слоя # torch.manual_seed(0) + запукайте код в колабе + не используйте GPU!!!** # + [markdown] colab_type="text" id="gR1aXzGrGnGY" # #### Архитектура 1: # Активация - ReLu # 1. Conv(in_channels=3, out_channels=6, kernel_size=5) # 2. MaxPool(kernel_size=2, stride=2) # 3. Conv(in_channels=6, out_channels=16, kernel_size=5) # 4. MaxPool(kernel_size=2, stride=2) # 4. Linear(output=120) # 5. Linear(output=84) # 6. Linear(output=10) # + code_folding=[] colab={} colab_type="code" id="sdd3HFIAGnGZ" class SimpleConvNet1(nn.Module): def __init__(self): # вызов конструктора предка super(SimpleConvNet1, self).__init__() # необходмо заранее знать, сколько каналов у картинки (сейчас = 1), # которую будем подавать в сеть, больше ничего # про входящие картинки знать не нужно <Ваш код здесь> def forward(self, x): <Ваш код здесь> return x # + colab={} colab_type="code" id="x03waDHKGnGb" net1 = train(SimpleConvNet1()) # + colab={} colab_type="code" id="M6TZq4HzGnGd" print_test_loss(net1) # + [markdown] colab_type="text" id="T3JVuBZYGnGf" # **!!!ВАЖНО, Чтобы добиться воспроизводимости результатов, вставьте перед кажджым объявлением слоя # torch.manual_seed(0)!!!** # + [markdown] colab_type="text" id="pHj8VJd9GnGg" # # #### Архитектура 2: # В этой архитектуре мы немного поэкспериментируем и используем необычные вещи, а именно активацию tanh и вместо MaxPooling используем AveragePooling. # # Активация - tanh # 1. Conv(in_channels=3, out_channels=6, kernel_size=5) # 2. AvgPool(kernel_size=2, stride=2) # 3. Conv(in_channels=6, out_channels=16, kernel_size=5) # 4. AvgPool(kernel_size=2, stride=2) # 4. Linear(output=120) # 5. Linear(output=84) # 6. Linear(output=10) # + code_folding=[] colab={} colab_type="code" id="2DVhNkPDGnGh" class SimpleConvNet2(nn.Module): def __init__(self): # вызов конструктора предка super(SimpleConvNet2, self).__init__() # необходмо заранее знать, сколько каналов у картинки (сейчас = 1), # которую будем подавать в сеть, больше ничего # про входящие картинки знать не нужно <Ваш код здесь> def forward(self, x): <Ваш код здесь> return x # + colab={} colab_type="code" id="lDGcR-tYGnGk" net2 = train(SimpleConvNet2()) # + colab={} colab_type="code" id="wm4l-2UBGnGm" print_test_loss(net2) # + [markdown] colab_type="text" id="AbXdIA5MGnGo" # # Более сложные архитектуры # + [markdown] colab_type="text" id="VQxCZAinGnGp" # **!!!ВАЖНО, Чтобы добиться воспроизводимости результатов, вставьте перед кажджым объявлением слоя # torch.manual_seed(0)!!!** # + [markdown] colab_type="text" id="1U4EXT3_GnGq" # #### Архитектура 3: # А здесь мы добавим еще сверточных слоев и уберем один полносвязный! # # Активация - ReLu # 1. Conv(in_channels=3, out_channels=64, kernel_size=3) # * Conv(in_channels=64, out_channels=64, kernel_size=3) # * MaxPool(kernel_size=2, stride=2) # * Conv(in_channels=64, out_channels=64, kernel_size=3) # * Conv(in_channels=64, out_channels=64, kernel_size=3) # * MaxPool(kernel_size=2, stride=2) # * Linear(output=60) # * Linear(output=10) # + colab={} colab_type="code" id="2_rwgOpcGnGq" class SimpleConvNet3(nn.Module): def __init__(self): # вызов конструктора предка super(SimpleConvNet3, self).__init__() # необходмо заранее знать, сколько каналов у картинки (сейчас = 1), # которую будем подавать в сеть, больше ничего # про входящие картинки знать не нужно <Ваш код здесь> def forward(self, x): <Ваш код здесь> return x # + colab={} colab_type="code" id="PxBxY2KkGnGs" net3 = train(SimpleConvNet3()) # + colab={} colab_type="code" id="UtJeYyjiGnGu" print_test_loss(net3) # + [markdown] colab_type="text" id="ulIJN5lWGnGx" # **!!!ВАЖНО, Чтобы добиться воспроизводимости результатов, вставьте перед кажджым объявлением слоя # torch.manual_seed(0)!!!** # + [markdown] colab_type="text" id="ysoVYiPqGnGx" # #### Архитектура 4: # А что если мы пойдем еще глубже!!! (Осторожнее, тренироваться будет час, поэтому обновите подключение к ноутбуку, прежде чем запускать ячейку, иначе может быть таймаут) # # # Активация ReLu # 1. Conv(in_channels=3, out_channels=64, kernel_size=3) # * Conv(in_channels=64, out_channels=64, kernel_size=3) # 1. Conv(in_channels=64, out_channels=64, kernel_size=3) # * Conv(in_channels=64, out_channels=64, kernel_size=3) # * MaxPool(kernel_size=2, stride=2) # * Conv(in_channels=64, out_channels=128, kernel_size=3) # * Conv(in_channels=128, out_channels=128, kernel_size=3) # 1. Conv(in_channels=128, out_channels=128, kernel_size=3) # * Conv(in_channels=128, out_channels=128, kernel_size=3) # * MaxPool(kernel_size=2, stride=2) # * Linear(output=10) # + colab={} colab_type="code" id="MyijC7GPGnGy" class SimpleConvNet4(nn.Module): def __init__(self): # вызов конструктора предка super(SimpleConvNet4, self).__init__() # которую будем подавать в сеть, больше ничего # про входящие картинки знать не нужно <Ваш код здесь> def forward(self, x): <Ваш код здесь> return x # + colab={} colab_type="code" id="KVpf7Y3OGnG1" net4 = train(SimpleConvNet4()) # + colab={} colab_type="code" id="Hb_VCKECGnG5" print_test_loss(net4) # + [markdown] colab={} colab_type="code" id="XHqfI8vOGnG8" # ### p.s. чтобы получить правильные ответы, нужно запустить все задания в Google Colab (кроме визуализации с "ползунком")
33,447
/A4/PCA_StudentVersion/pca_StudentVersion.ipynb
2bc6ee4c23c4c605cdf59d9b011eca1c9658c0ac
[]
no_license
jsonwulff/MAD_afleveringer
https://github.com/jsonwulff/MAD_afleveringer
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
90,004
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # # Assignment: Principal Components Analysis (PCA) # Task 1: Implement PCA on the diatoms database. Please output the proportion of variance explained by each of the first 10 components (5 points) # # Task 2: Visualize fourth component of the PCA (3 points) # # # # We start by loading the dataset found in the file 'diatoms.txt', which contains a set of *diatom* outlines. A diatom is a type of algae, whose species is strongly correlated with its outline shape; in the following, we will be using these outlines as a descriptive feature of the diatom. # # The file 'diatoms.txt' contains 780 diatoms described by 90 successive "landmark points" (x_i, y_i) along the outline, recorded as (x_0, y_0, x_1, y_1, ..., x_89, y_89). # # The file 'diatoms_classes.txt' contains one class assignment per diatom, into species classified by the integers 1-37. # + import numpy as np np.set_printoptions(precision=4, suppress=True) diatoms = np.loadtxt('diatoms.txt', delimiter=',').T diatoms_classes = np.loadtxt('diatoms_classes.txt', delimiter=',') print('Shape of diatoms:', diatoms.shape) print('Shape of diatoms_classes:', diatoms_classes.shape) #print('Classes:', diatoms_classes) d,N = diatoms.shape print('Dimension:', d) print('Sample size:', N) print(diatoms) # - # Here's a function that will plot a given diatom. Let's try it on the first diatom in the dataset. # + import matplotlib.pyplot as plt def plot_diatom(diatom): xs = np.zeros(91) ys = np.zeros(91) for i in range(90): # Loop from 0 - 179 xs[i] = diatom[2*i] ys[i] = diatom[2*i+1] # Loop around to first landmark point to get a connected shape xs[90] = xs[0] ys[90] = ys[0] plt.plot(xs, ys) plt.axis('equal') plot_diatom(diatoms[:,0]) # - # Let's next compute the mean diatom and plot it. mean_diatom = np.mean(diatoms, 1) print(mean_diatom.shape) print(mean_diatom) plot_diatom(mean_diatom) # ### Task1: Implementing PCA # # To implement PCA, please check the algorithm explaination from the lecture. # Hits: # # 1) Noramilize data subtracting the mean shape. No need to use Procrustes Analysis or other more complex types of normalization # # 2) Compute covariance matrix (check np.cov) # # 3) Compute eigenvectors and values (check np.linalg.eigh) # + import numpy.matlib def pca(data): mean = np.mean(data, 1) data_cent = np.array(data) for i in range(data.shape[1]): data_cent[:,i] = data[:,i] - mean cov = np.cov(data_cent) w, v = np.linalg.eigh(cov) PCevals = np.flip(w) PCevecs = np.flip(v) #PCevecs = np.flip(v, axis=1) // return PCevals, PCevecs, data_cent PCevals, PCevecs, data_cent = pca(diatoms) # PCevals is a vector of eigenvalues in decreasing order. To verify, uncomment: print(PCevecs) # PCevecs is a matrix whose columns are the eigenvectors listed in the order of decreasing eigenvectors # - # ***Recall:*** # * The eigenvalues represent the variance of the data projected to the corresponding eigenvectors. # * Thus, the 2D linear subspace with highest projected variance is spanned by the eigenvectors corresponding to the two largest eigenvalues. # * We extract these eigenvectors and plot the data projected onto the corresponding space. # ### Compute variance of the first 10 components # # How many components you need to cover 90%, 95% and 99% of variantion. Submit the resulting numbers for grading. # + variance_explained_per_component = PCevals/np.sum(PCevals) cumulative_variance_explained = np.cumsum(variance_explained_per_component) plt.plot(cumulative_variance_explained) plt.xlabel('Number of principal components included') plt.ylabel('Proportion of variance explained') plt.title('Proportion of variance explained as a function of number of PCs included') # Let's print out the proportion of variance explained by the first 10 PCs for i in range(10): print('Proportion of variance explained by the first '+str(i+1)+' principal components:', cumulative_variance_explained[i]) # - # ### Task2: Plot varianace accosiated with the first component # # Please fill the gaps in the code to plot mean diatom shape with added FOURTH eigenvector mulitplied by [-3,-2,-1,0,1,2,3] standard deviations corresponding to this eigenvector. # # Submit the resulting plot for grading. # + e4 = PCevecs[:, 3] # gets the fourth eigenvector print(e4.shape) print(e4) lambda4 = PCevals[3] # gets the fourth eigenvalue print(lambda4) std4 = np.sqrt(lambda4) # In case the naming std is confusing -- the eigenvalues have a statistical interpretation diatoms_along_pc = np.zeros((7, 180)) for i in range(7): #....... diatoms_along_pc[i] = mean_diatom + (i-3)*std4*e4 for i in range(7): plot_diatom(diatoms_along_pc[i]) plt.title('Diatom shape along PC1') # -
5,087
/RecurrentNeuralNetworks/TimeSeriesWithMultilayerPerceptrons.ipynb
d17efd7917faa7bb78855bc7c4a00c1ee836a639
[]
no_license
abdulbaruwa/DeepLearningPython
https://github.com/abdulbaruwa/DeepLearningPython
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
24,956
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # примеры взяты [отсюда](https://habr.com/ru/company/wunderfund/blog/316826/) # list available python magics # %lsmagic # ### Используйте `%run` для выполнения кода на Python # # # %run может выполнить код на языке Python из файлов с расширением .py — это поведение хорошо задокументировано. # # Но эта команда может выполнять и другие блокноты из Jupyter! Иногда это очень полезно. # # Обратите внимание, что %run — это не то же, что импорт python-модуля. # %run ./files/example.ipynb # # ### %load # # Загрузит код напрямую в ячейку. Можно выбрать файл локально или из сети. # # Если раскомментировать и выполнить код ниже, содержание ячейки заменится на содержание файла. # # %load ./files/some.txt 42342 Now that!!! sdfsdf # + # %%writefile ./files/some.txt sdfsdf # - # ### Тайминг # # Если вы хотите замерить время выполнения программы или найти узкое место в коде, на помощь придет IPython. # %%time import time time.sleep(2) # sleep for two seconds # + def some_foo(n): a = 0 for i in range(int(n)): a += i return a # %timeit some_foo(1e6) # - # ### Профилирование: `%prun` # + import numpy as np def append_if_not_exists(arr, x): if x in arr: arr.append(x) def some_useless_slow_function(): arr = list() for i in range(10000): x = np.random.randint(0, 10000) append_if_not_exists(arr, x) # %prun some_useless_slow_function() # - # %timeit some_useless_slow_function() def some_useless_slow_function2(): arr = list() xs = np.random.randint(0, 10000, size=10000) for x in xs: append_if_not_exists(arr, x) # %timeit some_useless_slow_function2() # %load_ext line_profiler # %lprun? # # ###### %lprun -f append_if_not_exists some_useless_slow_function2()
2,032
/covid19_x-ray_images/Experiment8/algorithm_pneumonia.ipynb
bbc55d48b14d6d3bbf9f2ee0dcfa4204977a7e42
[]
no_license
jaidenmeiden/arf
https://github.com/jaidenmeiden/arf
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
168,448
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # <span class='h2'>C - Sugar Water</span> # <hr> # <p>Time Limit: 3 sec / Memory Limit: 256 MB</p> # # <div id='task-statement'> # <span class='lang'> # <span class='lang-ja'> # <p>配点: <var><span class='MathJax_Preview' style='color: inherit;'><span class='MJXp-math' id='MJXp-Span-1'><span class='MJXp-mn' id='MJXp-Span-2'>300</span></span></span><script type='math/tex' id='MathJax-Element-1'>300</script></var> 点</p> # # <div class='part'> # <section> # <h3>問題文</h3><p>すぬけ君はビーカーに砂糖水を作ろうとしています。 # 最初ビーカーは空です。すぬけ君は以下の <var><span class='MathJax_Preview' style='color: inherit;'><span class='MJXp-math' id='MJXp-Span-3'><span class='MJXp-mn' id='MJXp-Span-4'>4</span></span></span><script type='math/tex' id='MathJax-Element-2'>4</script></var> 種類の操作をそれぞれ何回でも行うことができます。一度も行わない操作があっても構いません。</p> # <ul> # <li>操作 1: ビーカーに水を <var><span class='MathJax_Preview' style='color: inherit;'><span class='MJXp-math' id='MJXp-Span-5'><span class='MJXp-mn' id='MJXp-Span-6'>100</span><span class='MJXp-mi MJXp-italic' id='MJXp-Span-7'>A</span></span></span><script type='math/tex' id='MathJax-Element-3'>100A</script></var> [g] 入れる。</li> # <li>操作 2: ビーカーに水を <var><span class='MathJax_Preview' style='color: inherit;'><span class='MJXp-math' id='MJXp-Span-8'><span class='MJXp-mn' id='MJXp-Span-9'>100</span><span class='MJXp-mi MJXp-italic' id='MJXp-Span-10'>B</span></span></span><script type='math/tex' id='MathJax-Element-4'>100B</script></var> [g] 入れる。</li> # <li>操作 3: ビーカーに砂糖を <var><span class='MathJax_Preview' style='color: inherit;'><span class='MJXp-math' id='MJXp-Span-11'><span class='MJXp-mi MJXp-italic' id='MJXp-Span-12'>C</span></span></span><script type='math/tex' id='MathJax-Element-5'>C</script></var> [g] 入れる。</li> # <li>操作 4: ビーカーに砂糖を <var><span class='MathJax_Preview' style='color: inherit;'><span class='MJXp-math' id='MJXp-Span-13'><span class='MJXp-mi MJXp-italic' id='MJXp-Span-14'>D</span></span></span><script type='math/tex' id='MathJax-Element-6'>D</script></var> [g] 入れる。</li> # </ul> # <p>すぬけ君の実験環境下では、水 <var><span class='MathJax_Preview' style='color: inherit;'><span class='MJXp-math' id='MJXp-Span-15'><span class='MJXp-mn' id='MJXp-Span-16'>100</span></span></span><script type='math/tex' id='MathJax-Element-7'>100</script></var> [g] あたり砂糖は <var><span class='MathJax_Preview' style='color: inherit;'><span class='MJXp-math' id='MJXp-Span-17'><span class='MJXp-mi MJXp-italic' id='MJXp-Span-18'>E</span></span></span><script type='math/tex' id='MathJax-Element-8'>E</script></var> [g] 溶けます。</p> # <p>すぬけ君はできるだけ濃度の高い砂糖水を作りたいと考えています。</p> # <p>ビーカーに入れられる物質の質量 (水の質量と砂糖の質量の合計) が <var><span class='MathJax_Preview' style='color: inherit;'><span class='MJXp-math' id='MJXp-Span-19'><span class='MJXp-mi MJXp-italic' id='MJXp-Span-20'>F</span></span></span><script type='math/tex' id='MathJax-Element-9'>F</script></var> [g] 以下であり、 # ビーカーの中に砂糖を溶け残らせてはいけないとき、 # すぬけ君が作る砂糖水の質量と、それに溶けている砂糖の質量を求めてください。 # 答えが複数ある場合はどれを答えても構いません。</p> # <p>水 <var><span class='MathJax_Preview' style='color: inherit;'><span class='MJXp-math' id='MJXp-Span-21'><span class='MJXp-mi MJXp-italic' id='MJXp-Span-22'>a</span></span></span><script type='math/tex' id='MathJax-Element-10'>a</script></var> [g] と砂糖 <var><span class='MathJax_Preview' style='color: inherit;'><span class='MJXp-math' id='MJXp-Span-23'><span class='MJXp-mi MJXp-italic' id='MJXp-Span-24'>b</span></span></span><script type='math/tex' id='MathJax-Element-11'>b</script></var> [g] を混ぜた砂糖水の濃度は <var><span class='MathJax_Preview' style='color: inherit;'><span class='MJXp-math' id='MJXp-Span-25'><span class='MJXp-mfrac' id='MJXp-Span-26' style='vertical-align: 0.25em;'><span class='MJXp-box MJXp-script'><span class='MJXp-mn' id='MJXp-Span-27'>100</span><span class='MJXp-mi MJXp-italic' id='MJXp-Span-28'>b</span></span><span class='MJXp-box' style='margin-top: -0.9em;'><span class='MJXp-denom'><span><span class='MJXp-rule' style='height: 1em; border-top: none; border-bottom: 1px solid; margin: 0.1em 0px;'></span></span><span><span class='MJXp-box MJXp-script'><span class='MJXp-mi MJXp-italic' id='MJXp-Span-29'>a</span><span class='MJXp-mo' id='MJXp-Span-30'>+</span><span class='MJXp-mi MJXp-italic' id='MJXp-Span-31'>b</span></span></span></span></span></span></span></span><script type='math/tex' id='MathJax-Element-12'>\frac{100b}{a + b}</script></var> [%]です。 # また、この問題では、砂糖が全く溶けていない水も濃度 <var><span class='MathJax_Preview' style='color: inherit;'><span class='MJXp-math' id='MJXp-Span-32'><span class='MJXp-mn' id='MJXp-Span-33'>0</span></span></span><script type='math/tex' id='MathJax-Element-13'>0</script></var> [%] の砂糖水と考えることにします。</p> # </section> # </div> # # <div class='part'> # <section> # <h3>制約</h3><ul> # <li><var><span class='MathJax_Preview' style='color: inherit;'><span class='MJXp-math' id='MJXp-Span-34'><span class='MJXp-mn' id='MJXp-Span-35'>1</span><span class='MJXp-mo' id='MJXp-Span-36' style='margin-left: 0.333em; margin-right: 0.333em;'>≦</span><span class='MJXp-mi MJXp-italic' id='MJXp-Span-37'>A</span><span class='MJXp-mo' id='MJXp-Span-38' style='margin-left: 0.333em; margin-right: 0.333em;'>&lt;</span><span class='MJXp-mi MJXp-italic' id='MJXp-Span-39'>B</span><span class='MJXp-mo' id='MJXp-Span-40' style='margin-left: 0.333em; margin-right: 0.333em;'>≦</span><span class='MJXp-mn' id='MJXp-Span-41'>30</span></span></span><script type='math/tex' id='MathJax-Element-14'>1 ≦ A < B ≦ 30</script></var></li> # <li><var><span class='MathJax_Preview' style='color: inherit;'><span class='MJXp-math' id='MJXp-Span-42'><span class='MJXp-mn' id='MJXp-Span-43'>1</span><span class='MJXp-mo' id='MJXp-Span-44' style='margin-left: 0.333em; margin-right: 0.333em;'>≦</span><span class='MJXp-mi MJXp-italic' id='MJXp-Span-45'>C</span><span class='MJXp-mo' id='MJXp-Span-46' style='margin-left: 0.333em; margin-right: 0.333em;'>&lt;</span><span class='MJXp-mi MJXp-italic' id='MJXp-Span-47'>D</span><span class='MJXp-mo' id='MJXp-Span-48' style='margin-left: 0.333em; margin-right: 0.333em;'>≦</span><span class='MJXp-mn' id='MJXp-Span-49'>30</span></span></span><script type='math/tex' id='MathJax-Element-15'>1 ≦ C < D ≦ 30</script></var></li> # <li><var><span class='MathJax_Preview' style='color: inherit;'><span class='MJXp-math' id='MJXp-Span-50'><span class='MJXp-mn' id='MJXp-Span-51'>1</span><span class='MJXp-mo' id='MJXp-Span-52' style='margin-left: 0.333em; margin-right: 0.333em;'>≦</span><span class='MJXp-mi MJXp-italic' id='MJXp-Span-53'>E</span><span class='MJXp-mo' id='MJXp-Span-54' style='margin-left: 0.333em; margin-right: 0.333em;'>≦</span><span class='MJXp-mn' id='MJXp-Span-55'>100</span></span></span><script type='math/tex' id='MathJax-Element-16'>1≦ E ≦ 100</script></var></li> # <li><var><span class='MathJax_Preview' style='color: inherit;'><span class='MJXp-math' id='MJXp-Span-56'><span class='MJXp-mn' id='MJXp-Span-57'>100</span><span class='MJXp-mi MJXp-italic' id='MJXp-Span-58'>A</span><span class='MJXp-mo' id='MJXp-Span-59' style='margin-left: 0.333em; margin-right: 0.333em;'>≦</span><span class='MJXp-mi MJXp-italic' id='MJXp-Span-60'>F</span><span class='MJXp-mo' id='MJXp-Span-61' style='margin-left: 0.333em; margin-right: 0.333em;'>≦</span><span class='MJXp-mn' id='MJXp-Span-62'>3</span><span class='MJXp-mo' id='MJXp-Span-63' style='margin-left: 0em; margin-right: 0.222em;'>,</span><span class='MJXp-mn' id='MJXp-Span-64'>000</span></span></span><script type='math/tex' id='MathJax-Element-17'>100A ≦ F ≦ 3,000</script></var></li> # <li><var><span class='MathJax_Preview' style='color: inherit;'><span class='MJXp-math' id='MJXp-Span-65'><span class='MJXp-mi MJXp-italic' id='MJXp-Span-66'>A</span><span class='MJXp-mo' id='MJXp-Span-67' style='margin-left: 0em; margin-right: 0.222em;'>,</span><span class='MJXp-mi MJXp-italic' id='MJXp-Span-68'>B</span><span class='MJXp-mo' id='MJXp-Span-69' style='margin-left: 0em; margin-right: 0.222em;'>,</span><span class='MJXp-mi MJXp-italic' id='MJXp-Span-70'>C</span><span class='MJXp-mo' id='MJXp-Span-71' style='margin-left: 0em; margin-right: 0.222em;'>,</span><span class='MJXp-mi MJXp-italic' id='MJXp-Span-72'>D</span><span class='MJXp-mo' id='MJXp-Span-73' style='margin-left: 0em; margin-right: 0.222em;'>,</span><span class='MJXp-mi MJXp-italic' id='MJXp-Span-74'>E</span><span class='MJXp-mo' id='MJXp-Span-75' style='margin-left: 0em; margin-right: 0.222em;'>,</span><span class='MJXp-mi MJXp-italic' id='MJXp-Span-76'>F</span></span></span><script type='math/tex' id='MathJax-Element-18'>A, B, C, D, E, F</script></var> はすべて整数である。</li> # </ul> # </section> # </div> # # <hr> # # <div class='io-style'> # <div class='part'> # <section> # <h3>入力</h3><p>入力は以下の形式で標準入力から与えられる。</p> # <pre><var><span class='MathJax_Preview' style='color: inherit;'><span class='MJXp-math' id='MJXp-Span-77'><span class='MJXp-mi MJXp-italic' id='MJXp-Span-78'>A</span></span></span><script type='math/tex' id='MathJax-Element-19'>A</script></var> <var><span class='MathJax_Preview' style='color: inherit;'><span class='MJXp-math' id='MJXp-Span-79'><span class='MJXp-mi MJXp-italic' id='MJXp-Span-80'>B</span></span></span><script type='math/tex' id='MathJax-Element-20'>B</script></var> <var><span class='MathJax_Preview' style='color: inherit;'><span class='MJXp-math' id='MJXp-Span-81'><span class='MJXp-mi MJXp-italic' id='MJXp-Span-82'>C</span></span></span><script type='math/tex' id='MathJax-Element-21'>C</script></var> <var><span class='MathJax_Preview' style='color: inherit;'><span class='MJXp-math' id='MJXp-Span-83'><span class='MJXp-mi MJXp-italic' id='MJXp-Span-84'>D</span></span></span><script type='math/tex' id='MathJax-Element-22'>D</script></var> <var><span class='MathJax_Preview' style='color: inherit;'><span class='MJXp-math' id='MJXp-Span-85'><span class='MJXp-mi MJXp-italic' id='MJXp-Span-86'>E</span></span></span><script type='math/tex' id='MathJax-Element-23'>E</script></var> <var><span class='MathJax_Preview' style='color: inherit;'><span class='MJXp-math' id='MJXp-Span-87'><span class='MJXp-mi MJXp-italic' id='MJXp-Span-88'>F</span></span></span><script type='math/tex' id='MathJax-Element-24'>F</script></var> # </pre> # # </section> # </div> # # <div class='part'> # <section> # <h3>出力</h3><p>整数を空白区切りで <var><span class='MathJax_Preview' style='color: inherit;'><span class='MJXp-math' id='MJXp-Span-89'><span class='MJXp-mn' id='MJXp-Span-90'>2</span></span></span><script type='math/tex' id='MathJax-Element-25'>2</script></var> つ出力せよ。 # <var><span class='MathJax_Preview' style='color: inherit;'><span class='MJXp-math' id='MJXp-Span-91'><span class='MJXp-mn' id='MJXp-Span-92'>1</span></span></span><script type='math/tex' id='MathJax-Element-26'>1</script></var> つ目は求める砂糖水の質量、<var><span class='MathJax_Preview' style='color: inherit;'><span class='MJXp-math' id='MJXp-Span-93'><span class='MJXp-mn' id='MJXp-Span-94'>2</span></span></span><script type='math/tex' id='MathJax-Element-27'>2</script></var> つ目はそれに溶けている砂糖の質量とせよ。</p> # </section> # </div> # </div> # # <hr> # # <div class='part'> # <section> # <h3>入力例 1 <span class='btn btn-default btn-sm btn-copy' tabindex='0' data-toggle='tooltip' data-trigger='manual' title='' data-target='pre-sample0' data-original-title='Copied!'>Copy</span></h3><div class='div-btn-copy'><span class='btn-copy btn-pre' tabindex='0' data-toggle='tooltip' data-trigger='manual' title='' style='display: none;' data-target='pre-sample0' data-original-title='Copied!'>Copy</span></div><pre id='pre-sample0'>1 2 10 20 15 200 # </pre> # # </section> # </div> # # <div class='part'> # <section> # <h3>出力例 1 <span class='btn btn-default btn-sm btn-copy' tabindex='0' data-toggle='tooltip' data-trigger='manual' title='' data-target='pre-sample1' data-original-title='Copied!'>Copy</span></h3><div class='div-btn-copy'><span class='btn-copy btn-pre' tabindex='0' data-toggle='tooltip' data-trigger='manual' title='' style='display: none;' data-target='pre-sample1' data-original-title='Copied!'>Copy</span></div><pre id='pre-sample1'>110 10 # </pre> # # <p>この入力例の状況では、水 <var><span class='MathJax_Preview' style='color: inherit;'><span class='MJXp-math' id='MJXp-Span-95'><span class='MJXp-mn' id='MJXp-Span-96'>100</span></span></span><script type='math/tex' id='MathJax-Element-28'>100</script></var> [g] あたり砂糖は <var><span class='MathJax_Preview' style='color: inherit;'><span class='MJXp-math' id='MJXp-Span-97'><span class='MJXp-mn' id='MJXp-Span-98'>15</span></span></span><script type='math/tex' id='MathJax-Element-29'>15</script></var> [g] 溶けます。 # また、ビーカーに物質を <var><span class='MathJax_Preview' style='color: inherit;'><span class='MJXp-math' id='MJXp-Span-99'><span class='MJXp-mn' id='MJXp-Span-100'>200</span></span></span><script type='math/tex' id='MathJax-Element-30'>200</script></var> [g] まで入れることができます。</p> # <p>操作 1 と操作 3 を <var><span class='MathJax_Preview' style='color: inherit;'><span class='MJXp-math' id='MJXp-Span-101'><span class='MJXp-mn' id='MJXp-Span-102'>1</span></span></span><script type='math/tex' id='MathJax-Element-31'>1</script></var> 回ずつ行うことで <var><span class='MathJax_Preview' style='color: inherit;'><span class='MJXp-math' id='MJXp-Span-103'><span class='MJXp-mn' id='MJXp-Span-104'>110</span></span></span><script type='math/tex' id='MathJax-Element-32'>110</script></var> [g] の砂糖水を作ることができます。 # また、これ以上濃度の高い砂糖水を作ることはできません。 # たとえば、以下のような操作は条件を満たしません。</p> # <ul> # <li>操作 1 と操作 4 を <var><span class='MathJax_Preview' style='color: inherit;'><span class='MJXp-math' id='MJXp-Span-105'><span class='MJXp-mn' id='MJXp-Span-106'>1</span></span></span><script type='math/tex' id='MathJax-Element-33'>1</script></var> 回ずつ行うと、ビーカーに砂糖が溶け残ってしまいます。</li> # <li>操作 2 を <var><span class='MathJax_Preview' style='color: inherit;'><span class='MJXp-math' id='MJXp-Span-107'><span class='MJXp-mn' id='MJXp-Span-108'>1</span></span></span><script type='math/tex' id='MathJax-Element-34'>1</script></var> 回と操作 3 を <var><span class='MathJax_Preview' style='color: inherit;'><span class='MJXp-math' id='MJXp-Span-109'><span class='MJXp-mn' id='MJXp-Span-110'>3</span></span></span><script type='math/tex' id='MathJax-Element-35'>3</script></var> 回行うと、ビーカーの中の物質の量が <var><span class='MathJax_Preview' style='color: inherit;'><span class='MJXp-math' id='MJXp-Span-111'><span class='MJXp-mn' id='MJXp-Span-112'>200</span></span></span><script type='math/tex' id='MathJax-Element-36'>200</script></var> [g] を超えてしまいます。</li> # </ul> # </section> # </div> # # <hr> # # <div class='part'> # <section> # <h3>入力例 2 <span class='btn btn-default btn-sm btn-copy' tabindex='0' data-toggle='tooltip' data-trigger='manual' title='' data-target='pre-sample2' data-original-title='Copied!'>Copy</span></h3><div class='div-btn-copy'><span class='btn-copy btn-pre' tabindex='0' data-toggle='tooltip' data-trigger='manual' title='' style='display: none;' data-target='pre-sample2' data-original-title='Copied!'>Copy</span></div><pre id='pre-sample2'>1 2 1 2 100 1000 # </pre> # # </section> # </div> # # <div class='part'> # <section> # <h3>出力例 2 <span class='btn btn-default btn-sm btn-copy' tabindex='0' data-toggle='tooltip' data-trigger='manual' title='' data-target='pre-sample3' data-original-title='Copied!'>Copy</span></h3><div class='div-btn-copy'><span class='btn-copy btn-pre' tabindex='0' data-toggle='tooltip' data-trigger='manual' title='' style='display: none;' data-target='pre-sample3' data-original-title='Copied!'>Copy</span></div><pre id='pre-sample3'>200 100 # </pre> # # <p>ほかに、たとえば以下の出力も正解となります。</p> # <pre>400 200 # </pre> # # <p>一方、以下の出力は不正解となります。</p> # <pre>300 150 # </pre> # # <p>なぜなら、砂糖が <var><span class='MathJax_Preview' style='color: inherit;'><span class='MJXp-math' id='MJXp-Span-113'><span class='MJXp-mn' id='MJXp-Span-114'>150</span></span></span><script type='math/tex' id='MathJax-Element-37'>150</script></var> [g] 溶けた <var><span class='MathJax_Preview' style='color: inherit;'><span class='MJXp-math' id='MJXp-Span-115'><span class='MJXp-mn' id='MJXp-Span-116'>300</span></span></span><script type='math/tex' id='MathJax-Element-38'>300</script></var> [g] の砂糖水を作るにはビーカーに水をちょうど <var><span class='MathJax_Preview' style='color: inherit;'><span class='MJXp-math' id='MJXp-Span-117'><span class='MJXp-mn' id='MJXp-Span-118'>150</span></span></span><script type='math/tex' id='MathJax-Element-39'>150</script></var> [g] 入れる必要がありますが、そのようなことは不可能だからです。</p> # </section> # </div> # # <hr> # # <div class='part'> # <section> # <h3>入力例 3 <span class='btn btn-default btn-sm btn-copy' tabindex='0' data-toggle='tooltip' data-trigger='manual' title='' data-target='pre-sample4' data-original-title='Copied!'>Copy</span></h3><div class='div-btn-copy'><span class='btn-copy btn-pre' tabindex='0' data-toggle='tooltip' data-trigger='manual' title='' style='display: none;' data-target='pre-sample4' data-original-title='Copied!'>Copy</span></div><pre id='pre-sample4'>17 19 22 26 55 2802 # </pre> # # </section> # </div> # # <div class='part'> # <section> # <h3>出力例 3 <span class='btn btn-default btn-sm btn-copy' tabindex='0' data-toggle='tooltip' data-trigger='manual' title='' data-target='pre-sample5' data-original-title='Copied!'>Copy</span></h3><div class='div-btn-copy'><span class='btn-copy btn-pre' tabindex='0' data-toggle='tooltip' data-trigger='manual' title='' style='display: none;' data-target='pre-sample5' data-original-title='Copied!'>Copy</span></div><pre id='pre-sample5'>2634 934 # </pre></section> # </div> # </span> # # + from ipywidgets import Textarea import sys sys.path.append('../../..') from utils.multi_line_input import multi_line_input text_area = Textarea() input = multi_line_input() display(text_area)
18,035
/Sao_Paolo.ipynb
33bb545fb5009fff0a263fe2f9cf25e61b0669b8
[]
no_license
abdurrehman98/SaoPaolo-Homicide-Rate_Analysis
https://github.com/abdurrehman98/SaoPaolo-Homicide-Rate_Analysis
0
0
null
null
null
null
Jupyter Notebook
false
false
.r
147,676
# -*- coding: utf-8 -*- # --- # jupyter: # jupytext: # text_representation: # extension: .r # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: R # language: R # name: ir # --- # + ##################### ### Data Analysis ### ##################### ## Please set your working directory to the data/ folder # Clear the workspace rm(list = ls()) # Load necessary packages library(dplyr) # data manipulation library(Synth) # models # Load data df <- read.csv("df.csv", header = TRUE) # Prepare dataset df$state <- as.character(df$state) # required by dataprep() # Plot: Homicide rates for Sao Paulo and Brazil (average) df1 <- df %>% mutate(homicide.sp = ifelse(homicide.rates & state == "São Paulo", homicide.rates, NA)) %>% select(year, homicide.sp) df2 <- df %>% mutate(homicide.rates1 = ifelse(homicide.rates & state != "São Paulo", homicide.rates, NA)) %>% group_by(year) %>% summarise(homicide.br = mean(homicide.rates1, na.rm = TRUE)) # - setwd("C:/Users/abdur/Downloads") # Prepare data for synth dataprep.out <- dataprep(df, predictors = c("state.gdp.capita", "state.gdp.growth.percent", "population.projection.ln", "years.schooling.imp" ), special.predictors = list( list("homicide.rates", 1990:1998, "mean"), list("proportion.extreme.poverty", 1990:1998, "mean"), list("gini.imp", 1990:1998, "mean") ), predictors.op = "mean", dependent = "homicide.rates", unit.variable = "code", time.variable = "year", unit.names.variable = "state", treatment.identifier = 35, controls.identifier = c(11:17, 21:27, 31:33, 50:53), time.predictors.prior = c(1990:1998), time.optimize.ssr = c(1990:1998), time.plot = c(1990:2009) ) # + # Run synth synth.out <- synth(dataprep.out) # Get result tables print(synth.tables <- synth.tab( dataprep.res = dataprep.out, synth.res = synth.out) ) # + path.plot(synth.res = synth.out, dataprep.res = dataprep.out, Ylab = c("Homicide Rates"), Xlab = c("Year"), Legend = c("São Paulo","Synthetic São Paulo"), Legend.position = c("bottomleft") ) abline(v = 1999, lty = 2) arrows(1997, 50, 1999, 50, col = "black", length = .1) text(1995, 50, "Policy Change", cex = .8) # + gaps.plot(synth.res = synth.out, dataprep.res = dataprep.out, Ylab = c("Gap in Homicide Rates"), Xlab = c("Year"), Ylim = c(-30, 30), Main = "" ) abline(v = 1999, lty = 2) arrows(1997, 20, 1999, 20, col = "black", length = .1) text(1995, 20, "Policy Change", cex = .8) invisible(dev.off()) # + ###### #Placebo across time ###### results <- list() results_synth <- list() gaps <- list() #Years treatment.years <- c(1993, 1994, 1995, 1996, 1997, 1998, 1999) # For treatment years for (i in 1:7) { # Prepare data for synth dataprep.out <- dataprep(df, predictors = c("state.gdp.capita", "state.gdp.growth.percent", "population.projection.ln", "years.schooling.imp" ), special.predictors = list( list("homicide.rates", 1990:treatment.years[i], "mean"), list("proportion.extreme.poverty", 1990:treatment.years[i], "mean"), list("gini.imp", 1990:treatment.years[i], "mean") ), predictors.op = "mean", dependent = "homicide.rates", unit.variable = "code", time.variable = "year", unit.names.variable = "state", treatment.identifier = 35, controls.identifier = c(11:17, 21:27, 31:33, 41:43, 50:53), time.predictors.prior = c(1990:treatment.years[i]), time.optimize.ssr = c(1990:treatment.years[i]), time.plot = c(1990:2009) ) results[[as.character(i)]] <- dataprep.out results_synth[[as.character(i)]] <- synth(results[[as.character(i)]]) gaps[[as.character(i)]] <- results[[as.character(i)]]$Y1plot - (results[[as.character(i)]]$Y0plot %*% results_synth[[as.character(i)]]$solution.w) } plot(1990:2009, ylim = c(-30, 30), xlim = c(1990,2009), ylab = "Gap in Homicide Rates", xlab = "Year" ) for (i in 1:6) { lines(1990:2009, gaps[[as.character(i)]], col = "lightgrey", lty = "solid", lwd = 2 ) } lines(1990:2009, gaps[[as.character(7)]], # São Paulo col = "black", lty = "solid", lwd = 2 ) abline(v = 1999, lty = 2) abline(h = 0, lty = 1, lwd = 1) arrows(1997, 25, 1999, 25, col = "black", length = .1) text(1995, 25, "Policy Change", cex = .8) legend(x = "bottomleft", legend = c("Treatment in policy change", "Placebo treatment (from 1993 to 1998)"), lty = c("solid", "solid"), col = c("black", "darkgrey"), cex = .8, bg = "white", lwdc(2, 2, 1) ) # - # Placebo in Year for 1993 dataprep.out <- dataprep(df, predictors = c("state.gdp.capita", "state.gdp.growth.percent", "population.projection.ln", "years.schooling.imp" ), special.predictors = list( list("homicide.rates", 1990:1993, "mean"), list("proportion.extreme.poverty", 1990:1993, "mean"), list("gini.imp", 1990:1993, "mean") ), predictors.op = "mean", dependent = "homicide.rates", unit.variable = "code", time.variable = "year", unit.names.variable = "state", treatment.identifier = 35, controls.identifier = c(11:17, 21:27, 31:33, 50:53), time.predictors.prior = c(1990:1993), time.optimize.ssr = c(1990:1993), time.plot = c(1990:2009) ) # + synth.out <- synth(dataprep.out) # + path.plot(synth.res = synth.out, dataprep.res = dataprep.out, Ylab = c("Homicide Rates"), Xlab = c("Year"), Legend = c("São Paulo","Synthetic São Paulo"), Legend.position = c("bottomleft") ) abline(v = 1993, lty = 2) arrows(1995, 50, 1993, 50, col = "black", length = .1) text(1997, 50, "Placebo Year", cex = .8) # - # Placebo in Time for 1996 dataprep.out <- dataprep(df, predictors = c("state.gdp.capita", "state.gdp.growth.percent", "population.projection.ln", "years.schooling.imp" ), special.predictors = list( list("homicide.rates", 1990:1996, "mean"), list("proportion.extreme.poverty", 1990:1996, "mean"), list("gini.imp", 1990:1996, "mean") ), predictors.op = "mean", dependent = "homicide.rates", unit.variable = "code", time.variable = "year", unit.names.variable = "state", treatment.identifier = 35, controls.identifier = c(11:17, 21:27, 31:33, 50:53), time.predictors.prior = c(1990:1996), time.optimize.ssr = c(1990:1996), time.plot = c(1990:2009) ) synth.out <- synth(dataprep.out) # + path.plot(synth.res = synth.out, dataprep.res = dataprep.out, Ylab = c("Homicide Rates"), Xlab = c("Year"), Legend = c("São Paulo","Synthetic São Paulo"), Legend.position = c("bottomleft") ) abline(v = 1996, lty = 2) arrows(1994, 50, 1996, 50, col = "black", length = .1) text(1992, 50.5, "Placebo Year", cex = .8) # - #Robustness test of Synth Control by removing most heavily weighted component of Control #Mato Grase De sul, number 50 makes up 33.5% of the Synthetic Control, so that can be removed to see the effect dataprep.out <- dataprep(df, predictors = c("state.gdp.capita", "state.gdp.growth.percent", "population.projection.ln", "years.schooling.imp" ), special.predictors = list( list("homicide.rates", 1990:1998, "mean"), list("proportion.extreme.poverty", 1990:1998, "mean"), list("gini.imp", 1990:1998, "mean") ), predictors.op = "mean", dependent = "homicide.rates", unit.variable = "code", time.variable = "year", unit.names.variable = "state", treatment.identifier = 35, controls.identifier = c(11:17, 21:27, 31:33, 51:53), time.predictors.prior = c(1990:1998), time.optimize.ssr = c(1990:1998), time.plot = c(1990:2009) ) # + # Run synth synth.out <- synth(dataprep.out) # Get result tables print(synth.tables <- synth.tab( dataprep.res = dataprep.out, synth.res = synth.out) ) # + path.plot(synth.res = synth.out, dataprep.res = dataprep.out, Ylab = c("Homicide Rates"), Xlab = c("Year"), Legend = c("São Paulo","Synthetic São Paulo"), Legend.position = c("bottomleft") ) abline(v = 1999, lty = 2) arrows(1997, 50, 1999, 50, col = "black", length = .1) text(1995, 50, "Policy Change", cex = .8) ### Now we see that Rio De Janeiro, number 33 is the biggest contributor to the Synth control #Now we see that the Synthetic Control does not perform too well # + #Now Lets remove number 53 which is distrito federal dataprep.out <- dataprep(df, predictors = c("state.gdp.capita", "state.gdp.growth.percent", "population.projection.ln", "years.schooling.imp" ), special.predictors = list( list("homicide.rates", 1990:1998, "mean"), list("proportion.extreme.poverty", 1990:1998, "mean"), list("gini.imp", 1990:1998, "mean") ), predictors.op = "mean", dependent = "homicide.rates", unit.variable = "code", time.variable = "year", unit.names.variable = "state", treatment.identifier = 35, controls.identifier = c(11:17, 21:27, 31:33, 51,52), time.predictors.prior = c(1990:1998), time.optimize.ssr = c(1990:1998), time.plot = c(1990:2009) ) # Run synth synth.out <- synth(dataprep.out) # Get result tables print(synth.tables <- synth.tab( dataprep.res = dataprep.out, synth.res = synth.out) ) # + path.plot(synth.res = synth.out, dataprep.res = dataprep.out, Ylab = c("Homicide Rates"), Xlab = c("Year"), Legend = c("São Paulo","Synthetic São Paulo"), Legend.position = c("bottomleft") ) abline(v = 1999, lty = 2) arrows(1997, 50, 1999, 50, col = "black", length = .1) text(1995, 50, "Policy Change", cex = .8) ### Now we see that Rio De Janeiro, number 33 is the biggest contributor to the Synth control #The performance has gone worse, specifically at the treatment introduction time period # + #Now Lets remove number 15 as it is the most heavily weighted - Parai is number 15 dataprep.out <- dataprep(df, predictors = c("state.gdp.capita", "state.gdp.growth.percent", "population.projection.ln", "years.schooling.imp" ), special.predictors = list( list("homicide.rates", 1990:1998, "mean"), list("proportion.extreme.poverty", 1990:1998, "mean"), list("gini.imp", 1990:1998, "mean") ), predictors.op = "mean", dependent = "homicide.rates", unit.variable = "code", time.variable = "year", unit.names.variable = "state", treatment.identifier = 35, controls.identifier = c(11:14,16,17, 21:27, 31:33, 51,52), time.predictors.prior = c(1990:1998), time.optimize.ssr = c(1990:1998), time.plot = c(1990:2009) ) # Run synth synth.out <- synth(dataprep.out) # Get result tables print(synth.tables <- synth.tab( dataprep.res = dataprep.out, synth.res = synth.out) ) # + path.plot(synth.res = synth.out, dataprep.res = dataprep.out, Ylab = c("Homicide Rates"), Xlab = c("Year"), Legend = c("São Paulo","Synthetic São Paulo"), Legend.position = c("bottomleft") ) abline(v = 1999, lty = 2) arrows(1997, 50, 1999, 50, col = "black", length = .1) text(1995, 50, "Policy Change", cex = .8) #It is increasingly evident that the performance is not improving so this will end the test. # -
15,146
/Minimum_Window_Substring.ipynb
dab07bff000586031fe8f10598e46fd57793bf96
[]
no_license
Zavi77/pythonCodes
https://github.com/Zavi77/pythonCodes
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
2,220
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Tensorflow(GPU) # language: python # name: tensorflow # --- # # Image features exercise # *Complete and hand in this completed worksheet (including its outputs and any supporting code outside of the worksheet) with your assignment submission. For more details see the [assignments page](http://vision.stanford.edu/teaching/cs231n/assignments.html) on the course website.* # # We have seen that we can achieve reasonable performance on an image classification task by training a linear classifier on the pixels of the input image. In this exercise we will show that we can improve our classification performance by training linear classifiers not on raw pixels but on features that are computed from the raw pixels. # # All of your work for this exercise will be done in this notebook. # + import random import numpy as np from cs231n.data_utils import load_CIFAR10 import matplotlib.pyplot as plt from __future__ import print_function # %matplotlib inline plt.rcParams['figure.figsize'] = (10.0, 8.0) # set default size of plots plt.rcParams['image.interpolation'] = 'nearest' plt.rcParams['image.cmap'] = 'gray' # for auto-reloading extenrnal modules # see http://stackoverflow.com/questions/1907993/autoreload-of-modules-in-ipython # %load_ext autoreload # %autoreload 2 # - # ## Load data # Similar to previous exercises, we will load CIFAR-10 data from disk. # + from cs231n.features import color_histogram_hsv, hog_feature def get_CIFAR10_data(num_training=49000, num_validation=1000, num_test=1000): # Load the raw CIFAR-10 data cifar10_dir = 'cs231n/datasets/cifar-10-batches-py' X_train, y_train, X_test, y_test = load_CIFAR10(cifar10_dir) # Subsample the data mask = list(range(num_training, num_training + num_validation)) X_val = X_train[mask] y_val = y_train[mask] mask = list(range(num_training)) X_train = X_train[mask] y_train = y_train[mask] mask = list(range(num_test)) X_test = X_test[mask] y_test = y_test[mask] return X_train, y_train, X_val, y_val, X_test, y_test # Cleaning up variables to prevent loading data multiple times (which may cause memory issue) try: del X_train, y_train del X_test, y_test print('Clear previously loaded data.') except: pass X_train, y_train, X_val, y_val, X_test, y_test = get_CIFAR10_data() print(X_train.shape) print(y_train.shape) print(X_val.shape) print(y_val.shape) print(X_test.shape) print(y_test.shape) # - # ## Extract Features # For each image we will compute a Histogram of Oriented # Gradients (HOG) as well as a color histogram using the hue channel in HSV # color space. We form our final feature vector for each image by concatenating # the HOG and color histogram feature vectors. # # Roughly speaking, HOG should capture the texture of the image while ignoring # color information, and the color histogram represents the color of the input # image while ignoring texture. As a result, we expect that using both together # ought to work better than using either alone. Verifying this assumption would # be a good thing to try for your interests. # # The `hog_feature` and `color_histogram_hsv` functions both operate on a single # image and return a feature vector for that image. The extract_features # function takes a set of images and a list of feature functions and evaluates # each feature function on each image, storing the results in a matrix where # each column is the concatenation of all feature vectors for a single image. # + from cs231n.features import * num_color_bins = 10 # Number of bins in the color histogram feature_fns = [hog_feature, lambda img: color_histogram_hsv(img, nbin=num_color_bins)] X_train_feats = extract_features(X_train, feature_fns, verbose=True) X_val_feats = extract_features(X_val, feature_fns) X_test_feats = extract_features(X_test, feature_fns) print(X_train_feats.shape) print(X_val_feats.shape) print(X_test_feats.shape) # Preprocessing: Subtract the mean feature mean_feat = np.mean(X_train_feats, axis=0, keepdims=True) X_train_feats -= mean_feat X_val_feats -= mean_feat X_test_feats -= mean_feat # Preprocessing: Divide by standard deviation. This ensures that each feature # has roughly the same scale. std_feat = np.std(X_train_feats, axis=0, keepdims=True) X_train_feats /= std_feat X_val_feats /= std_feat X_test_feats /= std_feat # Preprocessing: Add a bias dimension X_train_feats = np.hstack([X_train_feats, np.ones((X_train_feats.shape[0], 1))]) X_val_feats = np.hstack([X_val_feats, np.ones((X_val_feats.shape[0], 1))]) X_test_feats = np.hstack([X_test_feats, np.ones((X_test_feats.shape[0], 1))]) # - # ## Train SVM on features # Using the multiclass SVM code developed earlier in the assignment, train SVMs on top of the features extracted above; this should achieve better results than training SVMs directly on top of raw pixels. # + # Use the validation set to tune the learning rate and regularization strength from cs231n.classifiers.linear_classifier import LinearSVM learning_rates = [1e-9, 1e-8, 1e-7] regularization_strengths = [5e4, 5e5, 5e6] results = {} best_val = -1 best_svm = None ################################################################################ # TODO: # # Use the validation set to set the learning rate and regularization strength. # # This should be identical to the validation that you did for the SVM; save # # the best trained classifer in best_svm. You might also want to play # # with different numbers of bins in the color histogram. If you are careful # # you should be able to get accuracy of near 0.44 on the validation set. # ################################################################################ ################################################################################ for lr in learning_rates: for rs in regularization_strengths: # 训练 current_svm=LinearSVM() loss_hist=current_svm.train(X_train_feats, y_train, learning_rate=lr, reg=rs, num_iters=5000, batch_size=200, verbose=True) y_train_pred=current_svm.predict(X_train_feats) training_acc=np.mean(y_train_pred==y_train) y_val_pred=current_svm.predict(X_val_feats) val_acc=np.mean(y_val==y_val_pred) results[(lr,rs)]=(training_acc,val_acc) if val_acc>best_val: best_val=val_acc best_svm=current_svm # END OF YOUR CODE # ################################################################################ # Print out results. for lr, reg in sorted(results): train_accuracy, val_accuracy = results[(lr, reg)] print('lr %e reg %e train accuracy: %f val accuracy: %f' % ( lr, reg, train_accuracy, val_accuracy)) print('best validation accuracy achieved during cross-validation: %f' % best_val) # - # Evaluate your trained SVM on the test set y_test_pred = best_svm.predict(X_test_feats) test_accuracy = np.mean(y_test == y_test_pred) print(test_accuracy) # + # An important way to gain intuition about how an algorithm works is to # visualize the mistakes that it makes. In this visualization, we show examples # of images that are misclassified by our current system. The first column # shows images that our system labeled as "plane" but whose true label is # something other than "plane". examples_per_class = 8 classes = ['plane', 'car', 'bird', 'cat', 'deer', 'dog', 'frog', 'horse', 'ship', 'truck'] for cls, cls_name in enumerate(classes): idxs = np.where((y_test != cls) & (y_test_pred == cls))[0] idxs = np.random.choice(idxs, examples_per_class, replace=False) for i, idx in enumerate(idxs): plt.subplot(examples_per_class, len(classes), i * len(classes) + cls + 1) plt.imshow(X_test[idx].astype('uint8')) plt.axis('off') if i == 0: plt.title(cls_name) plt.show() # - # ### Inline question 1: # Describe the misclassification results that you see. Do they make sense? # ## Neural Network on image features # Earlier in this assigment we saw that training a two-layer neural network on raw pixels achieved better classification performance than linear classifiers on raw pixels. In this notebook we have seen that linear classifiers on image features outperform linear classifiers on raw pixels. # # For completeness, we should also try training a neural network on image features. This approach should outperform all previous approaches: you should easily be able to achieve over 55% classification accuracy on the test set; our best model achieves about 60% classification accuracy. # + # Preprocessing: Remove the bias dimension # Make sure to run this cell only ONCE print(X_train_feats.shape) X_train_feats = X_train_feats[:, :-1] X_val_feats = X_val_feats[:, :-1] X_test_feats = X_test_feats[:, :-1] print(X_train_feats.shape) # + from cs231n.classifiers.neural_net import TwoLayerNet input_dim = X_train_feats.shape[1] hidden_dim=200 num_classes = 10 best_acc=-1 best_net = None ################################################################################ # TODO: Train a two-layer neural network on image features. You may want to # # cross-validate various parameters as in previous sections. Store your best # # model in the best_net variable. # ################################################################################ # Your code # for hd in [200]: # for lr in [3e-1,1]: # for reg in [3e-4,1e-3,3e-3]: # net = TwoLayerNet(input_dim, hd, num_classes) # stats = net.train(X_train_feats, y_train, X_val_feats, y_val, # num_iters=3000, batch_size=300, # learning_rate=lr, learning_rate_decay=0.99, # reg=reg, verbose=True) # # Predict on the validation set # val_acc = (net.predict(X_val_feats)==y_val).mean() # print ("regularization=%f, lr = %f, hidden dim = %f, Valid_accuracy: %f" %(reg, lr, hd,val_acc)) # if val_acc > best_acc: # best_acc = val_acc # best_net = net # print('best validation accuracy achieved during cross-validation: %f' % best_acc) for hidden_size in [hidden_dim]: for learning_rate in [1e-1,5e-1]: for learning_rate_decay in [0.999]: for reg in [3e-4,1e-3,3e-3]: net = TwoLayerNet(input_dim, hidden_dim, num_classes) # Train the network stats = net.train(X_train_feats, y_train, X_val_feats, y_val, num_iters=3000, batch_size=500, learning_rate=learning_rate, learning_rate_decay=learning_rate_decay, reg=reg, verbose=True) # Predict on the validation set val_acc = (net.predict(X_val_feats) == y_val).mean() print('hidden_size = %d,learning_rate = %f,learning_rate_decay = %f,reg = %f,Validation accuracy =%f '%(hidden_size,learning_rate,learning_rate_decay,reg,val_acc)) if best_acc<val_acc: best_acc = val_acc best_net = net print('best validation accuracy achieved during cross-validation: %f' % best_acc) ################################################################################ # END OF YOUR CODE # ################################################################################ # + # Run your best neural net classifier on the test set. You should be able # to get more than 55% accuracy. test_acc = (best_net.predict(X_test_feats) == y_test).mean() print(test_acc) pe="text" id="XftzX9CN_uGT" # たとえば、データセットに `[False, 4, bytes('goat'), 0.9876]` という1つの観測記録があるとします。`create_message()` を使うとこの観測記録から `tf.Example` メッセージを作成し印字できます。上記のように、観測記録一つ一つが `Features` メッセージとして書かれています。`tf.Example` [メッセージ](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/example/example.proto#L88)は、この `Features` メッセージを包むラッパーに過ぎないことに注意してください。 # + colab_type="code" id="N8BtSx2RjYcb" colab={} # データセットからの観測記録の例 example_observation = [] serialized_example = serialize_example(False, 4, b'goat', 0.9876) serialized_example # + [markdown] colab_type="text" id="_pbGATlG6u-4" # メッセージをデコードするには、`tf.train.Example.FromString` メソッドを使用します。 # + colab_type="code" id="dGim-mEm6vit" colab={} example_proto = tf.train.Example.FromString(serialized_example) example_proto # + [markdown] colab_type="text" id="y-Hjmee-fbLH" # ## TFRecord フォーマットの詳細 # # TFRecord ファイルにはレコードのシーケンスが含まれます。このファイルはシーケンシャル読み取りのみが可能です。 # # それぞれのレコードには、データを格納するためのバイト文字列とデータ長、そして整合性チェックのための CRC32C(Castagnoli 多項式を使った 32 ビットの CRC )ハッシュ値が含まれます。 # # 各レコードのフォーマットは # # uint64 長さ # uint32 長さのマスク済み crc32 ハッシュ値 # byte data[長さ] # uint32 データのマスク済み crc32 ハッシュ値 # # 複数のレコードが結合されてファイルを構成します。CRC については[ここ](https://en.wikipedia.org/wiki/Cyclic_redundancy_check)に說明があります。CRC のマスクは下記のとおりです。 # # masked_crc = ((crc >> 15) | (crc << 17)) + 0xa282ead8ul # # 注:TFRecord ファイルを作るのに、`tf.Example` を使わなければならないということはありません。tf.Example は、ディクショナリをバイト文字列にシリアライズする方法の1つです。エンコードされた画像データや、(`tf.io.serialize_tensor` を使ってシリアライズされ、`tf.io.parse_tensor` で読み込まれる)シリアライズされたテンソルもあります。そのほかのオプションについては、`tf.io` モジュールを参照してください。 # + [markdown] colab_type="text" id="LYnQzvAvfchQ" # ## `tf.data` を使用した TFRecord ファイル # + [markdown] colab_type="text" id="GmehkCCT81Ez" # `tf.data` モジュールには、TensorFlow でデータを読み書きするツールが含まれます。 # + [markdown] colab_type="text" id="1FISEuz8ubu3" # ### TFRecord ファイルの書き出し # # データをデータセットにするもっとも簡単な方法は `from_tensor_slices` メソッドです。 # # 配列に適用すると、このメソッドはスカラー値のデータセットを返します。 # + colab_type="code" id="mXeaukvwu5_-" colab={} tf.data.Dataset.from_tensor_slices(feature1) # + [markdown] colab_type="text" id="f-q0VKyZvcad" # 配列のタプルに適用すると、タプルのデータセットが返されます。 # + colab_type="code" id="H5sWyu1kxnvg" colab={} features_dataset = tf.data.Dataset.from_tensor_slices((feature0, feature1, feature2, feature3)) features_dataset # + colab_type="code" id="m1C-t71Nywze" colab={} # データセットから1つのサンプルだけを取り出すには `take(1)` を使います。 for f0,f1,f2,f3 in features_dataset.take(1): print(f0) print(f1) print(f2) print(f3) # + [markdown] colab_type="text" id="mhIe63awyZYd" # `Dataset` のそれぞれの要素に関数を適用するには、`tf.data.Dataset.map` メソッドを使用します。 # # マップされる関数は TensorFlow のグラフモードで動作する必要があります。関数は `tf.Tensors` を処理し、返す必要があります。`create_example` のような非テンソル関数は、互換性のため `tf.py_func` でラップすることができます。 # # `tf.py_func` を使用する際には、シェイプと型は取得できないため、指定する必要があります。 # + colab_type="code" id="apB5KYrJzjPI" colab={} def tf_serialize_example(f0,f1,f2,f3): tf_string = tf.py_function( serialize_example, (f0,f1,f2,f3), # 上記の関数にこれらの引数を渡す tf.string) # 戻り値の型は tf.string return tf.reshape(tf_string, ()) # 結果はスカラー # + id="mckRzbHlfchm" colab_type="code" colab={} tf_serialize_example(f0,f1,f2,f3) # + [markdown] colab_type="text" id="CrFZ9avE3HUF" # この関数をデータセットのそれぞれの要素に適用します。 # + colab_type="code" id="VDeqYVbW3ww9" colab={} serialized_features_dataset = features_dataset.map(tf_serialize_example) serialized_features_dataset # + id="CRtx4Cjpfch2" colab_type="code" colab={} def generator(): for features in features_dataset: yield serialize_example(*features) # + id="sDl1JG09fch4" colab_type="code" colab={} serialized_features_dataset = tf.data.Dataset.from_generator( generator, output_types=tf.string, output_shapes=()) # + id="_ZVqJdH5fch6" colab_type="code" colab={} serialized_features_dataset # + [markdown] colab_type="text" id="p6lw5VYpjZZC" # TFRecord ファイルに書き出します。 # + colab_type="code" id="vP1VgTO44UIE" colab={} filename = 'test.tfrecord' writer = tf.data.experimental.TFRecordWriter(filename) writer.write(serialized_features_dataset) # + [markdown] colab_type="text" id="6aV0GQhV8tmp" # ### TFRecord ファイルの読み込み # + [markdown] colab_type="text" id="o3J5D4gcSy8N" # `tf.data.TFRecordDataset` クラスを使って TFRecord ファイルを読み込むこともできます。 # # `tf.data` を使って TFRecord ファイルを取り扱う際の詳細については、[こちら](https://www.tensorflow.org/guide/datasets#consuming_tfrecord_data)を参照ください。 # # `TFRecordDataset` を使うことは、入力データを標準化し、パフォーマンスを最適化するのに有用です。 # + colab_type="code" id="6OjX6UZl-bHC" colab={} filenames = [filename] raw_dataset = tf.data.TFRecordDataset(filenames) raw_dataset # + [markdown] colab_type="text" id="6_EQ9i2E_-Fz" # この時点で、データセットにはシリアライズされた `tf.train.Example` メッセージが含まれています。データセットをイテレートすると、スカラーの文字列テンソルが返ってきます。 # # `.take` メソッドを使って最初の 10 レコードだけを表示します。 # # 注:`tf.data.Dataset` をイテレートできるのは、Eager Execution が有効になっている場合のみです。 # + colab_type="code" id="hxVXpLz_AJlm" colab={} for raw_record in raw_dataset.take(10): print(repr(raw_record)) # + [markdown] colab_type="text" id="W-6oNzM4luFQ" # これらのテンソルは下記の関数でパースできます。 # # 注:ここでは、`feature_description` が必要です。データセットはグラフ実行を使用するため、この記述を使ってシェイプと型を構築するのです。 # + colab_type="code" id="zQjbIR1nleiy" colab={} # 特徴の記述 feature_description = { 'feature0': tf.io.FixedLenFeature([], tf.int64, default_value=0), 'feature1': tf.io.FixedLenFeature([], tf.int64, default_value=0), 'feature2': tf.io.FixedLenFeature([], tf.string, default_value=''), 'feature3': tf.io.FixedLenFeature([], tf.float32, default_value=0.0), } def _parse_function(example_proto): # 上記の記述を使って入力の tf.Example を処理 return tf.io.parse_single_example(example_proto, feature_description) # + [markdown] colab_type="text" id="gWETjUqhEQZf" # あるいは、`tf.parse example` を使ってバッチ全体を一度にパースします。 # + [markdown] colab_type="text" id="AH73hav6Bnmg" # `tf.data.Dataset.map` メソッドを使って、データセットの各アイテムにこの関数を適用します。 # + colab_type="code" id="6Ob7D-zmBm1w" colab={} parsed_dataset = raw_dataset.map(_parse_function) parsed_dataset # + [markdown] colab_type="text" id="sNV-XclGnOvn" # Eager Execution を使ってデータセット中の観測記録を表示します。このデータセットには 10,000 件の観測記録がありますが、最初の 10 個だけ表示します。 # データは特徴量のディクショナリの形で表示されます。それぞれの項目は `tf.Tensor` であり、このテンソルの `numpy` 要素は特徴量を表します。 # + colab_type="code" id="x2LT2JCqhoD_" colab={} for parsed_record in parsed_dataset.take(10): print(repr(raw_record)) # + [markdown] colab_type="text" id="Cig9EodTlDmg" # ここでは、`tf.parse_example` が`tf.Example` のフィールドを通常のテンソルに展開しています。 # + [markdown] colab_type="text" id="jyg1g3gU7DNn" # ## tf.python_io を使った TFRecord ファイル # + [markdown] colab_type="text" id="3FXG3miA7Kf1" # `tf.python_io` モジュールには、TFRecord ファイルの読み書きのための純粋な Python 関数も含まれています。 # + [markdown] colab_type="text" id="CKn5uql2lAaN" # ### TFRecord ファイルの書き出し # + [markdown] colab_type="text" id="LNW_FA-GQWXs" # 次にこの 10,000 件の観測記録を `test.tfrecords` ファイルに出力します。観測記録はそれぞれ `tf.Example` メッセージに変換され、ファイルに出力されます。その後、`test.tfrecords` ファイルが作成されたことを確認することができます。 # + colab_type="code" id="MKPHzoGv7q44" colab={} # `tf.Example` 観測記録をファイルに出力 with tf.io.TFRecordWriter(filename) as writer: for i in range(n_observations): example = serialize_example(feature0[i], feature1[i], feature2[i], feature3[i]) writer.write(example) # + colab_type="code" id="EjdFHHJMpUUo" colab={} # !du -sh {filename} # + [markdown] colab_type="text" id="wtQ7k0YWQ1cz" # ### TFRecord ファイルの読み込み # # これらのシリアライズされたテンソルは、`tf.train.Example.ParseFromString` を使って簡単にパースできます。 # + colab_type="code" id="36ltP9B8OezA" colab={} filenames = [filename] raw_dataset = tf.data.TFRecordDataset(filenames) raw_dataset # + id="BpS-R4MLfcic" colab_type="code" colab={} for raw_record in raw_dataset.take(1): example = tf.train.Example() example.ParseFromString(raw_record.numpy()) print(example) # + [markdown] colab_type="text" id="S0tFDrwdoj3q" # ## ウォークスルー: 画像データの読み書き # + [markdown] colab_type="text" id="rjN2LFxFpcR9" # 以下は、TFRecord を使って画像データを読み書きする方法の例です。この例の目的は、データ(この場合は画像)を入力し、そのデータを TFRecord ファイルに書き込んで、再びそのファイルを読み込み、画像を表示するという手順を最初から最後まで示すことです。 # # これは、たとえば、おなじ入力データセットを使って複数のモデルを構築するといった場合に役立ちます。画像データをそのまま保存する代わりに、TFRecord 形式に前処理しておき、その後の処理やモデル構築に使用することができます。 # # まずは、雪の中の猫の[画像](https://commons.wikimedia.org/wiki/File:Felis_catus-cat_on_snow.jpg)と、ニューヨーク市にあるウイリアムズバーグ橋の [写真](https://upload.wikimedia.org/wikipedia/commons/f/fe/New_East_River_Bridge_from_Brooklyn_det.4a09796u.jpg)をダウンロードしましょう。 # + [markdown] colab_type="text" id="5Lk2qrKvN0yu" # ### 画像の取得 # + colab_type="code" id="3a0fmwg8lHdF" colab={} cat_in_snow = tf.keras.utils.get_file('320px-Felis_catus-cat_on_snow.jpg', 'https://storage.googleapis.com/download.tensorflow.org/example_images/320px-Felis_catus-cat_on_snow.jpg') williamsburg_bridge = tf.keras.utils.get_file('194px-New_East_River_Bridge_from_Brooklyn_det.4a09796u.jpg','https://storage.googleapis.com/download.tensorflow.org/example_images/194px-New_East_River_Bridge_from_Brooklyn_det.4a09796u.jpg') # + colab_type="code" id="7aJJh7vENeE4" colab={} display.display(display.Image(filename=cat_in_snow)) display.display(display.HTML('Image cc-by: <a "href=https://commons.wikimedia.org/wiki/File:Felis_catus-cat_on_snow.jpg">Von.grzanka</a>')) # + colab_type="code" id="KkW0uuhcXZqA" colab={} display.display(display.Image(filename=williamsburg_bridge)) display.display(display.HTML('<a "href=https://commons.wikimedia.org/wiki/File:New_East_River_Bridge_from_Brooklyn_det.4a09796u.jpg">From Wikimedia</a>')) # + [markdown] colab_type="text" id="VSOgJSwoN5TQ" # ### TFRecord ファイルの書き出し # + [markdown] colab_type="text" id="Azx83ryQEU6T" # 上記で行ったように、この特徴量を `tf.Example` と互換のデータ型にエンコードできます。この場合には、生の画像文字列を特徴として保存するだけではなく、縦、横のサイズにチャネル数、更に画像を保存する際に猫の画像と橋の画像を区別するための `label` 特徴量を付け加えます。猫の画像には `0` を、橋の画像には `1` を使うことにしましょう。 # + colab_type="code" id="kC4TS1ZEONHr" colab={} image_labels = { cat_in_snow : 0, williamsburg_bridge : 1, } # + colab_type="code" id="c5njMSYNEhNZ" colab={} # 猫の画像を使った例 image_string = open(cat_in_snow, 'rb').read() label = image_labels[cat_in_snow] # 関連する特徴量のディクショナリを作成 def image_example(image_string, label): image_shape = tf.image.decode_jpeg(image_string).shape feature = { 'height': _int64_feature(image_shape[0]), 'width': _int64_feature(image_shape[1]), 'depth': _int64_feature(image_shape[2]), 'label': _int64_feature(label), 'image_raw': _bytes_feature(image_string), } return tf.train.Example(features=tf.train.Features(feature=feature)) for line in str(image_example(image_string, label)).split('\n')[:15]: print(line) print('...') # + [markdown] colab_type="text" id="2G_o3O9MN0Qx" # ご覧のように、すべての特徴量が `tf.Example` メッセージに保存されました。上記のコードを関数化し、このサンプルメッセージを `images.tfrecords` ファイルに書き込みます。 # + colab_type="code" id="qcw06lQCOCZU" colab={} # 生の画像を images.tfrecords ファイルに書き出す # まず、2つの画像を tf.Example メッセージに変換し、 # 次に .tfrecords ファイルに書き出す record_file = 'images.tfrecords' with tf.io.TFRecordWriter(record_file) as writer: for filename, label in image_labels.items(): image_string = open(filename, 'rb').read() tf_example = image_example(image_string, label) writer.write(tf_example.SerializeToString()) # + colab_type="code" id="yJrTe6tHPCfs" colab={} # !du -sh {record_file} # + [markdown] colab_type="text" id="jJSsCkZLPH6K" # ### TFRecord ファイルの読み込み # # これで、`images.tfrecords` ファイルができました。このファイルの中のレコードをイテレートし、書き込んだものを読み出します。このユースケースでは、画像を復元するだけなので、必要なのは生画像の文字列だけです。上記のゲッター、すなわち、`example.features.feature['image_raw'].bytes_list.value[0]` を使って抽出することができます。猫と橋のどちらであるかを決めるため、ラベルも使用します。 # + colab_type="code" id="M6Cnfd3cTKHN" colab={} raw_image_dataset = tf.data.TFRecordDataset('images.tfrecords') # 特徴量を記述するディクショナリを作成 image_feature_description = { 'height': tf.io.FixedLenFeature([], tf.int64), 'width': tf.io.FixedLenFeature([], tf.int64), 'depth': tf.io.FixedLenFeature([], tf.int64), 'label': tf.io.FixedLenFeature([], tf.int64), 'image_raw': tf.io.FixedLenFeature([], tf.string), } def _parse_image_function(example_proto): # 入力の tf.Example のプロトコルバッファを上記のディクショナリを使って解釈 return tf.io.parse_single_example(example_proto, image_feature_description) parsed_image_dataset = raw_image_dataset.map(_parse_image_function) parsed_image_dataset # + [markdown] colab_type="text" id="0PEEFPk4NEg1" # TFRecord ファイルから画像を復元しましょう。 # + colab_type="code" id="yZf8jOyEIjSF" colab={} for image_features in parsed_image_dataset: image_raw = image_features['image_raw'].numpy() display.display(display.Image(data=image_raw))
24,569
/notebooks/sdc_auto_mpg.ipynb
af21355773a9194329c6e074209225fe95e21f3f
[]
no_license
wajeehulhassanvii/computervision
https://github.com/wajeehulhassanvii/computervision
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
818,725
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: 'Python 3.7.7 64-bit (''mytf2'': conda)' # language: python # name: python37764bitmytf2condad0e6e6c9b9bc4440a94687b08616bf38 # --- # # Import libraries from __future__ import absolute_import, division, print_function, unicode_literals import pathlib import matplotlib.pyplot as plt import pandas as pd import seaborn as sns import tensorflow as tf gpus= tf.config.experimental.list_physical_devices('GPU') tf.config.experimental.set_memory_growth(gpus[0], True) from tensorflow import keras from tensorflow.keras import layers # # Import dataset # + # dataset_path = keras.utils.get_file("auto-mpg.data", "https://archive.ics.uci.edu") dataset_path = "../datasets/auto_mpg/auto-mpg.data" # ../datasets/auto_mpg column_names = ["MPG", "Cylinders", "Displacement", "Horsepower", "Weight",\ "Acceleration", "Model Year", "Origin"] raw_dataset = pd.read_csv(dataset_path, names=column_names, na_values= "?", comment="\t", sep=" ", skipinitialspace=True) dataset = raw_dataset.copy() # - dataset.head(-1) # # Data manipulation dataset.describe() # ## fix missing values dataset.Horsepower.isnull() dataset.Horsepower.isnull().sum() # get indexes of the missing values of a column (Horsepower) dataset[dataset.Horsepower.isnull()] dataset[dataset.Horsepower.isnull()].index dataset[dataset.Horsepower.isnull()].index.to_list() hp_mi = dataset[dataset.Horsepower.isnull()].index.to_list() # ##### fill with mean # + # dataset.Horsepower.loc[hp_mi] = dataset.Horsepower.mean() # - dataset.Horsepower.loc[hp_mi] # dataset.plot(y='Horsepower') # plt.show() # dataset.plot(y='Horsepower', x='Model Year', kind='scatter') # plt.show() # dataset.plot(y='Horsepower', x='Weight', kind='scatter') # plt.show() dataset.plot(y='Horsepower', x='Acceleration', kind='scatter') plt.show() dataset.loc[hp_mi] # ### linear regression for missing value # ![image.png](attachment:6bf6ab71-8932-4c61-b58b-6894d89c4bf4.png) import numpy as np dataset.dropna(subset=['Horsepower'])['Horsepower'].shape[0] train_mv_y = np.array(dataset.dropna(subset=['Horsepower'])['Horsepower']).reshape(int(dataset.dropna(subset=['Horsepower'])['Horsepower'].shape[0]), 1) train_mv_x = np.array(dataset.dropna(subset=['Horsepower'])['Weight']).reshape(int(dataset.dropna(subset=['Horsepower'])['Horsepower'].shape[0]), 1) print(type(train_mv_x)) print(type(train_mv_y)) from sklearn import linear_model regr_mv = linear_model.LinearRegression() mv_model = regr_mv.fit(X=train_mv_x, y=train_mv_y) score_r_square = regr_mv.score(X=train_mv_x, y=train_mv_y) intercept_mv = regr_mv.intercept_ coef_mv = regr_mv.coef_ print(f"score_r_square: {score_r_square}") print(f"intercept_mv: {intercept_mv}") print(f"coef_mv: {coef_mv}") regr_mv.predict(np.array(dataset.Weight.loc[hp_mi]).reshape(len(hp_mi),1)) dataset.Horsepower.loc[hp_mi] = regr_mv.predict(np.array(dataset.Weight.loc[hp_mi]).reshape(len(hp_mi),1)).reshape(6,) dataset.Horsepower.describe() # ## we do one_hot_encoding to categorical data from sklearn.preprocessing import OneHotEncoder dataset.Origin.value_counts() # one_hot_encoder_origin = OneHotEncoder(handle_unknown='ignore') # # dataset.Origin = one_hot_encoder_origin.fit_transform(dataset.Origin) # dataset.Origin = one_hot_encoder_origin.fit_transform(dataset.Origin.values.reshape(-1,1)).toarray() # pd.get_dummies(dataset.Origin).iloc[:,0] pd.get_dummies(dataset.Origin).iloc[:,1] pd.get_dummies(dataset.Origin).iloc[:,2] origin_col_names = [] for i in list(pd.get_dummies(dataset.Origin).columns): print (f"origin_{i}") origin_col_names.append(f"origin_{i}") origin_col_names dataset[origin_col_names[0]] = pd.get_dummies(dataset.Origin).iloc[:,0] dataset[origin_col_names[1]] = pd.get_dummies(dataset.Origin).iloc[:,1] dataset[origin_col_names[2]] = pd.get_dummies(dataset.Origin).iloc[:,2] dataset.head() dataset = dataset.drop(columns=['Origin']) dataset # ## Splitting the data # ## CHECK DISTRIBUTIONS sns.histplot(data=dataset, x=dataset.Displacement) sns.histplot(data=dataset, x=dataset.MPG) sns.histplot(data=dataset, x=dataset.MPG) dataset.columns.to_list() for i, col in enumerate(dataset.columns): plt.figure(i) sns.distplot(dataset[col]) import math elements_each_row = 4 total_rows = math.ceil(dataset.shape[1] / elements_each_row) last_row_elements = dataset.shape[1] % elements_each_row dataset.hist # %matplotlib inline def show_distributions(df, fig_size_x, fig_size_y, kind='hist'): #total_columns = df.shape[1] # 4 columns in each row import math elements_each_row = 4 total_rows = math.ceil(df.shape[1] / elements_each_row) last_row_elements = df.shape[1] % elements_each_row fig, axes = plt.subplots(total_rows, elements_each_row) fig = plt.figure(figsize=(fig_size_x,fig_size_y)) fig.suptitle('1 row x 2 columns axes with no data') if kind == 'hist': for i, feature in enumerate(df.columns): axes = fig.add_subplot(total_rows, elements_each_row, i+1) sns.histplot(data=df, ax=axes, x=df[feature]) if kind == 'dist': for i, feature in enumerate(df.columns): axes = fig.add_subplot(total_rows, elements_each_row, i+1) sns.distplot(df[feature]) plt.show() # + # from visualization_utility_functions import show_distributions # - show_distributions(dataset, 20, 12, 'dist') dataset.hist(bins=30, figsize=(12,12), density=True) plt.show() sns.boxplot(y=dataset.Displacement) plt.ylim(top=int(dataset.Displacement.max() + (dataset.Displacement.max() * 0.15)),\ bottom=int(dataset.Displacement.min() - (dataset.Displacement.max() * 0.15))) # + # from visualization_utility_functions import plot_box # - sns.boxplot(y=dataset.Acceleration) plt.ylim(top=int(dataset.Acceleration.max() + (dataset.Acceleration.max() * 0.15)),\ bottom=int(dataset.Acceleration.min() - (dataset.Acceleration.max() * 0.15))) sns.scatterplot(y=dataset.Acceleration, x=dataset.index) # ## Standardizing the data # seperate one hot encoded data and normalize the rest from sklearn.preprocessing import minmax_scale col_names_x = ['Cylinders', 'Displacement', 'Horsepower', 'Weight','Acceleration', 'Model Year','origin_1', 'origin_2', 'origin_3'] y = dataset.drop(columns=col_names_x) X = dataset[col_names_x] X.columns X_origins = X[['origin_1', 'origin_2', 'origin_3']] X_origins X = X.drop(columns=['origin_1', 'origin_2', 'origin_3']) X # X = minmax_scale(X) def normalization(x): return (x - x.mean()) / x.mean() X = X.merge(X_origins, left_index=True, right_index=True) X X = normalization(X) y = normalization(y) # ## split into train and test from sklearn.model_selection import train_test_split X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.20, random_state=42) # # Build and compile the model def scratch_model(X_train): model = keras.Sequential([ layers.Dense(64, activation=tf.nn.relu, input_shape=[len(X_train.keys())]), layers.Dense(64, activation=tf.nn.relu), layers.Dense(1) ]) optimizer = tf.keras.optimizers.RMSprop(0.001) model.compile(loss='mean_squared_error', optimizer=optimizer, metrics=['mean_absolute_error', 'mean_squared_error']) return model model = scratch_model(X_train) model.summary() # # Train the model # ## create call back for printing dot while model is training class PrintDot(keras.callbacks.Callback): def on_epoch_end(self, epoch, logs): if epoch % 100 == 0: print('') print('.', end='') EPOCHS = 1000 history = model.fit(X_train, y_train, epochs=EPOCHS, validation_split=0.15, verbose=0, callbacks=[PrintDot()]) hist = pd.DataFrame(history.history) hist def plot_training_history(history): hist = pd.DataFrame(history.history) hist['epoch'] = history.epoch plt.figure() plt.xlabel('Epoch') plt.ylabel('Mean Abs Error [MPG]') plt.plot(hist['epoch'], hist['mean_absolute_error'], label='Train Error') plt.plot(hist['epoch'], hist['val_mean_absolute_error'], label = 'Val Error') plt.ylim([0,5]) plt.legend() plt.figure() plt.xlabel('Epoch') plt.ylabel('Mean Square Error [$MPG^2$]') plt.plot(hist['epoch'], hist['mean_squared_error'], label='Train Error') plt.plot(hist['epoch'], hist['val_mean_squared_error'], label = 'Val Error') plt.ylim([0,20]) plt.legend() plt.show() plot_training_history(history) test_predictions = model.predict(X_test).flatten() plt.scatter(y_test, test_predictions) plt.xlabel('True Values [MPG]') plt.ylabel('Predictions [MPG]') plt.axis('equal') plt.axis('square') plt.xlim([0,plt.xlim()[1]]) plt.ylim([0,plt.ylim()[1]]) _ = plt.plot([-100, 100], [-100, 100]) plt.show()
9,233
/analyse-donnees-massives/.ipynb_checkpoints/analyse-donnees-massives-tp6-checkpoint.ipynb
5c93d8b51b3be569729c2fdad93c2633115ed1f4
[]
no_license
fxjollois/cours-2017-2018
https://github.com/fxjollois/cours-2017-2018
3
4
null
null
null
null
Jupyter Notebook
false
false
.py
297,547
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # + [markdown] run_control={"frozen": false, "read_only": false} # # TP6 - Analyse de données sous `Python` # # #### Analyse de Données Massives - Master 1ère année # # Nous utilisons dans ce TP le module [`scikit-learn`](http://scikit-learn.org/), dédié au *Machine Learning*. Pour mieux la découvrir, nous allons réaliser une étude de cas, avec les données `iris`. # # Dans cette étude, nous allons chercher à savoir s'il existe différentes sous-espèces d'iris. Pour cela, nous allons procéder par étapes :: # # 1. Visualisation des données, via une **ACP** # 1. Classification non-supervisée interne à chaque espèce, via **DBSCAN** # 1. Analyse des résultats # # Dans un premier temps, il va nous falloir importer les données (`iris`) que nous allons utiliser (via la librairie `pydataset`). Nous allons aussi utiliser d'autres librairies (telles que `seaborn`, `numpy`, `matplotlib` et `pandas`). # # Nous importerons les éléments de `scikit-learn` (module `sklearn`) au fur et à mesure. # + import numpy import pandas import matplotlib.pyplot as plt import seaborn seaborn.set_style("white") # %matplotlib inline # - # Pour rappel, la table se présente comme ceci : iris = pandas.read_csv("Iris.txt", sep="\t") iris.head() # ## ACP # # Dans le sous-module `decomposition`, nous allons importer la fonction [`PCA()`](http://scikit-learn.org/stable/modules/generated/sklearn.decomposition.PCA.html). Le fonctionnement de celle-ci est similaire à toutes les autres dans `scikit-learn`. # # 1. On créé d'abord un objet (nommé ici `pca`) qui va contenir le résultat de l'ACP. Dans la fonction `PCA()`, on pourra indiquer les paramètres tels que le nombre de composants à retenir (`n_components`) ou la méthode de calcul (`svd_solver`). # 2. Ensuite, on ajuste (*fit* en anglais) sur des données avec la fonction `fit()` de l'objet précédemment créé. Dans cette fonction, nous devons donc passer les données à utiliser. # # Si l'on souhaite une ACP normée, il nous faut standardiser les données en amont, avec la fonction `scale()` du sous-module `preprocessing` (importée aussi ici). Bien évidemment, il ne faut passer que des variables quantitatives. # + from sklearn.decomposition import PCA from sklearn.preprocessing import scale pca = PCA() pca.fit(scale(iris[iris.columns[:4]])) # - # L'objet `pca` comprend maintenant un certain nombre d'objets et de fonctions. Le premier objet est le tableau des variances expliquées (`explained_variance_`) par chaque dimension, et le ratio (proportion) de variance expliquée par dimension (`explained_variance_ratio_`). print(pca.explained_variance_) print(pca.explained_variance_ratio_) # Bien évidemment, il est possible (et préférable) de faire un tableau récapitulatif, avec les valeurs propres, les proportions de variance expliquée simples et cumulées. Voici un petit code permettant de faire ceci. eig = pandas.DataFrame( { "Dimension" : ["Dim" + str(x + 1) for x in range(4)], "Valeur propre" : pca.explained_variance_, "% variance expliquée" : numpy.round(pca.explained_variance_ratio_ * 100), "% cum. var. expliquée" : numpy.round(numpy.cumsum(pca.explained_variance_ratio_) * 100) }, columns = ["Dimension", "Valeur propre", "% variance expliquée", "% cum. var. expliquée"] ) eig # L'idée est de représenter graphiquement ces proportions de variances expliquées (qu'on passe en pourcentage par convenance). g_eig = seaborn.barplot(x = "Dimension", y = "% variance expliquée", palette = ["lightseagreen"], data = eig) g_eig.set(ylabel = "Variance expliquée (%)") g_eig.figure.suptitle("Variance expliquée par dimension") plt.axhline(y = 25, linewidth = .5, color = "dimgray", linestyle = "--") # 25 = 100 / 4 (nb dimensions) plt.text(3.25, 26, "25%") # On remarque ici qu'avec seulement deux dimensions suffisent à expliquer 96 % de la variance des données. Nous allons maintenant calculer les coordonnées des iris sur les dimensions, avec la fonction `transform()` de l'objet `pca`. iris_pca = pca.transform(iris[iris.columns[:4]]) # Afin de manipuler plus facilement l'objet obtenu par la suite, nous allons créer un `DataFrame` `pandas` en ne prenant que les deux premières dimensions, ainsi que les espèces. # + # Transformation en DataFrame pandas iris_pca_df = pandas.DataFrame({ "Dim1" : iris_pca[:,0], "Dim2" : iris_pca[:,1], "Species" : iris.Species }) # Résultat (premières lignes) iris_pca_df.head() # - # Il est maintenant possible de représenter les données sur le premier plan factoriel, en ajoutant bien évidemment l'information sur les espèces. g_pca = seaborn.lmplot("Dim1", "Dim2", hue = "Species", data = iris_pca_df, fit_reg = False) g_pca.set(xlabel = "Dimension 1 (73%)", ylabel = "Dimension 2 (23 %)") g_pca.fig.suptitle("Premier plan factoriel") # Il est aussi possible de différencier l'affichage de ce premier plan par espèce, grâce à l'option `col` de `lmplot()` g_pca2 = seaborn.lmplot("Dim1", "Dim2", hue = "Species", col = "Species", col_wrap = 2, data = iris_pca_df, fit_reg = False) g_pca2.set(xlabel = "Dimension 1 (73%)", ylabel = "Dimension 2 (23 %)") # ## DBSCAN # # [`DBSCAN`](https://fr.wikipedia.org/wiki/DBSCAN) est un algorithme de classification non supervisée, basé sur la densité. Il est intéressant car il ne nécessite pas de connaître le nombre de classes, mais une estimation de la densité (globale) des données. En effet, les points proches (distance inférieure à $\varepsilon$) sont consiédérés dans la même classe. Si toutefois cette classe comporte au moins un cetain nombre de points au final. Si ce n'est pas le cas, les points sont considérés comme *outliers* et mis à part. # # Nous utilisons ici la fonction [`DBSCAN()`](http://scikit-learn.org/stable/modules/generated/sklearn.cluster.DBSCAN.html) du sous-module `cluster`. Celle-ci peut prendre en paramètre, entre autres, la valeur de $\varepsilon$ (`eps`, `.5` par défaut) et le nombre minimal d'objets dans une classe (`min_samples`, `5` par défaut). # # Puis nous ajustons les données standardisées (pour ne pas donner plus d'influences à une variable qu'à une autre). # + from sklearn.cluster import DBSCAN db = DBSCAN(eps = .6, min_samples = 3) db.fit(scale(iris[iris.columns[:4]])) # - # Les classes dont contenues dans l'objet `labels_` de `db`. On a pour chaque individu sa classe (de $0$ à $K-1$ pour $K$ classes obtenues). Les *outliers* sont étiquettés $-1$ . db.labels_ # On peut faire un tableau récapitulatif des effectifs par classes. eff = numpy.unique(db.labels_, return_counts = True) pandas.DataFrame({ "Classe" : eff[0], "Effectif" : eff[1] }) # Pour la représentation des données, on ajoute ces labels de classe aux projections des iris sur le premier plan factoriel. iris_pca_db = iris_pca_df.assign(Labels = db.labels_) # On peut ainsi représenter les données en fonction des espèces et des classes obtenues. seaborn.lmplot("Dim1", "Dim2", hue = "Labels", col = "Species", data = iris_pca_db, fit_reg = False) # On peut aussi *splitter* le graphique en ligne pour chaque classe. seaborn.lmplot("Dim1", "Dim2", hue = "Labels", col = "Species", row = "Labels", data = iris_pca_db, fit_reg = False) # ## Exercice # # Nous allons utiliser les données [`pendigits`](https://archive.ics.uci.edu/ml/datasets/Pen-Based+Recognition+of+Handwritten+Digits) de l'*UCI Machine Learning Repository*. Ces données représentent le tracé des chiffres de 0 à 9 par plusieurs personnes. Pour chaque tracé, nous n'avons au final que les coordonnées $(X,Y)$ de 8 points et le chiffre tracé. # # Voici ci dessous comment importer les données directement. pen_tes = pandas.read_csv("http://archive.ics.uci.edu/ml/machine-learning-databases/pendigits/pendigits.tes", header=None) pen_tra = pandas.read_csv("http://archive.ics.uci.edu/ml/machine-learning-databases/pendigits/pendigits.tra", header=None) pen = pen_tes.copy().append(pen_tra, ignore_index = True) print(pen.shape) pen.head() # Comme vous le pouvez le remarquer, les noms des variables ne sont pas renseignés. Celles-ci sont $(x_j, y_j)_{j = 1,\ldots,8}$ et le chiffre. On va donc déjà créer le vecteur correspondant. a = [c + n for c, n in zip(["x", "y"] * 8, [str(x) for x in range(1, 9) for i in range(2)])] a.append("chiffre") print(a) # On va ensuite renommer les colonnes avec ce vecteur. pen.columns = a pen.head() # Et pour la suite, nous allons créer une variable contenant les chiffres mais en tant que chaîne de caractère. pen = pen.assign(chiffre_str = [str(c) for c in pen.chiffre]) # Par la suite, nous aurons besoin d'accéder aux $x_j$ uniquement, ou aux $y_j$, voire aux deux. Nous créons donc des vecteurs avec les noms de variables. xN = ["x" + str(i + 1) for i in range(8)] print(xN) yN = ["y" + str(i + 1) for i in range(8)] print(yN) xyN = [a + b for a,b in zip(["x", "y"] * 8, [str(i + 1) for i in range(8) for j in range(2)])] print(xyN) # Ces données ont l'avantage d'être graphique. Nous allons donc représenter le premier tracé, qui est un $8$. x = pen.loc[0, xN] y = pen.loc[0, yN] chiffre = pen.loc[0, "chiffre"] plt.plot(x, y) plt.title("Chiffre : " + str(chiffre)) # Nous allons régulièrement utiliser ce code, donc nous allons le stocker dans une fonction nommée `dessin()`. Dans celle-ci, nous allons mettre en paramètre les $x_j$ et les $y_j$, le chiffre, ainsi qu'un graphique dans lequel nous allons mettre le dessin. Ceci nous sera utile pour faire plusieurs représentations de chiffres. # + def dessin(p, x, y, chiffre): p.plot(x, y) p.set_title("Chiffre : " + str(chiffre)) p.axis("off") p.set_xlim([-1, 101]) p.set_ylim([-1, 101]) fig, ax = plt.subplots() dessin(ax, x, y, chiffre) # - # Ensuite, nous créons une liste de `DataFrame`, un pour chaque chiffre. La fonction `query()` permet donc de sélectionner des lignes d'un `DataFrame` en fonction d'une condition (ici, `chiffre` égal 0, 1, ..., 9). Pour éviter les problèmes d'index plus tard, nous devons les réinitialiser pour chaque `DataFrame`, avec la fonction `reset_index()`, en mettant `drop` à vrai. Ceci permet d'oublier les numéros de ligne du `DataFrame` global et que ceux-ci recommencent de 0 pour chaque sous-ensemble. sub = [pen.query("chiffre == " + str(i)).reset_index(drop = True) for i in range(10)] # Nous voulons maintenant représenter chaque premier exemple de chaque chiffre. Pour cela, nous recherchons la première ligne (`index = 0`) pour chaque sous-ensemble précédemment créé. Et pour simplifier le travail ensuite, nous renvoyons pour chaque chiffre, trois éléments : les $x_j$, les $y_j$ et le chiffre. subxyc = [[s.loc[0, xN], s.loc[0, yN], s.loc[0, "chiffre"]] for s in sub] # Puis, nous créons une figure (en spécifiant la taille). Et pour chaque chiffre, nous ajoutons un graphique à la figure avec la fonction `add_subplot()`. Celle-ci prend trois paramètres : le nombre de lignes, le nombre de colonnes et le numéro de placement du prochain graphique. Grâce à l'utilisation de la fonction `dessin()` et de l'objet `subxyc`, la réalisation est simple. fig = plt.figure(figsize = (15, 5)) for i in range(10): ax = fig.add_subplot(2, 5, i + 1) dessin(ax, subxyc[i][0], subxyc[i][1], subxyc[i][2]) # Le but de ce TP va être de réfléchir à comment répondre à la question suivante : # # > Existe-t'il plusieurs façons d'écrire chaque chiffre ? # # Pour cela, nous allons dérouler les étapes suivantes : # # 1. Calculer la moyenne de chaque coordonnée $x_j$ et $y_j$, pour chaque chiffre # 1. Représenter le tracé des *chiffres moyens* (i.e. en prenant les coordonnées moyennes donc) # - Améliorer éventuellement la fonction `dessin()` pour ajouter, si demandé, les numéros des points # 1. Réaliser une ACP sur les données (en comparant avec ou sans standardisation) # 1. Représenter les chiffres sur le plan factoriel # - sur un seul graphique # - avec un graphique par chiffre, sur la même figure # 1. Réaliser une classification via DBSCAN pour chaque chiffre # - choisir un $\varepsilon$ et un nombre minimal de points # - créer une fonction prenant en paramètre les valeurs ci-dessus à tester et qui réalise les opérations suivantes : # - calcul de la partition # - affichage de la répartition des classes # - représentation des classes sur le plan factoriel (un graphique par classe éventuellement) # - représentation des tracés moyens pour chaque classe afin de mieux comprendre les différences entre les classes #
12,845
/projects/proj01/CarND-LaneLines-P1/P1.ipynb
105436e612fc3a811e9ca418067faad83927ebb1
[ "MIT" ]
permissive
raffaeleGrandi/SDCND
https://github.com/raffaeleGrandi/SDCND
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
1,765,122
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python [conda env:pytorch] # language: python # name: conda-env-pytorch-py # --- # + [markdown] tags=["pdf-title"] # # Generative Adversarial Networks (GANs) # # So far in CS231N, all the applications of neural networks that we have explored have been **discriminative models** that take an input and are trained to produce a labeled output. This has ranged from straightforward classification of image categories to sentence generation (which was still phrased as a classification problem, our labels were in vocabulary space and we’d learned a recurrence to capture multi-word labels). In this notebook, we will expand our repetoire, and build **generative models** using neural networks. Specifically, we will learn how to build models which generate novel images that resemble a set of training images. # 到目前为止,在CS231N中,我们所探索的所有神经网络应用都是**判别模型**,它接受输入并训练产生标记输出。这包括从图像类别的直接分类到句子生成(这仍然是一个分类问题,我们的标签在词汇空间中,我们已经学会了一种重现来捕获多词标签)。在本笔记本中,我们将扩大我们的重复,并建立**生成模型**使用神经网络。具体来说,我们将学习如何建立模型,生成类似于一组训练图像的新颖图像。 # # ### What is a GAN? # # In 2014, [Goodfellow et al.](https://arxiv.org/abs/1406.2661) presented a method for training generative models called Generative Adversarial Networks (GANs for short). In a GAN, we build two different neural networks. Our first network is a traditional classification network, called the **discriminator**. We will train the discriminator to take images, and classify them as being real (belonging to the training set) or fake (not present in the training set). Our other network, called the **generator**, will take random noise as input and transform it using a neural network to produce images. The goal of the generator is to fool the discriminator into thinking the images it produced are real. # 2014年,【古德费罗等人】(https://arxiv.org/abs/1406.2661)提出了一种生成模型的训练方法,简称生成对抗网络。在GAN中,我们建立了两个不同的神经网络。我们的第一个网络是传统的分类网络,称为**鉴别器**。我们将训练鉴别器拍摄图像,并将它们分类为真实(属于训练集)或虚假(不存在于训练集中)。我们的另一个网络,称为**生成器**,将随机噪声作为输入,并使用神经网络对其进行变换以生成图像。生成器的目标是欺骗鉴别器,使其认为生成的图像是真实的。 # # We can think of this back and forth process of the generator ($G$) trying to fool the discriminator ($D$), and the discriminator trying to correctly classify real vs. fake as a minimax game: # 我们可以把生成器(G)试图愚弄鉴别器(D)和鉴别器(D)的这个来回过程想象成一个极小极大的游戏: # # $$\underset{G}{\text{minimize}}\; \underset{D}{\text{maximize}}\; \mathbb{E}_{x \sim p_\text{data}}\left[\log D(x)\right] + \mathbb{E}_{z \sim p(z)}\left[\log \left(1-D(G(z))\right)\right]$$ # where $z \sim p(z)$ are the random noise samples, $G(z)$ are the generated images using the neural network generator $G$, and $D$ is the output of the discriminator, specifying the probability of an input being real. In [Goodfellow et al.](https://arxiv.org/abs/1406.2661), they analyze this minimax game and show how it relates to minimizing the Jensen-Shannon divergence between the training data distribution and the generated samples from $G$. # 其中z∼p(z)是随机噪声样本,G(z)是使用神经网络生成器G生成的图像,D是鉴别器的输出,指定输入为实的概率。在Goodfellow等人中,他们分析了这个minimax博弈,并展示了它与最小化训练数据分布和从G。 # # To optimize this minimax game, we will aternate between taking gradient *descent* steps on the objective for $G$, and gradient *ascent* steps on the objective for $D$: # 1. update the **generator** ($G$) to minimize the probability of the __discriminator making the correct choice__. # 2. update the **discriminator** ($D$) to maximize the probability of the __discriminator making the correct choice__. # 为了优化这个极小极大博弈,我们将在$G$的目标上采取梯度*下降*步数,在$D$的目标上采取梯度*上升*步数: # 1.更新**生成器**($G$),以最大限度地降低鉴别器做出正确选择的概率。让鉴别器猜错 # 2.更新**鉴别器**($D$),以最大化uu鉴别器做出正确选择的概率。让鉴别器猜对 # # While these updates are useful for analysis, they do not perform well in practice. Instead, we will use a different objective when we update the generator: maximize the probability of the **discriminator making the incorrect choice**. This small change helps to allevaiate problems with the generator gradient vanishing when the discriminator is confident. This is the standard update used in most GAN papers, and was used in the original paper from [Goodfellow et al.](https://arxiv.org/abs/1406.2661). # 虽然这些更新对分析很有用,但在实践中效果并不理想。相反,当我们更新生成器时,我们将使用一个不同的目标:最大化**鉴别器做出错误选择**的概率。当鉴别器有信心时,这个微小的变化有助于解决生成器梯度消失的问题。这是大多数GAN论文中使用的标准更新,并且在[Goodfellow等人]的原始论文中使用(https://arxiv.org/abs/1406.2661). # # In this assignment, we will alternate the following updates: # 1. Update the generator ($G$) to maximize the probability of the discriminator making the incorrect choice on generated data: # $$\underset{G}{\text{maximize}}\; \mathbb{E}_{z \sim p(z)}\left[\log D(G(z))\right]$$ # 2. Update the discriminator ($D$), to maximize the probability of the discriminator making the correct choice on real and generated data: # $$\underset{D}{\text{maximize}}\; \mathbb{E}_{x \sim p_\text{data}}\left[\log D(x)\right] + \mathbb{E}_{z \sim p(z)}\left[\log \left(1-D(G(z))\right)\right]$$ # # ### What else is there? # Since 2014, GANs have exploded into a huge research area, with massive [workshops](https://sites.google.com/site/nips2016adversarial/), and [hundreds of new papers](https://github.com/hindupuravinash/the-gan-zoo). Compared to other approaches for generative models, they often produce the highest quality samples but are some of the most difficult and finicky models to train (see [this github repo](https://github.com/soumith/ganhacks) that contains a set of 17 hacks that are useful for getting models working). Improving the stabiilty and robustness of GAN training is an open research question, with new papers coming out every day! For a more recent tutorial on GANs, see [here](https://arxiv.org/abs/1701.00160). There is also some even more recent exciting work that changes the objective function to Wasserstein distance and yields much more stable results across model architectures: [WGAN](https://arxiv.org/abs/1701.07875), [WGAN-GP](https://arxiv.org/abs/1704.00028). # 自2014年以来,GANs已经进入了一个巨大的研究领域,拥有大量的[研讨会](https://sites.google.com/site/nips2016adversarial/),以及[数百篇新论文](https://github.com/hindupuravinash/the-gan-zoo). 与生成模型的其他方法相比,它们通常生成最高质量的样本,但却是最难训练和最挑剔的模型之一(参见[this github repo](https://github.com/soumith/ganhacks)它包含了一组17种对使模型工作有用的技巧)。提高训练的稳定性和鲁棒性是一个开放的研究问题,每天都有新的论文发表!有关GANs的最新教程,请参见[此处](https://arxiv.org/abs/1701.00160). 最近还有一些更令人兴奋的工作,将目标函数改为Wasserstein距离,并在模型架构中产生更稳定的结果:[WGAN](https://arxiv.org/abs/1701.07875),[WGAN-GP](https://arxiv.org/abs/1704.00028). # # GANs are not the only way to train a generative model! For other approaches to generative modeling check out the [deep generative model chapter](http://www.deeplearningbook.org/contents/generative_models.html) of the Deep Learning [book](http://www.deeplearningbook.org). Another popular way of training neural networks as generative models is Variational Autoencoders (co-discovered [here](https://arxiv.org/abs/1312.6114) and [here](https://arxiv.org/abs/1401.4082)). Variatonal autoencoders combine neural networks with variationl inference to train deep generative models. These models tend to be far more stable and easier to train but currently don't produce samples that are as pretty as GANs. # GAN不是训练生成型号的唯一途径! 对于生成建模的其他方法,请查看[深度生成模型章节](http://www.deeplearningbook.org/contents/generative_models.html)的深度学习[书](http://www.deeplearningbook.org) 。 作为生成模型的培训神经网络的另一种流行方式是变形式自动化器(共同发现[这里](https://arxiv.org/abs/1312.6114)和[这里](https://arxiv.org/abs/1401.4082) )。 VariAtonal AutoEncoders将神经网络与变形推断相结合,以培训深生成模型。 这些模型往往更加稳定,更容易训练,但目前不会产生像GAN一样漂亮的样本。 # # Here's an example of what your outputs from the 3 different models you're going to train should look like... note that GANs are sometimes finicky, so your outputs might not look exactly like this... this is just meant to be a *rough* guideline of the kind of quality you can expect: # 下面是一个例子,你将要训练的3个不同模型的输出应该是什么样的。。。请注意,GANs有时很挑剔,因此您的输出可能与此不完全相同。。。这只是一个粗略的指导方针,你可以期望: # ![caption](gan_outputs_pytorch.png) # + [markdown] tags=["pdf-ignore"] # ## Setup # + tags=["pdf-ignore"] import torch import torch.nn as nn from torch.nn import init import torchvision import torchvision.transforms as T import torch.optim as optim from torch.utils.data import DataLoader from torch.utils.data import sampler import torchvision.datasets as dset import numpy as np import matplotlib.pyplot as plt import matplotlib.gridspec as gridspec # %matplotlib inline plt.rcParams['figure.figsize'] = (10.0, 8.0) # set default size of plots plt.rcParams['image.interpolation'] = 'nearest' plt.rcParams['image.cmap'] = 'gray' # for auto-reloading external modules # see http://stackoverflow.com/questions/1907993/autoreload-of-modules-in-ipython # %load_ext autoreload # %autoreload 2 def show_images(images): images = np.reshape(images, [images.shape[0], -1]) # images reshape to (batch_size, D) sqrtn = int(np.ceil(np.sqrt(images.shape[0]))) sqrtimg = int(np.ceil(np.sqrt(images.shape[1]))) fig = plt.figure(figsize=(sqrtn, sqrtn)) gs = gridspec.GridSpec(sqrtn, sqrtn) gs.update(wspace=0.05, hspace=0.05) for i, img in enumerate(images): ax = plt.subplot(gs[i]) plt.axis('off') ax.set_xticklabels([]) ax.set_yticklabels([]) ax.set_aspect('equal') plt.imshow(img.reshape([sqrtimg,sqrtimg])) return # - # Colab users only # %cd drive/My\ Drive/$FOLDERNAME/ # %cp -r gan-checks-tf.npz /content/ # %cd /content/ # + from cs231n.gan_pytorch import preprocess_img, deprocess_img, rel_error, count_params, ChunkSampler answers = dict(np.load('gan-checks-tf.npz')) # + [markdown] tags=["pdf-ignore"] # ## Dataset # GANs are notoriously finicky with hyperparameters, and also require many training epochs. In order to make this assignment approachable without a GPU, we will be working on the MNIST dataset, which is 60,000 training and 10,000 test images. Each picture contains a centered image of white digit on black background (0 through 9). This was one of the first datasets used to train convolutional neural networks and it is fairly easy -- a standard CNN model can easily exceed 99% accuracy. # 众所周知,GANs对超参数非常挑剔,而且需要很多训练时期。为了使这个任务在没有GPU的情况下变得容易,我们将在MNIST数据集上工作,它是60000个训练和10000个测试图像。每张图片包含一个黑色背景上的白色数字居中图像(0到9)。这是第一批用于训练卷积神经网络的数据集之一,而且相当简单——一个标准的CNN模型很容易超过99%的准确率。 # # To simplify our code here, we will use the PyTorch MNIST wrapper, which downloads and loads the MNIST dataset. See the [documentation](https://github.com/pytorch/vision/blob/master/torchvision/datasets/mnist.py) for more information about the interface. The default parameters will take 5,000 of the training examples and place them into a validation dataset. The data will be saved into a folder called `MNIST_data`. # + tags=["pdf-ignore"] NUM_TRAIN = 50000 NUM_VAL = 5000 NOISE_DIM = 96 batch_size = 128 mnist_train = dset.MNIST('./cs231n/datasets/MNIST_data', train=True, download=True, transform=T.ToTensor()) loader_train = DataLoader(mnist_train, batch_size=batch_size, sampler=ChunkSampler(NUM_TRAIN, 0)) mnist_val = dset.MNIST('./cs231n/datasets/MNIST_data', train=True, download=True, transform=T.ToTensor()) loader_val = DataLoader(mnist_val, batch_size=batch_size, sampler=ChunkSampler(NUM_VAL, NUM_TRAIN)) imgs = loader_train.__iter__().next()[0].view(batch_size, 784).numpy().squeeze() show_images(imgs) # - # ## Random Noise # Generate uniform noise from -1 to 1 with shape `[batch_size, dim]`. # # Implement `sample_noise` in `cs231n/gan_pytorch.py`. # # Hint: use `torch.rand`. # # Make sure noise is the correct shape and type: # + id="sample_noise_test" from cs231n.gan_pytorch import sample_noise def test_sample_noise(): batch_size = 3 dim = 4 torch.manual_seed(231) z = sample_noise(batch_size, dim) np_z = z.cpu().numpy() assert np_z.shape == (batch_size, dim) assert torch.is_tensor(z) assert np.all(np_z >= -1.0) and np.all(np_z <= 1.0) assert np.any(np_z < 0.0) and np.any(np_z > 0.0) print('All tests passed!') test_sample_noise() # + [markdown] tags=["pdf-ignore"] # ## Flatten # # Recall our Flatten operation from previous notebooks... this time we also provide an Unflatten, which you might want to use when implementing the convolutional generator. We also provide a weight initializer (and call it for you) that uses Xavier initialization instead of PyTorch's uniform default. # 回想一下我们以前的笔记本中的展平操作。。。这一次我们还提供了一个Unflatten,在实现卷积生成器时可能需要使用它。我们还提供了一个权重初始值设定项(并为您调用它),它使用Xavier初始化,而不是PyTorch的统一默认值。 # + tags=["pdf-ignore"] from cs231n.gan_pytorch import Flatten, Unflatten, initialize_weights # + [markdown] tags=["pdf-ignore"] # ## CPU / GPU # By default all code will run on CPU. GPUs are not needed for this assignment, but will help you to train your models faster. If you do want to run the code on a GPU, then change the `dtype` variable in the following cell. # **If you are a Colab user, it is recommeded to change colab runtime to GPU.** # + tags=["pdf-ignore"] dtype = torch.FloatTensor #dtype = torch.cuda.FloatTensor # - # # Discriminator # Our first step is to build a discriminator. Fill in the architecture as part of the `nn.Sequential` constructor in the function below. All fully connected layers should include bias terms. The architecture is: # * Fully connected layer with input size 784 and output size 256 # * LeakyReLU with alpha 0.01 # * Fully connected layer with input_size 256 and output size 256 # * LeakyReLU with alpha 0.01 # * Fully connected layer with input size 256 and output size 1 # # 我们的第一步是建立一个鉴别器。在下面的函数中,作为“nn.Sequential”构造函数的一部分填写体系结构。所有完全连接的层应包括偏置项。体系结构是: # *全连接层,输入尺寸784,输出尺寸256 # *LeakyReLU,α0.01 # *完全连接层,输入大小为256,输出大小为256 # *LeakyReLU,α0.01 # *输入大小为256,输出大小为1的完全连接层 # # Recall that the Leaky ReLU nonlinearity computes $f(x) = \max(\alpha x, x)$ for some fixed constant $\alpha$; for the LeakyReLU nonlinearities in the architecture above we set $\alpha=0.01$. # # The output of the discriminator should have shape `[batch_size, 1]`, and contain real numbers corresponding to the scores that each of the `batch_size` inputs is a real image. # # Implement `discriminator` in `cs231n/gan_pytorch.py` # Test to make sure the number of parameters in the discriminator is correct: # + from cs231n.gan_pytorch import discriminator def test_discriminator(true_count=267009): model = discriminator() cur_count = count_params(model) if cur_count != true_count: print('Incorrect number of parameters in discriminator. Check your achitecture.') else: print('Correct number of parameters in discriminator.') test_discriminator() # - # # Generator # Now to build the generator network: # * Fully connected layer from noise_dim to 1024 # * `ReLU` # * Fully connected layer with size 1024 # * `ReLU` # * Fully connected layer with size 784 # * `TanH` (to clip the image to be in the range of [-1,1]) # # Implement `generator` in `cs231n/gan_pytorch.py` # Test to make sure the number of parameters in the generator is correct: # + from cs231n.gan_pytorch import generator def test_generator(true_count=1858320): model = generator(4) cur_count = count_params(model) if cur_count != true_count: print('Incorrect number of parameters in generator. Check your achitecture.') else: print('Correct number of parameters in generator.') test_generator() # - # # GAN Loss # # Compute the generator and discriminator loss. The generator loss is: # $$\ell_G = -\mathbb{E}_{z \sim p(z)}\left[\log D(G(z))\right]$$ # and the discriminator loss is: # $$ \ell_D = -\mathbb{E}_{x \sim p_\text{data}}\left[\log D(x)\right] - \mathbb{E}_{z \sim p(z)}\left[\log \left(1-D(G(z))\right)\right]$$ # Note that these are negated from the equations presented earlier as we will be *minimizing* these losses. # # **HINTS**: You should use the `bce_loss` function defined below to compute the binary cross entropy loss which is needed to compute the log probability of the true label given the logits output from the discriminator. Given a score $s\in\mathbb{R}$ and a label $y\in\{0, 1\}$, the binary cross entropy loss is # # $$ bce(s, y) = -y * \log(s) - (1 - y) * \log(1 - s) $$ # # A naive implementation of this formula can be numerically unstable, so we have provided a numerically stable implementation for you below. # # You will also need to compute labels corresponding to real or fake and use the logit arguments to determine their size. Make sure you cast these labels to the correct data type using the global `dtype` variable, for example: # # # `true_labels = torch.ones(size).type(dtype)` # # Instead of computing the expectation of $\log D(G(z))$, $\log D(x)$ and $\log \left(1-D(G(z))\right)$, we will be averaging over elements of the minibatch, so make sure to combine the loss by averaging instead of summing. # # Implement `bce_loss`, `discriminator_loss`, `generator_loss` in `cs231n/gan_pytorch.py` # Test your generator and discriminator loss. You should see errors < 1e-7. # + from cs231n.gan_pytorch import bce_loss, discriminator_loss, generator_loss def test_discriminator_loss(logits_real, logits_fake, d_loss_true): d_loss = discriminator_loss(torch.Tensor(logits_real).type(dtype), torch.Tensor(logits_fake).type(dtype)).cpu().numpy() print("Maximum error in d_loss: %g"%rel_error(d_loss_true, d_loss)) test_discriminator_loss(answers['logits_real'], answers['logits_fake'], answers['d_loss_true']) # + def test_generator_loss(logits_fake, g_loss_true): g_loss = generator_loss(torch.Tensor(logits_fake).type(dtype)).cpu().numpy() print("Maximum error in g_loss: %g"%rel_error(g_loss_true, g_loss)) test_generator_loss(answers['logits_fake'], answers['g_loss_true']) # - # # Optimizing our loss # Make a function that returns an `optim.Adam` optimizer for the given model with a 1e-3 learning rate, beta1=0.5, beta2=0.999. You'll use this to construct optimizers for the generators and discriminators for the rest of the notebook. # # Implement `get_optimizer` in `cs231n/gan_pytorch.py` # # Training a GAN! # # We provide you the main training loop... you won't need to change `run_a_gan` in `cs231n/gan_pytorch.py`, but we encourage you to read through and understand it. # + tags=["pdf-ignore"] from cs231n.gan_pytorch import get_optimizer, run_a_gan # + # Make the discriminator D = discriminator().type(dtype) # Make the generator G = generator().type(dtype) # Use the function you wrote earlier to get optimizers for the Discriminator and the Generator D_solver = get_optimizer(D) G_solver = get_optimizer(G) # Run it! images = run_a_gan(D, G, D_solver, G_solver, discriminator_loss, generator_loss, loader_train) # - # Run the cell below to show the generated images. numIter = 0 for img in images: print("Iter: {}".format(numIter)) show_images(img) plt.show() numIter += 250 print() # **Please tag the cell below on Gradescope while submitting.** print("Vanilla GAN Fianl image:") show_images(images[-1]) plt.show() # + [markdown] tags=["pdf-ignore"] # Well that wasn't so hard, was it? In the iterations in the low 100s you should see black backgrounds, fuzzy shapes as you approach iteration 1000, and decent shapes, about half of which will be sharp and clearly recognizable as we pass 3000. # - # # Least Squares GAN # We'll now look at [Least Squares GAN](https://arxiv.org/abs/1611.04076), a newer, more stable alernative to the original GAN loss function. For this part, all we have to do is change the loss function and retrain the model. We'll implement equation (9) in the paper, with the generator loss: # $$\ell_G = \frac{1}{2}\mathbb{E}_{z \sim p(z)}\left[\left(D(G(z))-1\right)^2\right]$$ # and the discriminator loss: # $$ \ell_D = \frac{1}{2}\mathbb{E}_{x \sim p_\text{data}}\left[\left(D(x)-1\right)^2\right] + \frac{1}{2}\mathbb{E}_{z \sim p(z)}\left[ \left(D(G(z))\right)^2\right]$$ # # # **HINTS**: Instead of computing the expectation, we will be averaging over elements of the minibatch, so make sure to combine the loss by averaging instead of summing. When plugging in for $D(x)$ and $D(G(z))$ use the direct output from the discriminator (`scores_real` and `scores_fake`). # 我们将对minibatch的元素进行平均,而不是计算期望值,因此确保通过平均而不是求和来合并损失。当插入D(x)和D(G(z))时,使用鉴别器的直接输出(scores\u real和scores\u fake)。 # # Implement `ls_discriminator_loss`, `ls_generator_loss` in `cs231n/gan_pytorch.py` # Before running a GAN with our new loss function, let's check it: # + from cs231n.gan_pytorch import ls_discriminator_loss, ls_generator_loss def test_lsgan_loss(score_real, score_fake, d_loss_true, g_loss_true): score_real = torch.Tensor(score_real).type(dtype) score_fake = torch.Tensor(score_fake).type(dtype) d_loss = ls_discriminator_loss(score_real, score_fake).cpu().numpy() g_loss = ls_generator_loss(score_fake).cpu().numpy() print("Maximum error in d_loss: %g"%rel_error(d_loss_true, d_loss)) print("Maximum error in g_loss: %g"%rel_error(g_loss_true, g_loss)) test_lsgan_loss(answers['logits_real'], answers['logits_fake'], answers['d_loss_lsgan_true'], answers['g_loss_lsgan_true']) # - # Run the following cell to train your model! # + D_LS = discriminator().type(dtype) G_LS = generator().type(dtype) D_LS_solver = get_optimizer(D_LS) G_LS_solver = get_optimizer(G_LS) images = run_a_gan(D_LS, G_LS, D_LS_solver, G_LS_solver, ls_discriminator_loss, ls_generator_loss, loader_train) # - # Run the cell below to show generated images. numIter = 0 for img in images: print("Iter: {}".format(numIter)) show_images(img) plt.show() numIter += 250 print() # **Please tag the cell below on Gradescope while submitting.** print("LSGAN Fianl image:") show_images(images[-1]) plt.show() # # Deeply Convolutional GANs # In the first part of the notebook, we implemented an almost direct copy of the original GAN network from Ian Goodfellow. However, this network architecture allows no real spatial reasoning. It is unable to reason about things like "sharp edges" in general because it lacks any convolutional layers. Thus, in this section, we will implement some of the ideas from [DCGAN](https://arxiv.org/abs/1511.06434), where we use convolutional networks # 在笔记本的第一部分,我们从Ian Goodflow实施了原始GAN网络的几乎直接副本。 但是,该网络架构允许没有实际的空间推理。 它无法理解“尖锐的边缘”,因为它缺乏任何卷积层。 因此,在本节中,我们将从[DCGAN](https://arxiv.org/abs/1511.06434)中实现一些想法,在那里我们使用卷积网络 # # #### Discriminator # We will use a discriminator inspired by the TensorFlow MNIST classification tutorial, which is able to get above 99% accuracy on the MNIST dataset fairly quickly. # * Reshape into image tensor (Use Unflatten!) # * Conv2D: 32 Filters, 5x5, Stride 1 # * Leaky ReLU(alpha=0.01) # * Max Pool 2x2, Stride 2 # * Conv2D: 64 Filters, 5x5, Stride 1 # * Leaky ReLU(alpha=0.01) # * Max Pool 2x2, Stride 2 # * Flatten # * Fully Connected with output size 4 x 4 x 64 # * Leaky ReLU(alpha=0.01) # * Fully Connected with output size 1 # # Implement `build_dc_classifier` in `cs231n/gan_pytorch.py` # + from cs231n.gan_pytorch import build_dc_classifier data = next(enumerate(loader_train))[-1][0].type(dtype) b = build_dc_classifier(batch_size).type(dtype) out = b(data) print(out.size()) # - # Check the number of parameters in your classifier as a sanity check: # + def test_dc_classifer(true_count=1102721): model = build_dc_classifier(batch_size) cur_count = count_params(model) if cur_count != true_count: print('Incorrect number of parameters in generator. Check your achitecture.') else: print('Correct number of parameters in generator.') test_dc_classifer() # - # #### Generator # For the generator, we will copy the architecture exactly from the [InfoGAN paper](https://arxiv.org/pdf/1606.03657.pdf). See Appendix C.1 MNIST. See the documentation for [tf.nn.conv2d_transpose](https://www.tensorflow.org/api_docs/python/tf/nn/conv2d_transpose). We are always "training" in GAN mode. # * Fully connected with output size 1024 # * `ReLU` # * BatchNorm # * Fully connected with output size 7 x 7 x 128 # * ReLU # * BatchNorm # * Reshape into Image Tensor of shape 7, 7, 128 # * Conv2D^T (Transpose): 64 filters of 4x4, stride 2, 'same' padding (use `padding=1`) # * `ReLU` # * BatchNorm # * Conv2D^T (Transpose): 1 filter of 4x4, stride 2, 'same' padding (use `padding=1`) # * `TanH` # * Should have a 28x28x1 image, reshape back into 784 vector # # Implement `build_dc_generator` in `cs231n/gan_pytorch.py` # + from cs231n.gan_pytorch import build_dc_generator test_g_gan = build_dc_generator().type(dtype) test_g_gan.apply(initialize_weights) fake_seed = torch.randn(batch_size, NOISE_DIM).type(dtype) fake_images = test_g_gan.forward(fake_seed) fake_images.size() # - # Check the number of parameters in your generator as a sanity check: # + def test_dc_generator(true_count=6580801): model = build_dc_generator(4) cur_count = count_params(model) if cur_count != true_count: print('Incorrect number of parameters in generator. Check your achitecture.') else: print('Correct number of parameters in generator.') test_dc_generator() # + D_DC = build_dc_classifier(batch_size).type(dtype) D_DC.apply(initialize_weights) G_DC = build_dc_generator().type(dtype) G_DC.apply(initialize_weights) D_DC_solver = get_optimizer(D_DC) G_DC_solver = get_optimizer(G_DC) images = run_a_gan(D_DC, G_DC, D_DC_solver, G_DC_solver, discriminator_loss, generator_loss, loader_train, num_epochs=5) # - # Run the cell below to show generated images. numIter = 0 for img in images: print("Iter: {}".format(numIter)) show_images(img) plt.show() numIter += 250 print() # **Please tag the cell below on Gradescope while submitting.** print("DCGAN Fianl image:") show_images(images[-1]) plt.show() # + [markdown] tags=["pdf-inline"] # ## INLINE QUESTION 1 # # We will look at an example to see why alternating minimization of the same objective (like in a GAN) can be tricky business. # # Consider $f(x,y)=xy$. What does $\min_x\max_y f(x,y)$ evaluate to? (Hint: minmax tries to minimize the maximum value achievable.) # # Now try to evaluate this function numerically for 6 steps, starting at the point $(1,1)$, # by using alternating gradient (first updating y, then updating x using that updated y) with step size $1$. **Here step size is the learning_rate, and steps will be learning_rate * gradient.** # You'll find that writing out the update step in terms of $x_t,y_t,x_{t+1},y_{t+1}$ will be useful. # # Breifly explain what $\min_x\max_y f(x,y)$ evaluates to and record the six pairs of explicit values for $(x_t,y_t)$ in the table below. # # ### Your answer: # # # $y_0$ | $y_1$ | $y_2$ | $y_3$ | $y_4$ | $y_5$ | $y_6$ # ----- | ----- | ----- | ----- | ----- | ----- | ----- # 1 | | | | | | # $x_0$ | $x_1$ | $x_2$ | $x_3$ | $x_4$ | $x_5$ | $x_6$ # 1 | | | | | | # # # # # + [markdown] tags=["pdf-inline"] # ## INLINE QUESTION 2 # Using this method, will we ever reach the optimal value? Why or why not? # # ### Your answer: # # + [markdown] tags=["pdf-inline"] # ## INLINE QUESTION 3 # If the generator loss decreases during training while the discriminator loss stays at a constant high value from the start, is this a good sign? Why or why not? A qualitative answer is sufficient. # # ### Your answer: # # + tags=["pdf-inline"]
27,672
/data-prework/1.-Python/6.-Rock–Paper–Scissors/rock-paper-scissors.ipynb
91c9a2a527a5f9835f27ea0129ad86f1629113ef
[]
no_license
Alvaru89/data-prework
https://github.com/Alvaru89/data-prework
0
0
null
2020-09-25T12:39:00
2020-09-10T23:59:24
null
Jupyter Notebook
false
false
.py
15,715
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # <img src="https://bit.ly/2VnXWr2" width="100" align="left"> # # Rock, Paper & Scissors # # Let's play the famous game against our computer. You can check the rules [here](https://en.wikipedia.org/wiki/Rock%E2%80%93paper%E2%80%93scissors). # # ## Task # Create a program that imitates the playability of the well known game of rock, paper, scissors. Follow the guidelines provided. # # ## Tools # 1. Loop: **for/while** # 2. Functions: **input(), print()...** # 3. Conditional statements: **if, elif, else** # 4. Definition of functions. Modular programming # 5. Import modules # # **To solve this challenge, the use of functions is recommended.** # # #### 1. Import the choice function of the random module. import random # #### 2. Create a list that includes the 3 possible gesture options of the game: 'rock', 'paper' or 'scissors'. Store the list in a variable called `gestures`. gestures=('rock', 'paper','scissors') # #### 3. Create a variable called `n_rounds` to store the maximum number of rounds to play in a game. # Remember that the number of rounds must be odd: 1, 3, 5, ... n_rounds=int(input()) while n_rounds%2==0: print("Please introduce an odd number") n_rounds=int(input()) # #### 4. Create a variable called `rounds_to_win` to store the number of rounds that a player must win to win the game. # **Hint**: the value stored in `rounds_to_win` depends on the value of `n_rounds`. rounds_to_win=round(n_rounds/2)+1 print(rounds_to_win) # #### 5. Create two variables to store the number of rounds that the computer and the player have won. Call these variables `cpu_score` and `player_score`. cpu_score=0 player_score=0 # #### 6. Define a function that randomly returns one of the 3 gesture options. # You will use this function to simulate the gesture choice of the computer. def computer_func(): i=random.randint(0,2) return gestures[i] # #### 7. Define a function that asks the player which is the gesture he or she wants to show: 'rock', 'paper' or 'scissors'. # The player should only be allowed to choose one of the 3 gesture options. If the player's choice is not rock, paper or scissors, keep asking until it is. def player(): print('Which gesture do you want to show? Choose rock, paper or scissors') choice=input() while choice!='rock' and choice!='paper' and choice!='scissors': print('Please try again') choice=input() return choice # #### 8. Define a function that checks who won a round. # The function should return 0 if there is a tie, 1 if the computer wins and 2 if the player wins. def checker(result): if result=='tie': return 0 if result=='computer': return 1 if result=='player': return 2 # #### 9. Define a function that prints the choice of the computer, the choice of the player and a message that announces who won the current round. # You should also use this function to update the variables that count the number of rounds that the computer and the player have won. The score of the winner increases by one point. If there is a tie, the score does not increase. def printer (player_choice,computer_choice,result,player_score,cpu_score): print('The player choice is ', player_choice) print('The computer choice is ', computer_choice) if result=='computer': cpu_score=cpu_score+1 print('The winner of this round is ',result) elif result=='player': player_score=player_score+1 print('The winner of this round is ',result) elif result=='tie': print('No winner this rounds. It is a tie.') return player_score,cpu_score # #### 10. Now it's time to code the execution of the game using the functions and variables you defined above. # # First, create a loop structure that repeats while no player reaches the minimum score necessary to win and the number of rounds is less than the maximum number of rounds to play in a game. # # Inside the loop, use the functions and variables above to create the execution of a round: ask for the player's choice, generate the random choice of the computer, show the round results, update the scores, etc. # + print('How many rounds do you want to play?') n_rounds=int(input()) while n_rounds%2==0: print("Please introduce an odd number") n_rounds=int(input()) rounds_to_win=round(n_rounds/2)+1 cpu_score=0 player_score=0 while cpu_score<rounds_to_win and player_score<rounds_to_win: player_choice=player() computer_choice=computer_func() if player_choice=='rock': if computer_choice=='rock': result='tie' elif computer_choice=='paper': result='computer' elif computer_choice=='scissors': result='player' elif player_choice=='paper': if computer_choice=='paper': result='tie' elif computer_choice=='scissors': result='computer' elif computer_choice=='rock': result='player' elif player_choice=='scissors': if computer_choice=='scissors': result='tie' elif computer_choice=='rock': result='computer' elif computer_choice=='paper': result='player' winner=checker(result) temp=printer(player_choice,computer_choice,result,player_score,cpu_score) player_score=temp[0] cpu_score=temp[1] # - # #### 11. Print the winner of the game based on who won more rounds. # Remember that the game might be tied. if cpu_score==rounds_to_win: print('Computer wins') elif player_score==rounds_to_win: print('Player wins') # # Bonus: Rock, Paper, Scissors, Lizard & Spock # ![](images/rpsls.jpg) # # In this challenge, you need to improve the previous game by adding two new options. To know more about the rules of the improved version of rock, paper, scissors, check this [link](http://www.samkass.com/theories/RPSSL.html). # # In addition, you will also need to improve how the game interacts with the player: the number of rounds to play, which must be an odd number, will be requested to the user until a valid number is entered. Define a new function to make that request. # # **Hint**: Try to reuse the code that you already coded in the previous challenge. If your code is efficient, this bonus will only consist of simple modifications to the original game. # + gestures2=('rock', 'paper','scissors','spock', 'lizard') def player2(): print('Which gesture do you want to show? Choose rock, paper, scissors, spock or lizard') choice=input() while choice!='rock' and choice!='paper' and choice!='scissors' and choice!='spock' and choice!='lizard': print('Please try again') choice=input() return choice print('How many rounds do you want to play?') n_rounds=int(input()) while n_rounds%2==0: print("Please introduce an odd number") n_rounds=int(input()) rounds_to_win=round(n_rounds/2)+1 cpu_score=0 player_score=0 while cpu_score<rounds_to_win and player_score<rounds_to_win: player_choice=player2() computer_choice=computer_func() if player_choice=='rock': if computer_choice=='rock': result='tie' elif computer_choice=='paper': result='computer' elif computer_choice=='scissors': result='player' elif computer_choice=='spock': result='computer' elif computer_choice=='lizard': result='player' elif player_choice=='paper': if computer_choice=='paper': result='tie' elif computer_choice=='scissors': result='computer' elif computer_choice=='rock': result='player' elif computer_choice=='spock': result='player' elif computer_choice=='lizard': result='computer' elif player_choice=='scissors': if computer_choice=='scissors': result='tie' elif computer_choice=='rock': result='computer' elif computer_choice=='paper': result='player' elif computer_choice=='spock': result='computer' elif computer_choice=='lizard': result='player' elif player_choice=='spock': if computer_choice=='scissors': result='player' elif computer_choice=='rock': result='player' elif computer_choice=='paper': result='computer' elif computer_choice=='spock': result='tie' elif computer_choice=='lizard': result='player' elif player_choice=='lizard': if computer_choice=='scissors': result='computer' elif computer_choice=='rock': result='computer' elif computer_choice=='paper': result='player' elif computer_choice=='spock': result='player' elif computer_choice=='lizard': result='tie' winner=checker(result) temp=printer(player_choice,computer_choice,result,player_score,cpu_score) player_score=temp[0] cpu_score=temp[1] if cpu_score==rounds_to_win: print('Computer wins') elif player_score==rounds_to_win: print('Player wins') # -
9,682
/tutorials/KDD16.ipynb
ac99c0326b3af9d7887bf6f28d98ea8b052edb4c
[ "Apache-2.0" ]
permissive
antinucleon/mxnet-notebooks
https://github.com/antinucleon/mxnet-notebooks
0
0
null
2016-08-15T03:57:18
2016-08-15T03:57:17
Jupyter Notebook
Jupyter Notebook
false
false
.py
837
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 2 # language: python # name: python2 # --- # # KDD 16 Hands-on Tutorials # # safd # # # - [NDArray](../python/basic/ndarray.ipynb) # - [Symbol](../python/basic/symbol.ipynb)
399
/ClassMaterial/Unit3/Class15/Class Notebook -- Messy.ipynb
1a33bb57a4bfbd8d7888421ce509c7ef40e50949
[]
no_license
Nhudgell/DAT-07-28
https://github.com/Nhudgell/DAT-07-28
0
0
null
2020-08-11T17:16:15
2020-08-11T17:07:25
null
Jupyter Notebook
false
false
.py
61,471
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- import pandas as pd import numpy as np from sklearn.ensemble import GradientBoostingRegressor from sklearn.pipeline import make_pipeline from category_encoders import OrdinalEncoder from sklearn.model_selection import train_test_split, cross_val_score df = pd.read_csv('../data/bikeshare.csv', parse_dates=['datetime']) df.head() df['hour'] = df['datetime'].dt.hour pipe = make_pipeline(OrdinalEncoder(), GradientBoostingRegressor()) X = df.drop(['count', 'datetime'], axis=1) y = df['count'] X_train, X_test, y_train, y_test = train_test_split(X, y, shuffle=False, test_size=0.2) X_test.tail() X_train.head() X_train, X_val, y_train, y_val = train_test_split(X_train, y_train, shuffle=False, test_size=0.2) pipe.fit(X_train, y_train) OrdinalEncoder().fit_transform(X_train) pipe.score(X_val, y_val) cross_val_score(estimator=pipe, X=X_train, y=y_train, cv=10) pipe.steps[1][1].set_params() # + max_depth = [3, 4, 5] num_trees = [100, 250, 500] cv_scores = [] for depth in max_depth: for tree in num_trees: pipe.steps[1][1].set_params(n_estimators=tree, max_depth=depth) pipe.fit(X_train, y_train) val_score = pipe.score(X_val, y_val) cv_dict = {'score': val_score, 'max_depth': depth, 'n_estimators': tree} cv_scores.append(cv_dict) max_params = max(cv_scores, key=lambda x: x['score']) pipe.steps[1][1].set_params(max_depth=max_params['max_depth'], n_estimators=max_params['n_estimators']) pipe.fit(X_train, y_train) # - X_train = pd.concat([X_train, X_val]) y_train = pd.concat([y_train, y_val]) pipe.fit(X_train, y_train) max(cv_scores, key=lambda x: x['score']) pipe.score(X_test, y_test) df = pd.read_csv('../data/ks2.csv', encoding='utf-8', parse_dates=['launched', 'deadline']) cat_avgs = df.groupby('category')[['goal']].mean().rename({'goal': 'cat_avg_goal'}, axis=1) cat_avgs df.head() df = df.merge(cat_avgs, left_on='category', right_index=True) df['cat_goal_pct'] = df['goal'] / df['cat_avg_goal'] df.head() main_cats = df.groupby('main_category')[['goal']].mean().reset_index().rename({'goal': 'main_cat_goal_avg'}, axis=1) df = df.merge(main_cats, on='main_category') df['main_goal_pct'] = df['goal'] / df['main_cat_goal_avg'] df[['goal', 'main_cat_goal_avg', 'main_goal_pct']].head() X = df.drop(['deadline', 'launched', 'state'], axis=1) y = df['state'] df = extract_dates(df) scores = get_val_scores(pipe, X, y, random_state=1985, stratify=True, use_kfold=False) from utils import get_val_scores, extract_dates pipe = make_pipeline(OrdinalEncoder(), xgb.XGBClassifier()) import xgboost as xgb scores df.head() weekly_totals = df.groupby(['launched_year', 'launched_weekofyear'])[['ID']].count().reset_index().rename({'ID': 'Weekly_Total_Count'}, axis=1) weekly_totals.head() df.columns df = df.merge(weekly_totals, on=['launched_year', 'launched_weekofyear']) X = df.drop(['deadline', 'launched', 'state'], axis=1) y = df['state'] HOT_ZONE_AREA if Center(C). # + def get_column_header_simple(str_orig_column_header, str_bad_column_header): # as a warm up, create SHOT_ZONE_AREA_C # use regex to get the value within the parentheses! # then apply this function within the dictionary #return '_'.join([str_orig_column_header, re.search(str_regex, str_bad_column_header)]) return '_'.join([ str_orig_column_header, str_bad_column_header[str_bad_column_header.find("(")+1:str_bad_column_header.find(")")]]) get_column_header_simple("SHOT_ZONE_AREA", "Center(C)") # + # this solution will be more flexible than the one above def get_column_header_regex(str_orig_column_header, str_bad_column_header, str_regex): return '_'.join([str_orig_column_header, re.search(str_regex, str_bad_column_header).group(1)]) #get_column_header_regex("SHOT_ZONE_AREA", "Center(C)", "\((.*?)\)") # + # joining SHOT_ZONE_AREA encoded to df df_onehotencode = pd.DataFrame(onehot_encoded) # this has the same index as df_shot_charts # dict to rename columns dict_columns = { 0: get_column_header_regex("SHOT_ZONE_AREA_A", label_encoder.inverse_transform([0])[0], "\((.*?)\)"), 1: get_column_header_regex("SHOT_ZONE_AREA_A", label_encoder.inverse_transform([1])[0], "\((.*?)\)"), 2: get_column_header_regex("SHOT_ZONE_AREA_A", label_encoder.inverse_transform([2])[0], "\((.*?)\)"), 3: get_column_header_regex("SHOT_ZONE_AREA_A", label_encoder.inverse_transform([3])[0], "\((.*?)\)"), 4: get_column_header_regex("SHOT_ZONE_AREA_A", label_encoder.inverse_transform([4])[0], "\((.*?)\)") } df_onehotencode.rename(columns=dict_columns, inplace=True) #df_onehotencode df_join = pd.merge(df_shot_charts, df_onehotencode, left_index=True, right_index=True) # determine shots made by zone before agg df_join.loc[(df_join['SHOT_MADE_FLAG'] == 1) & (df_join['SHOT_ZONE_AREA_A_C'] == 1), 'SHOT_ZONE_AREA_M_C'] = 1 df_join.loc[(df_join['SHOT_MADE_FLAG'] == 1) & (df_join['SHOT_ZONE_AREA_A_LC'] == 1), 'SHOT_ZONE_AREA_M_LC'] = 1 df_join.loc[(df_join['SHOT_MADE_FLAG'] == 1) & (df_join['SHOT_ZONE_AREA_A_L'] == 1), 'SHOT_ZONE_AREA_M_L'] = 1 df_join.loc[(df_join['SHOT_MADE_FLAG'] == 1) & (df_join['SHOT_ZONE_AREA_A_RC'] == 1), 'SHOT_ZONE_AREA_M_RC'] = 1 df_join.loc[(df_join['SHOT_MADE_FLAG'] == 1) & (df_join['SHOT_ZONE_AREA_A_R'] == 1), 'SHOT_ZONE_AREA_M_R'] = 1 # https://stackoverflow.com/questions/21998354/pandas-wont-fillna-inplace df_join.fillna({x: 0 for x in ['SHOT_ZONE_AREA_M_C', 'SHOT_ZONE_AREA_M_LC', 'SHOT_ZONE_AREA_M_L', 'SHOT_ZONE_AREA_M_RC', 'SHOT_ZONE_AREA_M_R']}, inplace=True) #df_join.set_index(['PLAYER_ID', 'GAME_ID'], inplace=True) df_join # + # SHOT_ZONE_BASIC values = df_shot_charts['SHOT_ZONE_BASIC'] # integer encode label_encoder = LabelEncoder() integer_encoded = label_encoder.fit_transform(values) #integer_encoded # binary encode onehot_encoder = OneHotEncoder(sparse=False, categories='auto') integer_encoded = integer_encoded.reshape(len(integer_encoded), 1) onehot_encoded = onehot_encoder.fit_transform(integer_encoded) onehot_encoded # inverted #inverted = label_encoder.inverse_transform([np.argmax(onehot_encoded[1, :])]) # what does the enconding for the first row mean? #inverted = label_encoder.inverse_transform([4])[0] # i.e., what does 4 mean? "Right Side(R)" #inverted # + # joining SHOT_ZONE_BASIC encoded to df df_onehotencode = pd.DataFrame(onehot_encoded) # this has the same index as df_shot_charts # dict to rename columns dict_columns = { 0: 'SHOT_ZONE_BASIC_A_MR', 1: 'SHOT_ZONE_BASIC_A_ATB3', 2: 'SHOT_ZONE_BASIC_A_RA', 3: 'SHOT_ZONE_BASIC_A_ITP', 4: 'SHOT_ZONE_BASIC_A_RC3', 5: 'SHOT_ZONE_BASIC_A_LC3' } df_onehotencode.rename(columns=dict_columns, inplace=True) #df_onehotencode #df_join = pd.merge(df_shot_charts, df_onehotencode, left_index=True, right_index=True) df_join = pd.merge(df_join, df_onehotencode, left_index=True, right_index=True) # determine shots made by zone before agg df_join.loc[(df_join['SHOT_MADE_FLAG'] == 1) & (df_join['SHOT_ZONE_BASIC_A_MR'] == 1), 'SHOT_ZONE_BASIC_M_MR'] = 1 df_join.loc[(df_join['SHOT_MADE_FLAG'] == 1) & (df_join['SHOT_ZONE_BASIC_A_ATB3'] == 1), 'SHOT_ZONE_BASIC_M_ATB3'] = 1 df_join.loc[(df_join['SHOT_MADE_FLAG'] == 1) & (df_join['SHOT_ZONE_BASIC_A_RA'] == 1), 'SHOT_ZONE_BASIC_M_RA'] = 1 df_join.loc[(df_join['SHOT_MADE_FLAG'] == 1) & (df_join['SHOT_ZONE_BASIC_A_ITP'] == 1), 'SHOT_ZONE_BASIC_M_ITP'] = 1 df_join.loc[(df_join['SHOT_MADE_FLAG'] == 1) & (df_join['SHOT_ZONE_BASIC_A_RC3'] == 1), 'SHOT_ZONE_BASIC_M_RC3'] = 1 df_join.loc[(df_join['SHOT_MADE_FLAG'] == 1) & (df_join['SHOT_ZONE_BASIC_A_LC3'] == 1), 'SHOT_ZONE_BASIC_M_LC3'] = 1 # https://stackoverflow.com/questions/21998354/pandas-wont-fillna-inplace df_join.fillna({x: 0 for x in ['SHOT_ZONE_BASIC_M_MR', 'SHOT_ZONE_BASIC_M_ATB3', 'SHOT_ZONE_BASIC_M_RA', 'SHOT_ZONE_BASIC_M_ITP', 'SHOT_ZONE_BASIC_M_RC3', 'SHOT_ZONE_BASIC_M_LC3']}, inplace=True) df_join.set_index(['PLAYER_ID', 'GAME_ID'], inplace=True) #df_join.dtypes #df_join['SHOT_ZONE_BASIC'].value_counts() df_join.dtypes # + # dummy for SHOT_TYPE # in the script, create a function for the onehotencoder # + # aggregate shot chart data by player-game # THIS IS NOT UPDATED YET list_agg = [np.sum, np.min, np.max, np.mean, np.std] dict_agg = { 'MIN': list_agg, 'FGM': list_agg, 'FGA': list_agg, 'FG_PCT': list_agg, 'FG3M': list_agg, 'FG3A': list_agg, 'FG3_PCT': list_agg, 'FTM': list_agg, 'FTA': list_agg, 'FT_PCT': list_agg, 'OREB': list_agg, 'DREB': list_agg, 'REB': list_agg, 'AST': list_agg, 'STL': list_agg, 'BLK': list_agg, 'TOV': list_agg, 'PF': list_agg, 'PTS': list_agg } df_game_log_agg = df_game_log.groupby(['Player_ID', 'SEASON_ID']).agg(dict_agg) # this makes 'Player_ID' the index # df_game_log_agg.loc[76001] # get all column data for the row index # df_game_log_agg['MIN']['sum'][76001] # for the MIN col, get the sum col's value for 76001 df_game_log_agg # - # After we aggregate the shot chart data by player and game, join to the game log data via player and game.
9,350
/Lecture_01/.ipynb_checkpoints/Files-checkpoint.ipynb
19df088602661c45a88eee4a8bf1b70edee42974
[]
no_license
Namangarg007/Python-training
https://github.com/Namangarg007/Python-training
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
210,422
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python [conda env:Python3] # language: python # name: conda-env-Python3-py # --- from pathlib import Path import os import pandas as pd import nccid_cleaning.etl as etl from nccid_cleaning import clean_data_df, patient_df_pipeline # This notebook can be used to generate CSV files containing patient clinical data, and image metadata for each patient and image file within the NCCID data. # To use these tools you need to provide a `BASE_PATH` that points to the location of the data that has been pulled from the NCCID S3 bucket, where your local directory structure should match the original S3 structure. If you have split the data into training/test/validation sets, each subdirectory should have the same structure as the original S3 bucket and the below pipeline should be run separately for each of the dataset splits. # You can set the local path to your NCCID data below by changing the `DEFAULT_PATH` variable or alternatively set as an environment variable, `NCCID_DATA_DIR` in e.g., `.bashrc`. # Edit this to update your local NCCID data path DEFAULT_PATH = "/project/data/training" BASE_PATH = Path(os.getenv("NCCID_DATA_DIR", DEFAULT_PATH)) print(BASE_PATH) # ## Imaging Metadata # For the imaging metadata, a separate CSV is generated for each imaging modality: X-ray, CT, MRI. Three steps are performed: # <l> # <li> `select_image_files` - traverses the directory tree finding all files of the imaging modality. For X-ray is it recommended to set `select_all = True` to process all available X-ray files. Whereas, for 3D modalities, CT, and MRI, `select_first = True` is recommened to select only the first file of each imaging volume, to speed up run time and reduce redundancy of information. </li> # <li> `ingest_dicom_jsons` - reads the DICOM header information for each file. </li> # <li> `pydicom_to_df` - converts the DICOM metadata into a pandas DataFrame where the rows are images and columns are the DICOM attributes. # </l> <br> # # The resulting DataFrames are saved as CSV files in `data/` # subdirectories XRAY_SUBDIR = "xray-metadata" CT_SUBDIR = "ct-metadata" MRI_SUBDIR = "mri-metadata" # 1. finding image file lists within the subdirs xray_files = etl.select_image_files(BASE_PATH / XRAY_SUBDIR, select_all=True) ct_files = etl.select_image_files(BASE_PATH / CT_SUBDIR, select_first=True) mri_files = etl.select_image_files(BASE_PATH / MRI_SUBDIR, select_first=True) # 2. process image metadata xray_datasets = etl.ingest_dicom_jsons(xray_files) ct_datasets = etl.ingest_dicom_jsons(ct_files) mri_datasets = etl.ingest_dicom_jsons(mri_files) # 3. converting to DataFrame xrays = etl.pydicom_to_df(xray_datasets) cts = etl.pydicom_to_df(ct_datasets) mris = etl.pydicom_to_df(mri_datasets) # check structure of DFs xrays.head() # Save as csv xrays.to_csv("data/xrays.csv") cts.to_csv("data/cts.csv") mris.to_csv("data/mris.csv") # ## Patient Clinical Data # For patient clinical data, the most recent <b>data</b> file (for COVID-positive) or <b>status</b> file (for COVID-negative) is parsed for each patient in the directory tree. The resulting DataFrame is generated using `patient_jsons_to_df`, where rows are patients and columns are data fields. <br> # # Three fields that are not in the original jsons files are included in the DataFrame: # <l> # <li> `filename_earliest_date` - earlist data/status file present for the patient. </li> # <li> `filename_latest_date` - latest data/status file present for the patient. This is the file from which the rest of the patient's data has been pulled. </li> # <li> `filename_covid_status` - indicates it the patient is in the COVID-postive or COVID-negative cohort, based on whether they have every been submitted with a <b>data</b> file (which are only present for positive patients. </li> # </l> PATIENT_SUBDIR = "data" # process patient clinical data patient_files = list(os.walk(BASE_PATH / PATIENT_SUBDIR)) patients = etl.patient_jsons_to_df(patient_files) patients.head() # ### Clean and enrich # The cleaning pipeline can be run on the resulting patients DataFrame to improve quality. In addition, missing values in the patient DataFrame for Sex and Age, can be filled using the DICOM image headers. This step generates two new columns `sex_update` and `age_update`, from the cleaned columns `sex`, `age`. # + # cleaning patients = clean_data_df(patients, patient_df_pipeline) # enriching images = [xrays, cts, mris] # list all image DFs patients = etl.patient_data_dicom_update(patients, images) patients.head() # - print(f"Sex Unknowns before merging with dicom: {(patients['sex']=='Unknown').sum()}") print(f"Sex Unknowns after merging with dicom: {(patients['sex_update']=='Unknown').sum()}") print("------") print(f"Age NaNs before merging with dicom: {patients['age'].isnull().sum()}") print(f"Age New after merging with dicom: {patients['age_update'].isnull().sum()}") # save to csv patients.to_csv("data/patients.csv") of that class. Multiple classes can also be checked at once. print (isinstance(1, int)) print (isinstance(1.0,int)) print (isinstance(1.0,(int,float))) # ==> **pow(x,y,z)** can be used to find the power $x^y$ also the mod of the resulting value with the third specified number can be found i.e. : ($x^y$ % z). print (pow(3,3)) print (pow(3,3,5)) print(27%5) # The value of (3**3) % 5 is : 1 # ==> **range( )** function outputs the integers of the specified range. It can also be used to generate a series by specifying the difference between the two numbers within a particular range. The elements are returned in a list (will be discussing in detail later.) # ==> range(start, stop, step) print("==> start == Optional. An integer number specifying at which position to start. Default is 0") print("==> stop == Optional. An integer number specifying at which position to end.") print("==> step == Optional. An integer number specifying the incrementation. Default is 1") print (range(3)) print (range(2,9)) print (range(2,27,8)) for i in range(0,10,1): print(i) # # Accepting User Inputs # ==> **raw_input( )** accepts input and stores it as a string. Hence, if the user inputs a integer, the code should convert the string to an integer and then proceed. abc = input("Type something here and it will be stored in variable abc \t") type(abc) # ==> **input( )**, this is used only for accepting only integer inputs. abc1 = input("Only integer can be stored in variable abc \t") type(abc1) # ==> Note that **type( )** returns the format or the type of a variable or a number # **RAJKUMAR ZALAVADIA - Mo: 7041645834 Email : [email protected]**
6,857
/06_데이터수집/01_다음영화정보수집.ipynb
0a16fc54693f3f904e082d327b8a40bff06e58b1
[]
no_license
dawoonyoon/mini_project
https://github.com/dawoonyoon/mini_project
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
10,863
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- from selenium import webdriver import requests import time import pandas as pd from IPython.display import clear_output # webdriver 실행 driver = webdriver.Chrome('chromedriver') # 다음 영화 사이트 접속 site = 'https://movie.daum.net/premovie/theater' time.sleep(1) driver.get(site) # 스크롤: for idx in range(10): time.sleep(1) script = 'window.scrollTo(0, document.body.scrollHeight)' driver.execute_script(script) # 영화 전체 목록 가져오기 a1 = driver.find_elements_by_css_selector('#mainContent > div > div.box_movie > ol') a1 # 영화 전체 목록에서 li tag 가져오기 li_list = a1[0].find_elements_by_css_selector('li') li_list # + # 데이터를 담을 딕셔너리 data_dict = { '제목' : [], '예매율' : [], '평점' : [], '개봉일' : [] } # 영화의 수 만큼 반복 for movie_tag in li_list: # 영화 제목 가져오기 title_tag = movie_tag.find_element_by_css_selector('div > div.thumb_cont > strong > a') title = title_tag.text.strip() # 평점 rating_tag = movie_tag.find_element_by_css_selector('div > div.thumb_cont > span.txt_append > span:nth-child(1) > span') rating = rating_tag.text.strip() # 예매율 ticket_tag = movie_tag.find_element_by_css_selector('div > div.thumb_cont > span.txt_append > span:nth-child(2) > span') ticket = ticket_tag.text.strip() # 개봉일 open_date_tag = movie_tag.find_element_by_css_selector('div > div.thumb_cont > span.txt_info > span') open_date = open_date_tag.text.strip() # 영화 포스터 poster_tag = movie_tag.find_element_by_css_selector('div > div.thumb_item > div.poster_movie > img') # src 속성의 값 가져오기 src_attr = poster_tag.get_attribute('src') # print(src_attr) # 영화의 제목을 파일명으로 사용할 것이기 때문에 # os에서 거부하는 파일명을 정제한다 char_list = ['\\', '/', ':', '*', '?', '"', '<', '>', '|'] file_name = title for c1 in char_list: file_name = file_name.replace(c1, ' ') # 이미지 데이터 내려받기 img_res = requests.get(src_attr) # 저장! with open(f'poster/{file_name}.jpg', 'wb') as fp: fp.write(img_res.content) # print(title) # print(rating) # print(ticket[:-1]) # print(open_date) # print('------------------------') # 데이터 담기 data_dict['제목'].append(title) data_dict['예매율'].append(ticket[:-1]) data_dict['평점'].append(rating) data_dict['개봉일'].append(open_date) # DataFrame 생성 df1 = pd.DataFrame(data_dict) # 저장 df1.to_csv('daum_movie.csv', encoding='utf-8-sig', index=False) print('저장완료') # -
2,716
/PY0101EN-5-2-Numpy2D (1).ipynb
89e79ad9dfe21fcb626e37606ac026be1dbfe7f7
[]
no_license
davemayes/Data-Science-Labs
https://github.com/davemayes/Data-Science-Labs
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
24,822
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # %matplotlib notebook import hyperspy.api as hs import pyxem as pxm import atomap.api as am import ParticleSpy.api as ps # !pwd data_path = '/home/jovyan/data' test_data = data_path + 'edx/EDS Spectrum Image.dm4' s = hs.load(test_data) s.plot() # Estimated time needed: **20** minutes # # ## Objectives # # After completing this lab you will be able to: # # * Operate comfortably with `numpy` # * Perform complex operations with `numpy` # # <h2>Table of Contents</h2> # <div class="alert alert-block alert-info" style="margin-top: 20px"> # <ul> # <li><a href="create">Create a 2D Numpy Array</a></li> # <li><a href="access">Accessing different elements of a Numpy Array</a></li> # <li><a href="op">Basic Operations</a></li> # </ul> # # </div> # # <hr> # # <h2 id="create">Create a 2D Numpy Array</h2> # # + # Import the libraries import numpy as np import matplotlib.pyplot as plt # - # Consider the list <code>a</code>, which contains three nested lists **each of equal size**. # # + # Create a list a = [[11, 12, 13], [21, 22, 23], [31, 32, 33]] a # - # We can cast the list to a Numpy Array as follows: # # + # Convert list to Numpy Array # Every element is the same type A = np.array(a) A # - # We can use the attribute <code>ndim</code> to obtain the number of axes or dimensions, referred to as the rank. # # + # Show the numpy array dimensions A.ndim # - # Attribute <code>shape</code> returns a tuple corresponding to the size or number of each dimension. # # + # Show the numpy array shape A.shape # - # The total number of elements in the array is given by the attribute <code>size</code>. # # + # Show the numpy array size A.size # - # <hr> # # <h2 id="access">Accessing different elements of a Numpy Array</h2> # # We can use rectangular brackets to access the different elements of the array. The correspondence between the rectangular brackets and the list and the rectangular representation is shown in the following figure for a 3x3 array: # # <img src="https://cf-courses-data.s3.us.cloud-object-storage.appdomain.cloud/IBMDeveloperSkillsNetwork-PY0101EN-SkillsNetwork/labs/Module%205/images/NumTwoEg.png" width="500" /> # # We can access the 2nd-row, 3rd column as shown in the following figure: # # <img src="https://cf-courses-data.s3.us.cloud-object-storage.appdomain.cloud/IBMDeveloperSkillsNetwork-PY0101EN-SkillsNetwork/labs/Module%205/images/NumTwoFT.png" width="400" /> # # We simply use the square brackets and the indices corresponding to the element we would like: # # + # Access the element on the second row and third column A[1, 2] # - # We can also use the following notation to obtain the elements: # # + # Access the element on the second row and third column A[1][2] # - # Consider the elements shown in the following figure # # <img src="https://cf-courses-data.s3.us.cloud-object-storage.appdomain.cloud/IBMDeveloperSkillsNetwork-PY0101EN-SkillsNetwork/labs/Module%205/images/NumTwoFF.png" width="400" /> # # We can access the element as follows: # # + # Access the element on the first row and first column A[0][0] # - # We can also use slicing in numpy arrays. Consider the following figure. We would like to obtain the first two columns in the first row # # <img src="https://cf-courses-data.s3.us.cloud-object-storage.appdomain.cloud/IBMDeveloperSkillsNetwork-PY0101EN-SkillsNetwork/labs/Module%205/images/NumTwoFSF.png" width="400" /> # # This can be done with the following syntax: # # + # Access the element on the first row and first and second columns A[0][0:2] # - # Similarly, we can obtain the first two rows of the 3rd column as follows: # # + # Access the element on the first and second rows and third column A[0:2, 2] # - # Corresponding to the following figure: # # <img src="https://cf-courses-data.s3.us.cloud-object-storage.appdomain.cloud/IBMDeveloperSkillsNetwork-PY0101EN-SkillsNetwork/labs/Module%205/images/2D_numpy.png" width="550"><br /> # # <h2 id="op">Basic Operations</h2> # # We can also add arrays. The process is identical to matrix addition. Matrix addition of <code>X</code> and <code>Y</code> is shown in the following figure: # # <img src="https://cf-courses-data.s3.us.cloud-object-storage.appdomain.cloud/IBMDeveloperSkillsNetwork-PY0101EN-SkillsNetwork/labs/Module%205/images/NumTwoAdd.png" width="500" /> # # The numpy array is given by <code>X</code> and <code>Y</code> # # + # Create a numpy array X X = np.array([[1, 0], [0, 1]]) X # + # Create a numpy array Y Y = np.array([[2, 1], [1, 2]]) Y # - # We can add the numpy arrays as follows. # # + # Add X and Y Z = X + Y Z # - # Multiplying a numpy array by a scaler is identical to multiplying a matrix by a scaler. If we multiply the matrix <code>Y</code> by the scaler 2, we simply multiply every element in the matrix by 2, as shown in the figure. # # <img src="https://cf-courses-data.s3.us.cloud-object-storage.appdomain.cloud/IBMDeveloperSkillsNetwork-PY0101EN-SkillsNetwork/labs/Module%205/images/NumTwoDb.png" width="500" /> # # We can perform the same operation in numpy as follows # # + # Create a numpy array Y Y = np.array([[2, 1], [1, 2]]) Y # + # Multiply Y with 2 Z = 2 * Y Z # - # Multiplication of two arrays corresponds to an element-wise product or <em>Hadamard product</em>. Consider matrix <code>X</code> and <code>Y</code>. The Hadamard product corresponds to multiplying each of the elements in the same position, i.e. multiplying elements contained in the same color boxes together. The result is a new matrix that is the same size as matrix <code>Y</code> or <code>X</code>, as shown in the following figure. # # <img src="https://cf-courses-data.s3.us.cloud-object-storage.appdomain.cloud/IBMDeveloperSkillsNetwork-PY0101EN-SkillsNetwork/labs/Module%205/images/NumTwoMul.png" width="500" /> # # We can perform element-wise product of the array <code>X</code> and <code>Y</code> as follows: # # + # Create a numpy array Y Y = np.array([[2, 1], [1, 2]]) Y # + # Create a numpy array X X = np.array([[1, 0], [0, 1]]) X # + # Multiply X with Y Z = X * Y Z # - # We can also perform matrix multiplication with the numpy arrays <code>A</code> and <code>B</code> as follows: # # First, we define matrix <code>A</code> and <code>B</code>: # # + # Create a matrix A A = np.array([[0, 1, 1], [1, 0, 1]]) A # + # Create a matrix B B = np.array([[1, 1], [1, 1], [-1, 1]]) B # - # We use the numpy function <code>dot</code> to multiply the arrays together. # # + # Calculate the dot product Z = np.dot(A,B) Z # + # Calculate the sine of Z np.sin(Z) # - # We use the numpy attribute <code>T</code> to calculate the transposed matrix # # + # Create a matrix C C = np.array([[1,1],[2,2],[3,3]]) C # + # Get the transposed of C C.T # - # <h2>Quiz on 2D Numpy Array</h2> # # Consider the following list <code>a</code>, convert it to Numpy Array. # # + # Write your code below and press Shift+Enter to execute a = [[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12]] A = np.array(a) A # - # <details><summary>Click here for the solution</summary> # # ```python # A = np.array(a) # A # ``` # # </details> # # <details><summary>Click here for the solution</summary> # # ```python # A = np.array(a) # A # ``` # # </details> # # Calculate the numpy array size. # # Write your code below and press Shift+Enter to execute A.size # <details><summary>Click here for the solution</summary> # # ```python # A.size # ``` # # </details> # # Access the element on the first row and first and second columns. # # Write your code below and press Shift+Enter to execute A[0][0:2] # <details><summary>Click here for the solution</summary> # # ```python # A[0][0:2] # ``` # # </details> # # Perform matrix multiplication with the numpy arrays <code>A</code> and <code>B</code>. # # + # Write your code below and press Shift+Enter to execute B = np.array([[0, 1], [1, 0], [1, 1], [-1, 0]]) X = np.dot(A,B) X # - # <details><summary>Click here for the solution</summary> # # ```python # X = np.dot(A,B) # X # ``` # # </details> # # <hr> # <h2>The last exercise!</h2> # <p>Congratulations, you have completed your first lesson and hands-on lab in Python. However, there is one more thing you need to do. The Data Science community encourages sharing work. The best way to share and showcase your work is to share it on GitHub. By sharing your notebook on GitHub you are not only building your reputation with fellow data scientists, but you can also show it off when applying for a job. Even though this was your first piece of work, it is never too early to start building good habits. So, please read and follow <a href="https://cognitiveclass.ai/blog/data-scientists-stand-out-by-sharing-your-notebooks/?utm_medium=Exinfluencer&utm_source=Exinfluencer&utm_content=000026UJ&utm_term=10006555&utm_id=NA-SkillsNetwork-Channel-SkillsNetworkCoursesIBMDeveloperSkillsNetworkPY0101ENSkillsNetwork19487395-2021-01-01" target="_blank">this article</a> to learn how to share your work. # <hr> # # ## Author # # <a href="https://www.linkedin.com/in/joseph-s-50398b136/?utm_medium=Exinfluencer&utm_source=Exinfluencer&utm_content=000026UJ&utm_term=10006555&utm_id=NA-SkillsNetwork-Channel-SkillsNetworkCoursesIBMDeveloperSkillsNetworkPY0101ENSkillsNetwork19487395-2021-01-01" target="_blank">Joseph Santarcangelo</a> # # ## Other contributors # # <a href="www.linkedin.com/in/jiahui-mavis-zhou-a4537814a">Mavis Zhou</a> # # ## Change Log # # | Date (YYYY-MM-DD) | Version | Changed By | Change Description | # |---|---|---|---| # | 2021-01-05 | 2.2 | Malika | Updated the solution for dot multiplication | # | 2020-09-09 | 2.1 | Malika | Updated the screenshot for first two rows of the 3rd column | # | 2020-08-26 | 2.0 | Lavanya | Moved lab to course repo in GitLab | # | | | | | # | | | | | # # <hr/> # # ## <h3 align="center"> © IBM Corporation 2020. All rights reserved. <h3/> #
10,228
/Python programs for interview.ipynb
0dd1ae2ab4f03793493e94a687657a279278dd0c
[]
no_license
NitinShelke/Interview-Questions
https://github.com/NitinShelke/Interview-Questions
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
10,893
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 2 # language: python # name: python2 # --- # # Batch Normalization # One way to make deep networks easier to train is to use more sophisticated optimization procedures such as SGD+momentum, RMSProp, or Adam. Another strategy is to change the architecture of the network to make it easier to train. One idea along these lines is batch normalization which was recently proposed by [3]. # # The idea is relatively straightforward. Machine learning methods tend to work better when their input data consists of uncorrelated features with zero mean and unit variance. When training a neural network, we can preprocess the data before feeding it to the network to explicitly decorrelate its features; this will ensure that the first layer of the network sees data that follows a nice distribution. However even if we preprocess the input data, the activations at deeper layers of the network will likely no longer be decorrelated and will no longer have zero mean or unit variance since they are output from earlier layers in the network. Even worse, during the training process the distribution of features at each layer of the network will shift as the weights of each layer are updated. # # The authors of [3] hypothesize that the shifting distribution of features inside deep neural networks may make training deep networks more difficult. To overcome this problem, [3] proposes to insert batch normalization layers into the network. At training time, a batch normalization layer uses a minibatch of data to estimate the mean and standard deviation of each feature. These estimated means and standard deviations are then used to center and normalize the features of the minibatch. A running average of these means and standard deviations is kept during training, and at test time these running averages are used to center and normalize features. # # It is possible that this normalization strategy could reduce the representational power of the network, since it may sometimes be optimal for certain layers to have features that are not zero-mean or unit variance. To this end, the batch normalization layer includes learnable shift and scale parameters for each feature dimension. # # [3] Sergey Ioffe and Christian Szegedy, "Batch Normalization: Accelerating Deep Network Training by Reducing # Internal Covariate Shift", ICML 2015. # + # As usual, a bit of setup import time import numpy as np import matplotlib.pyplot as plt from cs231n.classifiers.fc_net import * from cs231n.data_utils import get_CIFAR10_data from cs231n.gradient_check import eval_numerical_gradient, eval_numerical_gradient_array from cs231n.solver import Solver # %matplotlib inline plt.rcParams['figure.figsize'] = (10.0, 8.0) # set default size of plots plt.rcParams['image.interpolation'] = 'nearest' plt.rcParams['image.cmap'] = 'gray' # for auto-reloading external modules # see http://stackoverflow.com/questions/1907993/autoreload-of-modules-in-ipython # %load_ext autoreload # %autoreload 2 def rel_error(x, y): """ returns relative error """ return np.max(np.abs(x - y) / (np.maximum(1e-8, np.abs(x) + np.abs(y)))) # + # Load the (preprocessed) CIFAR10 data. data = get_CIFAR10_data() for k, v in data.iteritems(): print '%s: ' % k, v.shape # - # ## Batch normalization: Forward # In the file `cs231n/layers.py`, implement the batch normalization forward pass in the function `batchnorm_forward`. Once you have done so, run the following to test your implementation. # + # Check the training-time forward pass by checking means and variances # of features both before and after batch normalization # Simulate the forward pass for a two-layer network N, D1, D2, D3 = 200, 50, 60, 3 X = np.random.randn(N, D1) W1 = np.random.randn(D1, D2) W2 = np.random.randn(D2, D3) a = np.maximum(0, X.dot(W1)).dot(W2) print 'Before batch normalization:' print ' means: ', a.mean(axis=0) print ' stds: ', a.std(axis=0) # Means should be close to zero and stds close to one print 'After batch normalization (gamma=1, beta=0)' a_norm, _ = batchnorm_forward(a, np.ones(D3), np.zeros(D3), {'mode': 'train'}) print ' mean: ', a_norm.mean(axis=0) print ' std: ', a_norm.std(axis=0) # Now means should be close to beta and stds close to gamma gamma = np.asarray([1.0, 2.0, 3.0]) beta = np.asarray([11.0, 12.0, 13.0]) a_norm, _ = batchnorm_forward(a, gamma, beta, {'mode': 'train'}) print 'After batch normalization (nontrivial gamma, beta)' print ' means: ', a_norm.mean(axis=0) print ' stds: ', a_norm.std(axis=0) # + # Check the test-time forward pass by running the training-time # forward pass many times to warm up the running averages, and then # checking the means and variances of activations after a test-time # forward pass. N, D1, D2, D3 = 200, 50, 60, 3 W1 = np.random.randn(D1, D2) W2 = np.random.randn(D2, D3) bn_param = {'mode': 'train'} gamma = np.ones(D3) beta = np.zeros(D3) for t in xrange(50): X = np.random.randn(N, D1) a = np.maximum(0, X.dot(W1)).dot(W2) batchnorm_forward(a, gamma, beta, bn_param) bn_param['mode'] = 'test' X = np.random.randn(N, D1) a = np.maximum(0, X.dot(W1)).dot(W2) a_norm, _ = batchnorm_forward(a, gamma, beta, bn_param) # Means should be close to zero and stds close to one, but will be # noisier than training-time forward passes. print 'After batch normalization (test-time):' print ' means: ', a_norm.mean(axis=0) print ' stds: ', a_norm.std(axis=0) # - # ## Batch Normalization: backward # Now implement the backward pass for batch normalization in the function `batchnorm_backward`. # # To derive the backward pass you should write out the computation graph for batch normalization and backprop through each of the intermediate nodes. Some intermediates may have multiple outgoing branches; make sure to sum gradients across these branches in the backward pass. # # Once you have finished, run the following to numerically check your backward pass. # + # Gradient check batchnorm backward pass N, D = 4, 5 x = 5 * np.random.randn(N, D) + 12 gamma = np.random.randn(D) beta = np.random.randn(D) dout = np.random.randn(N, D) bn_param = {'mode': 'train'} fx = lambda x: batchnorm_forward(x, gamma, beta, bn_param)[0] fg = lambda a: batchnorm_forward(x, gamma, beta, bn_param)[0] fb = lambda b: batchnorm_forward(x, gamma, beta, bn_param)[0] dx_num = eval_numerical_gradient_array(fx, x, dout) da_num = eval_numerical_gradient_array(fg, gamma, dout) db_num = eval_numerical_gradient_array(fb, beta, dout) _, cache = batchnorm_forward(x, gamma, beta, bn_param) dx, dgamma, dbeta = batchnorm_backward(dout, cache) print 'dx error: ', rel_error(dx_num, dx) print 'dgamma error: ', rel_error(da_num, dgamma) print 'dbeta error: ', rel_error(db_num, dbeta) # - # ## Batch Normalization: alternative backward # In class we talked about two different implementations for the sigmoid backward pass. One strategy is to write out a computation graph composed of simple operations and backprop through all intermediate values. Another strategy is to work out the derivatives on paper. For the sigmoid function, it turns out that you can derive a very simple formula for the backward pass by simplifying gradients on paper. # # Surprisingly, it turns out that you can also derive a simple expression for the batch normalization backward pass if you work out derivatives on paper and simplify. After doing so, implement the simplified batch normalization backward pass in the function `batchnorm_backward_alt` and compare the two implementations by running the following. Your two implementations should compute nearly identical results, but the alternative implementation should be a bit faster. # # NOTE: You can still complete the rest of the assignment if you don't figure this part out, so don't worry too much if you can't get it. # + N, D = 100, 500 x = 5 * np.random.randn(N, D) + 12 gamma = np.random.randn(D) beta = np.random.randn(D) dout = np.random.randn(N, D) bn_param = {'mode': 'train'} out, cache = batchnorm_forward(x, gamma, beta, bn_param) t1 = time.time() dx1, dgamma1, dbeta1 = batchnorm_backward(dout, cache) t2 = time.time() dx2, dgamma2, dbeta2 = batchnorm_backward_alt(dout, cache) t3 = time.time() print 'dx difference: ', rel_error(dx1, dx2) print 'dgamma difference: ', rel_error(dgamma1, dgamma2) print 'dbeta difference: ', rel_error(dbeta1, dbeta2) print 'speedup: %.2fx' % ((t2 - t1) / (t3 - t2)) # - # ## Fully Connected Nets with Batch Normalization # Now that you have a working implementation for batch normalization, go back to your `FullyConnectedNet` in the file `cs2312n/classifiers/fc_net.py`. Modify your implementation to add batch normalization. # # Concretely, when the flag `use_batchnorm` is `True` in the constructor, you should insert a batch normalization layer before each ReLU nonlinearity. The outputs from the last layer of the network should not be normalized. Once you are done, run the following to gradient-check your implementation. # # HINT: You might find it useful to define an additional helper layer similar to those in the file `cs231n/layer_utils.py`. If you decide to do so, do it in the file `cs231n/classifiers/fc_net.py`. # + N, D, H1, H2, C = 2, 15, 20, 30, 10 X = np.random.randn(N, D) y = np.random.randint(C, size=(N,)) for reg in [0, 3.14]: print 'Running check with reg = ', reg model = FullyConnectedNet([H1, H2], input_dim=D, num_classes=C, reg=reg, weight_scale=5e-2, dtype=np.float64, use_batchnorm=True) loss, grads = model.loss(X, y) print 'Initial loss: ', loss for name in sorted(grads): f = lambda _: model.loss(X, y)[0] grad_num = eval_numerical_gradient(f, model.params[name], verbose=False, h=1e-5) print '%s relative error: %.2e' % (name, rel_error(grad_num, grads[name])) if reg == 0: print # - # # Batchnorm for deep networks # Run the following to train a six-layer network on a subset of 1000 training examples both with and without batch normalization. # + # Try training a very deep net with batchnorm hidden_dims = [100, 100, 100, 100, 100] num_train = 1000 small_data = { 'X_train': data['X_train'][:num_train], 'y_train': data['y_train'][:num_train], 'X_val': data['X_val'], 'y_val': data['y_val'], } weight_scale = 2e-2 bn_model = FullyConnectedNet(hidden_dims, weight_scale=weight_scale, use_batchnorm=True) model = FullyConnectedNet(hidden_dims, weight_scale=weight_scale, use_batchnorm=False) bn_solver = Solver(bn_model, small_data, num_epochs=10, batch_size=50, update_rule='adam', optim_config={ 'learning_rate': 1e-3, }, verbose=True, print_every=200) bn_solver.train() solver = Solver(model, small_data, num_epochs=10, batch_size=50, update_rule='adam', optim_config={ 'learning_rate': 1e-3, }, verbose=True, print_every=200) solver.train() # - # Run the following to visualize the results from two networks trained above. You should find that using batch normalization helps the network to converge much faster. # + plt.subplot(3, 1, 1) plt.title('Training loss') plt.xlabel('Iteration') plt.subplot(3, 1, 2) plt.title('Training accuracy') plt.xlabel('Epoch') plt.subplot(3, 1, 3) plt.title('Validation accuracy') plt.xlabel('Epoch') plt.subplot(3, 1, 1) plt.plot(solver.loss_history, 'o', label='baseline') plt.plot(bn_solver.loss_history, 'o', label='batchnorm') plt.subplot(3, 1, 2) plt.plot(solver.train_acc_history, '-o', label='baseline') plt.plot(bn_solver.train_acc_history, '-o', label='batchnorm') plt.subplot(3, 1, 3) plt.plot(solver.val_acc_history, '-o', label='baseline') plt.plot(bn_solver.val_acc_history, '-o', label='batchnorm') for i in [1, 2, 3]: plt.subplot(3, 1, i) plt.legend(loc='upper center', ncol=4) plt.gcf().set_size_inches(15, 15) plt.show() # - # # Batch normalization and initialization # We will now run a small experiment to study the interaction of batch normalization and weight initialization. # # The first cell will train 8-layer networks both with and without batch normalization using different scales for weight initialization. The second layer will plot training accuracy, validation set accuracy, and training loss as a function of the weight initialization scale. # + # Try training a very deep net with batchnorm hidden_dims = [50, 50, 50, 50, 50, 50, 50] num_train = 1000 small_data = { 'X_train': data['X_train'][:num_train], 'y_train': data['y_train'][:num_train], 'X_val': data['X_val'], 'y_val': data['y_val'], } bn_solvers = {} solvers = {} weight_scales = np.logspace(-4, 0, num=20) for i, weight_scale in enumerate(weight_scales): print 'Running weight scale %d / %d' % (i + 1, len(weight_scales)) bn_model = FullyConnectedNet(hidden_dims, weight_scale=weight_scale, use_batchnorm=True) model = FullyConnectedNet(hidden_dims, weight_scale=weight_scale, use_batchnorm=False) bn_solver = Solver(bn_model, small_data, num_epochs=10, batch_size=50, update_rule='adam', optim_config={ 'learning_rate': 1e-3, }, verbose=False, print_every=200) bn_solver.train() bn_solvers[weight_scale] = bn_solver solver = Solver(model, small_data, num_epochs=10, batch_size=50, update_rule='adam', optim_config={ 'learning_rate': 1e-3, }, verbose=False, print_every=200) solver.train() solvers[weight_scale] = solver # + # Plot results of weight scale experiment best_train_accs, bn_best_train_accs = [], [] best_val_accs, bn_best_val_accs = [], [] final_train_loss, bn_final_train_loss = [], [] for ws in weight_scales: best_train_accs.append(max(solvers[ws].train_acc_history)) bn_best_train_accs.append(max(bn_solvers[ws].train_acc_history)) best_val_accs.append(max(solvers[ws].val_acc_history)) bn_best_val_accs.append(max(bn_solvers[ws].val_acc_history)) final_train_loss.append(np.mean(solvers[ws].loss_history[-100:])) bn_final_train_loss.append(np.mean(bn_solvers[ws].loss_history[-100:])) plt.subplot(3, 1, 1) plt.title('Best val accuracy vs weight initialization scale') plt.xlabel('Weight initialization scale') plt.ylabel('Best val accuracy') plt.semilogx(weight_scales, best_val_accs, '-o', label='baseline') plt.semilogx(weight_scales, bn_best_val_accs, '-o', label='batchnorm') plt.legend(ncol=2, loc='lower right') plt.subplot(3, 1, 2) plt.title('Best train accuracy vs weight initialization scale') plt.xlabel('Weight initialization scale') plt.ylabel('Best training accuracy') plt.semilogx(weight_scales, best_train_accs, '-o', label='baseline') plt.semilogx(weight_scales, bn_best_train_accs, '-o', label='batchnorm') plt.legend() plt.subplot(3, 1, 3) plt.title('Final training loss vs weight initialization scale') plt.xlabel('Weight initialization scale') plt.ylabel('Final training loss') plt.semilogx(weight_scales, final_train_loss, '-o', label='baseline') plt.semilogx(weight_scales, bn_final_train_loss, '-o', label='batchnorm') plt.legend() plt.gcf().set_size_inches(10, 15) plt.show() # - # # Question: # Describe the results of this experiment, and try to give a reason why the experiment gave the results that it did. # # Answer: #
15,662
/Analyze_Results.ipynb
e0115ff0df20ee36912a59a6ba40a04c5b09e3fd
[]
no_license
yuvaljacoby/seinfeld_laugh_prediction
https://github.com/yuvaljacoby/seinfeld_laugh_prediction
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
309,253
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # # Analyzing the Results # First thing is of course the imports... # + import numpy as np import pandas as pd import os from sklearn.metrics import confusion_matrix from compare_models import plot_confusion_matrix, calc_best_threshold, compare_models_roc_curve import matplotlib.pyplot as plt # %load_ext autoreload # %autoreload 2 # - # ### Loading the Data & Predictions # # We trained our different models and outputted their results to a directory named 'results'. # We also dumped the train/test data so we can analyze the results that were not seen during training. # # ##### Note: This notebook will not run as is, it needs the directory 'results' containing data & predictions. # If you want to train the models and generate the prediction by yourself, you can run the following command: # python3 run_training.py --run_everything DIRCTORY_PATH = 'results' MODELS_NAMES = ['MLP', 'logistic regression', 'CNN_no_ftrs', 'LSTM_no_ftrs', 'CNN', 'LSTM', 'LSTM_MULTI'] MODELS_CSVs = [os.path.join(DIRCTORY_PATH, 'model_predictions', '{}_predictions.csv'.format(model)) for model in MODELS_NAMES] # Load the train/test data and the different predictions. # + df_train = pd.read_csv(os.path.join(DIRCTORY_PATH, "df_train.csv")) df_test = pd.read_csv(os.path.join(DIRCTORY_PATH, "df_test.csv")) thresholds = dict() for model_name, model_csv in zip(MODELS_NAMES, MODELS_CSVs): y_hat = pd.read_csv(model_csv, header=None).iloc[:, 0] thresholds[model_name] = calc_best_threshold([df_test.is_funny], [y_hat], [model_name])[model_name] df_test['{}_score'.format(model_name)] = y_hat df_test['{}_pred'.format(model_name)] = y_hat > thresholds[model_name] df_test['{}_score_minus_thres'.format(model_name)] = y_hat - thresholds[model_name] # - # ### Visualizing the Results # # Let's see some of the lines in the test data, including the different predictions. # Note that the number mentioned is the difference between the score and the threshold chosen to separate funny and not-funny. # Positive value = funny. # Negative value = not-funny. # We think about this value as "confidence", the higher it gets (in absolute value) the more "sure" the model with its prediction. cols_to_view = ['character', 'txt', 'start', 'end', 'is_funny'] + ['{}_score_minus_thres'.format(model_name) for model_name in MODELS_NAMES] df_test[cols_to_view].head(3) # For example, the first sentence in the test data is Jerry opening a stand-up scene with # 'Have you ever called someone and were disappointed when they answered?' # and the prediction of the stroger models are correct (such as CNN and LSTM including addional features). # ### Scores' plots # Let's try to see how well our data was separated using the different models... # + def plot_scores(model_name): y_hat = df_test['{}_score'.format(model_name)] y_hat_positive = y_hat[df_test['is_funny']] y_hat_negative = y_hat[~df_test['is_funny']] plt.hist(y_hat_negative, bins=100, color='red', alpha=0.6, label='not funny', density=1) plt.hist(y_hat_positive, bins=100, color='green', alpha=0.6, label='funny', density=1) plt.axvline(x=thresholds[model_name], label='threshold', linewidth=3) plt.legend() plt.title("{} scores".format(model_name)) plt.show() for model_name in MODELS_NAMES: plot_scores(model_name) # - # ### ROC Curves # Let's look at the ROC-curve of the different models: auc = compare_models_roc_curve([df_test['is_funny'] for model in MODELS_NAMES], [df_test['{}_score'.format(model)] for model in MODELS_NAMES], MODELS_NAMES, out_dir=None) # ### Confusion Matrices # Let's see the confusion-matrices for the different models: plot_confusion_matrix([df_test['is_funny'] for model in MODELS_NAMES[:4]], [df_test['{}_pred'.format(model_name)] for model_name in MODELS_NAMES[:4]], MODELS_NAMES[:4], out_dir=None) plot_confusion_matrix([df_test['is_funny'] for model in MODELS_NAMES[4:]], [df_test['{}_pred'.format(model_name)] for model_name in MODELS_NAMES[4:]], MODELS_NAMES[4:], out_dir=None) # ### Conclusion # It's not perfect, but it definitely learned something :) # We must remember that our data is quite noisy, so no-one can do it perfectly. # Note that the additional features helped the models greatly. # ### Characters Separation # Let's compare how a good model (e.g. LSTM with multi-sentences) perform on different characters. # Maybe it performs poorly on some character but worse on others? model = 'LSTM_MULTI' for char in ['JERRY', 'GEORGE', 'ELAINE', 'KRAMER']: print("Confusion-matrix for {}".format(char)) mask = df_test['character'] == char plot_confusion_matrix([df_test[mask]['is_funny']], [df_test[mask]['{}_pred'.format(model)]], [model], out_dir=None) # We can see that the performance is quite the same between the 4 main characters. # There are minor changes (1-2%) that are not really significant... # ## Examining the Mistakes # Let's look at the "most severe" False-Positive (i.e. the model thought it's funny but it doesn't). # We also add some context (5 sentences before the allegedly 'funny' sentence). model_name = 'LSTM' y_hat = df_test['{}_score'.format(model_name)] y_hat_neg = y_hat[~df_test['is_funny']] worst_fp_idx = y_hat_neg.iloc[np.argsort(y_hat_neg)[::-1][:1].values].index for i in worst_fp_idx: print('\n{} score is {:.2}'.format(model_name, y_hat.iloc[i])) print(df_test.iloc[(i-5):(i+1)][['character', 'txt', 'is_funny']].to_string(index=False)) # It doesn't seem so severe. # By looking at it (without checking the label) one can think it's supposed to be funny... # Let's look at some False-Negatives (i.e. the model thought it's not-funny but it is). model_name = 'LSTM' y_hat = df_test['{}_score'.format(model_name)] y_hat_pos = y_hat[df_test['is_funny']] worst_fn_idx = y_hat_pos.iloc[np.argsort(y_hat_pos)[3:5].values].index for i in worst_fn_idx: print('\n{} score is {:.2}'.format(model_name, y_hat.iloc[i])) print(df_test.iloc[(i-5):(i+1)][['character', 'txt', 'is_funny']].to_string(index=False)) # These examples are quite difficult, it's not obvious that they're funny (just from the text). # This shows us how difficult this task is...
6,700
/Untitled1.ipynb
7061bc5df74b28df39e2d9e1662d7832d15b1290
[]
no_license
Rohanbagulwar/car_price_predictor
https://github.com/Rohanbagulwar/car_price_predictor
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
176,394
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # !pip install numpy # !pip install sklearn # !pip install seaborn # !pip install pandas # !pip install pickle # !pip install matplotlib import pandas as pd import numpy as np import seaborn as sns import matplotlib.pyplot as plt import os os.listdir() df=pd.read_csv('car data.csv') df.head(5) df['Fuel_Type'].unique() df.isnull().sum() df['Car_Name'].dtype df['Car_Name'].value_counts() df['Owner'].unique() for i in ['Transmission','Owner','Seller_Type']: print(df[i].unique()) for i in df['Year']: df['Year_old']=2020-i final_dataset=df.copy() final_dataset.drop('Car_Name',axis=1,inplace=True) final_dataset final_dataset.drop(['Year'],axis=1,inplace=True) final_dataset # for i in final_dataset=pd.get_dummies(final_dataset,drop_first=True) final_dataset plt.figure(figsize=(10,10)) sns.heatmap(final_dataset.corr(),annot=True) plt.show() x=final_dataset.iloc[:,1:] y=final_dataset.iloc[:,0] from sklearn.ensemble import ExtraTreesRegressor model=ExtraTreesRegressor() model.fit(x,y) pd.Series(model.feature_importances_,index=x.columns).nlargest(5).plot(kind='bar') from sklearn.model_selection import train_test_split x_train,x_test,y_train,y_test=train_test_split(x,y,test_size=0.2) from sklearn.ensemble import RandomForestRegressor r_reg=RandomForestRegressor() n_estimator=[int(x) for x in np.linspace(start=100,stop=1200,num=12)] max_features=['auto','sqrt'] min_samples_split=[2,5,10,15,100] max_depth=[int(i) for i in np.linspace(start=30,stop=120,num=10)] from sklearn.model_selection import RandomizedSearchCV random_grid={ 'n_estimators':n_estimator, 'max_features':max_features, 'min_samples_leaf':min_samples_split, 'max_depth':max_depth } rf=RandomForestRegressor() rfa=RandomizedSearchCV(rf,param_distributions=random_grid,scoring='neg_mean_squared_error',n_iter=10,random_state=42,cv=10,verbose=2,n_jobs=1) rfa.fit(x_train,y_train) rfa.best_params_ rfa.best_score_ prediction=rfa.predict(x_test) sns.distplot(y_test-prediction) plt.scatter(y_test,prediction) import pickle file=open('random_forest.pkl','wb') pickle.dump(rfa,file) file.close() # !pip freeze > requirement.txt filename = 'random_forest.pkl' with open(filename, 'rb') as f: model = pickle.load(f) model.predict([]) certifi==2020.6.20 chardet==3.0.4 click==7.1.2 Flask==1.1.2 idna==2.10 itsdangerous==1.1.0 Jinja2==2.11.2 joblib==0.15.1 jsonify==0.5 MarkupSafe==1.1.1 numpy==1.19.0 requests==2.24.0 scikit-learn==0.23.1 scipy==1.5.0 sklearn==0.0 threadpoolctl==2.1.0 urllib3==1.25.9 Werkzeug==1.0.1 wincertstore==0.2 gunicorn # !pip install flask # !pip list # !pip install jsonify # !pip install requests # !pip freeze > requirements.txt # + from flask import Flask, render_template, request import jsonify import requests import pickle import numpy as np import sklearn from sklearn.preprocessing import StandardScaler app = Flask(__name__) model = pickle.load(open('random_forest.pkl', 'rb')) @app.route('/',methods=['GET']) def Home(): return render_template('index.html') standard_to = StandardScaler() @app.route("/predict", methods=['POST']) def predict(): Fuel_Type_Diesel=0 if request.method == 'POST': Year = int(request.form['Year']) Present_Price=float(request.form['Present_Price']) Kms_Driven=int(request.form['Kms_Driven']) Kms_Driven2=np.log(Kms_Driven) Owner=int(request.form['Owner']) Fuel_Type_Petrol=request.form['Fuel_Type_Petrol'] if(Fuel_Type_Petrol=='Petrol'): Fuel_Type_Petrol=1 Fuel_Type_Diesel=0 else: Fuel_Type_Petrol=0 Fuel_Type_Diesel=1 Year=2020-Year Seller_Type_Individual=request.form['Seller_Type_Individual'] if(Seller_Type_Individual=='Individual'): Seller_Type_Individual=1 else: Seller_Type_Individual=0 Transmission_Mannual=request.form['Transmission_Mannual'] if(Transmission_Mannual=='Mannual'): Transmission_Mannual=1 else: Transmission_Mannual=0 prediction=model.predict([[Present_Price,Kms_Driven2,Owner,Year,Fuel_Type_Diesel,Fuel_Type_Petrol,Seller_Type_Individual,Transmission_Mannual]]) output=round(prediction[0],2) if output<0: return render_template('index.html',prediction_texts="Sorry you cannot sell this car") else: return render_template('index.html',prediction_text="You Can Sell The Car at {}".format(output)) else: return render_template('index.html') if __name__=="__main__": app.run(debug=True) # -
4,916
/3.3-work-on-xml/sliderule_dsi_xml_exercise.ipynb
519b23f7589a9ef4be2b000d23c08308585dc1c6
[]
no_license
oldrabbitramen/datascienceintensive
https://github.com/oldrabbitramen/datascienceintensive
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
19,271
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # # 简易NN实现性别预测 # ##### Copyright © 2020 by Wangchuwen,2018202114. All rights reserved. # ## 一.构造神经网络 # + import numpy as np import pandas as pd import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D from sklearn.preprocessing import normalize def sigmoid(x): # Sigmoid activation function: f(x) = 1 / (1 + e^(-x)) return 1 / (1 + np.exp(-x)) def deriv_sigmoid(x): # Derivative of sigmoid: f'(x) = f(x) * (1 - f(x)) fx = sigmoid(x) return fx * (1 - fx) def mse_loss(y_true, y_pred): # y_true and y_pred are numpy arrays of the same length. return ((y_true - y_pred) ** 2).mean() class OurNeuralNetwork: ''' A neural network with: - 2 inputs - a hidden layer with 2 neurons (h1, h2) - an output layer with 1 neuron (o1) *** DISCLAIMER ***: The code below is intended to be simple and educational, NOT optimal. Real neural net code looks nothing like this. DO NOT use this code. Instead, read/run it to understand how this specific network works. ''' def __init__(self): # 权重,Weights self.w1 = 0.5734666654181668 self.w2 = -0.7347844458644603 self.w3 = 0.35871598754027156 self.w4 = 0.17227684753124822 self.w5 = -0.05344509263243259 self.w6 = 1.3818657559335772 # 截距项,Biases self.b1 = -0.013258754892991331 self.b2 = -0.8288385779821897 self.b3 = -0.5300464985969835 def feedforward(self, x): # x is a numpy array with 2 elements. h1 = sigmoid(self.w1 * x[0] + self.w2 * x[1] + self.b1) h2 = sigmoid(self.w3 * x[0] + self.w4 * x[1] + self.b2) o1 = sigmoid(self.w5 * h1 + self.w6 * h2 + self.b3) return o1 def train(self, data, all_y_trues,r,e,k): ''' - data is a (n x 2) numpy array, n = # of samples in the dataset. - all_y_trues is a numpy array with n elements. Elements in all_y_trues correspond to those in data. ''' learn_rate = r epochs = e # number of times to loop through the entire dataset error=[] for epoch in range(epochs): for x, y_true in zip(data, all_y_trues): # --- Do a feedforward (we'll need these values later) sum_h1 = self.w1 * x[0] + self.w2 * x[1] + self.b1 h1 = sigmoid(sum_h1) sum_h2 = self.w3 * x[0] + self.w4 * x[1] + self.b2 h2 = sigmoid(sum_h2) sum_o1 = self.w5 * h1 + self.w6 * h2 + self.b3 o1 = sigmoid(sum_o1) y_pred = o1 # --- Calculate partial derivatives. # --- Naming: d_L_d_w1 represents "partial L / partial w1" d_L_d_ypred = -2 * (y_true - round(y_pred)) # Neuron o1 d_ypred_d_w5 = h1 * deriv_sigmoid(sum_o1) d_ypred_d_w6 = h2 * deriv_sigmoid(sum_o1) d_ypred_d_b3 = deriv_sigmoid(sum_o1) d_ypred_d_h1 = self.w5 * deriv_sigmoid(sum_o1) d_ypred_d_h2 = self.w6 * deriv_sigmoid(sum_o1) # Neuron h1 d_h1_d_w1 = x[0] * deriv_sigmoid(sum_h1) d_h1_d_w2 = x[1] * deriv_sigmoid(sum_h1) d_h1_d_b1 = deriv_sigmoid(sum_h1) # Neuron h2 d_h2_d_w3 = x[0] * deriv_sigmoid(sum_h2) d_h2_d_w4 = x[1] * deriv_sigmoid(sum_h2) d_h2_d_b2 = deriv_sigmoid(sum_h2) # --- Update weights and biases # Neuron h1 self.w1 -= learn_rate * d_L_d_ypred * d_ypred_d_h1 * d_h1_d_w1 self.w2 -= learn_rate * d_L_d_ypred * d_ypred_d_h1 * d_h1_d_w2 self.b1 -= learn_rate * d_L_d_ypred * d_ypred_d_h1 * d_h1_d_b1 # Neuron h2 self.w3 -= learn_rate * d_L_d_ypred * d_ypred_d_h2 * d_h2_d_w3 self.w4 -= learn_rate * d_L_d_ypred * d_ypred_d_h2 * d_h2_d_w4 self.b2 -= learn_rate * d_L_d_ypred * d_ypred_d_h2 * d_h2_d_b2 # Neuron o1 self.w5 -= learn_rate * d_L_d_ypred * d_ypred_d_w5 self.w6 -= learn_rate * d_L_d_ypred * d_ypred_d_w6 self.b3 -= learn_rate * d_L_d_ypred * d_ypred_d_b3 # --- Calculate total loss at the end of each epoch if epoch % 1 == 0: #y_preds = np.rint(np.apply_along_axis(self.feedforward, 1, data)) y_preds = np.apply_along_axis(self.feedforward, 1, data) loss = mse_loss(all_y_trues, y_preds) #print("Epoch %d loss: %.3f" % (epoch, loss)) #print(y_preds) error.append(loss) if(k==1): if epoch == e-1: plt.figure(figsize=(12, 6)) plt.plot(np.arange(0,e), error, color='red', linestyle='dashed', marker='o', markerfacecolor='blue', markersize=10) plt.title('Learning Rate=%1.3f'%learn_rate) plt.xlabel('Epoch') plt.ylabel('Error') plt.show() def predict(self,X): #y_pre = np.rint(np.apply_along_axis(self.feedforward, 1, X)) y_pre = np.apply_along_axis(self.feedforward, 1, X) return y_pre # - # ## 二.装载数据集 url='classdata.csv' dataframe=pd.read_csv(url) # ## 三.数据预处理 def judge(x): if '男' == x: return 1 elif '女'== x: return 0 dataframe['MW'] = dataframe.S.apply(lambda x: judge(x)) # ## 四.分割训练集和测试集 # + data=dataframe.values X=data[:,1:3] Y=data[:,4] X_train=np.array(X)[1::2,].astype(float) X_test=np.array(X)[0::2,].astype(float) Y_train=np.array(Y)[1::2,].astype(float) Y_test=np.array(Y)[0::2,].astype(float) X_train= normalize(X_train, axis=0, norm='max') #X_train[:,1]=X_train[:,1] #X_train[:,0]=X_train[:,0] X_test= normalize(X_test, axis=0, norm='max') #X_test[:,1]=X_test[:,1] #X_train[:,0]=X_train[:,0] # - # ## 五.训练神经网络并输出损失收敛图 # + # Train our neural network! network = OurNeuralNetwork() network.train(X_train,Y_train,0.02,10,1) # - # ## 六.测试集上的分类效果 # + Y_pred=network.predict(X_test) fig=plt.figure() ax1 = Axes3D(fig) z = np.array(Y_test).astype(float) zp = np.rint(np.array(Y_pred).astype(float)) x = np.array(X_test[:,0]).astype(float) y = np.array(X_test[:,1]).astype(float) print('预测值为:') print(zp) print('真实值为:') print(z) ax1.scatter3D(x,y,z,c='b') #真实值 ax1.scatter3D(x,y,zp,c='r',marker = '^') #预测值 ax1.set_xlabel('height') ax1.set_ylabel('weight') ax1.set_zlabel('sex') ax1.set_title("red is pred,blue is real") plt.show() # - hisCountry is not None: lakeCountryList += thisCountry.find('name').text + ' | ' # get the highest elevated airport for airports in document.iterfind('airport'): # compare the highest elevation using elevation. make sure all airports have elevation and is a digit thisElev = airports.find('elevation').text if thisElev is not None and thisElev.isdigit() and float(thisElev) > float(a_elev): a_name = airports.find('name').text a_elev = airports.find('elevation').text a_loc = airports.attrib['country'].split() airCountryList = 'Country: ' for cty in a_loc: thisCountry = document.find("country[@car_code='"+cty+"']") if thisCountry is not None: airCountryList += thisCountry.find('name').text print r_name + '-' + r_length + 'KM ' + riverCountryList print l_name + '-' + l_area + 'KM ' + lakeCountryList print a_name + '-' + a_elev + 'M ' + airCountryList # -
7,334
/Plus Minus Hacker Rank.ipynb
df5bb6333aa58a7f8e38adbf93ada3be9967f333
[]
no_license
vishal254/LockCodedown-5
https://github.com/vishal254/LockCodedown-5
0
1
null
2021-01-20T15:02:17
2020-10-03T17:00:36
Jupyter Notebook
Jupyter Notebook
false
false
.py
1,450
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: conda_python3 # language: python # name: conda_python3 # --- # # Customer Churn Prediction with XGBoost # _**Using Gradient Boosted Trees to Predict Mobile Customer Departure**_ # # --- # # --- # # ## Contents # # 1. [Background](#Background) # 1. [Setup](#Setup) # 1. [Data](#Data) # 1. [Train](#Train) # 1. [Inference Pipeline](#Inference) # # # --- # # ## Background # # _This notebook has been adapted from an [AWS blog post](https://aws.amazon.com/blogs/ai/predicting-customer-churn-with-amazon-machine-learning/)_ # # Losing customers is costly for any business. Identifying unhappy customers early on gives you a chance to offer them incentives to stay. This notebook describes using machine learning (ML) for the automated identification of unhappy customers, also known as customer churn prediction. ML models rarely give perfect predictions though, so this notebook is also about how to incorporate the relative costs of prediction mistakes when determining the financial outcome of using ML. # # We use an example of churn that is familiar to all of us–leaving a mobile phone operator. Seems like I can always find fault with my provider du jour! And if my provider knows that I’m thinking of leaving, it can offer timely incentives–I can always use a phone upgrade or perhaps have a new feature activated–and I might just stick around. Incentives are often much more cost effective than losing and reacquiring a customer. # # --- # # ## Setup # # _This notebook was created and tested on an ml.m4.xlarge notebook instance._ # # Let's start by specifying: # # - The S3 bucket and prefix that you want to use for training and model data. You need to create an S3 bucket to store your datasets and the model you build. Follow this [instruction](https://docs.aws.amazon.com/AmazonS3/latest/user-guide/create-bucket.html) to create an S3 bucket. This should be within the same region as the Notebook Instance, training, and hosting. # - The IAM role arn used to give training and hosting access to your data. See the documentation for how to create these. Note, if more than one role is required for notebook instances, training, and/or hosting, please replace the boto regexp with a the appropriate full IAM role arn string(s). # + isConfigCell=true tags=["parameters"] bucket = 'QS-SM-customer-churn' prefix = 'sagemaker/QS-xgboost-churn' # Define IAM role import boto3 import re from sagemaker import get_execution_role role = get_execution_role() # - # Next, we'll import the Python libraries we'll need for the remainder of the exercise. import pandas as pd import numpy as np import matplotlib.pyplot as plt import io import os import sys import time import json from IPython.display import display from time import strftime, gmtime import sagemaker from sagemaker.predictor import csv_serializer # --- # ## Data # # Mobile operators have historical records on which customers ultimately ended up churning and which continued using the service. We can use this historical information to construct an ML model of one mobile operator’s churn using a process called training. After training the model, we can pass the profile information of an arbitrary customer (the same profile information that we used to train the model) to the model, and have the model predict whether this customer is going to churn. Of course, we expect the model to make mistakes–after all, predicting the future is tricky business! But I’ll also show how to deal with prediction errors. # # The dataset we use is publicly available and was mentioned in the book [Discovering Knowledge in Data](https://www.amazon.com/dp/0470908742/) by Daniel T. Larose. It is attributed by the author to the University of California Irvine Repository of Machine Learning Datasets. Let's download and read that dataset in now: # !wget http://dataminingconsultant.com/DKD2e_data_sets.zo = number_1 + number_2 print('the sum of the numbers you entered is', sumo) answer = input('Do you wanna preform the operation again?') x = int(input('Enter a number.')) x += 1 print(x) x *= 2 print(x) x /= 10 print(x) x -=100 print(x) # + number = int(input('Enter a positive number.')) if number <= 0: print('Error') number = int(input('Please enter a valid number')) print(number) else: print(number) # + number = int(input('Enter a number between 1 and 100.')) if number < 1 or number > 100: print('Error') number = int(input('Please enter a valid number.')) else: print(number) # - # # Chapter Five Exercises - Functions # ### Please submit your answers to the following Review Questions. # #### Refer the book for the question prompt. # ### Multiple choice: # #### 1-20 # + print('Oppgave 1: c, a group of statements that exsit whitin a program for the purpose of performing a specific task is an function.') print('Oppgave 2: a, a design thechnique that helps to reduce the duplication of code whitin a program and is a benefit of using functions is code reuse.') print('Oppgave 3: d, the first line of a function definition is known as the header.') print('Oppgave 4: b, you call a function to execute it.') print('Oppgave 5: a, A design techniue that progrmmers use to break down an algorithm into functions is known as top-down design.') print('Oppgave 6: d, A hierarchy chart is a diagram that gives a visual representation of the relationships between functions in a program.') print('Oppgave 7: b, A local variable is a variable that is created inside a function.') print('Oppgave 8: c, A scope is the part of a program in which a variable may be accessed.') print('Oppgave 9: a, An agrument is a piece of data that is sent into a function.') print('Oppgave 10: b, A parameter is a special variable that receives a piece of data when a function is called.') print('Oppgave 11: d, a variable that is visible to every function in a program file is a global variable.') print('Oppgave 12: b, when possible, you should avoid usin global varables in a program.') print('Oppgave 13: b, Library function is a prewritten function that is built into a programming language.') print('Oppgave 14: b, randint is a standard library function that returns a random integer within a specified range of values.') print('Oppgave 15: ') print('Oppgave 16:') print('Oppgave 17: d, the return statement causes a function to end and sends a value back to the part of the program that called the function.') print('Oppgave 18: b, the IPO chart is a design tool that describes the input, porcessing, and output of a function.') print('Oppgave 19: c, the Boolean type of function returns either True or False.') print('Oppgave 20: c, sqrt is a math module function.') # - # ### True or False: # #### 1-15 # + print('Oppgave 1: false') print('Oppgave 2: true') print('Oppgave 3: true') print('Oppgave 4: false') print('Oppgave 5: false') print('Oppgave 6: true') print('Oppgave 7: false') print('Oppgave 8: false') print('Oppgave 9: true') print('Oppgave 10: false') print('Oppgave 11: true') print('Oppgave 12: false') print('Oppgave 13: true') print('Oppgave 14: true') print('Oppgave 15: false') # - # #### Algorithm workbench: # #### 1, 3-5, 10 # + def shout(string): print(string.upper() + '!') shout('I hate phyton') # + def my_function(a, b, c): print(my_function) my_function(3, 2, 1) # + 4 def main(): x = 1 y = 3.4 print(x, y) change_us(x, y) print(x, y) def change_us(a, b): a = 0 b = 0 print(a, b) main() # + def my_function(x, y): return x[y] x = 'testing' y = 2 print(my_function) # + def is_valid_length(int, str): if len(str) > len(int): return 'false' else: return 'true' str = 'hello' int = 6 print(is_valid_length) # - ing these feature pairs in some machine learning algorithms can create catastrophic problems, while in others it will only introduce minor redundancy and bias. We should remove one feature from each of the highly correlated pairs. # # We will use Amazon SageMaker built-in Scikit-learn library for preprocessing (and also postprocessing), and then use the Amazon SageMaker built-in XGboost algorithm for predictions. We’ll deploy both the library and the algorithm on the same endpoint using the Amazon SageMaker Inference Pipelines feature so you can pass raw input data directly to Amazon SageMaker. We’ll also reuse the preprocessing code between training and inference to reduce development overhead and errors. # # To run Scikit-learn on Sagemaker `SKLearn` Estimator with a script as an entry point. The training script is very similar to a training script you might run outside of SageMaker. Also, as this data set is pretty small in term of size, we use the 'local' mode for preprocessing and upload the transformer and transformed data into S3. # + from sagemaker.sklearn.estimator import SKLearn sagemaker_session = sagemaker.Session() git_config = {'repo': 'https://github.com/aws-samples/quicksight-sagemaker-integration-blog.git','branch': 'master'} script_path = 'quicksight-sagemaker-integration/preprocessing.py' sklearn_preprocessor = SKLearn( entry_point=script_path, git_config=git_config, role=role, instance_type="local", framework_version="0.20.0") sklearn_preprocessor.fit({'train': s3_input_train}) # - # ### Preparing the training and validation dataset <a class="anchor" id="preprocess_train_data"></a> # Now that our proprocessor is properly fitted, let's go ahead and preprocess our training and validation data. Let's use batch transform to directly preprocess the raw data and store right back into s3. # + # Define a SKLearn Transformer from the trained SKLearn Estimator transform_train_output_path = 's3://{}/{}/{}/'.format(bucket, prefix, 'transformtrain-train-output') scikit_learn_inferencee_model = sklearn_preprocessor.create_model(env={'TRANSFORM_MODE': 'feature-transform'}) transformer_train = scikit_learn_inferencee_model.transformer( instance_count=1, instance_type='local', assemble_with = 'Line', output_path = transform_train_output_path, accept = 'text/csv') # Preprocess training input transformer_train.transform(s3_input_train.config['DataSource']['S3DataSource']['S3Uri'], content_type='text/csv') print('Waiting for transform job: ' + transformer_train.latest_transform_job.job_name) transformer_train.wait() preprocessed_train_path = transformer_train.output_path + transformer_train.latest_transform_job.job_name print(preprocessed_train_path) # - # Define a SKLearn Transformer from the trained SKLearn Estimator transform_validation_output_path = 's3://{}/{}/{}/'.format(bucket, prefix, 'transformtrain-validation-output') transformer_validation = scikit_learn_inferencee_model.transformer( instance_count=1, instance_type='local', assemble_with = 'Line', output_path = transform_validation_output_path, accept = 'text/csv') # Preprocess validation input transformer_validation.transform(s3_input_validation.config['DataSource']['S3DataSource']['S3Uri'], content_type='text/csv') print('Waiting for transform job: ' + transformer_validation.latest_transform_job.job_name) transformer_validation.wait() preprocessed_validation_path = transformer_validation.output_path+transformer_validation.latest_transform_job.job_name print(preprocessed_validation_path) # --- # ## Train # # Moving onto training, first we'll need to specify the locations of the XGBoost algorithm containers. from sagemaker.amazon.amazon_estimator import get_image_uri container = sagemaker.image_uris.retrieve("xgboost", boto3.Session().region_name, "1.2-1") # Then, because we're training with the CSV file format, we'll create `s3_input`s that our training function can use as a pointer to the files in S3. s3_input_train_processed = sagemaker.session.TrainingInput( preprocessed_train_path, distribution='FullyReplicated', content_type='text/csv', s3_data_type='S3Prefix') print(s3_input_train_processed.config) s3_input_validation_processed = sagemaker.session.TrainingInput( preprocessed_validation_path, distribution='FullyReplicated', content_type='text/csv', s3_data_type='S3Prefix') print(s3_input_validation_processed.config) # Now, we can specify a few parameters like what type of training instances we'd like to use and how many, as well as our XGBoost hyperparameters. A few key hyperparameters are: # - `max_depth` controls how deep each tree within the algorithm can be built. Deeper trees can lead to better fit, but are more computationally expensive and can lead to overfitting. There is typically some trade-off in model performance that needs to be explored between a large number of shallow trees and a smaller number of deeper trees. # - `subsample` controls sampling of the training data. This technique can help reduce overfitting, but setting it too low can also starve the model of data. # - `num_round` controls the number of boosting rounds. This is essentially the subsequent models that are trained using the residuals of previous iterations. Again, more rounds should produce a better fit on the training data, but can be computationally expensive or lead to overfitting. # - `eta` controls how aggressive each round of boosting is. Larger values lead to more conservative boosting. # - `gamma` controls how aggressively trees are grown. Larger values lead to more conservative models. # # More detail on XGBoost's hyperparmeters can be found on their GitHub [page](https://github.com/dmlc/xgboost/blob/master/doc/parameter.md). # + sess = sagemaker.Session() xgb = sagemaker.estimator.Estimator(container, role, instance_count=1, instance_type='ml.m4.xlarge', output_path='s3://{}/{}/output'.format(bucket, prefix), sagemaker_session=sess) xgb.set_hyperparameters(max_depth=5, eta=0.2, gamma=4, min_child_weight=6, subsample=0.8, objective='binary:logistic', num_round=100) xgb.fit({'train': s3_input_train_processed, 'validation': s3_input_validation_processed}) # - # ## Post-processing # Define a SKLearn Transformer from the trained SKLearn Estimator transform_postprocessor_path = 's3://{}/{}/{}/'.format(bucket, prefix, 'transformtrain-postprocessing-output') scikit_learn_post_process_model = sklearn_preprocessor.create_model(env={'TRANSFORM_MODE': 'inverse-label-transform'}) transformer_post_processing = scikit_learn_post_process_model.transformer( instance_count=1, instance_type='local', assemble_with = 'Line', output_path = transform_postprocessor_path, accept = 'text/csv') # ## Inference Pipeline <a class="anchor" id="pipeline_setup"></a> # Setting up a Machine Learning pipeline can be done with the create_model(). In this example, we configure our pipeline model with the fitted Scikit-learn inference model, the fitted Xgboost model and the psotprocessing model. timestamp_prefix = strftime("%Y-%m-%d-%H-%M-%S", gmtime()) model_name = 'QS-inference-pipeline-' + timestamp_prefix client = boto3.client('sagemaker') response = client.create_model( ModelName=model_name, Containers=[ { 'Image': sklearn_preprocessor.image_uri, 'ModelDataUrl': sklearn_preprocessor.model_data, 'Environment': { "SAGEMAKER_SUBMIT_DIRECTORY": sklearn_preprocessor.uploaded_code.s3_prefix, "TRANSFORM_MODE": "feature-transform", "SAGEMAKER_CONTAINER_LOG_LEVEL": str(sklearn_preprocessor.container_log_level), "SAGEMAKER_REGION": sklearn_preprocessor.sagemaker_session.boto_region_name, "SAGEMAKER_PROGRAM": sklearn_preprocessor.uploaded_code.script_name } }, { 'Image': xgb.image_uri, 'ModelDataUrl': xgb.model_data, "Environment": {} }, { 'Image': scikit_learn_post_process_model.image_uri, 'ModelDataUrl': scikit_learn_post_process_model.model_data, 'Environment': { "SAGEMAKER_SUBMIT_DIRECTORY": sklearn_preprocessor.uploaded_code.s3_prefix, "TRANSFORM_MODE": "inverse-label-transform", "SAGEMAKER_CONTAINER_LOG_LEVEL": str(sklearn_preprocessor.container_log_level), "SAGEMAKER_REGION": sklearn_preprocessor.sagemaker_session.boto_region_name, "SAGEMAKER_PROGRAM": sklearn_preprocessor.uploaded_code.script_name } }, ], ExecutionRoleArn = role, ) model_name
17,085
/Deep-Learning/Trials/Simple Neural Network.ipynb
b6b4596bd610ce1d5ff125e9af396fbb7d12d3ca
[]
no_license
teodora-petkova/Artificial-Intelligence-Course
https://github.com/teodora-petkova/Artificial-Intelligence-Course
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
111,428
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # %matplotlib inline import numpy as np import pandas as pd import matplotlib.pyplot as plt import functools np.random.seed(42) # # Simple Neural Network # ## Description ... class NeuralNetwork: def __init__(self, input_size, hidden_size, output_size): self.W1 = np.random.rand(input_size, hidden_size) self.W2 = np.random.rand(hidden_size, output_size) self.b1 = np.zeros((1, hidden_size)) self.b2 = np.zeros((1, output_size)) def feedforward(self, X, sigma, outsigma): A0 = X self.Z1 = np.dot(A0, self.W1) + self.b1 self.A1 = sigma(self.Z1) self.Z2 = np.dot(self.A1, self.W2) + self.b2 self.A2 = outsigma(self.Z2) return self.A2 def backprop(self, X, y, d_sigma, d_outsigma, d_loss, alpha=1): A0 = X m = X.shape[0] d_Z2 = d_loss(self.A2, y) * d_outsigma(self.Z2) self.d_W2 = (1/m) * np.dot(self.A1.T, d_Z2) self.d_b2 = (1/m) * np.sum(d_Z2, axis=0, keepdims=True) d_Z1 = np.dot(d_Z2, self.W2.T) * d_sigma(self.Z1) self.d_W1 = (1/m) * np.dot(A0.T, d_Z1) self.d_b1 = (1/m) * np.sum(d_Z1, axis=0, keepdims=True) self.W1 -= alpha * self.d_W1 self.W2 -= alpha * self.d_W2 self.b1 -= alpha * self.d_b1 self.b2 -= alpha * self.d_b2 def train(self, X, y, sigma, d_sigma, outsigma, d_outsigma, cost, d_cost): y_hat = self.feedforward(X, sigma, outsigma) loss_error = cost(y_hat, y) self.backprop(X, y, d_sigma, d_outsigma, d_cost) return y_hat, loss_error # gradient check (in process...) def gradient_check_W1(self, X, y, sigma, outsigma, cost, epsilon = 1e-7): gradapprox = np.zeros(self.W1.shape) saved_W1 = self.W1 for i in range(self.W1.shape[0]): for j in range(self.W1.shape[1]): self.W1[i][j] = self.W1[i][j] + epsilon y_hat = self.feedforward(X, sigma, outsigma) J_plus = cost(y_hat, y) self.W1 = saved_W1 self.W1[i][j] = self.W1[i][j] - epsilon y_hat = self.feedforward(X, sigma, outsigma) J_minus = cost(y_hat, y) gradapprox[i][j] = (J_plus - J_minus) / (2 * epsilon) self.W1 = saved_W1 rel_error = lambda x, y: np.max(np.abs(x - y) / (np.maximum(epsilon, np.abs(x) + np.abs(y)))) diff = rel_error(self.d_W1, gradapprox) return diff # ## Activation Function # # Example of an activation function. # Sigmoid is used for classification problems. # # $$ S(x)= \frac{1}{1+e^{-x}} $$ # + def sigmoid(x): return 1/(1 + np.exp(-x)) def sigmoid_derivative(x): return sigmoid(x) * (1 - sigmoid(x)) # - x = np.arange(-10, 11, 0.1) y = sigmoid(x) y_prim = sigmoid_derivative(x) plt.plot(x, y) plt.plot(x, y_prim) plt.show() # ## Loss Function # + def mse(y_hat, y): return np.mean(np.square(y_hat - y)) def mse_derivative(y_hat, y): return 2*(y_hat - y) # + X=np.array(([0,0,1], [0,1,1], [1,0,1], [1,1,1]), dtype=float) y=np.array(([0],[1],[1],[0]), dtype=float) input_size = X.shape[1] hidden_size = 4 output_size = 1 nn = NeuralNetwork(input_size, hidden_size, output_size) for i in range(2001): y_hat, loss = nn.train(X, y, sigmoid, sigmoid_derivative, sigmoid, sigmoid_derivative, mse, mse_derivative) if i % 100 == 0: print (f"for iteration #{str(i)}: {str(loss)}") print ("Final predicted Output: \n" + str(y_hat)) # gradient check ...still in process... diff = nn.gradient_check_W1(X, y, sigmoid, sigmoid, mse) print("diff gradients W1:", diff) # + N = 100 # the number of points per class D = 2 # the dimensionality (x, y coordinates) C = 3 # the number of classes X = np.zeros((N*C, D)) # data matrix (each row = single example) y = np.zeros((N*C, C), dtype='uint8') # class labels for j in range(C): ix = range(N*j, N*(j+1)) r = np.linspace(0, 1, N) # radius t = np.linspace(j*4,(j+1)*4,N) + np.random.randn(N)*0.2 # theta X[ix] = np.c_[r*np.sin(t), r*np.cos(t)] y[ix] = np.zeros(C) # y should be one-hot encoded y[ix, j] = 1 # lets visualize the data: plt.scatter(X[:, 0], X[:, 1], c=y, s=40, cmap=plt.cm.Spectral) plt.show() # + def relu(x): return np.maximum(0, x) def relu_derivative(x): dx = lambda t: 1 if t > 0 else 0 return np.vectorize(dx)(x) def softmax(a, y, N): s = np.exp(a) / np.sum(np.exp(a), axis=1, keepdims=True) return s def cross_entropy(p, q, y, N): #pp = p[range(N),y] return - p * np.log(q+0.001) + 0.001 def softmax_derivative(x): return 1 def cross_entropy_derivative(y_hat, y, N): #yhat = y_hat[range(N), y] return y_hat - y # - h = 100 nn2 = NeuralNetwork(D, h, 3) for i in range(3001): y_hat, loss = nn2.train(X, y, relu, relu_derivative, functools.partial(softmax, y = y, N = X.shape[0]), softmax_derivative, functools.partial(cross_entropy, y = y, N = X.shape[0]), functools.partial(cross_entropy_derivative, N = X.shape[0])) if i % 100 == 0: print (f"for iteration #{str(i)}: {str(np.sum(loss))}") scores = nn2.Z2 predicted_classes = np.argmax(scores, axis=1) y_classes = np.argmax(np.array(y), axis=1) print (f"training accuracy: {np.mean(predicted_classes == y_classes)}") # plot the resulting classifier h = 0.02 x_min, x_max = X[:, 0].min() - 0.1, X[:, 0].max() + 0.1 y_min, y_max = X[:, 1].min() - 0.1, X[:, 1].max() + 0.1 xx, yy = np.meshgrid(np.arange(x_min, x_max, h), np.arange(y_min, y_max, h)) input_dots = np.c_[xx.ravel(), yy.ravel()] Z = np.dot(np.maximum(0, np.dot(input_dots, nn2.W1) + nn2.b1), nn2.W2) + nn2.b2 Z = np.argmax(Z, axis=1) Z = Z.reshape(xx.shape) fig = plt.figure() plt.contourf(xx, yy, Z, cmap=plt.cm.Spectral, alpha=0.8) plt.scatter(X[:, 0], X[:, 1], c=y, s=40, cmap=plt.cm.Spectral) plt.xlim(xx.min(), xx.max()) plt.ylim(yy.min(), yy.max()) # Bibliography: # # 1. Softmax # * https://deepnotes.io/softmax-crossentropy # * https://aimatters.wordpress.com/2019/06/17/the-softmax-function-derivative/ # * https://aimatters.wordpress.com/2020/06/14/derivative-of-softmax-layer/ # # 2. Entropy/ Cross-Entropy # * https://www.youtube.com/watch?v=ErfnhcEV1O8 # * https://machinelearningmastery.com/cross-entropy-for-machine-learning/ # * https://datascience.stackexchange.com/questions/20296/cross-entropy-loss-explanation # # 3. Neural Network: # * https://cs231n.github.io/neural-networks-case-study/ # * https://cs231n.github.io/ # * https://github.com/tyz910 # * http://cs231n.stanford.edu/handouts/linear-backprop.pdf # * https://datascience-enthusiast.com/DL/Improving_DeepNeural_Networks_Gradient_Checking.html # * https://peterroelants.github.io/ # # 4. Numpy axis: # * https://i.stack.imgur.com/Z29Nn.jpg
7,506
/Python Assignment-1.ipynb
fc051c5a70cf90b4ecef6d218e9989b5f8fe5d66
[]
no_license
Dwarakamai-Bathula/assignment1
https://github.com/Dwarakamai-Bathula/assignment1
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
2,521
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- nl=[] for x in range(2000,3200): if (x%7==0) and (x%5!=0): nl.append(str(x)) print(','.join(nl)) print("Enter First Name:") first=str(input()) print("Enter Last Name:") last=str(input()) print(last+' '+first) pi=3.142 d=12 r=d/2 volume=4/3*(3.14*r*r*r) print("volume of sphere with diameter 12cm is:",volume)
591
/notebooks/Golden_Pass_2/Pass_2_Excitatory_4_Auto_Classifier_Whole_Neuron_Run_2/Testing_Datajoint_Adapted_Classifier.ipynb
99bf2eda0ca107e85af6121cf8f8b4af0cf462c3
[]
no_license
celiibrendan/Complete_Pinky100_Pipeline
https://github.com/celiibrendan/Complete_Pinky100_Pipeline
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
7,971
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- from whole_neuron_classifier_datajoint_adapted import extract_branches_whole_neuron import datajoint as dj import numpy as np import datajoint as dj import trimesh import time # + dj.config['database.host'] = '10.28.0.34' dj.config['database.user'] = 'celiib' dj.config['database.password'] = 'newceliipass' #schema = dj.schema('microns_ta3p100') #ta3p100 = dj.create_virtual_module('ta3p100', 'microns_ta3p100') schema = dj.schema("microns_pinky") pinky = dj.create_virtual_module("pinky","microns_pinky") # - """ Base definition: def extract_branches_whole_neuron(import_Off_Flag, **kwargs): All options for functions global_start = time.time() # Step 0: Where to import from if import_Off_Flag == True: #if loading from an off file mesh_file_location = kwargs.pop('mesh_file_location', "") file_name = kwargs.pop('file_name', "") else: #if loading from datajoint vertices = kwargs.pop('vertices', -1) triangles = kwargs.pop('triangles', -1) segment_id = kwargs.pop("segment_id",-1) #Step 1: Mesh importing and Pymeshfix parameters pymeshfix_Flag = kwargs.pop('pymeshfix_Flag', True) joincomp = kwargs.pop('joincomp', False) remove_smallest_components = kwargs.pop('remove_smallest_components', True) #Step 2: CGAL segmentation parameters import_CGAL_Flag = kwargs.pop('import_CGAL_Flag', False) import_CGAL_paths = kwargs.pop('import_CGAL_paths', [[""],[""]]) clusters = kwargs.pop('clusters', 4) smoothness = kwargs.pop('smoothness', 0.30) #step 3: Soma identification parameters size_multiplier = kwargs.pop('size_multiplier', 1) soma_size_threshold = kwargs.pop("soma_size_threshold",3000) #step 4: finding soma extensions parameters soma_cap_min_width= kwargs.pop('soma_cap_min_width', 0.23) soma_cap_max_faces= kwargs.pop('soma_cap_max_faces', 6000) soma_cap_max_n_connections= kwargs.pop('soma_cap_max_n_connections', 6) large_extension_size = kwargs.pop('large_extension_size', 1500) large_extension_convex_max= kwargs.pop('soma_cap_conex_threshold', 3) #Step 5: Apical Identifying Parameters apical_mesh_threshold= kwargs.pop('apical_mesh_threshold', 2000) apical_height_threshold= kwargs.pop('apical_height_threshold', 5000) apical_sdf_threshold = kwargs.pop('apical_sdf_threshold', 0.09) #Step 6: Classifying Entire Mesh parameters classifier_cilia_threshold=kwargs.pop('classifier_cilia_threshold', 1000) #maximum size of cilia classifier_stub_threshold=kwargs.pop('classifier_stub_threshold', 200) # minimum size of appndage of soma to not be considered stub and merged with the soma classifier_non_dendrite_convex_threshold = kwargs.pop('classifier_non_dendrite_convex_threshold', 27.5) #must be above this value to be axon, cilia or error classifier_axon_std_dev_threshold = kwargs.pop('classifier_axon_std_dev_threshold', 69) #standard deviation of convex measurements for which axon branches are under this threshold classifier_stub_threshold_apical = kwargs.pop('classifier_stub_threshold_apical', 700) #the minimum size threshold for apical appendage not to be merged with apical #Step 9: Output Configuration Parameters return_Only_Labels = kwargs.pop("return_Only_Labels",False) return_cilia=kwargs.pop('return_cilia', False) return_soma=kwargs.pop('return_soma', False) return_axon=kwargs.pop('return_axon', False) return_error=kwargs.pop('return_error', False) return_size_threshold=kwargs.pop('return_size_threshold', 200) clean_temp_files=kwargs.pop('clean_temp_files', True) """ print("done") # + segment_id = 648518346349495660 #get the vertices and faces from datajoint # get the newly stitched mesh # get the original mesh key = dict(segmentation=3,segment_id = segment_id) verts,faces = (pinky.PymeshfixDecimatedExcitatoryStitchedMesh() & key).fetch1("vertices","triangles") # + #run the whole algorithm on the neuron to test verts_labels, faces_labels = extract_branches_whole_neuron(import_Off_Flag=False,segment_id=segment_id,vertices=verts, triangles=faces,pymeshfix_Flag=False, import_CGAL_Flag=False, return_Only_Labels=True, clusters=3, smoothness=0.20) # + #save the labels # file_location = "/Users/brendancelii/Google Drive/Xaq Lab/Datajoint Project/2_Stitching_Meshes/test_meshes/" # labels_file = "child_mesh_faces.npz" # child_faces = np.load(file_location + labels_file) # labels_list = child_faces["faces_list"] np.savez("./test_labels/" + str(segment_id) + "_test_labels.npz",faces_list=faces_labels) # + # #read in the labels # import csv # triangles_labels=[] # labels_file = "./temp/648518346349482020_fixed-cgal_4_0.30_revised.csv" # with open(labels_file) as csvfile: # for i,row in enumerate(csv.reader(csvfile)): # triangles_labels.append(int(row[0])) # print(triangles_labels) # - til.copyfile(source,destination) # + id="OjIxsMORmj-j" colab_type="code" colab={} #paper train and validation for f in paper_files[:560]: source= os.path.join(paper_dir,f) destination = os.path.join(train_paper_dir,f) shutil.copyfile(source,destination) for f in paper_files[-280:]: source= os.path.join(paper_dir,f) destination = os.path.join(validation_paper_dir,f) shutil.copyfile(source,destination) # + id="PuHdHUq6ocV9" colab_type="code" colab={} #scissors train and validation for f in scissors_files[:560]: source= os.path.join(scissors_dir,f) destination = os.path.join(train_scissors_dir,f) shutil.copyfile(source,destination) for f in scissors_files[-280:]: source= os.path.join(scissors_dir,f) destination = os.path.join(validation_scissors_dir,f) shutil.copyfile(source,destination) # + id="aFX6O-QKopST" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 68} outputId="a8a1c0e0-133b-4b00-c92e-c09bb581d710" print('total training rock images:', len(os.listdir(train_rock_dir))) print('total training paper images:', len(os.listdir(train_paper_dir))) print('total training scissors images:', len(os.listdir(train_scissors_dir))) # + id="exbZc8eOpD8u" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 68} outputId="d453f597-ac34-4e44-a48b-677ad1939d32" print('total validation rock images:', len(os.listdir(validation_rock_dir))) print('total validation paper images:', len(os.listdir(validation_paper_dir))) print('total validation scissors images:', len(os.listdir(validation_scissors_dir))) # + id="5ttGIOv6pEwr" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 68} outputId="a56791e1-f698-4b60-d2e0-03c9db1624a8" print('total test rock images:', len(os.listdir(test_rock_dir))) print('total test paper images:', len(os.listdir(test_rock_dir))) print('total test scissors images:', len(os.listdir(test_rock_dir))) # + [markdown] id="qV__GN11yO2P" colab_type="text" # ## TASK 1: Build a fully connect Neural Network # First, let's try what we've learned from the previous lecture. We will build a FULLY connect neural networks to classify the gesture images.You are free to experiment with different structure of the network, data augmentation, dropout, different optimizer, and etc, to try to achieve the best performance on the TEST data in terms of accuracy. Watch out for overfitting. # # Note that you should set test aside when you train your model. In the end, please report your model accuracy on the test set. # + id="LWTisYLQM1aM" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 340} outputId="b3feaa84-7fe3-4e3b-f6cf-16d8e5cf823e" # TODO from keras import models from keras import layers network = models.Sequential() network.add(layers.Dense(64, activation='relu', input_shape=(150,150,3))) network.add(layers.Dense(32, activation='relu')) network.add(layers.Dense(32, activation='relu')) network.add(layers.Flatten()) network.add(layers.Dense(3, activation='softmax')) network.summary() # + id="6aaiyuDep20F" colab_type="code" colab={} from keras import optimizers network.compile(loss='categorical_crossentropy', optimizer=optimizers.RMSprop(lr=0.001), metrics=['acc']) # + id="T1ZPd7zNqCEy" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 68} outputId="2631b0cf-ac84-4b21-a050-1cca504e77fc" from keras.preprocessing.image import ImageDataGenerator # Rescale to 1./255 train_datagen = ImageDataGenerator(rescale=1./255) validation_datagen = ImageDataGenerator(rescale=1./255) test_datagen = ImageDataGenerator(rescale=1./255) train_generator = train_datagen.flow_from_directory( # This is the target directory train_dir, # All images will be resized to 150x150 target_size=(150, 150), batch_size=20, class_mode='categorical') validation_generator = validation_datagen.flow_from_directory( valid_dir, target_size=(150, 150), batch_size=20, class_mode='categorical') test_generator = test_datagen.flow_from_directory( test_dir, target_size=(150, 150), batch_size=20, class_mode='categorical') # + id="b93_yR48rCqX" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 649} outputId="395dec20-b191-4d7c-e485-7680b2dccc59" history = network.fit_generator( train_generator, steps_per_epoch=100, epochs=18, validation_data=validation_generator, validation_steps=50) # + id="kY9VwuHIrIVo" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 545} outputId="3dc0fade-1e36-4bb1-d0f9-b5d9f3a40b3c" import matplotlib.pyplot as plt acc = history.history['acc'] val_acc = history.history['val_acc'] loss = history.history['loss'] val_loss = history.history['val_loss'] epochs = range(len(acc)) plt.plot(epochs, acc, 'bo', label='Training acc') plt.plot(epochs, val_acc, 'b', label='Validation acc') plt.title('Training and validation accuracy') plt.legend() plt.figure() plt.plot(epochs, loss, 'bo', label='Training loss') plt.plot(epochs, val_loss, 'b', label='Validation loss') plt.title('Training and validation loss') plt.legend() plt.show() # + id="KOVyDyn0rbh8" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 51} outputId="85b36d7d-7e74-498c-cf61-ae7c7d6483a1" model_score = network.evaluate_generator(test_generator) print("Model Test Loss:",model_score[0]) print("Model Test Accuracy:",model_score[1]) # + [markdown] id="40cMjm9K06YE" colab_type="text" # ## TASK 2: Build Convolution Neural Network # Now, let's try a convolution neural network (CNN) and see if we can achieve better performance. Similarly you are free to experiment with different structure of the network, techniques to avoid overfitting, different optimizer, and etc, to try to achieve the best performance on the TEST data in terms of accuracy. # # Note that you should set test aside when you train your model. In the end, please report your model accuracy on the test set. # + id="lcxNZCS_090n" colab_type="code" colab={} # TODO # + id="EeLB3pT7rjLA" colab_type="code" colab={} #using input shape 128 x128 model = models.Sequential() model.add(layers.Conv2D(64, (3, 3), activation='relu', input_shape=(150, 150, 3))) model.add(layers.MaxPooling2D((2, 2))) model.add(layers.Conv2D(64, (3, 3), activation='relu')) model.add(layers.MaxPooling2D((2, 2))) model.add(layers.Conv2D(64, (3, 3), activation='relu')) model.add(layers.MaxPooling2D((2, 2))) model.add(layers.Conv2D(128, (3, 3), activation='relu')) model.add(layers.MaxPooling2D((2, 2))) model.add(layers.Conv2D(128, (3, 3), activation='relu')) model.add(layers.MaxPooling2D((2, 2))) model.add(layers.Flatten()) model.add(layers.Dense(512, activation='relu')) #use softmax model.add(layers.Dense(3, activation='softmax')) # + id="Jn2MrLsYrvow" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 595} outputId="9ee91053-e00d-4825-8270-9db2a161586a" model.summary() # + id="vv-IKT1xr69o" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 68} outputId="b2985278-2c69-495e-f949-7a38e67f1614" from keras.preprocessing.image import ImageDataGenerator # All images will be rescaled by 1./255 train_datagen = ImageDataGenerator(rescale=1./255) validation_datagen = ImageDataGenerator(rescale=1./255) test_datagen = ImageDataGenerator(rescale=1./255) train_generator = train_datagen.flow_from_directory( # This is the target directory train_dir, # All images will be resized to 150x150 target_size=(150, 150), batch_size=20, class_mode='categorical') validation_generator = validation_datagen.flow_from_directory( validation_dir, target_size=(150, 150), batch_size=20, class_mode='categorical') test_generator = test_datagen.flow_from_directory( test_dir, target_size=(150, 150), batch_size=20, class_mode='categorical') # + id="OFufRiH3sQ4s" colab_type="code" colab={} model.compile(loss='categorical_crossentropy', optimizer=optimizers.RMSprop(lr=0.001), metrics=['acc']) # + id="OsaNABHPsR4-" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 377} outputId="3550c0fd-3111-4eda-e83e-6dd56079cc60" history = model.fit_generator( train_generator, steps_per_epoch=100, epochs=10, validation_data=validation_generator, validation_steps=50) # + id="ErNEBfBCsZR3" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 545} outputId="a3d2b781-9668-491d-d797-c32fa08582f6" import matplotlib.pyplot as plt acc = history.history['acc'] val_acc = history.history['val_acc'] loss = history.history['loss'] val_loss = history.history['val_loss'] epochs = range(len(acc)) plt.plot(epochs, acc, 'bo', label='Training acc') plt.plot(epochs, val_acc, 'b', label='Validation acc') plt.title('Training and validation accuracy') plt.legend() plt.figure() plt.plot(epochs, loss, 'bo', label='Training loss') plt.plot(epochs, val_loss, 'b', label='Validation loss') plt.title('Training and validation loss') plt.legend() plt.show() # + id="cgZXmNpvsjUt" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 51} outputId="6786a77d-cf60-48f4-d9c6-461dc8b478af" model_score = model.evaluate_generator(test_generator) print("Model Test Loss:",model_score[0]) print("Model Test Accuracy:",model_score[1]) # + [markdown] id="pUuqO-p-yrMV" colab_type="text" # ## Use the best model to classify gestures # You can now run the following code and use the model you trained to classify images uploaded from your laptop. Let us know how your model performs on the new unseen images. # + id="ZABJp7T3VLCU" colab_type="code" colab={"resources": {"http://localhost:8080/nbextensions/google.colab/files.js": {"data": "Ly8gQ29weXJpZ2h0IDIwMTcgR29vZ2xlIExMQwovLwovLyBMaWNlbnNlZCB1bmRlciB0aGUgQXBhY2hlIExpY2Vuc2UsIFZlcnNpb24gMi4wICh0aGUgIkxpY2Vuc2UiKTsKLy8geW91IG1heSBub3QgdXNlIHRoaXMgZmlsZSBleGNlcHQgaW4gY29tcGxpYW5jZSB3aXRoIHRoZSBMaWNlbnNlLgovLyBZb3UgbWF5IG9idGFpbiBhIGNvcHkgb2YgdGhlIExpY2Vuc2UgYXQKLy8KLy8gICAgICBodHRwOi8vd3d3LmFwYWNoZS5vcmcvbGljZW5zZXMvTElDRU5TRS0yLjAKLy8KLy8gVW5sZXNzIHJlcXVpcmVkIGJ5IGFwcGxpY2FibGUgbGF3IG9yIGFncmVlZCB0byBpbiB3cml0aW5nLCBzb2Z0d2FyZQovLyBkaXN0cmlidXRlZCB1bmRlciB0aGUgTGljZW5zZSBpcyBkaXN0cmlidXRlZCBvbiBhbiAiQVMgSVMiIEJBU0lTLAovLyBXSVRIT1VUIFdBUlJBTlRJRVMgT1IgQ09ORElUSU9OUyBPRiBBTlkgS0lORCwgZWl0aGVyIGV4cHJlc3Mgb3IgaW1wbGllZC4KLy8gU2VlIHRoZSBMaWNlbnNlIGZvciB0aGUgc3BlY2lmaWMgbGFuZ3VhZ2U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VzQ29udGludWUsCn07Cn0pKHNlbGYpOwo=", "ok": true, "headers": [["content-type", "application/javascript"]], "status": 200, "status_text": ""}}, "base_uri": "https://localhost:8080/", "height": 91} outputId="80dbfe4b-33f8-41a7-c05d-aa455daa49fa" import numpy as np from google.colab import files from keras.preprocessing import image uploaded = files.upload() for fn in uploaded.keys(): # predicting images path = fn img = image.load_img(path, target_size=(150, 150)) x = image.img_to_array(img) x = np.expand_dims(x, axis=0) images = np.vstack([x]) classes = model.predict(images, batch_size=10) # + id="1D6xepkEnJfd" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 51} outputId="23819243-6ba6-4852-a355-1776fd91a392" print(fn) print(classes) # + [markdown] id="VW_VDwNTnlyC" colab_type="text" # I selected a hand scissor in a white background, and the result shows it belongs to the 3rd category (Scissor). The result is accurate.
23,741
/A1/hcds-a1-data-curation.ipynb
d746293e8323f563ecb055867e4f4b962ee852c6
[ "MIT" ]
permissive
AaronJacobson/DATA512
https://github.com/AaronJacobson/DATA512
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
155,935
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- import xarray as xr from saveCore_standalone_v2 import run_powerBlobs, powerBlob_utils as utils, util as wavelet import matplotlib.pyplot as plt from utils import constants as cnst import pandas as pd import cartopy import cartopy.crs as ccrs from utils import u_grid, u_interpolate as u_int, u_darrays as uda from ccores import cores # cd .. #tag = 'MFG' tag = 'MSG' testfile = '/media/ck/Elements/Africa/WestAfrica/NFLICS/MCS_TIR/real_time_wavelet/2021/09/13/IR_108_BT_20210913_2100.nc' data = xr.open_dataset(testfile, decode_cf=False)#.sel(lat=slice(6,8), lon=slice(6,9.5))'/media/ck/Elements/Africa/WestAfrica/NFLICS/MCS_TIR/real_time_wavelet/2020/06/25/IR_wavelet_BT_20200625_1300.nc' data = data.isel(time=0) data['IR108_BT'].values = (data['IR108_BT'])[:,::-1] data data['IR108_BT'].plot.contourf() cut=data.sel(x=slice(100,1250), y=slice(0,500))#.sel(x=slice(0,500), y=slice(200,400))#.sel(x=slice(500,1000), y=slice(80,350)) f = plt.figure(figsize=(13,9), dpi=200) plt.pcolormesh(cut['IR108_BT'].T,vmin=-90, vmax=-40) ### Create a wavelet decomposition object first. In this example, we initialise the NFLICS nowcasting 5km setup. The setups can be defined in ccores.constants wObj = cores.dataset('METEOSAT3K_veraLS') # + grid_lons, grid_lats = np.meshgrid(cut.x.values, cut.y.values) ### The next step prepares the tir image for the wavelet routine. 'Perfect image' example, WITH edge smoothing. wObj.read_img(cut['IR108_BT'].T.values, grid_lons, grid_lats, edge_smoothing=False) # - ### The object saves the filtered image f = plt.figure(figsize=(6,5), dpi=100) ax = f.add_subplot(111) plt.pcolormesh(wObj.image) wObj.applyWavelet() # + ### Same powers as above but as contours plotted onto the thermal-infrared image. f = plt.figure(figsize=(13,11), dpi=200) ax = f.add_subplot(221) plt.pcolormesh(wObj.image, vmax=-50, vmin=-85, cmap='jet') scale_id = 0 plt.contour(wObj.power[scale_id,:,:], levels=[0,1], cmap='jet_r', linewidths=0.6) plt.title('Contours: '+str(wObj.scales[scale_id])+' km scale cores') ax = f.add_subplot(222) scale_id = 2 plt.pcolormesh(wObj.image, vmax=-50, vmin=-85, cmap='jet') plt.contour(wObj.power[scale_id,:,:], levels=[0,1], cmap='jet_r', linewidths=0.6) plt.title('Contours: '+str(wObj.scales[scale_id])+' km scale cores') # - filtered_power = wObj.scaleWeighting(wtype='nflicsv2') # + ### For test purposes, we introduce some NaNs to create a second image f = plt.figure(figsize=(8,5), dpi=200) ax = f.add_subplot(111) plt.pcolormesh(wObj.image, vmax=-50, vmin=-85, cmap='jet') plt.contour(filtered_power, levels=[0,1], colors='k', linewidths=0.6) plt.title('2021-09-13 | 21Z, Contours: NflicsV2 - cores from power values') f.savefig('/home/ck/DIR/cornkle/figs/NFLICS/cores_nflicsV2_3km.jpg') # -
3,039
/Wisconsin Breast cancer dataset.ipynb
9f2836660133f26d21a35d292547eefd8fcfa5c9
[]
no_license
ckkchinar/Classification-Problems
https://github.com/ckkchinar/Classification-Problems
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
151,493
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # # Case-Study 1 (Decision Tree,Randome Forest,KNN,NB) # Consider The Wisconsin Breast Cancer Database. # # This dataset consists of 10 continuous attributes and 1 target class attribute. # # Class attribute shows the observation result, whether the patient is suffering from the benign tumor or malignant tumor. # # Benign tumors do not spread to other parts while the malignant tumor is cancerous. # Breast Cancer Data Set Attribute Information: # 1. Sample code number: id number # 2. Clump Thickness: 1 – 10 # 3. Uniformity of Cell Size: 1 – 10 # 4. Uniformity of Cell Shape: 1 – 10 # 5. Marginal Adhesion: 1 – 10 # 6. Single Epithelial Cell Size: 1 – 10 # 7. Bare Nuclei: 1 – 10 # 8. Bland Chromatin: 1 – 10 # 9. Normal Nucleoli: 1 – 10 # 10. Mitoses: 1 – 10 # 11. Class: (2 for benign, 4 for malignant) # ### 1.2 Import the Libraries import pandas as pd import numpy as np import seaborn as sns import matplotlib.pyplot as plt # %matplotlib inline import warnings warnings.filterwarnings('ignore') # ### 1.3 Load the dataset df=pd.read_csv('C:\\Python_Training\\Python_Labs\\6.SLC\\Take Home\\Day 3\\wisc_bc_data.csv') df.head() df.shape # ### 1.4 Check the data type for dataset? df.info() # + #Conclusion: except our label, all features are either float or int # - # ### 1.5 Check the data.describe for dataset? df.describe() # ### 1.6 Check the data.groupby count for diagnosis? df.groupby(df['diagnosis']).count() # ### 1.7 drop the first column from the data frame. This is Id column which is not used in modeling? df=df.drop('id',axis=1) fig,ax=plt.subplots(8,4,figsize=(15,30)) ax=ax.flatten() for i in range(len(num_columns)): sns.boxplot(x=df[num_columns].iloc[:,i],ax=ax[i]) plt.show() num_columns=[] for i in list(df.columns): if df[i].dtype!='object': num_columns.append(i) print(num_columns) #imputing the outliers in one go for i in num_columns: q3=df[i].quantile(0.75) q1=df[i].quantile(0.25) iqr=q3-q1 ll=q1-1.5*iqr ul=q3+1.5*iqr df.loc[df[i]>ul,i]=ul df.loc[df[i]<ll,i]=ll df.loc[54,'concavity_worst'] # ### 1.8 Create a separate dataframe consisting only of the features i.e independent attributes features=df.drop('diagnosis',axis=1) features.head() # ### 1.9 convert the features into z scores as we do not know what units / scales were used and store them in new dataframe # # It is always adviced to scale numeric attributes in models that calculate distances. from sklearn.preprocessing import StandardScaler ss=StandardScaler() features=pd.DataFrame(ss.fit_transform(features),columns=features.columns) features.head() # ### 1.10 Capture the class values from the 'diagnosis' colum. df['diagnosis'].unique() df['diagnosis'].value_counts() from sklearn.preprocessing import LabelEncoder ll=LabelEncoder() df['diagnosis']=ll.fit_transform(df['diagnosis']) df['diagnosis'] # ### 1.11 Extract the independent variable X and dependent variable Y? X=features y=df['diagnosis'] X.shape # ### 1.12 Split the data into train and test set:(70/30) from sklearn.model_selection import train_test_split X_train,X_test,y_train,y_test=train_test_split(X,y,random_state=3,test_size=0.3) # ## 1.13 Import all the algorithms we want to test # #### 1.13a) Prepare an array with all the algorithms from sklearn.linear_model import LogisticRegression from sklearn.tree import DecisionTreeClassifier from sklearn.ensemble import RandomForestClassifier from sklearn.ensemble import AdaBoostClassifier from sklearn.ensemble import GradientBoostingClassifier from sklearn.neighbors import KNeighborsClassifier from sklearn.naive_bayes import GaussianNB lr=LogisticRegression() dt=DecisionTreeClassifier() rf=RandomForestClassifier(**rf_search.best_params_) ada=AdaBoostClassifier() gbm=GradientBoostingClassifier() knn=KNeighborsClassifier() gaus=GaussianNB() # + from sklearn.model_selection import cross_val_score,KFold names=['Logistic Regression','Decision Tree','RandomForest','Adaboost','GradientBoost','KNN','GaussianNB'] models=[lr,dt,rf,ada,gbm,knn,gaus] result=[] for name,model in zip(names,models): kfold=KFold(n_splits=5,random_state=1) score=cross_val_score(model,X,y,cv=kfold,scoring='roc_auc') result.append(score) print('Mean ROC_AUC for',name,':',np.mean(result)) # - from sklearn.ensemble import VotingClassifier from sklearn.metrics import roc_auc_score vc=VotingClassifier(estimators=[(i,j) for i,j in zip(names,models)],voting='soft') vc.fit(X,y) y_pred=vc.predict(X) print('roc auc score:',roc_auc_score(y,y_pred)) # + from sklearn.model_selection import RandomizedSearchCV from scipy.stats import randint as rint rf=RandomForestClassifier() params={'n_estimators':rint(1,200), 'max_depth':rint(2,10)} rf_search=RandomizedSearchCV(rf,param_distributions=params,n_iter=200,n_jobs=-1,scoring='roc_auc',cv=5, return_train_score=True,random_state=1,verbose=2) rf_search.fit(X,y) # - rf_search.best_params_ from sklearn.model_selection import cross_val_score,KFold kfold=KFold() score=cross_val_score() # #### 1.13 b) Prepare the configuration to run the (X,Y),seed=7 # + # Decision Tree # + from sklearn.tree import DecisionTreeClassifier DT=DecisionTreeClassifier(random_state=7) DT.fit(X_train,y_train) y_train_pred_DT=DT.predict(X_train) y_train_prob_DT=DT.predict_proba(X_train)[:,1] y_test_pred_DT=DT.predict(X_test) y_test_prob_DT=DT.predict_proba(X_test)[:,1] # + # Random Forrest # + from sklearn.ensemble import RandomForestClassifier RF=RandomForestClassifier(random_state=7) RF.fit(X_train,y_train) y_train_pred_RF=RF.predict(X_train) y_train_prob_RF=RF.predict_proba(X_train)[:,1] y_test_pred_RF=RF.predict(X_test) y_test_prob_RF=RF.predict_proba(X_test)[:,1] # + # KNN # + from sklearn.neighbors import KNeighborsClassifier KN=KNeighborsClassifier() KN.fit(X_train,y_train) y_train_pred_KN=KN.predict(X_train) y_train_prob_KN=KN.predict_proba(X_train)[:,1] y_test_pred_KN=KN.predict(X_test) y_test_prob_KN=KN.predict_proba(X_test)[:,1] # + #Naive Bayes # + from sklearn.naive_bayes import GaussianNB NB=GaussianNB() NB.fit(X_train,y_train) y_train_pred_NB=NB.predict(X_train) y_train_prob_NB=NB.predict_proba(X_train)[:,1] y_test_pred_NB=NB.predict(X_test) y_test_prob_NB=NB.predict_proba(X_test)[:,1] # - # #### 1.13 c) Every algorithm is tested and results are collected and printed? # from sklearn.metrics import accuracy_score,confusion_matrix,classification_report,roc_auc_score,roc_curve # Decision Tree print('Accuracy of training data of Decision Tree:',accuracy_score(y_train,y_train_pred_DT)) print('Accuracy of testing of Decision Tree:',accuracy_score(y_test,y_test_pred_DT)) print('AUC score of training data of Decision Tree:',roc_auc_score(y_train,y_train_prob_DT)) print('AUC score of testing data of Decision Tree:',roc_auc_score(y_test,y_test_prob_DT)) # Random Forrest print('Accuracy of training data of Random Forrest:',accuracy_score(y_train,y_train_pred_RF)) print('Accuracy of testing of Random Forrest:',accuracy_score(y_test,y_test_pred_RF)) print('AUC score of training data of Random Forrest:',roc_auc_score(y_train,y_train_prob_RF)) print('AUC score of testing data of Random Forrest:',roc_auc_score(y_test,y_test_prob_RF)) #KNN print('Accuracy of training data of KNN:',accuracy_score(y_train,y_train_pred_KN)) print('Accuracy of testing data of KNN:',accuracy_score(y_test,y_test_pred_KN)) print('AUC score of training data of KNN:',roc_auc_score(y_train,y_train_prob_KN)) print('AUC score of testing data of KNN:',roc_auc_score(y_test,y_test_prob_KN)) #NB print('Accuracy of training data of NB:',accuracy_score(y_train,y_train_pred_NB)) print('Accuracy of testing data of NB:',accuracy_score(y_test,y_test_pred_NB)) print('AUC score of training data of NB:',roc_auc_score(y_train,y_train_prob_NB)) print('AUC score of testing data of NB:',roc_auc_score(y_test,y_test_prob_NB)) # #### 1.13 d) boxplot algorithm comparison from sklearn.linear_model import LogisticRegression # + from sklearn.model_selection import KFold from sklearn.model_selection import cross_val_score models = [] models.append(('LR', LogisticRegression())) models.append(('DT', DecisionTreeClassifier())) models.append(('KNN', KNeighborsClassifier())) models.append(('RF', RandomForestClassifier())) models.append(('NB', GaussianNB())) results = [] names = [] scoring = 'roc_auc' for name, model in models: kfold = KFold(n_splits=10, random_state=7) cv_results = cross_val_score(model, X, y, cv=kfold, scoring=scoring) results.append(cv_results) names.append(name) print('Mean AUC score for:',name,':',cv_results.mean()) # - fig = plt.figure() fig.suptitle('Algorithm Comparison') ax = fig.add_subplot(111) plt.boxplot(results) ax.set_xticklabels(names) plt.show()
9,061
/Regressão_rede_neural_com_numpy.ipynb
d788d55a043a22990561f1c905109b17d625f055
[ "MIT" ]
permissive
otavioaugusto1/deep-learning
https://github.com/otavioaugusto1/deep-learning
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
203,371
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # + [markdown] id="view-in-github" colab_type="text" # <a href="https://colab.research.google.com/github/otavioaugusto1/deep-learning/blob/main/Regress%C3%A3o_rede_neural_com_numpy.ipynb" target="_parent"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/></a> # + [markdown] id="aFHWWLT3ybbI" # # A base de dados # + [markdown] id="SAWQRvKPybbK" # ### Carregando o dataset # + colab={"resources": {"http://localhost:8080/nbextensions/google.colab/files.js": {"data": "Ly8gQ29weXJpZ2h0IDIwMTcgR29vZ2xlIExMQwovLwovLyBMaWNlbnNlZCB1bmRlciB0aGUgQXBhY2hlIExpY2Vuc2UsIFZlcnNpb24gMi4wICh0aGUgIkxpY2Vuc2UiKTsKLy8geW91IG1heSBub3QgdXNlIHRoaXMgZmlsZSBleGNlcHQgaW4gY29tcGxpYW5jZSB3aXRoIHRoZSBMaWNlbnNlLgovLyBZb3UgbWF5IG9idGFpbiBhIGNvcHkgb2YgdGhlIExpY2Vuc2UgYXQKLy8KLy8gICAgICBodHRwOi8vd3d3LmFwYWNoZS5vcmcvbGljZW5zZXMvTElDRU5TRS0yLjAKLy8KLy8gVW5sZXNzIHJlcXVpcmVkIGJ5IGFwcGxpY2FibGUgbGF3IG9yIGFncmVlZCB0byBpbiB3cml0aW5nLCBzb2Z0d2FyZQovLyBkaXN0cmlidXRlZCB1bmRlciB0aGUgTGljZW5zZSB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Bjb25zdCBsZW5ndGggPSBNYXRoLm1pbihmaWxlRGF0YS5ieXRlTGVuZ3RoIC0gcG9zaXRpb24sIE1BWF9QQVlMT0FEX1NJWkUpOwogICAgICBjb25zdCBjaHVuayA9IG5ldyBVaW50OEFycmF5KGZpbGVEYXRhLCBwb3NpdGlvbiwgbGVuZ3RoKTsKICAgICAgcG9zaXRpb24gKz0gbGVuZ3RoOwoKICAgICAgY29uc3QgYmFzZTY0ID0gYnRvYShTdHJpbmcuZnJvbUNoYXJDb2RlLmFwcGx5KG51bGwsIGNodW5rKSk7CiAgICAgIHlpZWxkIHsKICAgICAgICByZXNwb25zZTogewogICAgICAgICAgYWN0aW9uOiAnYXBwZW5kJywKICAgICAgICAgIGZpbGU6IGZpbGUubmFtZSwKICAgICAgICAgIGRhdGE6IGJhc2U2NCwKICAgICAgICB9LAogICAgICB9OwogICAgICBwZXJjZW50LnRleHRDb250ZW50ID0KICAgICAgICAgIGAke01hdGgucm91bmQoKHBvc2l0aW9uIC8gZmlsZURhdGEuYnl0ZUxlbmd0aCkgKiAxMDApfSUgZG9uZWA7CiAgICB9CiAgfQoKICAvLyBBbGwgZG9uZS4KICB5aWVsZCB7CiAgICByZXNwb25zZTogewogICAgICBhY3Rpb246ICdjb21wbGV0ZScsCiAgICB9CiAgfTsKfQoKc2NvcGUuZ29vZ2xlID0gc2NvcGUuZ29vZ2xlIHx8IHt9OwpzY29wZS5nb29nbGUuY29sYWIgPSBzY29wZS5nb29nbGUuY29sYWIgfHwge307CnNjb3BlLmdvb2dsZS5jb2xhYi5fZmlsZXMgPSB7CiAgX3VwbG9hZEZpbGVzLAogIF91cGxvYWRGaWxlc0NvbnRpbnVlLAp9Owp9KShzZWxmKTsK", "ok": true, "headers": [["content-type", "application/javascript"]], "status": 200, "status_text": ""}}, "base_uri": "https://localhost:8080/", "height": 109} id="EMLBaJItybbM" outputId="78220b84-4d79-43ad-91aa-6d1abf4f2ca5" from google.colab import files files.upload() # + id="MluOa_0_ybbM" import pandas as pd dados = pd.read_csv('Bicicletas.csv') # + [markdown] id="tekNLcSZybbN" # ### Conhecendo a base de dados # + colab={"base_uri": "https://localhost:8080/", "height": 204} id="_VFilMIpybbO" outputId="ad519456-f03d-4b80-c0d6-511730456e37" dados.head() # + colab={"base_uri": "https://localhost:8080/"} id="0qhn24z5ybbP" outputId="b6cc650a-0356-4b16-fbab-8672059326be" dados.shape # + id="I1b4pCyqybbQ" import matplotlib.pyplot as plt # + colab={"base_uri": "https://localhost:8080/", "height": 304} id="T1ear3y7ybbQ" outputId="102f6275-8ef2-4797-b83a-4e18d72148c8" plt.rcParams.update({'font.size': 14}) plt.scatter(dados['temperatura'],dados['bicicletas_alugadas']) plt.ylabel('bicicletas_alugadas') plt.xlabel('temperatura') # + colab={"base_uri": "https://localhost:8080/", "height": 355} id="2zU_l-m-ybbR" outputId="efa88d6a-3dac-4c72-f5ab-126ca88a6bed" plt.scatter(dados['clima'],dados['bicicletas_alugadas']) plt.ylabel('bicicletas_alugadas') plt.xlabel('clima') plt.rcParams.update({'font.size': 22}) indice=[1,2,3] plt.xticks(indice, fontsize=14) # + [markdown] id="57TklQELybbS" # ### Normalizando a base de dados # + id="_nXBp4LxybbT" import numpy as np # + id="mGOLV_dHybbT" y = dados['bicicletas_alugadas'].values # + colab={"base_uri": "https://localhost:8080/"} id="1KcObe0YybbU" outputId="e854c742-0887-41a7-cafb-0e0946b1908a" X = dados[['clima','temperatura']].values print(X) # + colab={"base_uri": "https://localhost:8080/"} id="bKXISrV4ybbU" outputId="494f534b-f2e9-4ccd-de69-9e8692742587" X = X/np.amax(X,axis=0) print(X) # + colab={"base_uri": "https://localhost:8080/"} id="m21Jke8EybbV" outputId="eb55c881-2944-480e-f338-f640cb996a8e" ymax=np.amax(y) y = y/ymax print(y[0:10]) # + [markdown] id="vOgNCtGDybbW" # ### Funções de ativação # + id="SG69UUujybbX" def sigmoid(Soma): return 1/(1+np.exp(-Soma)) def relu(Soma): return np.maximum(0,Soma) # + [markdown] id="SfJhFqy9ybbX" # ### Criando a estrutura da rede # + id="K6toC-KBybbY" arquitetura = [ {"dim_entrada": 2, "dim_saida": 50, "ativacao": "relu"}, {"dim_entrada": 50, "dim_saida": 1, "ativacao": "sigmoid"}, ] # + [markdown] id="GsTr4tL8ybbY" # ### Pesos e viés # + id="M-oI6ROdybbZ" def inicia_camadas(arquitetura, seed = 99): # inicia os valores aleatórios np.random.seed(seed) # numero de camadas da rede neural numero_de_camadas = len(arquitetura) # inicia armazenamento de parametros valores_parametros = {} # itera nas camadas da rede for indice, camada in enumerate(arquitetura): indice_camada = indice + 1 # extrai o numero de nodos nas camadas tamanho_camada_entrada = camada["dim_entrada"] tamanho_camada_saida = camada["dim_saida"] # inicia os valores na matriz de pesos P # e o vetor de viés ou bias b valores_parametros['P' + str(indice_camada)] = np.random.randn( tamanho_camada_saida, tamanho_camada_entrada) * 0.1 valores_parametros['b' + str(indice_camada)] = np.random.randn( tamanho_camada_saida, 1) * 0.1 return valores_parametros # + [markdown] id="9QJDOigBybba" # ### Propagação da rede # + id="Ev_hpRklybba" def propaga_uma_camada(Ativado_anterior, Pesos_atual, b_atual, ativacao="relu"): # cálculo da entrada para a função de ativação Saida_atual = np.dot(Pesos_atual, Ativado_anterior) + b_atual # selecção da função de ativação if ativacao is "relu": func_ativacao = relu elif ativacao is "sigmoid": func_ativacao = sigmoid else: raise Exception('Ainda não implementamos essa funcao') # retorna a ativação calculada Ativado_atual e a matriz intermediária Saida return func_ativacao(Saida_atual), Saida_atual # + id="GDJPil-5ybbb" def propaga_total(X, valores_parametros, arquitetura): # memoria temporaria para a retropropagacao memoria = {} # O vetor X é a ativação para a camada 0  Ativado_atual = X # iterações para as camadas for indice, camada in enumerate(arquitetura): # a numeração das camadas começa de 1 indice_camada = indice + 1 # utiliza a ativação da iteração anterior Ativado_anterior = Ativado_atual # extrai a função de ativação para a camada atual func_ativacao_atual = camada["ativacao"] # extrai os pesos da camada atual Pesos_atual = valores_parametros["P" + str(indice_camada)] # extrai o bias para a camada atual b_atual = valores_parametros["b" + str(indice_camada)] # cálculo da ativação para a camada atual Ativado_atual, Saida_atual = propaga_uma_camada(Ativado_anterior, Pesos_atual, b_atual, func_ativacao_atual) # salca os valores calculados na memória memoria["A" + str(indice)] = Ativado_anterior memoria["Z" + str(indice_camada)] = Saida_atual # retorna o vetor predito e um dicionário contendo os valores intermediários return Ativado_atual, memoria # + [markdown] id="J-9CB1zgybbc" # ### Testando a rede # + id="e6LAcrr7ybbd" valores_parametros = inicia_camadas(arquitetura, seed = 99) y_estimado, memoria = propaga_total(np.transpose(X), valores_parametros, arquitetura) # + colab={"base_uri": "https://localhost:8080/"} id="NdWIPs4Yybbd" outputId="56d9d708-ac58-4a5e-9f17-60054ac6eece" y_estimado[0,0]*ymax # + colab={"base_uri": "https://localhost:8080/"} id="OcHOI0cvybbe" outputId="99a4edf8-07a1-4437-ce12-d0b6708b4ecb" y[0]*ymax # + [markdown] id="zQ-JfV-bybbf" # ### Atualização dos pesos # + id="9HetY38mybbf" def atualiza(valores_parametros, gradidentes, arquitetura, taxa_aprendizagem): # iterações pelas camadas for indice_camada, camada in enumerate(arquitetura, 1): valores_parametros["P" + str(indice_camada)] -= taxa_aprendizagem * gradidentes["dP" + str(indice_camada)] valores_parametros["b" + str(indice_camada)] -= taxa_aprendizagem * gradidentes["db" + str(indice_camada)] return valores_parametros; # + [markdown] id="DBUZIvbtybbf" # ### Função de custo # + id="Sv5yBKocybbg" def valor_de_custo(Y_predito, Y): # numero_de_exemplos m = Y_predito.shape[1] custo = -1 / m * (np.dot(Y, np.log(Y_predito).T) + np.dot(1 - Y, np.log(1 - Y_predito).T)) return np.squeeze(custo) # + [markdown] id="aazff6pQybbg" # ### Retropropagação # + id="2BV4IEkfybbh" def retropropagacao_total(Y_predito, Y, memoria, valores_parametros, arquitetura): gradientes = {} # numero de exemplos #m = Y.shape[1] # para garantir que os dois vetores tenham a mesma dimensão Y = Y.reshape(Y_predito.shape) # inicia o algoritmo de gradiente descendente dAtivado_anterior = - (np.divide(Y, Y_predito) - np.divide(1 - Y, 1 - Y_predito)); for indice_camada_anterior, camada in reversed(list(enumerate(arquitetura))): indice_camada_atual = indice_camada_anterior + 1 # Função de ativação para a camada atual funcao_ativao_atual = camada["ativacao"] dAtivado_atual = dAtivado_anterior Ativado_anterior = memoria["A" + str(indice_camada_anterior)] Saida_atual = memoria["Z" + str(indice_camada_atual)] Pesos_atual = valores_parametros["P" + str(indice_camada_atual)] b_atual = valores_parametros["b" + str(indice_camada_atual)] dAtivado_anterior, dPesos_atual, db_atual = retropropagacao_uma_camada( dAtivado_atual, Pesos_atual, b_atual, Saida_atual, Ativado_anterior, funcao_ativao_atual) gradientes["dP" + str(indice_camada_atual)] = dPesos_atual gradientes["db" + str(indice_camada_atual)] = db_atual return gradientes # + id="nHPEZtU8ybbi" def sigmoid_retro(dAtivado, Saida): sig = sigmoid(Saida) return dAtivado * sig * (1 - sig) def relu_retro(dAtivado, Saida): dSaida = np.array(dAtivado, copy = True) dSaida[Saida <= 0] = 0; return dSaida; # + id="NCQVLG9hybbi" def retropropagacao_uma_camada(dAtivado_atual, Pesos_atual, b_atual, Saida_atual, Ativado_anterior, ativacao="relu"): # número de exemplos m = Ativado_anterior.shape[1] # seleção função de ativação if ativacao is "relu": func_ativacao_retro = relu_retro elif ativacao is "sigmoid": func_ativacao_retro = sigmoid_retro else: raise Exception('Ainda não implementamos essa funcao') # derivada da função de ativação dSaida_atual = func_ativacao_retro(dAtivado_atual, Saida_atual) # derivada da matriz de Pesos dPesos_atual = np.dot(dSaida_atual, Ativado_anterior.T) / m # derivada do vetor b db_atual = np.sum(dSaida_atual, axis=1, keepdims=True) / m # derivada da matriz A_anterior dAtivado_anterior = np.dot(Pesos_atual.T, dSaida_atual) return dAtivado_anterior, dPesos_atual, db_atual # + [markdown] id="Lu31Sy_lybbj" # ### Treinamento # + id="9-qafsVmybbj" def treino(X, Y,X_teste,Y_teste, arquitetura, epocas, taxa_aprendizagem): # Inicia os parâmetros da rede neural valores_parametros = inicia_camadas(arquitetura, 2) # Listas que vão guardar o progresso da aprendizagem da rede historia_custo = [] historia_custo_teste = [] # Atualiza a cada época for i in range(epocas): # Propaga a rede - Foward propagation Y_predito, memoria = propaga_total(X, valores_parametros, arquitetura) Y_predito_teste, memoria2 = propaga_total(X_teste, valores_parametros, arquitetura) # calcula as métricas e salva nas listas de história custo = valor_de_custo(Y_predito, Y) historia_custo.append(custo) custo_teste = valor_de_custo(Y_predito_teste, Y_teste) historia_custo_teste.append(custo_teste) # Retropropagação - Backpropagation gradientes = retropropagacao_total(Y_predito, Y, memoria, valores_parametros, arquitetura) # Atualiza os pesos valores_parametros = atualiza(valores_parametros, gradientes, arquitetura, taxa_aprendizagem) if(i % 50 == 0): print("Iteração: {:05} - custo: {:.5f} ".format(i, custo)) return valores_parametros, historia_custo, historia_custo_teste # + id="6hZxyxtXybbk" from sklearn.model_selection import train_test_split # + id="C5EyOfoxybbk" X_treino, X_teste, y_treino, y_teste = train_test_split( X, y, test_size=0.43, random_state=42) # + colab={"base_uri": "https://localhost:8080/"} id="VC6y950Sybbl" outputId="678d29ea-24e9-4621-d738-3d30d3d40ad0" # Treinamento valores_parametros, historia_custo, historia_custo_teste = treino(np.transpose(X_treino), np.transpose(y_treino.reshape((y_treino.shape[0], 1))), np.transpose(X_teste), np.transpose(y_teste.reshape((y_teste.shape[0], 1))), arquitetura, 20000, 0.01) # + colab={"base_uri": "https://localhost:8080/", "height": 303} id="SA6pi44Dybbl" outputId="61e756cc-ade0-4952-c02e-41ee026227ea" plt.plot(historia_custo) plt.plot(historia_custo_teste, 'r') plt.legend(['Treinamento','Teste']) plt.ylabel('Custo') plt.xlabel('Épocas') plt.show() # + [markdown] id="hpwrxeKjybbn" # ### Fazendo Previsões # + id="nhKVHwzNybbn" # Previsão Y_pred, _ = propaga_total(np.transpose(X_teste), valores_parametros, arquitetura) # + colab={"base_uri": "https://localhost:8080/", "height": 299} id="nwPufD2Hybbo" outputId="34270d18-72a2-4cc5-d2e6-c71748fda6c4" plt.plot(np.transpose(X_teste)[1],ymax*y_teste,'.') plt.plot(np.transpose(X_teste)[1],ymax*Y_pred.reshape([-1,1]),'.r') plt.legend(['Reais','Preditos']) plt.ylabel('bicicletas_alugadas') plt.xlabel('temperatura') plt.show() # + colab={"base_uri": "https://localhost:8080/", "height": 293} id="kJNjjc5Dybbp" outputId="c8ea96eb-5466-4cca-f777-048db1cc033b" plt.plot(3*np.transpose(X_teste)[0],ymax*y_teste,'.') plt.plot(3*np.transpose(X_teste)[0],ymax*Y_pred.reshape([-1,1]),'.r') plt.legend(['Reais','Preditos']) plt.ylabel('bicicletas_alugadas') plt.xlabel('clima') plt.rcParams.update({'font.size': 22}) indice=[1,2,3] plt.xticks(indice, fontsize=14) plt.show() # + id="WNwdnZ63ybbq" # + id="S16gYB8_ybbq"
20,533
/DXF2020_1113.ipynb
36906a605d85d898d14efe35225e8e6d0ea4f189
[]
no_license
abenben/DXF2020
https://github.com/abenben/DXF2020
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
26,349
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # + [markdown] id="view-in-github" colab_type="text" # <a href="https://colab.research.google.com/github/abenben/DXF2020/blob/main/DXF2020_1113.ipynb" target="_parent"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/></a> # + [markdown] id="O_KAKpWbxsRt" # ## Agenda # - 次元削減とクラスタリング(教師なし学習) # - 回帰(教師あり、目的変数が連続値) # - 分類(教師あり、目的変数が離散値) # + id="RbZiZtgXxsRy" # 可視化のための外部モジュールの読み込み import matplotlib.pyplot as plt # ノートブックの中に画を埋め込むための指示 # %matplotlib inline # データサイエンスによく使うライブラリも読み込んでおく import numpy as np import pandas as pd # + id="-N95v2xWxsR4" # 手書き数字サンプルデータの読み込み準備 from sklearn.datasets import load_digits # + id="nJdVlS-ZxsR7" # 関数を呼び出してサンプルデータを読み込み変数(digits_data)で受け取る # 詳しくは、以下の公式ドキュメントを参照 # https://scikit-learn.org/stable/modules/generated/sklearn.datasets.load_digits.html#sklearn.datasets.load_digits digits_data = load_digits() # + id="_xTVgt-zxsR_" # 簡単な説明書の表示 # (実は間違っている。1797個しがデータが無い) print(digits_data.DESCR) # + id="PK_RzzNcxsSF" #試しに1つ表示して見る # 表示するデータのインデックスを指定 i = 10 # 0〜1798までで指定できる # 変数で受け取る image = digits_data['images'][i] num = digits_data['target'][i] print(f'ラベルは{num}') # 画像の表示 _ = plt.imshow(image, cmap=plt.cm.binary) #またはgray_rでもOK # 試してみよう # iの値を変更してみる # カラーマップを変更してみる # https://matplotlib.org/3.1.0/tutorials/colors/colormaps.html # + id="hcck4jmwxsSI" # 1つの画像は8行8列の行列データ digits_data['images'][i] # + id="GSC1kaX4xsSL" # ベクトルになっているデータもある digits_data['data'][i] # + id="eM_2-zyfxsSO" # 全体をまとめて1つの表型のデータを作る # 通常は行と列に名前を付ける digits_df = pd.DataFrame(digits_data['data']) # + id="1x9ZOOzXxsSS" # 1797行、64列のデータ # 1行が1つのサンプル。それぞれの列が説明変数 digits_df # + id="Dl-qlh0NxsSW" # サンプルを2次元平面にプロットするための便利関数を作る def plot_2D(X, y, file_name=None): plt.figure() ax = plt.subplot(111) plt.scatter(X[:, 0], X[:, 1], c=y, cmap='jet') plt.colorbar() #ax.set_aspect('equal') if file_name: plt.savefig(file_name) plt.close() # しかし、64次元のデータをどうやって、2次元へ・・・? # + id="747P9YSPxsSZ" # ここで使われるのが次元削減の手法 # まずはもっとも古典的なPCA(主成分分析)から from sklearn.decomposition import PCA # 2次元データを出力するPCAのインスタンスを用意 pca = PCA(n_components=2) # digits_data['data']でもOK digits_pca = pca.fit_transform(digits_df) # digits_data['target']に正解(0〜9までの数字)が入っているので色が付く plot_2D(digits_pca, digits_data['target']) # + id="iyQJ1XVpxsSb" # 次元削減にはいろいろな方法がある # 最近は、t−SNE(t-distributed Stochastic Neighbor Embedding)がよく使われる from sklearn.manifold import TSNE tsne = TSNE(n_components=2) digits_tsne = tsne.fit_transform(digits_df) plot_2D(digits_tsne, digits_data['target']) # + [markdown] id="4L8q1CYsxsSe" # 次元削減を実行するときのパラメータが手法ごとにいろいろある # # perplexityfloat, optional (default: 30) # # The perplexity is related to the number of nearest neighbors that is used in other manifold learning algorithms. Larger datasets usually require a larger perplexity. Consider selecting a value between 5 and 50. Different values can result in significanlty different results. # + id="XrNUXHXUxsSf" from sklearn.manifold import TSNE tsne = TSNE(n_components=2, perplexity=10) digits_tsne = tsne.fit_transform(digits_df) plot_2D(digits_tsne, digits_data['target']) # 試してみよう # perplexityを適当に設定してみよう # 同じパラメータ設定でも違う結果がでます。どうしたら固定できるでしょうか? # + id="mUN2FdHOxsSi" from sklearn.manifold import TSNE # random_stateを固定することで、結果を再現できる # 詳しくは、t-SNEの中身を知る必要がある tsne = TSNE(n_components=2, perplexity=30, random_state=0) digits_tsne = tsne.fit_transform(digits_df) plot_2D(digits_tsne, digits_data['target']) # + id="q-wwcgh-xsSm" # scikit-learnのサイトからK-meansクラスタリングのイメージ from IPython.core.display import Image, display display(Image("https://scikit-learn.org/stable/_images/sphx_glr_plot_kmeans_digits_001.png")) # + id="lZXsg0d8xsSp" from sklearn.cluster import KMeans # 入力データを10クラスに分ける kmeans = KMeans(n_clusters=10, random_state=0) kmeans.fit(digits_df) # サンプルが属するクラスター kmeans.labels_ # + id="NWmAlDTAxsSs" from sklearn.metrics import silhouette_score for n_cluster in range(5, 16): clusterer = KMeans(n_clusters=n_cluster, random_state=10) cluster_labels = clusterer.fit_predict(digits_df) silhouette_avg = silhouette_score(digits_df, cluster_labels) print("For n_clusters =", n_cluster, "The average silhouette_score is :", silhouette_avg) # 詳しくは # https://scikit-learn.org/stable/auto_examples/cluster/plot_kmeans_silhouette_analysis.html#sphx-glr-auto-examples-cluster-plot-kmeans-silhouette-analysis-py # + id="myovW9mJxsSu" # パラメータにクラス数を指定しなくてもよいクラスタリング手法もある from sklearn.cluster import AffinityPropagation # random_stateの設定は、バージョン0.23から clustering = AffinityPropagation().fit(digits_df) # 何クラスに分かれたか? len(set(clustering.labels_)) # + id="B-XF659CxsSx" import seaborn as sns sns.clustermap(digits_df) # + id="JUKycOCPxsS0" # 説明変数の分散のヒストグラム plt.hist(digits_df.std()) # + id="63D5Qz90xsS3" # 前処理の一例 # 分散が小さい(サンプル間でほとんどばらつきがない)説明変数を削除 idx = digits_df.std() > 2 filtered = digits_df[digits_df.columns[idx]] sns.clustermap(filtered) # 試してみよう # 分散での前処理を調整して、いくつか階層的クラスタリングの図を描いてみよう # + id="CcI2yuqNxsS8" # + id="e_nPPGaVxsS_" from sklearn.datasets import load_boston boston_data = load_boston() # + id="-i-ySLthxsTC" print(boston_data.DESCR) # + id="f9lT7fnCxsTE" # 住宅の価格($1,000) y = boston_data['target'] # 説明変数を準備 X = boston_data['data'] # + id="QwQTLTqpxsTH" # DataFrameを作ります。 boston_df = pd.DataFrame(boston_data.data) # 列名をつけます。 boston_df.columns = boston_data.feature_names # 便利のために、価格列を追加します。 boston_df['PRICE'] = y boston_df.head() # + id="I_PWYOBLxsTL" # 横軸に部屋数、縦軸に価格 boston_df.plot.scatter('RM', 'PRICE') # 試してみよう # X軸を変更してみてください。以下が比較的意味をとりやすいかも。 # 犯罪率 CRIM # 窒素酸化物濃度 NOX # 生徒と先生の費 PTRATIO # + id="TVsTxDXPxsTO" # seabornを使うと簡単に回帰直線を描けます sns.lmplot('RM', 'PRICE', data = boston_df) # + id="128eQZ0BxsTR" # 便宜的に、訓練データと、目的変数を知らないことにするテストデータに分ける from sklearn.model_selection import train_test_split X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.33, random_state=42) # + id="OzAIVh1vxsTT" # 全部で506サンプルあったが、訓練用とテスト用に分けられた。 print(X_train.shape, X_test.shape) # + id="MkGNsYAsxsTW" # 線形重回帰を使ったモデルを作る from sklearn.linear_model import LinearRegression # インスタンスを作って、訓練データからモデルを作成 reg = LinearRegression().fit(X_train, y_train) # + id="zVa4h_rCxsTa" # 線形重回帰なので、各変数の係数がわかる print(reg.coef_) print(reg.intercept_) # + id="u25Ryrn1xsTc" # 予測と当てはまりの良さを計算 from sklearn.metrics import mean_squared_error, r2_score # 未知のサンプルの価格を予測 y_pred = reg.predict(X_test) # The mean squared error print('平均2乗誤差: ', mean_squared_error(y_test, y_pred)) # The coefficient of determination: 1 is perfect prediction print('決定係数: ', r2_score(y_test, y_pred)) # + id="eBHrrFDbxsTf" # 正解データと予測結果を図示 plt.scatter(y_test, y_pred) plt.xlabel('test') plt.ylabel('pred') # + id="DQm99SrYxsTi" from sklearn.ensemble import RandomForestRegressor rf_reg = RandomForestRegressor(n_estimators=10, max_depth=3, random_state=0) rf_reg.fit(X_train, y_train) # + id="PyQlW-ONxsTl" rf_reg_pred = rf_reg.predict(X_test) print('平均2乗誤差: ', mean_squared_error(y_test, rf_reg_pred)) print('決定係数: ', r2_score(y_test, rf_reg_pred)) # 試してみよう # n_estimatorsやmax_depthを変更するとどうなるでしょう? # + id="45y9ZriQxsTn" from sklearn.model_selection import GridSearchCV parameters = {'n_estimators':[50, 100, 200], 'max_depth': [2, 4, 8, 16]} rf_reg = RandomForestRegressor() clf = GridSearchCV(rf_reg, parameters) _ = clf.fit(X_train, y_train) # + id="GYZ6V8EIxsTr" # 最も性能がよいモデルで予測 rf_reg_pred = clf.best_estimator_.predict(X_test) print('平均2乗誤差: ', mean_squared_error(y_test, rf_reg_pred)) print('決定係数: ', r2_score(y_test, rf_reg_pred)) # + id="ykdHD8rgxsTt" # 使われたパラメータを表示 clf.best_estimator_.get_params # + id="vEiCv_4lxsTw" # 勾配ブースティングという方法が性能が良いので最近はよく使われている。 from sklearn.ensemble import GradientBoostingRegressor gbr = GradientBoostingRegressor().fit(X_train, y_train) gbr_pred = gbr.predict(X_test) print('平均2乗誤差: ', mean_squared_error(y_test, gbr_pred)) print('決定係数: ', r2_score(y_test, gbr_pred)) # + id="57UJmOh9xsTy" # + id="EfEeY_uQxsT2" # ワインサンプルデータの準備 from sklearn.datasets import load_wine wine_data = load_wine() # + id="7TZItFG-xsT5" # データの説明 print(wine_data.DESCR) # + id="7eRlHFDUxsT8" # 分類わけは数字で入っている wine_data['target'] # + id="yQPx0mR2xsT-" # PCAで2次元に落としこむ pca = PCA(n_components=2) wine_pca = pca.fit_transform(wine_data['data']) plot_2D(wine_pca, wine_data['target']) # + id="WYsNRKnnxsUC" # データの正規化(規格化) # 変数ごとに平均を引いて標準偏差で割るという処理をする。 from sklearn.preprocessing import StandardScaler ss = StandardScaler() ss_data = ss.fit_transform(wine_data['data']) # PCAで2次元へ pca = PCA(n_components=2) ss_pca = pca.fit_transform(ss_data) plot_2D(ss_pca, wine_data['target']) # + id="gKhcTyjZxsUE" # 2クラスの分類とROCによる評価 # SVM(support vector machine)を準備 from sklearn.svm import SVC # ついでにRandom Forestsも準備 from sklearn.ensemble import RandomForestClassifier from sklearn.metrics import plot_roc_curve X = wine_data['data'] # 0と1を0に、2を1に変換 y = wine_data['target'].copy() y[y == 1] = 0 y[y == 2] = 1 # + id="_zU3G75sxsUJ" X_train, X_test, y_train, y_test = train_test_split(X, y, random_state=42) svc = SVC(random_state=42) svc.fit(X_train, y_train) # + id="D5OJReO3xsUM" # 作ったモデルで予測 svc_pred = svc.predict(X_test) # + id="BP6qJ-QIxsUO" # 全部0になってしまっている svc_pred # + id="fUnmM3F3xsUQ" # ほんとは1のサンプルもある y_test # + id="ydwmPRUGxsUT" # より詳しい結果を計算できる from sklearn.metrics import classification_report print(classification_report(y_test , svc_pred)) # + id="1vh0Z0n3xsUX" # サンプルごとに予測の自信度は異なる svc.decision_function(X_test) # + id="EIsBDpqkxsUb" # 受信者操作特性 Receiver operating characteristic svc_disp = plot_roc_curve(svc, X_test, y_test) plt.show() # + id="yMgRrNIAxsUd" # RandomForestsを使ってみる # 直前に作ったSVMのROCに追加するためのコードが入っているので、ちょっとわかりにくい rfc = RandomForestClassifier(n_estimators=10, random_state=42) rfc.fit(X_train, y_train) ax = plt.gca() rfc_disp = plot_roc_curve(rfc, X_test, y_test, ax=ax, alpha=0.8) svc_disp.plot(ax=ax, alpha=0.8) plt.show() # + id="frj2XLVpxsUf" # もともとの3クラスの分類 # もう一度yを代入しなおす y = wine_data['target'].copy() # 訓練用とテスト用に分ける X_train, X_test, y_train, y_test = train_test_split(X, y, random_state=42) # + id="nv1izLbVxsUi" # SVMは2クラス用だが、マルチクラスにもそのまま使える svc = SVC(random_state=42) svc.fit(X_train, y_train) svc_pred = svc.predict(X_test) svc_pred # + id="KUu2Va77xsUk" print(classification_report(y_test , svc_pred)) # + id="yo_LIcNYxsUo" # 混合行列を使った可視化 from sklearn.metrics import confusion_matrix conf_mat = confusion_matrix(y_test, svc_pred) conf_mat # + id="set2b8BwxsUr" # 行方向が正解、列方向が予測 # クラス1のrecall(再現率)は、 print(13/(13+5)) # クラス1のpredision(適合率)は print(13/(13+8)) # 全体のaccuracy(正解率)は、 print((15+13+4)/45) # + id="inpDW-DVxsUt" # ヒートマップを使った可視化がわかりやすい sns.heatmap(conf_mat, annot=True) # + id="z6dNHYOqxsUv" # RandomForestsがいい rfc = RandomForestClassifier(n_estimators=10, random_state=42) rfc.fit(X_train, y_train) rfc_pred = rfc.predict(X_test) print(classification_report(y_test , rfc_pred)) # + id="EBBWYgcvxsUx" # どの変数が分類に効いているかがわかる。 fi = rfc.feature_importances_ # ただの棒グラフを描くのがちょっと面倒だったりする・・・。 plt.bar(range(len(fi)), fi, tick_label=wine_data['feature_names']) plt.xticks(rotation=90) # やってみよう # 1つ前のセルで作ったRandomForestsのインスタンスで、random_stateの数字を変えると、feature importanceがどうなるか試してみてください。 # + id="wsvc8fO-xsUz" # 卒業試験 # 以下のGradientBoostingClassifierを使って、予測モデルを作り、その精度を計算してください。feature importanceの棒グラフも描いてください。 from sklearn.ensemble import GradientBoostingClassifier # + [markdown] id="1mUr4TL5xsU2" # ## Appendix # # [決定係数の説明(Wikipedia)](https://ja.wikipedia.org/wiki/%E6%B1%BA%E5%AE%9A%E4%BF%82%E6%95%B0) # # [ROCの説明(Wikipedia)](https://ja.wikipedia.org/wiki/%E5%8F%97%E4%BF%A1%E8%80%85%E6%93%8D%E4%BD%9C%E7%89%B9%E6%80%A7) # # [決定木、RandomForests、勾配ブースティングのわかりやすいページ](https://www.codexa.net/lightgbm-beginner/)
11,887
/pytorch_practice.ipynb
d6b69e6ac79f10e37ea3759e6eccb473ebed9275
[]
no_license
OlgaBelitskaya/colab_notebooks
https://github.com/OlgaBelitskaya/colab_notebooks
1
1
null
null
null
null
Jupyter Notebook
false
false
.py
141,136
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernel_info: # name: python3 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # ### Note # * Instructions have been included for each segment. You do not have to follow them exactly, but they are included to help you think through the steps. # + # Dependencies and Setup import pandas as pd # File to Load (Remember to Change These) file_to_load = "purchase_data.csv" # Read Purchasing File and store into Pandas data frame purchase_df = pd.read_csv(file_to_load) purchase_df.head(5) # - # ## Player Count # * Display the total number of players # #Get total number of players v_tot_play= purchase_df["SN"].nunique() print("Total Players:",v_tot_play ) # ## Purchasing Analysis (Total) # * Run basic calculations to obtain number of unique items, average price, etc. # # # * Create a summary data frame to hold the results # # # * Optional: give the displayed data cleaner formatting # # # * Display the summary data frame # # + #Get basic calculations #Get number of unique items v_tot_items = purchase_df['Item Name'].nunique() # Get the average price v_avg_price= purchase_df['Price'].mean() # Get number of purchases v_tot_po= purchase_df["Purchase ID"].nunique() # Get total revenue v_tot_rev= purchase_df["Price"].sum() # Create a list data_list = {'Unique Items':[v_tot_items], 'Average Price':[v_avg_price], 'Number of Purchases':v_tot_po,'Total Revenue':v_tot_rev } # Create a DataFrame summary_df = pd.DataFrame(data_list) # print dataframe. summary_df.head(10).style.format({"Average Price":"${:20,.2f}","Total Revenue":"${:20,.2f}"}) # - # ## Gender Demographics # * Percentage and Count of Male Players # # # * Percentage and Count of Female Players # # # * Percentage and Count of Other / Non-Disclosed # # # # Group our original df based on Gender v_gen_g_df= purchase_df.groupby(purchase_df["Gender"]) # Get unique players v_gen_df=pd.DataFrame(v_gen_g_df["SN"].nunique()) #v_gen_df # get the percentage by gender v_gen_pert_df= pd.DataFrame((v_gen_g_df["SN"].count()*100)/v_tot_po) #v_gen_pert_df # Create the result table v_sumt_gen_df= pd.merge(v_gen_df ,v_gen_pert_df, on="Gender") v_sumt_gen_df v_sumt_gen_df.rename(columns = {'SN_x':'Total Count', 'SN_y':'Percentage of Players', }, inplace = True) # sort & format the final table v_sumt_gen_df.sort_values(by=['Percentage of Players'],ascending=False).style.format({ "Percentage of Players":"%{:20,.2f}"}) # # ## Purchasing Analysis (Gender) # * Run basic calculations to obtain purchase count, avg. purchase price, avg. purchase total per person etc. by gender # # # # # * Create a summary data frame to hold the results # # # * Optional: give the displayed data cleaner formatting # # # * Display the summary data frame # + # Create a df count base on grouped df on Gender v_gen_grl_df = purchase_df.groupby(["Gender"]) #v_gen_grl_df.count().head() #Get the purchase count v_gen_count_df =pd.DataFrame(v_gen_grl_df["Purchase ID"].count()) #v_gen_count_df # Get the avg po price v_gen_df3 =pd.DataFrame(v_gen_grl_df["Price"].mean()) #v_gen_df3 #Get the total po value v_gen_df4 =pd.DataFrame(v_gen_grl_df["Price"].sum()) #v_gen_df4 # calculate avg total purchase per person v_gen_grl_df2x = purchase_df.groupby(["Gender","SN"]) v_gen_df4x = pd.DataFrame(v_gen_grl_df2x["Price"].mean()) v_gen_mean_df=v_gen_df4x.groupby("Gender").mean() #creating a summary table results v_po_sumtable1 = pd.merge(v_gen_count_df ,v_gen_df3, on=["Gender"]) v_po_sumtable2 = pd.merge(v_po_sumtable1 ,v_gen_df4, on=["Gender"]) v_po_sumtable3 = pd.merge(v_po_sumtable2 ,v_gen_mean_df, on=["Gender"]) v_po_sumtable3 v_po_sumtable3.rename(columns = {'Purchase ID':'Purchase Count', 'Price_x':'Average Purchase Price', 'Price_y':'Total Purchase Value', 'Price':'Avg Total Purchase per Person' }, inplace = True) v_po_sumtable3.head(3).style.format({"Average Purchase Price":"${:20,.2f}", "Total Purchase Value":"${:20,.2f}", "Avg Total Purchase per Person":"${:20,.2f}" }) # - # ## Age Demographics # * Establish bins for ages # # * Categorize the existing players using the age bins. Hint: use pd.cut() # # # * Calculate the numbers and percentages by age group # # # * Create a summary data frame to hold the results # # # * Optional: round the percentage column to two decimal points # # # * Display Age Demographics Table # # + # Create bins bins = [0, 9, 14, 19, 24, 29, 34, 39, 50] group_names = [ "<10", "10-14", "15-19", "20-24","25-29", "30-34","35-39", "40+"] purchase_df["Edge Grp"] = pd.cut(purchase_df["Age"], bins, labels=group_names,include_lowest=True) #purchase_df.head(5) v_edge_b_df= purchase_df.groupby("Edge Grp") #v_edge_b_df.count().head() v_gen_gpo_df =pd.DataFrame(v_edge_b_df["SN"].nunique()) #v_gen_gpo_df v_gen_percent_df = pd.DataFrame((v_edge_b_df["SN"].count()*100)/v_tot_po) #v_gen_percent_df # Create summary df table results v_sum_bin_df = pd.merge(v_gen_gpo_df ,v_gen_percent_df, on="Edge Grp") #v_sum_bin_df v_sum_bin_df.rename(columns = {'SN_x':'Total Count', 'SN_y':'Percentage of Players', }, inplace = True) v_sum_bin_df.head(10).style.format({"Percentage of Players":"%{:20,.2f}"}) # - # ## Purchasing Analysis (Age) # * Bin the purchase_data data frame by age # # # * Run basic calculations to obtain purchase count, avg. purchase price, avg. purchase total per person etc. in the table below # # # * Create a summary data frame to hold the results # # # * Optional: give the displayed data cleaner formatting # # # * Display the summary data frame # get the metrics v_b_count_df =pd.DataFrame(v_edge_b_df["Gender"].count()) v_b_pavg_df =pd.DataFrame(v_edge_b_df["Price"].mean()) v_b_po_sum_df =pd.DataFrame(v_edge_b_df["Price"].sum()) # Create summary df table results v_sum_po_df = pd.merge(v_b_count_df ,v_b_pavg_df, on="Edge Grp") v_sum_po2_df = pd.merge(v_sum_po_df ,v_b_po_sum_df, on="Edge Grp") #v_sum_po2_df v_sum_po2_df.rename(columns = {'Gender':'Purchase Count', 'Price_x':'Average Purchase Price', 'Price_y':'Total Purchase Value', }, inplace = True) v_sum_po2_df.head(10).style.format({"Average Purchase Price":"${:20,.2f}", "Total Purchase Value":"${:20,.2f}"}) #v_sum_po2_df # ## Top Spenders # * Run basic calculations to obtain the results in the table below # # # * Create a summary data frame to hold the results # # # * Sort the total purchase value column in descending order # # # * Optional: give the displayed data cleaner formatting # # # * Display a preview of the summary data frame # # # + # Group the original df by player v_sn_gr_df = purchase_df.groupby(["SN"]) #v_sn_gr_df.count().head() #get the metrics v_sp_count_df = pd.DataFrame(v_sn_gr_df["Purchase ID"].count()) #v_sp_count_df.head(10) v_sp_pavg_df = pd.DataFrame(v_sn_gr_df["Price"].mean()) #v_sp_pavg_df.head(10) v_sp_psum_df = pd.DataFrame(v_sn_gr_df["Price"].sum()) #v_sp_psum_df.head(10) # Create the results table v_sum_sp_df = pd.merge(v_sp_count_df ,v_sp_pavg_df, on="SN") v_sum_spf_df= pd.merge(v_sum_sp_df ,v_sp_psum_df, on="SN") v_sum_spf_df.rename(columns = {'Purchase ID':'Purchase Count', 'Price_x':'Average Purchase Price', 'Price_y':'Total Purchase Value', }, inplace = True) v_sum_spf_df.sort_values(by=['Total Purchase Value'],ascending=False).style.format({"Average Purchase Price":"${:20,.2f}", "Total Purchase Value":"${:20,.2f}"}) # - # ## Most Popular Items # * Retrieve the Item ID, Item Name, and Item Price columns # # # * Group by Item ID and Item Name. Perform calculations to obtain purchase count, item price, and total purchase value # # # * Create a summary data frame to hold the results # # # * Sort the purchase count column in descending order # # # * Optional: give the displayed data cleaner formatting # # # * Display a preview of the summary data frame # # # + # Group the original df by item id and name v_pitem_gr_df = purchase_df.groupby(["Item ID", "Item Name"]) #v_pitem_gr_df.count().head() v_pitem_count_df = pd.DataFrame(v_pitem_gr_df ["Purchase ID"].count()) #v_pitem_count_df.head(10) v_pitem_count_dfx = pd.DataFrame(v_pitem_gr_df ["Price"].mean()) #v_pitem_count_dfx.head(10) v_sum_sp_dfad = pd.merge(v_pitem_count_df ,v_pitem_count_dfx , on=["Item ID","Item Name"]) #v_sum_sp_dfad v_sum_sp_dfad["Total Purchase Value"] =v_sum_sp_dfad["Purchase ID"] * v_sum_sp_dfad["Price"] v_sum_sp_dfad v_sum_sp_dfad.rename(columns = {'Purchase ID':'Purchase Count', 'Price':'Item Price', 'Total Purchase Value':'Total Purchase Value', }, inplace = True) v_sum_sp_dfad.sort_values(by=['Purchase Count'],ascending=False).style.format({"Item Price":"${:20,.2f}", "Total Purchase Value":"${:20,.2f}"}) # - # ## Most Profitable Items # * Sort the above table by total purchase value in descending order # # # * Optional: give the displayed data cleaner formatting # # # * Display a preview of the data frame # # # + #sort the table v_sum_sp_dfad.sort_values(by=['Total Purchase Value'],ascending=False).style.format({"Item Price":"${:20,.2f}", "Total Purchase Value":"${:20,.2f}"}) : 1590858267167, "user_tz": -180, "elapsed": 1020, "user": {"displayName": "Olga Safu", "photoUrl": "https://lh3.googleusercontent.com/a-/AOh14GhITqyZukwHZ9teMEwtxrx1LXmu7BQL_S_bK8qJFLU=s64", "userId": "13149748190150435632"}} random_seed=23; batch_size=128 train=tmnist(root='data',train=True,download=True, transform=transforms.ToTensor()) test=tmnist(root='data',train=False, transform=transforms.ToTensor()) train_loader=tdl(dataset=train,shuffle=True, batch_size=batch_size) test_loader=tdl(dataset=test,shuffle=False, batch_size=batch_size) for images,labels in train_loader: print('Image dimensions: %s'%str(images.shape)) print('Label dimensions: %s'%str(labels.shape)) break # + id="grpd8febimc0" colab_type="code" colab={} learning_rate=.1; epochs=15 num_features=784; num_classes=10 class SoftmaxRegression(torch.nn.Module): def __init__(self,num_features,num_classes): super(SoftmaxRegression,self).__init__() self.linear=torch.nn.Linear(num_features,num_classes) self.linear.weight.detach().zero_() self.linear.bias.detach().zero_() def forward(self,x): logits=self.linear(x) probs=tnnf.softmax(logits,dim=1) return logits,probs model=SoftmaxRegression(num_features=num_features, num_classes=num_classes) model.to(dev) optimizer=torch.optim.SGD(model.parameters(), lr=learning_rate) # + id="O-0ol52si3MQ" colab_type="code" colab={} def model_acc(model,data_loader,num_features): correct_preds,num_examples=0,0 for features,targets in data_loader: features=features.view(-1,num_features).to(dev) targets=targets.to(dev) logits,probs=model(features) _,pred_labels=torch.max(probs,1) num_examples+=targets.size(0) correct_preds+=(pred_labels==targets).sum() return correct_preds.float()/num_examples*100 # + id="P15sp2oyi7bb" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 1000} outputId="a306d7c0-9486-461e-8054-6e159aa8e3eb" executionInfo={"status": "ok", "timestamp": 1590858475921, "user_tz": -180, "elapsed": 125180, "user": {"displayName": "Olga Safu", "photoUrl": "https://lh3.googleusercontent.com/a-/AOh14GhITqyZukwHZ9teMEwtxrx1LXmu7BQL_S_bK8qJFLU=s64", "userId": "13149748190150435632"}} for epoch in range(epochs): for batch_ids,(features,targets) in enumerate(train_loader): features=features.view(-1,num_features).to(dev) targets=targets.to(dev) logits,probs=model(features) cost=tnnf.cross_entropy(logits,targets) optimizer.zero_grad(); cost.backward() optimizer.step() if not batch_ids%200: print ('Epoch: %03d/%03d | Batch %03d/%03d | Cost: %.4f' %(epoch+1,epochs,batch_ids, len(train)//batch_size,cost)) with torch.set_grad_enabled(False): print('Epoch: %03d/%03d train accuracy: %.2f%%'%\ (epoch+1,epochs,model_acc(model,train_loader,num_features))) # + id="TJO3GwKsjDhv" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 34} outputId="17dfbbb0-5c0f-4545-f9cf-8ffd9f5e941b" executionInfo={"status": "ok", "timestamp": 1590858477684, "user_tz": -180, "elapsed": 1733, "user": {"displayName": "Olga Safu", "photoUrl": "https://lh3.googleusercontent.com/a-/AOh14GhITqyZukwHZ9teMEwtxrx1LXmu7BQL_S_bK8qJFLU=s64", "userId": "13149748190150435632"}} print('Test accuracy: %.2f%%'%(model_acc(model,test_loader,num_features))) # + [markdown] id="9hoNJRQgjHqV" colab_type="text" # ## Applying to Color Images # + id="bs1qEcGNjNK3" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 51} outputId="58321f38-d623-4638-ad41-3283601abee6" executionInfo={"status": "ok", "timestamp": 1590858707279, "user_tz": -180, "elapsed": 5117, "user": {"displayName": "Olga Safu", "photoUrl": "https://lh3.googleusercontent.com/a-/AOh14GhITqyZukwHZ9teMEwtxrx1LXmu7BQL_S_bK8qJFLU=s64", "userId": "13149748190150435632"}} fpath='https://olgabelitskaya.github.io/' zf='FlowerColorImages.h5.zip' input_file=urllib.request.urlopen(fpath+zf) output_file=open(zf,'wb'); output_file.write(input_file.read()) output_file.close(); input_file.close() zipf=zipfile.ZipFile(zf,'r') zipf.extractall(''); zipf.close() f=h5py.File(zf[:-4],'r') keys=list(f.keys()); print(keys) X=np.array(f[keys[0]],dtype='float32')/255 y=np.array(f[keys[1]],dtype='int32') N=len(y); n=int(.2*N); batch_size=16 shuffle_ids=np.arange(N) np.random.RandomState(23).shuffle(shuffle_ids) X,y=X[shuffle_ids],y[shuffle_ids] X_test,X_train=X[:n],X[n:] y_test,y_train=y[:n],y[n:] X_train.shape,y_train.shape # + id="PP1Og30jjgT8" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 51} outputId="59911eac-203e-4c0a-ad33-d70ee6c6d374" executionInfo={"status": "ok", "timestamp": 1590858710833, "user_tz": -180, "elapsed": 1088, "user": {"displayName": "Olga Safu", "photoUrl": "https://lh3.googleusercontent.com/a-/AOh14GhITqyZukwHZ9teMEwtxrx1LXmu7BQL_S_bK8qJFLU=s64", "userId": "13149748190150435632"}} class TData(tds): def __init__(self,X,y): self.X=torch.tensor(X,dtype=torch.float32) self.y=torch.tensor(y,dtype=torch.int32) def __getitem__(self,index): train_img,train_lbl=self.X[index],self.y[index] return train_img,train_lbl def __len__(self): return self.y.shape[0] train=TData(X_train,y_train) test=TData(X_test,y_test) train_loader=tdl(dataset=train,batch_size=batch_size,shuffle=True) test_loader=tdl(dataset=test,batch_size=batch_size,shuffle=False) for images,labels in train_loader: print('Image dimensions: %s'%str(images.shape)) print('Label dimensions: %s'%str(labels.shape)) break # + id="w_yaMorokY2W" colab_type="code" colab={} learning_rate=.01; epochs=25 num_features=49152; num_classes=10 torch.manual_seed(random_seed) model=SoftmaxRegression(num_features=num_features, num_classes=num_classes) model.to(dev) optimizer=torch.optim.Adam(model.parameters(),lr=learning_rate) # + id="l7yJDxX6kgVg" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 1000} outputId="fb4a016b-726c-43b7-b4c3-884205ea7d67" executionInfo={"status": "ok", "timestamp": 1590858765475, "user_tz": -180, "elapsed": 4025, "user": {"displayName": "Olga Safu", "photoUrl": "https://lh3.googleusercontent.com/a-/AOh14GhITqyZukwHZ9teMEwtxrx1LXmu7BQL_S_bK8qJFLU=s64", "userId": "13149748190150435632"}} for epoch in range(epochs): for batch_ids,(features,targets) in enumerate(train_loader): features=features.view(-1,num_features).to(dev) targets=targets.to(dev) logits,probs=model(features) cost=tnnf.cross_entropy(logits,targets.long()) optimizer.zero_grad(); cost.backward() optimizer.step() if not batch_ids%10: print ('Epoch: %03d/%03d | Batch %03d/%03d | Cost: %.4f' %(epoch+1,epochs,batch_ids, len(train)//batch_size,cost)) with torch.set_grad_enabled(False): print('Epoch: %03d/%03d train accuracy: %.2f%%'%\ (epoch+1,epochs,model_acc(model,train_loader,num_features))) # + id="jPlM9-YWkmcf" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 34} outputId="cee42e7d-091b-409f-9f8d-9a9d47e4d4e1" executionInfo={"status": "ok", "timestamp": 1590858786543, "user_tz": -180, "elapsed": 1302, "user": {"displayName": "Olga Safu", "photoUrl": "https://lh3.googleusercontent.com/a-/AOh14GhITqyZukwHZ9teMEwtxrx1LXmu7BQL_S_bK8qJFLU=s64", "userId": "13149748190150435632"}} print('Test accuracy: %.2f%%'%(model_acc(model,test_loader,num_features)))
17,512
/Hamlet.ipynb
df2ebbfcac50eda363ed10482946bea289c5920b
[]
no_license
desertnaut/LIterature_Networks
https://github.com/desertnaut/LIterature_Networks
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
289,111
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # %matplotlib inline # # # Path with L1- Logistic Regression # # # Computes path on IRIS dataset. # # # # + print(__doc__) # Author: Alexandre Gramfort <[email protected]> # License: BSD 3 clause from datetime import datetime import numpy as np import matplotlib.pyplot as plt from sklearn import linear_model from sklearn import datasets from sklearn.svm import l1_min_c iris = datasets.load_iris() X = iris.data y = iris.target X = X[y != 2] y = y[y != 2] X -= np.mean(X, 0) # ############################################################################# # Demo path functions cs = l1_min_c(X, y, loss='log') * np.logspace(0, 3) print("Computing regularization path ...") start = datetime.now() clf = linear_model.LogisticRegression(C=1.0, penalty='l1', tol=1e-6) coefs_ = [] for c in cs: clf.set_params(C=c) clf.fit(X, y) coefs_.append(clf.coef_.ravel().copy()) print("This took ", datetime.now() - start) coefs_ = np.array(coefs_) plt.plot(np.log10(cs), coefs_) ymin, ymax = plt.ylim() plt.xlabel('log(C)') plt.ylabel('Coefficients') plt.title('Logistic Regression Path') plt.axis('tight') plt.show() tor in pers_l: print actor print print 'The number of actors in Hamlet is', len(pers_l) # - # Ως "διαλογική σχέση" ("conversational relationship") μεταξύ δυο χαρακτήρων (actors) ορίζουμε την εμφάνιση των δυο χαρακτήρων σε ένα (κοινό) διάλογο. Οι μονάδες ή τα "κομμάτια" διαλόγου (conversational chunks) παρουσιάζονται στο κείμενο ως γραμμές κειμένου που περιέχονται μεταξύ δυο κενών γραμμών. # + graph_dic,ract_dic,pernode_dict,nodper_dic,cnum=create_graph_dict(act_dict,pers_l,pers_dict,u) G, list_of_Graphs_final, Gagr, edgeList ,nmap ,mapping,k,n=synthetic_multi_level_dict(graph_dic,pernode_dict,nodper_dic,ract_dic,No_isolates=True) conver_rel = 0 for k,v in graph_dic.items(): print nx.info(v) conver_rel += len(v.edges()) print print 'Actors appearing in Hamlet in all conversational relationships in all Acts:' for i in pernode_dict: print i print print 'The total number of actors appearing in Hamlet in all conversational relationships in all Acts is', len(pernode_dict.keys()) print 'The total number of conversational relationships (edges) appearing in all Acts of Hamlet is', conver_rel # + GI = graph_dic[ract_dic[cnum[0]]] print "The number of actors in Hamlet's Act I is", len(GI.nodes()) print "The number of conversational relationships in Hamlet's Act I is", len(GI.edges()) GI.remove_nodes_from(nx.isolates(GI)) labels={i:v for v,i in pernode_dict.items() if i in GI.nodes()} weights={(i[0],i[1]):i[2]['weight'] for i in GI.edges(data=True) }#if all((i[0],i[1])) in G.nodes() } # print weights # print GI.nodes() plt.figure(figsize=(12,12)) pos=nx.spring_layout(GI) nx.draw_networkx(GI,pos=pos,with_labels=False,alpha=0.4) labe=nx.draw_networkx_labels(GI,pos=pos,labels=labels) # nx.draw_networkx_labels(GI,pos=pos,labels=weights) plt.title("Hamlet Act I") kk=plt.axis('off') # + GI = graph_dic[ract_dic[cnum[1]]] print "The number of actors in Hamlet's Act II is", len(GI.nodes()) print "The number of conversational relationships in Hamlet's Act II is", len(GI.edges()) GI.remove_nodes_from(nx.isolates(GI)) labels={i:v for v,i in pernode_dict.items() if i in GI.nodes()} weights={(i[0],i[1]):i[2]['weight'] for i in GI.edges(data=True) }#if all((i[0],i[1])) in G.nodes() } # print weights # print GI.nodes() plt.figure(figsize=(12,12)) pos=nx.spring_layout(GI) nx.draw_networkx(GI,pos=pos,with_labels=False,alpha=0.4) labe=nx.draw_networkx_labels(GI,pos=pos,labels=labels) # nx.draw_networkx_labels(GI,pos=pos,labels=weights) plt.title("Hamlet Act II") kk=plt.axis('off') # + GI = graph_dic[ract_dic[cnum[2]]] print "The number of actors in Hamlet's Act III is", len(GI.nodes()) print "The number of conversational relationships in Hamlet's Act III is", len(GI.edges()) GI.remove_nodes_from(nx.isolates(GI)) labels={i:v for v,i in pernode_dict.items() if i in GI.nodes()} weights={(i[0],i[1]):i[2]['weight'] for i in GI.edges(data=True) }#if all((i[0],i[1])) in G.nodes() } # print weights # print GI.nodes() plt.figure(figsize=(12,12)) pos=nx.spring_layout(GI) nx.draw_networkx(GI,pos=pos,with_labels=False,alpha=0.4) labe=nx.draw_networkx_labels(GI,pos=pos,labels=labels) # nx.draw_networkx_labels(GI,pos=pos,labels=weights) plt.title("Hamlet Act III") kk=plt.axis('off') # + GI = graph_dic[ract_dic[cnum[3]]] print "The number of actors in Hamlet's Act IV is", len(GI.nodes()) print "The number of conversational relationships in Hamlet's Act IV is", len(GI.edges()) GI.remove_nodes_from(nx.isolates(GI)) labels={i:v for v,i in pernode_dict.items() if i in GI.nodes()} weights={(i[0],i[1]):i[2]['weight'] for i in GI.edges(data=True) }#if all((i[0],i[1])) in G.nodes() } # print weights # print GI.nodes() plt.figure(figsize=(12,12)) pos=nx.spring_layout(GI) nx.draw_networkx(GI,pos=pos,with_labels=False,alpha=0.4) labe=nx.draw_networkx_labels(GI,pos=pos,labels=labels) # nx.draw_networkx_labels(GI,pos=pos,labels=weights) plt.title("Hamlet Act IV") kk=plt.axis('off') # + GI = graph_dic[ract_dic[cnum[4]]] print "The number of actors in Hamlet's Act V is", len(GI.nodes()) print "The number of conversational relationships in Hamlet's Act V is", len(GI.edges()) GI.remove_nodes_from(nx.isolates(GI)) labels={i:v for v,i in pernode_dict.items() if i in GI.nodes()} weights={(i[0],i[1]):i[2]['weight'] for i in GI.edges(data=True) }#if all((i[0],i[1])) in G.nodes() } # print weights # print GI.nodes() plt.figure(figsize=(12,12)) pos=nx.spring_layout(GI) nx.draw_networkx(GI,pos=pos,with_labels=False,alpha=0.4) labe=nx.draw_networkx_labels(GI,pos=pos,labels=labels) # nx.draw_networkx_labels(GI,pos=pos,labels=weights) plt.title("Hamlet Act V") kk=plt.axis('off') # + G=plot_total_graph_with_weights(graph_dic,nodper_dic) weights={(nd[0],nd[1]):str(nd[2]['weight']) for nd in G.edges(data=True)} labels={i:v for v,i in pernode_dict.items() if i in G.nodes()} print "The number of actors in Hamlet Network (all Acts) is", len(G.nodes()) print "The number of conversational relationships in Hamlet Network (all Acts) is", len(G.edges()) # print labels plt.figure(figsize=(12,12)) pos=nx.spring_layout(G) nx.draw_networkx(G,pos=pos,with_labels=False,alpha=0.4) labe=nx.draw_networkx_labels(G,pos=pos,labels=labels) nx.draw_networkx_edge_labels(G,pos=pos,edge_labels=weights) plt.title("Hamlet Network") kk=plt.axis('off') # + # G=nx.Graph() # for k,v in graph_dic.items(): # for ed in v.edges(data=True): # ww=ed[2]['weight'] # if G.has_edge(ed[0],ed[1]): # wei=G[ed[0]][ed[1]]['weight'] # else: # wei=0 # G.add_edge(ed[0],ed[1],weight=wei+ww) # G.add_nodes_from(v.nodes()) # # GI = graph_dic[ract_dic[cnum[3]]] # print "The number of actors in Hamlet Network (all Acts) is", len(G.nodes()) # print "The number of conversational relationships in Hamlet Network (all Acts) is", len(G.edges()) # G.remove_nodes_from(nx.isolates(G)) # labels={i:v for v,i in pernode_dict.items() if i in G.nodes()} # plt.figure(figsize=(12,12)) # pos=nx.spring_layout(G) # nx.draw_networkx(G,pos=pos,with_labels=False,alpha=0.4) # labe=nx.draw_networkx_labels(G,pos=pos,labels=labels) # # # nx.draw_networkx_labels(GI,pos=pos,labels=weights) # plt.title("Hamlet Network") # kk=plt.axis('off') # -
7,619
/pytorch_tutorial/basic/linear_regression.ipynb
44e9ab531b812c733b6a45d6a8358acb0bc251f0
[]
no_license
kmrtanmay/pytorch-tutorial
https://github.com/kmrtanmay/pytorch-tutorial
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
19,011
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # name: python3 # --- # + [markdown] id="view-in-github" colab_type="text" # <a href="https://colab.research.google.com/github/kmrtanmay/pytorch-tutorial/blob/master/pytorch_tutorial/basic/linear_regression.ipynb" target="_parent"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/></a> # + id="C7wwOCKvJDuj" colab_type="code" colab={} import torch import torch.nn as nn import numpy as np import matplotlib.pyplot as plt # + id="VXRATzY7JuI3" colab_type="code" colab={} # Hyper-parameters input_size = 1 output_size = 1 num_epochs = 60 learning_rate = 0.001 # + id="ikJhGDFrJ0NN" colab_type="code" colab={} # Toy dataset x_train = np.array([[3.3], [4.4], [5.5], [6.71], [6.93], [4.168], [9.779], [6.182], [7.59], [2.167], [7.042], [10.791], [5.313], [7.997], [3.1]], dtype=np.float32) # + id="cV7b-roWKDyg" colab_type="code" colab={} y_train = np.array([[1.7], [2.76], [2.09], [3.19], [1.694], [1.573], [3.366], [2.596], [2.53], [1.221], [2.827], [3.465], [1.65], [2.904], [1.3]], dtype=np.float32) # + id="u7pbjd_yKJRD" colab_type="code" colab={} # Linear regression model model = nn.Linear(input_size, output_size) # + id="FKoVE5MIKRHv" colab_type="code" colab={} # Loss and optimizer criterion = nn.MSELoss() optimizer = torch.optim.SGD(model.parameters(), lr=learning_rate) # + id="JBb59HewKhZ2" colab_type="code" outputId="e67869a0-6184-4ad3-8500-7314861af353" colab={"base_uri": "https://localhost:8080/", "height": 225} # Train the model for epoch in range(num_epochs): # Convert numpy arrays to torch tensors inputs = torch.from_numpy(x_train) targets = torch.from_numpy(y_train) # Forward pass outputs = model(inputs) loss = criterion(outputs, targets) # Backward and optimize optimizer.zero_grad() loss.backward() optimizer.step() if (epoch+1) % 5 == 0: print ('Epoch [{}/{}], Loss: {:.4f}'.format(epoch+1, num_epochs, loss.item())) # + id="g6DQPI5MK6LA" colab_type="code" outputId="2c9834e8-f235-4de5-ae8f-3d86281f93fa" colab={"base_uri": "https://localhost:8080/", "height": 265} # Plot the graph predicted = model(torch.from_numpy(x_train)).detach().numpy() plt.plot(x_train, y_train, 'ro', label='Original data') plt.plot(x_train, predicted, label='Fitted line') plt.legend() plt.show() # + id="qJlj2SdONUi4" colab_type="code" colab={} # Save the model checkpoint torch.save(model.state_dict(), 'model.ckpt') # + id="H4STSYc0NZe3" colab_type="code" colab={}
2,792
/parse_pdf.ipynb
88cef76508855b151c664b971303ff99180a9c9b
[]
no_license
kb-open/parse_pdf
https://github.com/kb-open/parse_pdf
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
380,422
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 2 # language: python # name: python2 # --- import oletools.thirdparty.olefile as olefile from pprint import pprint from binascii import unhexlify, hexlify import os import re import string import numpy as np import struct ole = olefile.OleFileIO("BX.smd") myStream = ole.openstream(['EventLogStorage', 'SymbolTableStream']) data = myStream.read() ole.close() def listToStr(listToConv): return reduce(lambda x,y:x+y, listToConv) def grabNulls(myData): myNulls = re.findall(r'[\x00]+', myData) return [(len(myNull), myNull, len(filter(lambda x:x==myNull, myNulls))) for myNull in set(myNulls)] def stringGrabber(myString): mySplits = re.split(r'[\x00]{2,}.[\x00]{2,}', myString) myPrintables = [filter(lambda x:x in string.printable, myEntry) for myEntry in mySplits] myChars = [map(lambda x:chr(int(hexlify(x), 16)), myEntry) for myEntry in myPrintables] #myPrintables = [filter(lambda x:ord(x) < 128 and x in string.printable, myEntry) for myEntry in mySplits] #myPrintables = [filter(lambda x:x in string.printable and len(x)<=110, myEntry) for myEntry in mySplits] myNonEmpties = filter(lambda x:len(x)>0, myChars) #mySmallEnoughs = filter(lambda x:len(x)<=110, myNonEmpties) stringsAgain = [listToStr(x) for x in myNonEmpties] return [x.strip() for x in stringsAgain] def createLexicon(myString): return set(stringGrabber(myString)) ole = olefile.OleFileIO("BX.smd") storageStream = ole.openstream(['EventLogStorage', 'SymbolTableStream']).read() ole.close() storageStreamLexicon = createLexicon(storageStream) storageStreamLexicon [x for x in storageStreamLexicon if re.match(r"L APB", x)] mode10Strings = dict([(x, stringGrabber(mode10Streams[x])) for x in mode10Streams.keys()]) [(x, len(mode10Strings[x])) for x in mode10Strings.keys()] mode10Strings.keys() mode10Lexicons = dict([(x, createLexicon(mode10Streams[x])) for x in mode10Streams.keys()]) [(x, len(createLexicon(mode10Streams[x]))) for x in mode10Lexicons.keys()] # + ole = olefile.OleFileIO("BX.smd") recorderSymbolTables = [x for x in ole.listdir() if len(x)==4 and x[0]=="RecorderStorage" and x[3]=="SymbolTableStream"] recorderSymbolTablesStreams = dict([(x[1], ole.openstream(x).read()) for x in recorderSymbolTables]) ole.close() # - parameterStreamLexicons = dict([(x, createLexicon(recorderSymbolTablesStreams[x])) for x in recorderSymbolTablesStreams.keys()]) [(x, len(parameterStreamLexicons[x])) for x in parameterStreamLexicons.keys()] parameterStreamLexicons['Mode 10'] parameterStreamLexicons['Mode 4'] parameterStreamLexicons # + ole = olefile.OleFileIO("BX.smd") allLexicons = [createLexicon(ole.openstream(x).read()) for x in ole.listdir()] ole.close() # - #Not as clean as I would have liked masterLexicon = list(reduce(lambda x,y:x|y, allLexicons)) # + ole = olefile.OleFileIO("BX.smd") recorderParameterStreams = [x for x in ole.listdir() if len(x)==4 and x[0]=="RecorderStorage" and x[3]=="ParametersStream"] recorderParameterStreamsDict = dict([(x[1], ole.openstream(x).read()) for x in recorderParameterStreams]) ole.close() # - recorderParameterStreamsDict.keys() recorderParameterStreamsDict filter(lambda x:x in string.printable, '!\xb9\r\x07H\xef\xd3\x11\xa1\x06\x00\x10K\xd7\xd5$d') '!\rHK$d' in masterLexicon # + ole = olefile.OleFileIO("BX.smd") allLexiconDict = dict([(x, createLexicon(ole.openstream(x).read())) for x in ole.listdir()]) ole.close() # + ole = olefile.OleFileIO("BX.smd") allStreams = [ole.openstream(x).read() for x in ole.listdir()] ole.close() # + ole = olefile.OleFileIO("BX.smd") myDirs = ole.listdir() streamAndTitle = [(myEntry, ole.openstream(myEntry).read()) for myEntry in myDirs] noEmptyStreams = filter(lambda x: len(x[1])!=0, streamAndTitle) titlesAndNulls = [(myEntry[0], grabNulls(myEntry[1])) for myEntry in noEmptyStreams] ole.close() # - allNulls = [(myEntry[0], grabNulls(myEntry[1])) for myEntry in noEmptyStreams] [(y[0], y[2]) for y in allNulls[0][1]] #LAST TIME #Trying to display nullcounts along with titles. [(y[1][0], y[2]) for y in allNulls[0][1]] (allNulls[0][0], allNulls[0][1][0][0], allNulls[0][1][0][2]) pprint([allNulls[0][0], [(y[0], y[2]) for y in allNulls[0][1]]]) [(x[0], x[1][0][0], x[1][0][2]) for x in allNulls][0] #THE GOOD ONE nullsForAll = [(x[0], [(y[0], y[2]) for y in x[1]]) for x in allNulls] [y[[0,2]] for y in [np.array(x) for x in allNulls[0][1]]] # + ole = olefile.OleFileIO("BX.smd") allLexicons = [(x, createLexicon(ole.openstream(x).read())) for x in ole.listdir()] ole.close() # - allStreams[2][1]
4,824
/assignment-2/XOR.ipynb
fad9ea8a924411e0695947a8bf708dc111d9bab6
[]
no_license
cmaspi/AI1104
https://github.com/cmaspi/AI1104
1
0
null
null
null
null
Jupyter Notebook
false
false
.py
153,648
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 (ipykernel) # language: python # name: python3 # --- #importing librarier import matplotlib.pyplot as plt import numpy as np import math # + #defining sigmoid function and its derivative def sigmoid (x): return 1/(1+np.exp(-x)) def sigmoid_der (x): return sigmoid(x)*(1-sigmoid(x)) #mean , standard deviation for noise mean=0 std=0.03 # + # The follwoing is for XOR # number of test cases #initialisation of weight vectors #alpha=np.random.uniform(-4,4,6) #alpha=alpha.reshape(3,2) #beta=np.array([np.random.uniform(-4,4,3)]).T #print(alpha,beta) alpha=np.random.uniform(-4,4,6) alpha=alpha.reshape(3,2) beta=np.array([np.random.uniform(-4,4,3)]).T # The follwoing is for AND # number of test cases T=1000 N=int(0.8*T) M=int(0.2*T) y=np.ones(T) # each node in input layer is either 0 or 1 (with some noise) x1=np.random.randint(0,2,T) x2=np.random.randint(0,2,T) #converting to float x1=x1.astype(float) x2=x2.astype(float) #if both nodes are 1 then output node should be 1 for i in range(T): if x1[i]==0 and x2[i]==0: y[i]=0 elif x1[i] and x2[i]: y[i]=0 #adding noise x1 += np.random.normal(mean, std, T) x2 += np.random.normal(mean, std, T) # appending a row of ones, reshaping the matrix X=np.array([np.ones(T),x1,x2]) X=X.reshape(3,T) #plotting the input data points plt.plot(X[1,:],X[2,:],'o',label='pts') plt.legend() plt.grid(1) plt.xlabel('x1') plt.ylabel('x2') plt.show() #size of mini batch m=50 #number of epochs epoch =100 #learning rate gamma=0.05 #The vector for mse values of training data R_train=np.empty([1]) #The vector for mse values of testing data R_test=np.empty([1]) # looping over epoch for i in range(epoch): #looping over the mini batches for j in range(N//m): #z is sgm(alpha.T * X) z=np.matmul(alpha.T,X[:,j*m:(j+1)*m]) z=z.reshape(1,2*m) for idx in range(2*m): z[0][idx]=sigmoid(z[0][idx]) z=np.append(np.ones(m),z) z=z.reshape(3,m) #y_cap is sigmoid of beta.T * z y_cap=np.matmul(beta.T,z) for idx in range(m): y_cap[0][idx]=sigmoid(y_cap[0][idx]) #print(beta,y_cap) delta=-2*(y[j*m:(j+1)*m]-y_cap) #making the delta vector( 1 cross m) for idx in range(m): delta[0][idx]=delta[0][idx]*sigmoid_der(np.dot(beta.T,z[:,idx])) # making the S matrix (3 cross m) S=np.matmul(beta,delta) for idx in range(3): for itr in range(m): S[idx][itr]=S[idx][itr]*(z[idx][itr])*(1-(z[idx][itr])) #updating the weight vector beta-=gamma*np.matmul(z,delta.T) alpha-=gamma*np.matmul(S,X[1:,j*m:(j+1)*m].T) # finding z after every epoch z=np.matmul(alpha.T,X) z=z.reshape(1,2*T) for idx in range(2*T): z[0][idx]=sigmoid(z[0][idx]) z=np.append(np.ones(T),z) z=z.reshape(3,T) #finding the y cap after every epoch y_cap=np.matmul(beta.T,z) for idx in range(T): y_cap[0][idx]=sigmoid(y_cap[0][idx]) # storing the errors in an array print("epoch:",i+1) R_train=np.append(R_train,np.sum((y[:N]-y_cap[0,:N])**2)/N) R_test=np.append(R_test,np.sum((y[N:T]-y_cap[0,N:T])**2)/M) print("Training error",np.sum((y[:N]-y_cap[0,:N])**2)/N) print("Testing error",np.sum((y[N:T]-y_cap[0,N:T])**2)/M) print(alpha,beta) #print("Observation: Saddle point is reached") #plotting the results plt.plot(np.linspace(1,epoch,epoch),R_train[1:], 'r',label='training error') plt.plot(np.linspace(1,epoch,epoch),R_test[1:],label='testing error') plt.legend() plt.grid() plt.show() # + # The follwoing is for XOR # number of test cases #initialisation of weight vectors alpha=np.random.uniform(-4,4,6) alpha=alpha.reshape(3,2) beta=np.array([np.random.uniform(-4,4,3)]).T # The follwoing is for AND # number of test cases T=2500 N=int(0.8*T) M=int(0.2*T) y=np.ones(T) # each node in input layer is either 0 or 1 (with some noise) x1=np.random.randint(0,2,T) x2=np.random.randint(0,2,T) #converting to float x1=x1.astype(float) x2=x2.astype(float) #if both nodes are 1 then output node should be 1 for i in range(T): if x1[i]==0 and x2[i]==0: y[i]=0 elif x1[i] and x2[i]: y[i]=0 #adding noise x1 += np.random.normal(mean, std, T) x2 += np.random.normal(mean, std, T) # appending a row of ones, reshaping the matrix X=np.array([np.ones(T),x1,x2]) X=X.reshape(3,T) #plotting the input data points plt.plot(X[1,:],X[2,:],'o',label='pts') plt.legend() plt.grid(1) plt.xlabel('x1') plt.ylabel('x2') plt.show() #size of mini batch m=50 #number of epochs epoch =100 #learning rate gamma=0.05 #The vector for mse values of training data R_train=np.empty([1]) #The vector for mse values of testing data R_test=np.empty([1]) # looping over epoch for i in range(epoch): #looping over the mini batches for j in range(N//m): #z is sgm(alpha.T * X) z=np.matmul(alpha.T,X[:,j*m:(j+1)*m]) z=z.reshape(1,2*m) for idx in range(2*m): z[0][idx]=sigmoid(z[0][idx]) z=np.append(np.ones(m),z) z=z.reshape(3,m) #y_cap is sigmoid of beta.T * z y_cap=np.matmul(beta.T,z) for idx in range(m): y_cap[0][idx]=sigmoid(y_cap[0][idx]) #print(beta,y_cap) delta=-2*(y[j*m:(j+1)*m]-y_cap) #making the delta vector( 1 cross m) for idx in range(m): delta[0][idx]=delta[0][idx]*sigmoid_der(np.dot(beta.T,z[:,idx])) # making the S matrix (3 cross m) S=np.matmul(beta,delta) for idx in range(3): for itr in range(m): S[idx][itr]=S[idx][itr]*sigmoid(z[idx][itr])*(1-sigmoid(z[idx][itr])) #updating the weight vector beta-=gamma*np.matmul(z,delta.T) alpha-=gamma*np.matmul(S,X[1:,j*m:(j+1)*m].T) # finding z after every epoch z=np.matmul(alpha.T,X) z=z.reshape(1,2*T) for idx in range(2*T): z[0][idx]=sigmoid(z[0][idx]) z=np.append(np.ones(T),z) z=z.reshape(3,T) #finding the y cap after every epoch y_cap=np.matmul(beta.T,z) for idx in range(T): y_cap[0][idx]=sigmoid(y_cap[0][idx]) # storing the errors in an array print("epoch:",i+1) R_train=np.append(R_train,np.sum((y[:N]-y_cap[0,:N])**2)/N) R_test=np.append(R_test,np.sum((y[N:T]-y_cap[0,N:T])**2)/M) print("Training error",np.sum((y[:N]-y_cap[0,:N])**2)/N) print("Testing error",np.sum((y[N:T]-y_cap[0,N:T])**2)/M) print(alpha,beta) #plotting the results plt.plot(np.linspace(1,epoch,epoch),R_train[1:], 'r',label='training error') plt.plot(np.linspace(1,epoch,epoch),R_test[1:],label='testing error') plt.legend() plt.grid() plt.show() # + # The follwoing is for XOR # number of test cases #initialisation of weight vectors alpha=np.random.uniform(-4,4,6) alpha=alpha.reshape(3,2) beta=np.array([np.random.uniform(-4,4,3)]).T # The follwoing is for AND # number of test cases T=5000 N=int(0.8*T) M=int(0.2*T) y=np.ones(T) # each node in input layer is either 0 or 1 (with some noise) x1=np.random.randint(0,2,T) x2=np.random.randint(0,2,T) #converting to float x1=x1.astype(float) x2=x2.astype(float) #if both nodes are 1 then output node should be 1 for i in range(T): if x1[i]==0 and x2[i]==0: y[i]=0 elif x1[i] and x2[i]: y[i]=0 #adding noise x1 += np.random.normal(mean, std, T) x2 += np.random.normal(mean, std, T) # appending a row of ones, reshaping the matrix X=np.array([np.ones(T),x1,x2]) X=X.reshape(3,T) #plotting the input data points plt.plot(X[1,:],X[2,:],'o',label='pts') plt.legend() plt.grid(1) plt.xlabel('x1') plt.ylabel('x2') plt.show() #size of mini batch m=50 #number of epochs epoch =100 #learning rate gamma=0.05 #The vector for mse values of training data R_train=np.empty([1]) #The vector for mse values of testing data R_test=np.empty([1]) # looping over epoch for i in range(epoch): #looping over the mini batches for j in range(N//m): #z is sgm(alpha.T * X) z=np.matmul(alpha.T,X[:,j*m:(j+1)*m]) z=z.reshape(1,2*m) for idx in range(2*m): z[0][idx]=sigmoid(z[0][idx]) z=np.append(np.ones(m),z) z=z.reshape(3,m) #y_cap is sigmoid of beta.T * z y_cap=np.matmul(beta.T,z) for idx in range(m): y_cap[0][idx]=sigmoid(y_cap[0][idx]) #print(beta,y_cap) delta=-2*(y[j*m:(j+1)*m]-y_cap) #making the delta vector( 1 cross m) for idx in range(m): delta[0][idx]=delta[0][idx]*sigmoid_der(np.dot(beta.T,z[:,idx])) # making the S matrix (3 cross m) S=np.matmul(beta,delta) for idx in range(3): for itr in range(m): S[idx][itr]=S[idx][itr]*sigmoid(z[idx][itr])*(1-sigmoid(z[idx][itr])) #updating the weight vector beta-=gamma*np.matmul(z,delta.T) alpha-=gamma*np.matmul(S,X[1:,j*m:(j+1)*m].T) # finding z after every epoch z=np.matmul(alpha.T,X) z=z.reshape(1,2*T) for idx in range(2*T): z[0][idx]=sigmoid(z[0][idx]) z=np.append(np.ones(T),z) z=z.reshape(3,T) #finding the y cap after every epoch y_cap=np.matmul(beta.T,z) for idx in range(T): y_cap[0][idx]=sigmoid(y_cap[0][idx]) # storing the errors in an array print("epoch:",i+1) R_train=np.append(R_train,np.sum((y[:N]-y_cap[0,:N])**2)/N) R_test=np.append(R_test,np.sum((y[N:T]-y_cap[0,N:T])**2)/M) print("Training error",np.sum((y[:N]-y_cap[0,:N])**2)/N) print("Testing error",np.sum((y[N:T]-y_cap[0,N:T])**2)/M) #plotting the results plt.plot(np.linspace(1,epoch,epoch),R_train[1:], 'r',label='training error') plt.plot(np.linspace(1,epoch,epoch),R_test[1:],label='testing error') plt.legend() plt.grid() plt.show() # -
10,329
/code/neural_networks/TensorFlow_1.0.ipynb
7fe625e6bc26ddedb5fd69e99147ed52618cdb8a
[]
no_license
AntoBrandi/Robotics-ND
https://github.com/AntoBrandi/Robotics-ND
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
3,219
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # ### Hello World TensorFlow # + import tensorflow.compat.v1 as tf tf.disable_v2_behavior() # Create TensorFlow object called hello_constant hello_constant = tf.constant('Hello World!') with tf.Session() as sess: # Run the tf.constant operation in the session output = sess.run(hello_constant) print(output) # - # ### Softmax Function # # ![title](softmax.jpg) # ![title](softmax_1.jpg) # + def run(): output = None logit_data = [2.0, 1.0, 0.1] logits = tf.placeholder(tf.float32) # Calculate the softmax of the logits softmax = tf.nn.softmax(logits) with tf.Session() as sess: # Feed in the logit data output = sess.run(softmax, feed_dict={logits: logit_data}) return output run() # - # ### Cross-Entropy Function # # ![title](cross.jpg) # ![title](cross_multi.jpg) # + softmax_data = [0.7, 0.2, 0.1] one_hot_data = [1.0, 0.0, 0.0] softmax = tf.placeholder(tf.float32) one_hot = tf.placeholder(tf.float32) cross_entropy = -tf.reduce_sum(tf.multiply(one_hot, tf.log(softmax))) # Print cross entropy from session with tf.Session() as sess: # Feed in the logit data output = sess.run(cross_entropy, feed_dict={softmax: softmax_data, one_hot: one_hot_data}) print(output) # -
1,537
/Lab 7/Lab 7.ipynb
5282ddc07528431fd4e48a1e0f6bc3a655d85695
[]
no_license
connortou/BioE131
https://github.com/connortou/BioE131
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
16,895
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # # Connor Tou | BioE131 Lab 7 import numpy as np import string from os import listdir from os.path import isfile, join import matplotlib.pyplot as plt # %matplotlib inline # ## SIMULATING THE DATA # # ### Binary Data # + percentages = [i for i in range(50,101,10)] for p in percentages: binary_data = np.packbits(np.random.choice([0, 1], size=8*1000000*100, replace=True, p = [p/100, 1-p/100])) open('Data/zeros_%sp' %p, 'wb').write(binary_data) # - # ### DNA Data # + # generate DNA sequence 100 million letters long with equal probability and save it into a file dna = np.random.choice(['A', 'T', 'G', 'C'], size=100000000, replace=True); open('Data/dna.fa', 'w').write(''.join(dna)); # - # ### Protein Data # + # generate protein sequence 100 million letters long with equal probability and save it into a file protein = np.random.choice(list(string.ascii_uppercase), size=100000000, replace=True); open('Data/protein.fa', 'w').write(''.join(protein)); # - # ## COMPRESSING THE DATA # ### zeros_50p # # [5367152@ip-172-30-0-105 ~]$ time gzip -c Data/zeros_50p > Data/zeros_50p.gz # # real 0m3.412s # user 0m3.351s # sys 0m0.060s # # [5367152@ip-172-30-0-105 ~]$ time bzip2 -k Data/zeros_50p # # real 0m12.817s # user 0m12.701s # sys 0m0.116s # # [5367152@ip-172-30-0-105 ~]$ time pbzip2 -k Data/zeros_50p # # real 0m1.806s # user 0m27.213s # sys 0m0.654s # ### zeros_60p # # [5367152@ip-172-30-0-105 ~]$ time gzip -c Data/zeros_60p > Data/zeros_60p.gz # # real 0m4.206s # user 0m4.146s # sys 0m0.060s # # [5367152@ip-172-30-0-105 ~]$ time bzip2 -k Data/zeros_60p # # real 0m11.928s # user 0m11.835s # sys 0m0.092s # # [5367152@ip-172-30-0-105 ~]$ time pbzip2 -k Data/zeros_60p # # real 0m1.670s # user 0m25.209s # sys 0m0.623s # ### zeros_70p # # [5367152@ip-172-30-0-105 ~]$ time gzip -c Data/zeros_70p > Data/zeros_70p.gz # # real 0m6.779s # user 0m6.727s # sys 0m0.052s # # [5367152@ip-172-30-0-105 ~]$ time bzip2 -k Data/zeros_70p # # real 0m10.811s # user 0m10.711s # sys 0m0.100s # # [5367152@ip-172-30-0-105 ~]$ time pbzip2 -k Data/zeros_70p # # real 0m1.405s # user 0m21.014s # sys 0m0.648s # ### zeros_80p # # [5367152@ip-172-30-0-105 ~]$ time gzip -c Data/zeros_80p > Data/zeros_80p.gz # # real 0m16.598s # user 0m16.546s # sys 0m0.052s # # [5367152@ip-172-30-0-105 ~]$ time bzip2 -k Data/zeros_80p # # real 0m9.991s # user 0m9.934s # sys 0m0.056s # # [5367152@ip-172-30-0-105 ~]$ time pbzip2 -k Data/zeros_80p # # real 0m1.173s # user 0m17.472s # sys 0m0.562s # ### zeros_90p # # [5367152@ip-172-30-0-105 ~]$ time gzip -c Data/zeros_90p > Data/zeros_90p.gz # # real 0m25.732s # user 0m25.679s # sys 0m0.052s # # [5367152@ip-172-30-0-105 ~]$ time bzip2 -k Data/zeros_90p # # real 0m9.504s # user 0m9.436s # sys 0m0.068s # # [5367152@ip-172-30-0-105 ~]$ time pbzip2 -k Data/zeros_90p # # real 0m1.007s # user 0m14.964s # sys 0m0.495s # ### zeros_100p # # [5367152@ip-172-30-0-105 ~]$ time gzip -c Data/zeros_100p > Data/zeros_100p.gz # # real 0m0.577s # user 0m0.569s # sys 0m0.008s # # [5367152@ip-172-30-0-105 ~]$ time bzip2 -k Data/zeros_100p # # real 0m0.855s # user 0m0.823s # sys 0m0.032s # # # [5367152@ip-172-30-0-105 ~]$ time pbzip2 -k Data/zeros_100p # # real 0m0.142s # user 0m1.746s # sys 0m0.058s # ### dna.fa # # [5367152@ip-172-30-0-105 ~]$ time gzip -c Data/dna.fa > dna.fa.gz # # real 0m22.989s # user 0m22.956s # sys 0m0.032s # # # [5367152@ip-172-30-0-105 ~]$ time bzip2 -k Data/dna.fa # # real 0m9.279s # user 0m9.238s # sys 0m0.040s # # [5367152@ip-172-30-0-105 ~]$ time pbzip2 -k Data/dna.fa # # real 0m0.986s # user 0m14.357s # sys 0m0.538s # ### protein.fa # # [5367152@ip-172-30-0-105 ~]$ time gzip -c Data/protein.fa > Data/protein.fa.gz # # real 0m3.746s # user 0m3.710s # sys 0m0.036s # # [5367152@ip-172-30-0-105 ~]$ time bzip2 -k Data/protein.fa # # real 0m9.338s # user 0m9.242s # sys 0m0.096s # # [5367152@ip-172-30-0-105 ~]$ time pbzip2 -k Data/protein.fa # # real 0m1.017s # user 0m15.085s # sys 0m0.516s # ### Summary Table # |original file|command|input file size|output file size|time elapsed| # |------|------|------|------|------| # |zeros_50p|gzip|100 MB|100 MB|0:03.412s| # |zeros_50p|bzip2|100 MB|100 MB|0:12.817s| # |zeros_50p|pbzip2|100 MB|100 MB|0:1.806s| # |zeros_60p|gzip|100 MB|97.7 MB|0:04.206s| # |zeros_60p|bzip2|100 MB|100 MB|0:11.928s| # |zeros_60p|pbzip2|100 MB|100 MB|0:01.670s| # |zeros_70p|gzip|100 MB|89.3 MB|0:06.779s| # |zeros_70p|bzip2|100 MB|95.1 MB|0:10.811s| # |zeros_70p|pbzip2|100 MB|95.1 MB|0:01.405s| # |zeros_80p|gzip|100 MB|77.4 MB|0:16.598s| # |zeros_80p|bzip2|100 MB|82.6 MB|0:09.991s| # |zeros_80p|pbzip2|100 MB|82.6 MB|0:01.173s| # |zeros_90p|gzip|100 MB|56.0 MB|0:25.732s| # |zeros_90p|bzip2|100 MB|58.3 MB|0:09.504s| # |zeros_90p|pbzip2|100 MB|58.4 MB|0:01.007s| # |zeros_100p|gzip|100 MB|97.1 kB|0:00.577s| # |zeros_100p|bzip2|100 MB|113 B|0:00.855s| # |zeros_100p|pbzip2|100 MB|5.38 kB|0:00.142s| # |dna.fa|gzip|100 MB|29.2 MB|0:22.989s| # |dna.fa|bzip2|100 MB|27.3 MB|0:09.279s| # |dna.fa|pbzip2|100 MB|27.3 MB|0:00.986s| # |protein.fa|gzip|100 MB|63.5 MB|0:03.746s| # |protein.fa|bzip2|100 MB|59.8 MB|0:09.338s| # |protein.fa|pbzip2|100 MB|59.8 MB|0:01.017s| # ## QUESTIONS: # **Which algorithm achieves the best level of compression on each file type?** # * For binary data, gzip attains the best level of compression (except for the 100% zeros data, where bzip had the highest compression). For dna and protein data, bzip2 and pbzip2 had higher compression than gzip. # # **Which algorithm is the fastest?** # * pbzip2 is the fastest # # **What is the difference between bzip2 and pbzip2? Do you expect one to be faster and why?** # * pbzip2 is a modified version of bzip2. One major difference is that pbzip2 supports multi-threading. Thus, on multi-CPU/ multi-core computers, linear speed improvements can be achieved. Because of this, pbzip2 is faster. # # **How does the level of compression change as the percentage of zeros increases? Why does this happen?** # * Compression improves significantly with increasing percentage of zeros. This happens because there is less variation in the data. # # **What is the minimum number of bits required to store a single DNA base?** # * The minimum number of bits required is log2(4)=2 since there are four different nucleotide possibilities. # # **What is the minimum number of bits required to store an amino acid letter?** # * Since there are 20 amino acids, the minimum number of bits required is log2(20)=4.3. As this must be an integer number, 5 bits is required. # # **In your tests, how many bits did gzip and bzip2 actually require to store your random DNA and protein sequences?** # * DNA: gzip takes 29.2MB. Thus, 29.2MB * (1e6 * 8)/100,000,000 = 2.34 bits per nucleotide # * DNA: bzip2 takes 27.3MB. Thus, 27.3MB * (1e6 * 8)/100,000,000 = 2.18 bits per nucleotide # * Proteins: gzip takes 63.5MB. Thus, 63.5MB * (1e6 * 8)/100,000,000 = 5.08 bits per amino acid letter # * Proteins: bzip2 takes 59.8MB. Thus, 59.8MB * (1e6 * 8)/100,000,000 = 4.78 bits per amino acid letter # # **Are gzip and bzip2 performing well on DNA and proteins?** # * bzip2 has a relatively good performance when looking at compression ratio; gzip is the worst among the three algorithms. Looking at speed, gzip and bzip2 are moderate - pbzip2 is much faster than the two. In summary, they have mediocre performance on DNA and protein data. # + from Bio import Entrez from Bio import SeqIO import sys Entrez.email = "[email protected]" list_seq = [] list_name = [] handle = Entrez.esearch(db = 'nucleotide', term = 'gp120 and HIV', sort = 'relevance', idtype = 'acc', retmax = 10) for i in Entrez.read(handle)['IdList']: handle = Entrez.efetch(db = 'nucleotide', id = i, rettype = 'gb', retmode = 'text') record = SeqIO.read(handle, "genbank") list_name.append(str(record.name)) list_seq.append(str(record.seq)) handle.close() # + dict_gp120 = dict(zip(list_name, list_seq)) ofile = open("multi_fasta.fa", "w") for i in range(len(list_seq)): ofile.write(">" + list_name[i] + "\n" +list_seq[i] + "\n") ofile.close() # - # ### multi_fasta.fa # # [5367152@ip-172-30-0-105 ~]$ time gzip -c multi_fasta.fa > multi_fasta.fa.gz # # real 0m0.001s # user 0m0.000s # sys 0m0.001s # # # [5367152@ip-172-30-0-105 ~]$ time bzip2 -k multi_fasta.fa # # real 0m0.002s # user 0m0.002s # sys 0m0.000s # # [5367152@ip-172-30-0-105 ~]$ time pbzip2 -k multi_fasta.fa # # real 0m0.003s # user 0m0.003s # sys 0m0.000s # #### A priori, do you expect to achieve better or worse compression here than random data? Why? # * There are more patterns in natural data (sequences from nature), so compression should be better. # |original file|command type|input file size|output file size|compression ratio| # |------|------|------|------|------| # |multi_fasta.fa|gzip|5.46 kB|1.25 kB|22.89%| # |multi_fasta.fa|bzip2|5.46 kB|1.33 kB|24.36%| # #### How does the compression ratio of this file compare to random data? # * For random dna sequences, the compression ratio is 29.2% for gzip and 27.3% for bzip. The comrpession ratio is lower for this file, meaning that compression is better for this file as expected. # ## ESTIMATING COMPRESSION OF 1000 TERABYTES # **Given the benchmarking data you obtained in this lab, which algorithm do you propose to use for each type of data? Provide an estimate for the fraction of space you can save using your compression scheme.** # # pbzip2 should be used for all three types of data. At the fastest, we have 0.1 seconds for real-life DNA data, 1.02 for protein data, and 1.81 seconds for random binary data (zeros_50p). These times will be used in the following calculations along with the respective compression ratios. # # 80% = resequencing of genomes and plasmids --> Using pbzip, a single computer can theoretically compress in a day (86400 seconds)*(100MB/0.1 seconds) = 86.4TB. In 24 hours, the reduction is: (86400 seconds/0.1 second)*100MB*(1-0.2436%) = 65.4TB. Thus, each day, a singel computer can take 86.4TB of dna data and compress it to 65.4TB of dna data. # # 10% = protein sequences --> use pbzip2. a single computer can theoretically compress in a day (86400 seconds)*(100MB/1.02 seconds) = 8.5TB. The reduction in data in 24 hours: (86400 seconds)*(100MB/1.02 seconds)*(1-0.598) = 3.4TB # # 10% = random binary data --> assuming this is a random binary with 50% zeros (using the time and compression ratio for this). a single computer can theoretically compress in a day (86400 seconds)*(100MB/1.81 seconds) = 4.77TB. The reduction in data in 24 hours: (86400 seconds/1.5 second)*100MB*(1-1) = 0TB. There is no compression. # # The company generates 1000TB of data each day. 800TB is dna sequences, 100TB is protein sequences, and 100TB is random binary data. Each day, 86.4TB of the dna sequence 800TB can be compressed to 65.4TB of data and 8.5TB of the protein sequence 100TB can be compressed to 3.4TB of data. # # Therefore, the total reduction is 21.0TB + 5.1TB + 0.0TB = 26.1TB. # # **How much of a bonus do you anticipate receiving this year?** # # 50 dollars/TB * 26.1TB = 1305 dollars. Therefore, per year, 1305 dollars/day*365days/year = 476,325 dollars # # END OF LAB 7 ict(X_test) mean_acc[n-1] = metrics.accuracy_score(y_test, yhat) std_acc[n-1]=np.std(yhat==y_test)/np.sqrt(yhat.shape[0]) mean_acc # + [markdown] button=false deletable=true new_sheet=false run_control={"read_only": false} # #### Plot model accuracy for Different number of Neighbors # + button=false deletable=true new_sheet=false run_control={"read_only": false} plt.plot(range(1,Ks),mean_acc,'g') plt.fill_between(range(1,Ks),mean_acc - 1 * std_acc,mean_acc + 1 * std_acc, alpha=0.10) plt.legend(('Accuracy ', '+/- 3xstd')) plt.ylabel('Accuracy ') plt.xlabel('Number of Nabors (K)') plt.tight_layout() plt.show() # + button=false deletable=true new_sheet=false run_control={"read_only": false} print( "The best accuracy was with", mean_acc.max(), "with k=", mean_acc.argmax()+1) # + [markdown] button=false deletable=true new_sheet=false run_control={"read_only": false} # <h2>Want to learn more?</h2> # # IBM SPSS Modeler is a comprehensive analytics platform that has many machine learning algorithms. It has been designed to bring predictive intelligence to decisions made by individuals, by groups, by systems – by your enterprise as a whole. A free trial is available through this course, available here: <a href="http://cocl.us/ML0101EN-SPSSModeler">SPSS Modeler</a> # # Also, you can use Watson Studio to run these notebooks faster with bigger datasets. Watson Studio is IBM's leading cloud solution for data scientists, built by data scientists. With Jupyter notebooks, RStudio, Apache Spark and popular libraries pre-packaged in the cloud, Watson Studio enables data scientists to collaborate on their projects without having to install anything. Join the fast-growing community of Watson Studio users today with a free account at <a href="https://cocl.us/ML0101EN_DSX">Watson Studio</a> # # <h3>Thanks for completing this lesson!</h3> # # <h4>Author: <a href="https://ca.linkedin.com/in/saeedaghabozorgi">Saeed Aghabozorgi</a></h4> # <p><a href="https://ca.linkedin.com/in/saeedaghabozorgi">Saeed Aghabozorgi</a>, PhD is a Data Scientist in IBM with a track record of developing enterprise level applications that substantially increases clients’ ability to turn data into actionable knowledge. He is a researcher in data mining field and expert in developing advanced analytic methods like machine learning and statistical modelling on large datasets.</p> # # <hr> # # <p>Copyright &copy; 2018 <a href="https://cocl.us/DX0108EN_CC">Cognitive Class</a>. This notebook and its source code are released under the terms of the <a href="https://bigdatauniversity.com/mit-license/">MIT License</a>.</p> tps://localhost:8080/", "height": 1000} import random for i in range(10): random.seed(i) a = np.random.randint(0,10000) img1 = torch.cat((true_test_foreground_data[i],test_foreground_data[i]),2) imshow(img1) # + id="wo78BztGTwwL" def plot_vectors(u1,u2,u3): img = np.reshape(u1,(3,32,32)) img = img / 2 + 0.5 # unnormalize npimg = img#.numpy() print("vector u1 norm",LA.norm(img)) plt.figure(1) plt.imshow(np.transpose(npimg, (1, 2, 0))) plt.title("vector u1") img = np.reshape(u2,(3,32,32)) img = img / 2 + 0.5 # unnormalize npimg = img#.numpy() print("vector u2 norm",LA.norm(img)) plt.figure(2) plt.imshow(np.transpose(npimg, (1, 2, 0))) plt.title("vector u2") img = np.reshape(u3,(3,32,32)) img = img / 2 + 0.5 # unnormalize npimg = img#.numpy() print("vector u3 norm",LA.norm(img)) plt.figure(3) plt.imshow(np.transpose(npimg, (1, 2, 0))) plt.title("vector u3") plt.show() # + id="72zcYiJsTPEr" outputId="a667096d-e291-42e1-d095-98d2d4177405" colab={"base_uri": "https://localhost:8080/", "height": 865} plot_vectors(u1,u2,u3) # + id="wFpwvWrzYJQi" class MosaicDataset(Dataset): """MosaicDataset dataset.""" def __init__(self, mosaic_list_of_images, mosaic_label, fore_idx): """ Args: csv_file (string): Path to the csv file with annotations. root_dir (string): Directory with all the images. transform (callable, optional): Optional transform to be applied on a sample. """ self.mosaic = mosaic_list_of_images self.label = mosaic_label self.fore_idx = fore_idx def __len__(self): return len(self.label) def __getitem__(self, idx): return self.mosaic[idx] , self.label[idx], self.fore_idx[idx] # + id="DxW0w8_BXsih" def create_mosaic_img(background_data, foreground_data, foreground_label, bg_idx,fg_idx,fg,fg1): """ bg_idx : list of indexes of background_data[] to be used as background images in mosaic fg_idx : index of image to be used as foreground image from foreground data fg : at what position/index foreground image has to be stored out of 0-8 """ image_list=[] j=0 for i in range(9): if i != fg: image_list.append(background_data[bg_idx[j]].type("torch.DoubleTensor")) j+=1 else: image_list.append(foreground_data[fg_idx].type("torch.DoubleTensor")) label = foreground_label[fg_idx] -fg1 #-7 # minus 7 because our fore ground classes are 7,8,9 but we have to store it as 0,1,2 #image_list = np.concatenate(image_list ,axis=0) image_list = torch.stack(image_list) return image_list,label # + id="jTpidLeLVyyK" def init_mosaic_creation(bg_size, fg_size, desired_num, background_data, foreground_data, foreground_label,fg1): # bg_size = 35000 # fg_size = 15000 # desired_num = 30000 mosaic_list_of_images =[] # list of mosaic images, each mosaic image is saved as list of 9 images fore_idx =[] # list of indexes at which foreground image is present in a mosaic image i.e from 0 to 9 mosaic_label=[] # label of mosaic image = foreground class present in that mosaic for i in range(desired_num): np.random.seed(i+ bg_size + desired_num) bg_idx = np.random.randint(0,bg_size,8) # print(bg_idx) np.random.seed(i+ fg_size + desired_num) fg_idx = np.random.randint(0,fg_size) # print(fg_idx) fg = np.random.randint(0,9) fore_idx.append(fg) image_list,label = create_mosaic_img(background_data, foreground_data, foreground_label ,bg_idx,fg_idx,fg, fg1) mosaic_list_of_images.append(image_list) mosaic_label.append(label) return mosaic_list_of_images, mosaic_label, fore_idx # + id="WuIMxXjgV1sB" train_mosaic_list_of_images, train_mosaic_label, train_fore_idx = init_mosaic_creation(bg_size = 35000, fg_size = 15000, desired_num = 30000, background_data = train_background_data, foreground_data = train_foreground_data, foreground_label = train_foreground_label, fg1 = fg1 ) # + id="jNw9xEHdYLRQ" batch = 250 msd_1 = MosaicDataset(train_mosaic_list_of_images, train_mosaic_label , train_fore_idx) train_loader_from_noise_train_mosaic_30k = DataLoader( msd_1,batch_size= batch ,shuffle=True) # + id="uy9iem2zYT-p" test_mosaic_list_of_images, test_mosaic_label, test_fore_idx = init_mosaic_creation(bg_size = 35000, fg_size = 15000, desired_num = 10000, background_data = train_background_data, foreground_data = train_foreground_data, foreground_label = train_foreground_label, fg1 = fg1 ) # + id="ek_hNOGfY_Rg" batch = 250 msd_2 = MosaicDataset(test_mosaic_list_of_images, test_mosaic_label , test_fore_idx) test_loader_from_noise_train_mosaic_30k = DataLoader( msd_2, batch_size= batch ,shuffle=True) # + id="k9Fb3xqvZXgY" test_mosaic_list_of_images_1, test_mosaic_label_1, test_fore_idx_1 = init_mosaic_creation(bg_size = 7000, fg_size = 3000, desired_num = 10000, background_data = test_background_data, foreground_data = test_foreground_data, foreground_label = test_foreground_label, fg1 = fg1 ) # + id="D491Dr2eZxXo" batch = 250 msd_3 = MosaicDataset(test_mosaic_list_of_images_1, test_mosaic_label_1 , test_fore_idx_1) test_loader_from_noise_test_mosaic_10k = DataLoader( msd_3, batch_size= batch ,shuffle=True) # + id="vfEaNoxVaTEp" test_mosaic_list_of_images_2, test_mosaic_label_2, test_fore_idx_2 = init_mosaic_creation(bg_size = 35000, fg_size = 15000, desired_num = 10000, background_data = true_train_background_data, foreground_data = true_train_foreground_data, foreground_label = true_train_foreground_label, fg1 = fg1 ) # + id="ytvVuHTgaTEu" batch = 250 msd_4 = MosaicDataset(test_mosaic_list_of_images_2, test_mosaic_label_2, test_fore_idx_2) test_loader_from_true_train_mosaic_30k = DataLoader( msd_4, batch_size= batch , shuffle=True) # + id="cbN6OQzxaTEy" test_mosaic_list_of_images_3, test_mosaic_label_3, test_fore_idx_3 = init_mosaic_creation(bg_size = 7000, fg_size = 3000, desired_num = 10000, background_data = true_test_background_data, foreground_data = true_test_foreground_data, foreground_label = true_test_foreground_label, fg1 = fg1 ) # + id="Mu890cyTaTE2" batch = 250 msd_5 = MosaicDataset(test_mosaic_list_of_images_3, test_mosaic_label_3, test_fore_idx_3) test_loader_from_true_train_mosaic_10k = DataLoader( msd_5, batch_size= batch ,shuffle=True) # + id="dgQ0htWqkqzo" class Module1(nn.Module): def __init__(self): super(Module1, self).__init__() self.conv1 = nn.Conv2d(3, 6, 5) self.pool = nn.MaxPool2d(2, 2) self.conv2 = nn.Conv2d(6, 16, 5) self.fc1 = nn.Linear(16 * 5 * 5, 120) self.fc2 = nn.Linear(120, 84) self.fc3 = nn.Linear(84, 10) self.fc4 = nn.Linear(10,1) def forward(self, x): x = self.pool(F.relu(self.conv1(x))) x = self.pool(F.relu(self.conv2(x))) x = x.view(-1, 16 * 5 * 5) x = F.relu(self.fc1(x)) x = F.relu(self.fc2(x)) x = F.relu(self.fc3(x)) x = self.fc4(x) return x # + id="XElkdct-kvQB" class Module2(nn.Module): def __init__(self): super(Module2, self).__init__() self.module1 = Module1().double() self.conv1 = nn.Conv2d(3, 6, 5) self.pool = nn.MaxPool2d(2, 2) self.conv2 = nn.Conv2d(6, 16, 5) self.fc1 = nn.Linear(16 * 5 * 5, 120) self.fc2 = nn.Linear(120, 84) self.fc3 = nn.Linear(84, 10) self.fc4 = nn.Linear(10,3) def forward(self,z): #z batch of list of 9 images y = torch.zeros([batch,3, 32,32], dtype=torch.float64) x = torch.zeros([batch,9],dtype=torch.float64) x = x.to("cuda") y = y.to("cuda") for i in range(9): x[:,i] = self.module1.forward(z[:,i])[:,0] x = F.softmax(x,dim=1) x1 = x[:,0] torch.mul(x1[:,None,None,None],z[:,0]) for i in range(9): x1 = x[:,i] y = y + torch.mul(x1[:,None,None,None],z[:,i]) y = y.contiguous() y1 = self.pool(F.relu(self.conv1(y))) y1 = self.pool(F.relu(self.conv2(y1))) y1 = y1.contiguous() y1 = y1.reshape(-1, 16 * 5 * 5) y1 = F.relu(self.fc1(y1)) y1 = F.relu(self.fc2(y1)) y1 = F.relu(self.fc3(y1)) y1 = self.fc4(y1) return y1 , x, y # + id="Nus7AK1xRX7W" def training(trainloader, fore_net, epochs=600): import torch.optim as optim criterion = nn.CrossEntropyLoss() optimizer = optim.SGD(fore_net.parameters(), lr=0.01, momentum=0.9) nos_epochs = epochs for epoch in range(nos_epochs): # loop over the dataset multiple times running_loss = 0.0 cnt=0 mini_loss = [] iteration = 30000 // batch for i, data in enumerate(train_loader_from_noise_train_mosaic_30k): inputs , labels , fore_idx = data inputs, labels, fore_idx = inputs.to("cuda"),labels.to("cuda"), fore_idx.to("cuda") optimizer.zero_grad() outputs, alphas, avg_images = fore_net(inputs) _, predicted = torch.max(outputs.data, 1) loss = criterion(outputs, labels) loss.backward() optimizer.step() running_loss += loss.item() mini = 40 if cnt % mini == mini - 1: # print every 40 mini-batches print('[%d, %5d] loss: %.3f' %(epoch + 1, cnt + 1, running_loss / mini)) mini_loss.append(running_loss / mini) running_loss = 0.0 cnt=cnt+1 if(np.average(mini_loss) <= 0.05): break print('Finished Training') return fore_net, epoch # + id="17GMe4WKSNji" def testing(loader, fore_net): correct = 0 total = 0 count = 0 flag = 1 focus_true_pred_true =0 focus_false_pred_true =0 focus_true_pred_false =0 focus_false_pred_false =0 argmax_more_than_half = 0 argmax_less_than_half =0 with torch.no_grad(): for data in loader: inputs, labels , fore_idx = data inputs, labels , fore_idx = inputs.to("cuda"),labels.to("cuda"), fore_idx.to("cuda") outputs, alphas, avg_images = fore_net(inputs) _, predicted = torch.max(outputs.data, 1) for j in range(labels.size(0)): count += 1 focus = torch.argmax(alphas[j]) if alphas[j][focus] >= 0.5 : argmax_more_than_half += 1 else: argmax_less_than_half += 1 if(focus == fore_idx[j] and predicted[j] == labels[j]): focus_true_pred_true += 1 elif(focus != fore_idx[j] and predicted[j] == labels[j]): focus_false_pred_true += 1 elif(focus == fore_idx[j] and predicted[j] != labels[j]): focus_true_pred_false += 1 elif(focus != fore_idx[j] and predicted[j] != labels[j]): focus_false_pred_false += 1 total += labels.size(0) correct += (predicted == labels).sum().item() return correct, total, focus_true_pred_true, focus_false_pred_true, focus_true_pred_false, focus_false_pred_false, argmax_more_than_half # + id="lp0cGt63YuUc" def enter_into(table, sno, correct, total, ftpt, ffpt, ftpf, ffpf, alpha_more_half , fg, bg, epoch = "NA"): entry = [] entry = [sno,'fg = '+ str(fg),'bg = '+str(bg), epoch, total, correct,] entry.append((100.0*correct/total)) entry.append((100 * ftpt / total)) entry.append( (100 * ffpt / total)) entry.append( ( 100 * ftpf / total)) entry.append( ( 100 * ffpf / total)) entry.append( alpha_more_half) table.append(entry) print(" ") print("="*160) print(tabulate(table, headers=['S.No.', 'fg_class','bg_class','Epoch used','total_points', 'correct','accuracy','FTPT', 'FFPT', 'FTPF', 'FFPF', 'avg_img > 0.5'] ) ) print(" ") print("="*160) return table # + id="uS6Gq-4VfX89" def add_average_entry(table): entry =[] entry = ['Avg', "","" ,"" ,"" , "",] entry.append( np.mean(np.array(table)[:,6].astype(np.float)) ) entry.append( np.mean(np.array(table)[:,7].astype(np.float)) ) entry.append( np.mean(np.array(table)[:,8].astype(np.float)) ) entry.append( np.mean(np.array(table)[:,9].astype(np.float)) ) entry.append( np.mean(np.array(table)[:,10].astype(np.float)) ) entry.append( np.mean(np.array(table)[:,11].astype(np.float)) ) table.append(entry) print(" ") print("="*160) print(tabulate(table, headers=['S.No.', 'fg_class','bg_class','Epoch used','total_points', 'correct','accuracy','FTPT', 'FFPT', 'FTPF', 'FFPF', 'avg_img > 0.5'] ) ) print(" ") print("="*160) return table # + id="M8ClgTOAbUQu" train_table=[] test_table1=[] test_table2=[] test_table3=[] test_table4=[] fg = [fg1,fg2,fg3] bg = list(set([0,1,2,3,4,5,6,7,8,9])-set(fg)) # + id="TuIb2Y29kxWT" outputId="ad11f100-ef70-4574-e64a-cff438527a92" colab={"base_uri": "https://localhost:8080/", "height": 1000} number_runs = 10 for i in range(number_runs): fore_net = Module2().double() fore_net = fore_net.to("cuda") fore_net, epoch = training(train_loader_from_noise_train_mosaic_30k, fore_net) correct, total, ftpt, ffpt, ftpf, ffpf, alpha_more_half = testing(train_loader_from_noise_train_mosaic_30k, fore_net) train_table = enter_into(train_table, i+1, correct, total, ftpt, ffpt, ftpf, ffpf, alpha_more_half, fg, bg, str(epoch) ) correct, total, ftpt, ffpt, ftpf, ffpf, alpha_more_half = testing(test_loader_from_noise_train_mosaic_30k, fore_net) test_table1 = enter_into(test_table1, i+1, correct, total, ftpt, ffpt, ftpf, ffpf, alpha_more_half , fg, bg ) correct, total, ftpt, ffpt, ftpf, ffpf, alpha_more_half = testing(test_loader_from_noise_test_mosaic_10k, fore_net) test_table2 = enter_into(test_table2, i+1, correct, total, ftpt, ffpt, ftpf, ffpf, alpha_more_half, fg, bg ) correct, total, ftpt, ffpt, ftpf, ffpf, alpha_more_half = testing(test_loader_from_true_train_mosaic_30k, fore_net) test_table3 = enter_into(test_table3, i+1, correct, total, ftpt, ffpt, ftpf, ffpf, alpha_more_half , fg, bg) correct, total, ftpt, ffpt, ftpf, ffpf, alpha_more_half = testing(test_loader_from_true_train_mosaic_10k, fore_net) test_table4 = enter_into(test_table4, i+1, correct, total, ftpt, ffpt, ftpf, ffpf, alpha_more_half, fg, bg ) # + id="kloPmAalgpIz" outputId="d0992cae-0ecb-431f-f57a-c66ff1cb30a4" colab={"base_uri": "https://localhost:8080/", "height": 335} train_table = add_average_entry(train_table) # + id="00KPkU7EhPJj" outputId="ffe2a2a7-5df5-4b51-c56e-70458f302a90" colab={"base_uri": "https://localhost:8080/", "height": 335} test_table1 = add_average_entry(test_table1) # + id="pW_kUqi3hR6u" outputId="af3eb94c-f94f-4dc5-97a2-13bba29a37de" colab={"base_uri": "https://localhost:8080/", "height": 335} test_table2 = add_average_entry(test_table2) # + id="_ZlV6qErhUUL" outputId="d1af9a8e-a1f4-46b6-b184-ced299934314" colab={"base_uri": "https://localhost:8080/", "height": 335} test_table3 = add_average_entry(test_table3) # + id="BOvl6fUChV5j" outputId="014b1056-e727-4227-e9df-c2728083da41" colab={"base_uri": "https://localhost:8080/", "height": 335} test_table4 = add_average_entry(test_table4) # + id="nkyMi1VBpq9a" # torch.save(fore_net.state_dict(),"/content/drive/My Drive/Research/mosaic_from_CIFAR_involving_bottop_eigen_vectors/fore_net_epoch"+str(epoch)+"_fg_used"+str(fg_used)+".pt")
31,984
/datasets/tiles/create_json.ipynb
4e8aa003d3e536abe98c3a3665c0baa8993ce343
[]
no_license
phananh1010/tile-super-resolution
https://github.com/phananh1010/tile-super-resolution
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
2,805
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python (env_pytorch_python3) # language: python # name: env_pytorch_python3 # --- # + import glob import numpy as np import os import zipfile import contextlib import json def get_filecount_from_zip(filepath): with contextlib.closing(zipfile.ZipFile(filepath)) as archive: count = len(archive.infolist()) return count # + filepath_list = glob.glob('./JPEGImages/*.zip') filename_list = [item.split('/')[-1].replace('.zip', '') for item in filepath_list] idx_list = list(range(len(filename_list))) np.random.shuffle(idx_list) filepath_list = [filepath_list[idx] for idx in idx_list] filename_list = [filename_list[idx] for idx in idx_list] # - result = {filename_list[idx]:get_filecount_from_zip(filepath_list[idx])-3 for idx in list(range(len(filepath_list)))} # + PARTITION = 0 key_list = list(result.keys()) result_test = {item:result[item] for item in key_list[:PARTITION ]} result_train = {item:result[item] for item in key_list[PARTITION :]} print ('total samples: ', len(key_list)) # - result_train_str = json.dumps(result_train) with open('./train.json', 'w') as file: file.write(result_train_str) result_test_str = json.dumps(result_test) with open('./test.json', 'w') as file: file.write(result_train_str) D and f not in modas: modas.append(f) print("\nThe mode is:\n>", modas) print("\nHey: After performing your first operation it is necessary to restart the program or your results will be wrong!!") if B == 3: #Standard derivation Sample_mean = (sum_x) / (n-1) R = Sample_mean**2 cuadrados = [] for dato in ACD: r = (dato - Sample_mean)**2 cuadrados.append(r) desviacion = ((sum(cuadrados)-R)/(n-2))**0.5 print("\nThe standard derivation is:\n>", desviacion) print("\nHey: After performing your first operation it is necessary to restart the program or your results will be wrong!!") # -
2,309
/fenics-notebook/tests/notebooks/fenics.ipynb
bce556fb3ddbff059a0208e669fd63ca66fd6d2f
[ "MIT" ]
permissive
ucphhpc/nbi-jupyter-docker-stacks
https://github.com/ucphhpc/nbi-jupyter-docker-stacks
6
2
MIT
2023-03-27T07:08:42
2023-02-28T21:48:20
Jupyter Notebook
Jupyter Notebook
false
false
.py
36,476
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 (ipykernel) # language: python # name: python3 # --- import os import cv2 import json import numpy as np from detectron2.structures import BoxMode from detectron2.utils.visualizer import Visualizer from detectron2.data import MetadataCatalog, DatasetCatalog import random from matplotlib import pyplot as plt # + def get_balloon_dicts(img_dir): json_file = os.path.join(img_dir, "via_region_data.json") with open(json_file) as f: imgs_anns = json.load(f) dataset_dicts = [] for idx, v in enumerate(imgs_anns.values()): record = {} filename = os.path.join(img_dir, v["filename"]) height, width = cv2.imread(filename).shape[:2] record["file_name"] = filename record["image_id"] = idx record["height"] = height record["width"] = width annos = v["regions"] objs = [] for _, anno in annos.items(): assert not anno["region_attributes"] anno = anno["shape_attributes"] px = anno["all_points_x"] py = anno["all_points_y"] poly = [(x + 0.5, y + 0.5) for x, y in zip(px, py)] poly = [p for x in poly for p in x] obj = { "bbox": [np.min(px), np.min(py), np.max(px), np.max(py)], "bbox_mode": BoxMode.XYXY_ABS, "segmentation": [poly], "category_id": 0, } objs.append(obj) record["annotations"] = objs dataset_dicts.append(record) return dataset_dicts dataset_path = "/opt/infilect/dev/datasets/balloon_dataset/balloon" for d in ["train", "val"]: DatasetCatalog.register("balloon_" + d, lambda d=d: get_balloon_dicts(dataset_path+"/"+ d)) MetadataCatalog.get("balloon_" + d).set(thing_classes=["balloon"], evaluator_type="coco") balloon_metadata = MetadataCatalog.get("balloon_train") # + dataset_dicts = DatasetCatalog.get('balloon_train') for d in random.sample(dataset_dicts, 3): img = cv2.imread(d["file_name"]) v = Visualizer(img[:, :, ::-1], metadata=balloon_metadata, scale=0.5) v = v.draw_dataset_dict(d) plt.figure(figsize = (14, 10)) plt.imshow(cv2.cvtColor(v.get_image()[:, :, ::-1], cv2.COLOR_BGR2RGB)) plt.show() # - ex_col = 'Date').dropna() benchmark_data = pd.read_csv('datasets/benchmark_data.csv', parse_dates= True, index_col = 'Date').dropna() # + dc={"key": "11"} tags=["context"] run_control={"frozen": true} editable=false deletable=false # ## 2. A first glance at the data # <p>Let's take a look the data to find out how many observations and variables we have at our disposal.</p> # + dc={"key": "11"} tags=["sample_code"] # Display summary for stock_data print('Stocks\n') stock_data.info() stock_data.head() # Display summary for benchmark_data print('\nBenchmarks\n') benchmark_data.info() benchmark_data.head() # + dc={"key": "18"} tags=["context"] run_control={"frozen": true} editable=false deletable=false # ## 3. Plot & summarize daily prices for Amazon and Facebook # <p>Before we compare an investment in either Facebook or Amazon with the index of the 500 largest companies in the US, let's visualize the data, so we better understand what we're dealing with.</p> # + dc={"key": "18"} tags=["sample_code"] # visualize the stock_data stock_data.plot(subplots = True, title = 'Stock Data') # summarize the stock_data stock_data.describe() # + dc={"key": "25"} tags=["context"] run_control={"frozen": true} editable=false deletable=false # ## 4. Visualize & summarize daily values for the S&P 500 # <p>Let's also take a closer look at the value of the S&amp;P 500, our benchmark.</p> # + dc={"key": "25"} tags=["sample_code"] # plot the benchmark_data benchmark_data.plot(title = 'S&P 500') # summarize the benchmark_data benchmark_data.describe() # + dc={"key": "32"} tags=["context"] run_control={"frozen": true} editable=false deletable=false # ## 5. The inputs for the Sharpe Ratio: Starting with Daily Stock Returns # <p>The Sharpe Ratio uses the difference in returns between the two investment opportunities under consideration.</p> # <p>However, our data show the historical value of each investment, not the return. To calculate the return, we need to calculate the percentage change in value from one day to the next. We'll also take a look at the summary statistics because these will become our inputs as we calculate the Sharpe Ratio. Can you already guess the result?</p> # + dc={"key": "32"} tags=["sample_code"] # calculate daily stock_data returns stock_returns = stock_data.pct_change() # plot the daily returns stock_returns.plot() # summarize the daily returns stock_returns.describe() # + dc={"key": "39"} tags=["context"] run_control={"frozen": true} editable=false deletable=false # ## 6. Daily S&P 500 returns # <p>For the S&amp;P 500, calculating daily returns works just the same way, we just need to make sure we select it as a <code>Series</code> using single brackets <code>[]</code> and not as a <code>DataFrame</code> to facilitate the calculations in the next step.</p> # + dc={"key": "39"} tags=["sample_code"] # calculate daily benchmark_data returns # ... YOUR CODE FOR TASK 6 HERE ... sp_returns = benchmark_data['S&P 500'].pct_change() # plot the daily returns sp_returns.plot() # summarize the daily returns sp_returns.describe() # + dc={"key": "46"} tags=["context"] run_control={"frozen": true} editable=false deletable=false # ## 7. Calculating Excess Returns for Amazon and Facebook vs. S&P 500 # <p>Next, we need to calculate the relative performance of stocks vs. the S&amp;P 500 benchmark. This is calculated as the difference in returns between <code>stock_returns</code> and <code>sp_returns</code> for each day.</p> # + dc={"key": "46"} print(sp_returns.head()) stock_returns.head() # + dc={"key": "46"} tags=["sample_code"] # calculate the difference in daily returns excess_returns = stock_returns.sub(sp_returns, axis = 0) # plot the excess_returns excess_returns.plot() # summarize the excess_returns excess_returns.describe() # + dc={"key": "53"} tags=["context"] run_control={"frozen": true} editable=false deletable=false # ## 8. The Sharpe Ratio, Step 1: The Average Difference in Daily Returns Stocks vs S&P 500 # <p>Now we can finally start computing the Sharpe Ratio. First we need to calculate the average of the <code>excess_returns</code>. This tells us how much more or less the investment yields per day compared to the benchmark.</p> # + dc={"key": "53"} tags=["sample_code"] # calculate the mean of excess_returns avg_excess_return = excess_returns.mean() # plot avg_excess_returns avg_excess_return.plot.bar(title = 'Mean of the Return Difference') # + dc={"key": "60"} tags=["context"] run_control={"frozen": true} editable=false deletable=false # ## 9. The Sharpe Ratio, Step 2: Standard Deviation of the Return Difference # <p>It looks like there was quite a bit of a difference between average daily returns for Amazon and Facebook.</p> # <p>Next, we calculate the standard deviation of the <code>excess_returns</code>. This shows us the amount of risk an investment in the stocks implies as compared to an investment in the S&amp;P 500.</p> # + dc={"key": "60"} tags=["sample_code"] # calculate the standard deviations sd_excess_return = excess_returns.std() # plot the standard deviations sd_excess_return.plot.bar(title = 'Standard Deviation of the Return Difference') # + dc={"key": "67"} tags=["context"] run_control={"frozen": true} editable=false deletable=false # ## 10. Putting it all together # <p>Now we just need to compute the ratio of <code>avg_excess_returns</code> and <code>sd_excess_returns</code>. The result is now finally the <em>Sharpe ratio</em> and indicates how much more (or less) return the investment opportunity under consideration yields per unit of risk.</p> # <p>The Sharpe Ratio is often <em>annualized</em> by multiplying it by the square root of the number of periods. We have used daily data as input, so we'll use the square root of the number of trading days (5 days, 52 weeks, minus a few holidays): √252</p> # + dc={"key": "67"} tags=["sample_code"] # calculate the daily sharpe ratio daily_sharpe_ratio = avg_excess_return.div(sd_excess_return) # annualize the sharpe ratio annual_factor = np.sqrt(252) annual_sharpe_ratio = daily_sharpe_ratio.mul(annual_factor) # plot the annualized sharpe ratio annual_sharpe_ratio.plot.bar(title = 'Annualized Sharpe Ratio: Stocks vs S&P 500') # + dc={"key": "74"} tags=["context"] run_control={"frozen": true} editable=false deletable=false # ## 11. Conclusion # <p>Given the two Sharpe ratios, which investment should we go for? In 2016, Amazon had a Sharpe ratio twice as high as Facebook. This means that an investment in Amazon returned twice as much compared to the S&amp;P 500 for each unit of risk an investor would have assumed. In other words, in risk-adjusted terms, the investment in Amazon would have been more attractive.</p> # <p>This difference was mostly driven by differences in return rather than risk between Amazon and Facebook. The risk of choosing Amazon over FB (as measured by the standard deviation) was only slightly higher so that the higher Sharpe ratio for Amazon ends up higher mainly due to the higher average daily returns for Amazon. </p> # <p>When faced with investment alternatives that offer both different returns and risks, the Sharpe Ratio helps to make a decision by adjusting the returns by the differences in risk and allows an investor to compare investment opportunities on equal terms, that is, on an 'apples-to-apples' basis.</p> # + dc={"key": "74"} tags=["sample_code"] # Uncomment your choice. buy_amazon = True le.com/drive/15yMxBf1ltxrIaHCZUqqUWZBm6cqdcErF), i.e., the ${\rm TFIDF}$ term we consider for a movie $m$ in the set of movies $M$ and word $w$ is given by # # $$ # {\rm TFIDF}(m,w) = {\rm TF}(m,w) \:\times \:{\rm IDF}(w,M) # $$ # # Only TF_IDF values equal or higher than the __MIN\_TF_\_IDF__ threshold should be written to the output files. The standard value to use for __MIN\_TF_\_IDF__ is __0.1__ but you may adjust this value for testing purposes. # # # __Important note__: you should __ONLY__ use the [Spark Data Frame API](https://spark.apache.org/docs/latest/api/python/pyspark.sql.html#pyspark.sql.DataFrame) and [Spark SQL](https://docs.databricks.com/spark/latest/spark-sql/language-manual/select.html) in your code (__NOT__ Pandas, any other Spark or generic Python libraries). # # # # + id="eXBvfoQD1S4-" colab_type="code" colab={} class Constants: f = 'f' f_max = 'f_max' tf = 'TF' n = 'n' idf = 'IDF' tf_idf = 'tfidf' nr = 'nr' def show(debug, dataframe, message=None, rows=10): if debug: if message: print("> %s (%d rows)" % (message, dataframe.count())) dataframe.show(rows) def get_idf(data, word='word', doc='doc', nr=None, debug=False): """Calculates the Inverse Document Frequency (IDF) of a DataFrame Args: data: A DataFrame instance. word: Column word for 'word' doc: Column name for 'documents' nr: number of documents in which 'word' appears Returns: DataFrame ('word', 'IDF, [nr]) """ n_w_D = data\ .groupBy(word)\ .agg(F.countDistinct(doc).alias('n_w_D')) show(debug, n_w_D.orderBy('n_w_D',ascending=False)) size_of_D = data.select(doc).distinct().count() if debug: print("|D| = %d" % size_of_D) IDF = n_w_D.withColumn(Constants.idf, F.log2(size_of_D / F.col('n_W_D'))) return IDF.withColumnRenamed('n_w_D', Constants.nr) if nr else IDF.drop('n_w_D') def tf_idf(data, word, doc, debug): # f - nr of times word has been associated with doc by user # result -> (word, doc, Constants.f) f = data.groupBy(word, doc)\ .agg(F.count(doc).alias(Constants.f)) show(debug, f, "group by ($word, $doc) count frequency done") # data.orderBy(word).show() # f.orderBy(word).show() # f_max - maximum absolute frequency of any word used for doc # result -> (doc, Constants.f_max) f_max = f.groupBy(doc)\ .agg(F.max(Constants.f).alias(Constants.f_max)) show(debug, f_max, "Max frequency per movie done") # call external function to calculate IDF idf = get_idf(data, word, doc, Constants.nr, debug) show(debug, idf, "IDF done") # join Constants.f_max on doc, calculate TF, join with IDF on word df = f.join(f_max, doc)\ .withColumn(Constants.tf, F.col(Constants.f) / F.col(Constants.f_max))\ .join(idf, word) show(debug, df, "TF done") # return dataframe with TF_IDF return df.withColumn(Constants.tf_idf, df.TF * df.IDF) # + id="SZjZBwN3jS-8" colab_type="code" outputId="18c31a8e-4a60-4ed5-f1fa-71301841b2af" colab={"base_uri": "https://localhost:8080/", "height": 295} # Get TF-IDF for tags word = 'tag' wordFinal = 'word' doc = 'movieId' tfidf = tf_idf(tags, word, doc, False) tfidf.cache() # guarantee all columns are present tfidf = tfidf.drop(Constants.f)\ .drop(Constants.f_max)\ .drop(Constants.tf)\ .drop(Constants.nr)\ .drop(Constants.idf)\ .withColumnRenamed(word, wordFinal) # assert tfidf.columns == [word, doc, Constants.f, Constants.f_max, Constants.tf, Constants.nr, Constants.idf, Constants.tf_idf],\ assert tfidf.columns == [wordFinal, doc, Constants.tf_idf],\ "Columns do not match expected values for tfidfTags" # preview the dataframe tfidf.orderBy([Constants.f,Constants.tf_idf, doc,word], ascending=[0,0,1,1]).show() # + [markdown] id="ZQpzAE9K9l9-" colab_type="text" # ## Movie similarity based on the Jaccard index (TODO for bonus grading) # # For every pair of movies $m_1$ and $m_2$ compute a similary ratio based on the __Jaccard index__: # # $$ # {\rm JI}(m_1, m_2) = \frac{| {\rm urt}(m_1) \cap {\rm urt}(m_2)|}{ |{\rm urt}(m_1) \cup {\rm urt}(m_2)|} # $$ # # where ${\rm urt}(m)$ is defined as the set of users who have tagged or rated a movie $m$. # # For further reference on the Jaccard index metric see: # # - [Mining of Massive Data Sets, sec. 3.3.1](http://infolab.stanford.edu/%7Eullman/mmds/book.pdf) # - [Wikipedia page for the Jaccard Index](https://en.wikipedia.org/wiki/Jaccard_index) # # # # # + [markdown] id="7xLGy7TCW_hz" colab_type="text" # Calculates the Jaccard index to measure similarity between movies based on user ratings. # # Linking a movie means rating >= 4.0 # + id="UdvDfhozHnMx" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 469} outputId="dc788cfb-c73b-4f62-8cd4-1cf3de1128c6" def jaccard_index(df1, df2, column="user", sort="movie"): # sort - prefix of the columns to sort # column - prefix of the columns to use as sets # 1. product - cross join to get movie1, movie2 # 2. count intersect set # 3. count union set # 4. calculate Jaccard Index # 5. remove unwanted columns users = [column + "1", column + "2"] sorts = ["%s1" % (sort), "%s2" % (sort)] df1 = df1.crossJoin(df2)\ .filter("%s < %s" % (sorts[0], sorts[1])) df1 = df1.withColumn("user", F.size(F.array_union(users[0], users[1])))\ .withColumn("index", F.size(F.array_intersect(users[0], users[1])))\ .withColumn("jaccard_index", F.col("index")/F.col("user")) return df1.drop(users[0], users[1]) def movieSimilarity(ratings, minRatings=10, threshold=4.0, debug=False): ratings = ratings.filter("rating >= %i" % (threshold)) ratings=ratings.drop("rating") show(debug, ratings, "like's dataframe") # filter movies with less than minRatings ratings # obtain set of users that LIKED a given movie df_m1 = ratings.groupBy("movieId")\ .agg(F.collect_set(ratings.userId).alias("user1"))\ .withColumnRenamed("movieId", "movie1")\ .filter(minRatings < F.size("user1")) show(debug, df_m1, "movie with users that liked it") # duplicate dataframe for cross join df_m2 = df_m1.withColumnRenamed("user1", "user2")\ .withColumnRenamed("movie1", "movie2") show(debug, df_m2, "movie with users that liked it - copy renamed") return jaccard_index(df_m1, df_m2) ji = movieSimilarity(ratings).orderBy(['index','jaccard_index','movie1','movie2'], ascending=[0,0,1,1]) assert ji.columns == ["movie1", "movie2", "user", "index", "jaccard_index"], "unexpected column value" ji.show() # + [markdown] id="2L6Z9EdPbjkv" colab_type="text" # ## Write output data to Parquet files and generate ZIP file # + id="vyST7eVyVlXt" colab_type="code" outputId="75bf2097-e2cf-4549-8864-c09b583c0b05" colab={"base_uri": "https://localhost:8080/", "height": 451} # Clean up first # !rm -fr "$DATASET"/output # !rm -f "$DATASET"/"$OUTPUT_ZIP_FILE" if DEBUG: # !ls -l $DATASET writeParquet(movies_agg, DATASET + '/output/' + 'movies_agg.parquet') writeParquet(tfidf, DATASET + '/output/' + 'tfidf.parquet') # bonus writeParquet(ji, DATASET + '/output/' + 'jaccardIndex.parquet') if DEBUG: print('Creating ZIP file ...') # !cd "$DATASET"/output && zip -9qr ../"$OUTPUT_ZIP_FILE" . if DEBUG: # !ls -l $DATASET "$DATASET"/output # + [markdown] id="0BZ3e-2m1G4k" colab_type="text" # ## Copy output ZIP file to output bucket # + id="oG2umQ870TZ3" colab_type="code" outputId="4698ba3d-f03c-4495-92e4-8ff27f8950be" colab={"base_uri": "https://localhost:8080/", "height": 69} # ! gsutil cp $DATASET/output.zip gs://"$OUTPUT_BUCKET"/"$DATASET"/output.zip # + [markdown] id="rcCm38U9w8_h" colab_type="text" # ## Copy Parquet files to output bucket (optional) # + id="-Mk_2_abxKTm" colab_type="code" outputId="acb858a5-3310-4a5a-ca5a-8b88f9be06d3" colab={"base_uri": "https://localhost:8080/", "height": 1000} if COPY_PARQUET_FILES_TO_OUTPUT_BUCKET: # ! gsutil -m cp -r $DATASET/output/movies_agg.parquet gs://"$OUTPUT_BUCKET"/"$DATASET"/ # ! gsutil -m cp -r $DATASET/output/tfidf.parquet gs://"$OUTPUT_BUCKET"/"$DATASET"/ # ! gsutil -m cp -r $DATASET/output/jaccardIndex.parquet gs://"$OUTPUT_BUCKET"/"$DATASET"/ # + [markdown] id="dJbP3yLDCTgx" colab_type="text" # ## Send PubSub cloud message # + [markdown] id="WDJ1dt_5CdJh" colab_type="text" # This will trigger the LCF cloud function. # + id="n5GwFGmV5QF4" colab_type="code" outputId="991cf1be-d58d-4099-c7d0-2703f30dc8bf" colab={"base_uri": "https://localhost:8080/", "height": 52} if SEND_PUBSUB_MESSAGE: # !gcloud pubsub topics publish $PUBSUB_TOPIC --message $DATASET
18,925
/exercise-feature-selection.ipynb
998aae66bed3001e1a6a697bab3025ac1ca5c04f
[]
no_license
bhu-v/Feature-Engineering
https://github.com/bhu-v/Feature-Engineering
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
18,817
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # **This notebook is an exercise in the [Feature Engineering](https://www.kaggle.com/learn/feature-engineering) course. You can reference the tutorial at [this link](https://www.kaggle.com/matleonard/feature-selection).** # # --- # # # Introduction # # In this exercise you'll use some feature selection algorithms to improve your model. Some methods take a while to run, so you'll write functions and verify they work on small samples. # # To begin, run the code cell below to set up the exercise. # Set up code checking from learntools.core import binder binder.bind(globals()) from learntools.feature_engineering.ex4 import * # Then run the following cell. It takes a minute or so to run. # + import numpy as np import pandas as pd from sklearn import preprocessing, metrics import lightgbm as lgb import os clicks = pd.read_parquet('../input/feature-engineering-data/baseline_data.pqt') data_files = ['count_encodings.pqt', 'catboost_encodings.pqt', 'interactions.pqt', 'past_6hr_events.pqt', 'downloads.pqt', 'time_deltas.pqt', 'svd_encodings.pqt'] data_root = '../input/feature-engineering-data' for file in data_files: features = pd.read_parquet(os.path.join(data_root, file)) clicks = clicks.join(features) def get_data_splits(dataframe, valid_fraction=0.1): dataframe = dataframe.sort_values('click_time') valid_rows = int(len(dataframe) * valid_fraction) train = dataframe[:-valid_rows * 2] # valid size == test size, last two sections of the data valid = dataframe[-valid_rows * 2:-valid_rows] test = dataframe[-valid_rows:] return train, valid, test def train_model(train, valid, test=None, feature_cols=None): if feature_cols is None: feature_cols = train.columns.drop(['click_time', 'attributed_time', 'is_attributed']) dtrain = lgb.Dataset(train[feature_cols], label=train['is_attributed']) dvalid = lgb.Dataset(valid[feature_cols], label=valid['is_attributed']) param = {'num_leaves': 64, 'objective': 'binary', 'metric': 'auc', 'seed': 7} num_round = 1000 print("Training model!") bst = lgb.train(param, dtrain, num_round, valid_sets=[dvalid], early_stopping_rounds=20, verbose_eval=False) valid_pred = bst.predict(valid[feature_cols]) valid_score = metrics.roc_auc_score(valid['is_attributed'], valid_pred) print(f"Validation AUC score: {valid_score}") if test is not None: test_pred = bst.predict(test[feature_cols]) test_score = metrics.roc_auc_score(test['is_attributed'], test_pred) return bst, valid_score, test_score else: return bst, valid_score # - # ## Baseline Score # # Let's look at the baseline score for all the features we've made so far. train, valid, test = get_data_splits(clicks) _, baseline_score = train_model(train, valid) # ### 1) Which data to use for feature selection? # # Since many feature selection methods require calculating statistics from the dataset, should you use all the data for feature selection? # # Run the following line after you've decided your answer. # Check your answer (Run this code cell to receive credit!) q_1.solution() # Now we have 91 features we're using for predictions. With all these features, there is a good chance the model is overfitting the data. We might be able to reduce the overfitting by removing some features. Of course, the model's performance might decrease. But at least we'd be making the model smaller and faster without losing much performance. # ### 2) Univariate Feature Selection # # Below, use `SelectKBest` with the `f_classif` scoring function to choose 40 features from the 91 features in the data. # + from sklearn.feature_selection import SelectKBest, f_classif feature_cols = clicks.columns.drop(['click_time', 'attributed_time', 'is_attributed']) train, valid, test = get_data_splits(clicks) # Create the selector, keeping 40 features selector = SelectKBest(f_classif, k=40) X_new = selector.fit_transform(train[feature_cols], train['is_attributed']) # Get back the features we've kept, zero out all other features selected_features = pd.DataFrame(selector.inverse_transform(X_new), index=train.index, columns=feature_cols) # Dropped columns have values of all 0s, so var is 0, drop them dropped_columns = selected_features.columns[selected_features.var() == 0] # Check your answer q_2.check() # - # Uncomment these lines if you need some guidance # q_2.hint() q_2.solution() _ = train_model(train.drop(dropped_columns, axis=1), valid.drop(dropped_columns, axis=1)) # ### 3) The best value of K # # With this method we can choose the best K features, but we still have to choose K ourselves. How would you find the "best" value of K? That is, you want it to be small so you're keeping the best features, but not so small that it's degrading the model's performance. # # Run the following line after you've decided your answer. # Check your answer (Run this code cell to receive credit!) q_3.solution() # ### 4) Use L1 regularization for feature selection # # Now try a more powerful approach using L1 regularization. Implement a function `select_features_l1` that returns a list of features to keep. # # Use a `LogisticRegression` classifier model with an L1 penalty to select the features. For the model, set: # - the random state to 7, # - the regularization parameter to 0.1, # - and the solver to `'liblinear'`. # # Fit the model then use `SelectFromModel` to return a model with the selected features. # # The checking code will run your function on a sample from the dataset to provide more immediate feedback. # + from sklearn.linear_model import LogisticRegression from sklearn.feature_selection import SelectFromModel def select_features_l1(X, y): logistic = LogisticRegression(C=0.1, penalty="l1", random_state=7, solver='liblinear').fit(X, y) model = SelectFromModel(logistic, prefit=True) X_new = model.transform(X) # Get back the kept features as a DataFrame with dropped columns as all 0s selected_features = pd.DataFrame(model.inverse_transform(X_new), index=X.index, columns=X.columns) # Dropped columns have values of all 0s, keep other columns cols_to_keep = selected_features.columns[selected_features.var() != 0] return cols_to_keep # Check your answer q_4.check() # - # Uncomment these if you're feeling stuck #q_4.hint() q_4.solution() # + n_samples = 10000 X, y = train[feature_cols][:n_samples], train['is_attributed'][:n_samples] selected = select_features_l1(X, y) dropped_columns = feature_cols.drop(selected) _ = train_model(train.drop(dropped_columns, axis=1), valid.drop(dropped_columns, axis=1)) # - # ### 5) Feature Selection with Trees # # Since we're using a tree-based model, using another tree-based model for feature selection might produce better results. What would you do different to select the features using a trees classifier? # # Run the following line after you've decided your answer. # Check your answer (Run this code cell to receive credit!) q_5.solution() # ### 6) Top K features with L1 regularization # # Here you've set the regularization parameter `C=0.1` which led to some number of features being dropped. However, by setting `C` you aren't able to choose a certain number of features to keep. What would you do to keep the top K important features using L1 regularization? # # Run the following line after you've decided your answer. # Check your answer (Run this code cell to receive credit!) q_6.solution() # Congratulations on finishing this course! To keep learning, check out the rest of [our courses](https://www.kaggle.com/learn/overview). The machine learning explainability and deep learning courses are great next skills to learn! # --- # # # # # *Have questions or comments? Visit the [Learn Discussion forum](https://www.kaggle.com/learn-forum/161443) to chat with other Learners.*
8,483
/Pipeline.ipynb
7b2d08a30e04281a230f479fc004e2c3372906ee
[]
no_license
annabaydina/ieee-fraud
https://github.com/annabaydina/ieee-fraud
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
17,999
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # + # %load_ext autoreload # %autoreload 2 main_path = r'lib' data_path = main_path+'/data' import sys sys.path.append(main_path) from lib import * # from lib.ieee_fraud_nodes import * from typing import List, Set, Dict, Optional, Any, Tuple, Type, Union from lib.io import * import os main_dir = main_path data_dir = f'{main_dir}/Data' # - # ## Processing raw, add NanCounts and reduce mem usage # + p = Pipeline(working_folder=f'{main_dir}/Snapshots/1/01-JoinReduceMem') p.add_node(IEEEFraudTransactionLoaderNode, None, 'transactions', params={ 'input_directory': data_dir }) p.add_node(IEEEFraudIdentityLoaderNode, None, 'identity', params={ 'input_directory': data_dir }) p.add_node(AddNaNCountNode, 'transactions', 'transactions', params={ 'name': 'NanTransactionCount' }) p.add_node(AddNaNCountNode, 'identity', 'identity', params={ 'name': 'NanIdentityCount' }) p.add_node(JoinNode, ('transactions', 'identity'), 'data', params={ 'on': 'TransactionID' }) p.add_node(EraserNode, params={ 'remove_keys': ['transactions', 'identity'] }) p.add_node(ReduceMemoryUsageNode, 'data', 'data', params={ 'verbose': True }) p.run(verbose=True) print(p.data['data'].columns) p.save_data('pickle') # - # ## Add basic feats # + data_dir =f'{main_dir}/Snapshots/1/01-JoinReduceMem' p = Pipeline(working_folder=f'{main_dir}/Snapshots/1/full-fe') p.add_node(LoaderNode, None, 'data', params={ 'input_directory': data_dir, 'file': 'data.pkl' }) p.add_node(TimeTransformNode, 'data') p.add_node(SomeAggregatesFromAnyaNode, 'data') p.add_node(EmailTransformNode, 'data') numerical_cols = ['id_%02d' % i for i in range(1,12)] + ["V%d"%i for i in range(1,340)] + ["D%d"%i for i in range(1,16)] + ["C%d"%i for i in range(1,15)] + ['dist1','TransactionAmt', 'NanIdentityCount', 'NanTransactionCount', '_Weekdays', '_Hours', '_Days', 'Date', 'dist2'] label_cols = ['M1', 'M2', 'M3','M4', 'M5', 'M6', 'M7', 'M8', 'M9', 'card4', 'card6', 'ProductCD'] + ['id_%02d'%i for i in (12,15,16,28,29,32,34,35,36,37,38)] label_cols += ['id_13', 'id_14', 'id_17', 'id_18', 'id_19', 'id_20', 'id_21', 'id_22', 'id_23', 'id_24', 'id_25', 'id_26', 'id_27', 'id_30', 'id_31', 'id_33', 'DeviceType', 'DeviceInfo', 'P_emaildomain', 'R_emaildomain', 'card1', 'card2', 'card3', 'card5', 'addr1', 'addr2', 'P_emaildomain_bin', 'P_emaildomain_suffix', 'R_emaildomain_bin', 'R_emaildomain_suffix'] #add_from Anya Features numerical_cols+=['TransactionDT', 'Weekdays', 'Hours', 'Days','DT_M', 'DT_W', 'DT_D','id_02_to_mean_card1', 'id_02_to_mean_card4', 'id_02_to_std_card1', 'id_02_to_std_card4', 'D15_to_mean_card1', 'D15_to_mean_card4', 'D15_to_std_card1', 'D15_to_std_card4', 'D15_to_mean_addr1', 'D15_to_std_addr1', 'TransactionAmt_to_mean_card1', 'TransactionAmt_to_mean_card4', 'TransactionAmt_to_std_card1', 'TransactionAmt_to_std_card4', 'TransactionAmt_decimal','nulls1','screen_width', 'screen_height','TransactionAmt_Log', 'card1_count_full', 'Transaction_day_of_week', 'Transaction_hour', 'id_01_count_dist', 'id_31_count_dist', 'id_33_count_dist', 'id_36_count_dist', 'card2_count_full', 'card3_count_full', 'card4_count_full', 'card5_count_full', 'card6_count_full', 'addr1_count_full', 'addr2_count_full', 'id_36_count_full', 'M_sum', 'M_na', 'ProductCD_target_mean', 'M4_target_mean', 'card1_TransactionAmt_mean', 'card1_TransactionAmt_std', 'card2_TransactionAmt_mean', 'card2_TransactionAmt_std', 'card3_TransactionAmt_mean', 'card3_TransactionAmt_std', 'card5_TransactionAmt_mean', 'card5_TransactionAmt_std', 'uid_TransactionAmt_mean', 'uid_TransactionAmt_std', 'uid2_TransactionAmt_mean', 'uid2_TransactionAmt_std', 'uid3_TransactionAmt_mean', 'uid3_TransactionAmt_std', 'card1_fq_enc', 'card2_fq_enc', 'card3_fq_enc', 'card5_fq_enc', 'C1_fq_enc', 'C2_fq_enc', 'C3_fq_enc', 'C4_fq_enc', 'C5_fq_enc', 'C6_fq_enc', 'C7_fq_enc', 'C8_fq_enc', 'C9_fq_enc', 'C10_fq_enc', 'C11_fq_enc', 'C12_fq_enc', 'C13_fq_enc', 'C14_fq_enc', 'D1_fq_enc', 'D2_fq_enc', 'D3_fq_enc', 'D4_fq_enc', 'D5_fq_enc', 'D6_fq_enc', 'D7_fq_enc', 'D8_fq_enc', 'addr1_fq_enc', 'addr2_fq_enc', 'dist1_fq_enc', 'dist2_fq_enc', 'P_emaildomain_fq_enc', 'R_emaildomain_fq_enc', 'DeviceInfo_fq_enc', 'id_30_fq_enc', 'version_id_30_fq_enc', 'version_id_31_fq_enc', 'id_33_fq_enc', 'uid_fq_enc', 'uid2_fq_enc', 'uid3_fq_enc', 'DT_M_total', 'DT_W_total', 'DT_D_total', 'card1_DT_M', 'card2_DT_M', 'card3_DT_M', 'card5_DT_M', 'uid_DT_M', 'uid2_DT_M', 'uid3_DT_M', 'card1_DT_W', 'card2_DT_W', 'card3_DT_W', 'card5_DT_W', 'uid_DT_W', 'uid2_DT_W', 'uid3_DT_W', 'card1_DT_D', 'card2_DT_D', 'card3_DT_D', 'card5_DT_D', 'uid_DT_D', 'uid2_DT_D', 'uid3_DT_D'] label_cols+=['isNight','lastest_browser', 'device_name', 'device_version', 'OS_id_30', 'version_id_30', 'browser_id_31', 'version_id_31', 'had_id', 'id_02__id_20', 'id_02__D8', 'D11__DeviceInfo', 'DeviceInfo__P_emaildomain', 'P_emaildomain__C2', 'card2__dist1', 'card1__card5', 'card2__id_20', 'card5__P_emaildomain', 'addr1__card1','uid', 'uid2', 'uid3'] strange_cols = ['Transaction_day_of_week', 'Transaction_hour'] p.data['numerical_columns'] = numerical_cols p.data['categorical_columns'] = label_cols p.data['useless_columns'] = strange_cols p.add_node(AddDeviceOSInfoNode, ('data', 'numerical_columns', 'categorical_columns')) p.add_node(AddCardIdNode, ('data', 'numerical_columns', 'categorical_columns')) p.add_node(AddNewCardIdNode, ('data', 'numerical_columns', 'categorical_columns')) p.add_node(AddTemporalAggregates, input_key=('data', 'numerical_columns', 'categorical_columns'), params={ 'features':['TransactionAmt', 'C5', 'C8'], 'group_by': 'new_card_id' }) p.save() p.run() p.save_data() # del p # gc.collect() # - # ## Device info node add = p.data['data'][['new_card_id', 'start_date']] add.to_pickle(f'{p.working_folder}/new_card_id.pkl') # + data_dir =f'{main_dir}/Snapshots/1/02-FeatureEngineering' p = Pipeline(working_folder=f'{main_dir}/Snapshots/1/03-AddBrowser') p.add_node(LoaderNode, None, 'data', params={ 'input_directory': data_dir, 'file': 'data.pkl' }) p.add_node(LoaderNode, None, 'numerical_columns', params={ 'input_directory': data_dir, 'file': 'numerical_columns.yaml' }) p.add_node(LoaderNode, None, 'categorical_columns', params={ 'input_directory': data_dir, 'file': 'categorical_columns.yaml' }) p.add_node(AddDeviceOSInfoNode, ('data', 'numerical_columns', 'categorical_columns')) p.save() p.run(verbose=True) p.save_data() # - # ## Add temporal aggregates # + data_dir =f'{main_dir}/Snapshots/1/99' p = Pipeline(working_folder=f'{main_dir}/Snapshots/1/04-Temporal') p.add_node(LoaderNode, None, 'data', params={ 'input_directory': data_dir, 'file': 'data.pkl' }) p.add_node(LoaderNode, None, 'numerical_columns', params={ 'input_directory': data_dir, 'file': 'numerical_columns.yaml' }) p.add_node(LoaderNode, None, 'categorical_columns', params={ 'input_directory': data_dir, 'file': 'categorical_columns.yaml' }) p.add_node(AddTemporalAggregates, input_key=('data', 'numerical_columns', 'categorical_columns'), params={ 'features':['TransactionAmt'] } ) p.save() p.run(verbose=True) p.save_data() # - # ## Encode categorial features # + data_dir =f'{main_dir}/Snapshots/1/99' p = Pipeline(working_folder=f'{main_dir}/Snapshots/1/05-LabelEncoded') p.add_node(LoaderNode, None, 'data', params={ 'input_directory': data_dir, 'file': 'data.pkl' }) p.add_node(LoaderNode, None, 'numerical_columns', params={ 'input_directory': data_dir, 'file': 'numerical_columns.yaml' }) p.add_node(LoaderNode, None, 'categorical_columns', params={ 'input_directory': data_dir, 'file': 'categorical_columns.yaml' }) p.add_node(LabelEncoderNode, input_key=('data', 'numerical_columns', 'categorical_columns'), output_key="label_encoded_data" ) p.add_node(EraserNode, params={ 'remove_keys': ['data'] }) p.save() p.run(verbose=True) p.save_data() # - p.save_data()
9,025
/Python Assignment/Python Programming Basic Assignment/Programming Assingment_19.ipynb
ed0b70b09f443fc26f2e42fd36933901ee2bc71d
[]
no_license
calkikhunt/iNeuron_ai
https://github.com/calkikhunt/iNeuron_ai
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
3,769
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- #Q1. Create a function that takes a string and returns a string in which each character is repeated once. def double_char(a): x = "" for i in a: x += i+i return x double_char("Hello World!") #Q2. Create a function that reverses a boolean value and returns the string "boolean expected" # if another variable type is given. def reverse(num): if type(num) != bool: return 'boolean expected' if num is True: return False return True reverse(True) #Q3. Create a function that returns the thickness (in meters) of a piece of paper after folding # it n number of times. The paper starts off with a thickness of 0.5mm. def num_layers(num): a = 0.5 for i in range(21): a = a * 2 return a/1000 num_layers(21) #Q4. Create a function that takes a single string as argument and returns an ordered list # containing the indices of all capital letters in the string. def index_of_caps(x): a = [] for i in range(len(x)): if x[i].isupper(): a.append(i) return a index_of_caps("eQuINoX") #Q5. Using list comprehensions, create a function that finds all even numbers from 1 to the given number. def find_even_nums(n): return [i for i in range(1,n+1) if i % 2 ==0] find_even_nums(8)
1,565
/class material/Unit2/prompts/Class 6 - pd.merge().ipynb
5f63eb6ab3e1e5abe41d0d6c3c2660c74083f19d
[]
no_license
JonathanBechtel/DAT-10-14
https://github.com/JonathanBechtel/DAT-10-14
1
3
null
2019-11-04T21:27:43
2019-11-03T18:11:20
Jupyter Notebook
Jupyter Notebook
false
false
.py
43,989
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # ## NumPy # # ### Arrays NumPy - Objetos multidimensionais com N dimesões # ### Matrizes NumPy - Objetos estritamente com 2 dimensões # # A principal vantagem de utilizar matrizes com NumPy, é que este tipo de objeto possui convenientes notações para multiplicação de matrizes. # Arrays e Matrizes NumPy possuem o atributo T para retornar a transposta da matriz, enquanto objetos do tipo matriz possuem adicionalmente os atributos I (Inversa) e H (Transposta Conjugada). # # Existem diferenças em operações de álgebra linear entre arrays e matrizes. # Muitas funções NumPy retornam arrays e não matrizes como objetos resultante. import sys import numpy as np print(sys.version) np.__version__ # ## Criando Matrizes mat1 = np.matrix('1, 2, 3; 4, 5, 6') print(mat1) type(mat1) mat2 = np.matrix([[1, 2, 3], [4, 5, 6]]) print(mat2) mat3 = np.matrix([ [0, 10, 0, 0, 0], [0, 0, 20, 0, 0], [0, 0, 0, 30, 0], [0, 0, 0, 0, 40], [0, 0, 0, 0, 0] ]) print(mat3) mat3[2, 3] # ## Matriz Esparsa # Uma matriz esparsa possui uma grande quantidade de elementos que valem zero (ou não presentes, ou não necessários). # Matrizes esparsas tem aplicações em problemas de engenharia, física (por exemplo, o método das malhas para resolução de circulos elétricos ou sistemas de equações lineares). # Também tem aplicações em computação, como por exemplo em tecnologias de armazenamento de dados. # # A matriz esparsa é implementada através de um conjunto de listas ligadas que apontam para elementos diferentes de zero. # De forma que os elementos que possuem valor zero não são armazenados. import scipy.sparse linhas = np.array([0, 1, 2 , 3]) colunas = np.array([1, 2, 3, 4]) valores = np.array([10, 20, 30, 40]) mat4 = scipy.sparse.coo_matrix((valores, (linhas, colunas))) print(mat4) print(mat4.todense()) scipy.sparse.isspmatrix_coo(mat4) # ## Operações com Arrays e Matrizes a = np.array([[1, 2], [3, 4]]) a a * a A = np.mat(a) A A * A # $$\boxed{ # \begin{align} # \begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix} & # \begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix} = # \begin{pmatrix} 7 & 10 \\ 15 & 22 \end{pmatrix} # \end{align} # }$$ from IPython.display import Image Image('./images/Matriz.png') np.dot(a, a) # Convertendo um Array para Matriz mat5 = np.asmatrix(a) mat5 mat5 * mat5 # Convertendo uma Matriz para um Array array2 = np.array(mat5) array2 array2 * array2 means W1's shape was (2,2), b1 was (1,2), W2 was (2,1) and b2 was (1,1). Now you have to generalize it! - In the for loop, use parameters['W' + str(l)] to access Wl, where l is the iterative integer. """ np.random.seed(3) parameters = {} L = len(layer_dims) # number of layers in the network for l in range(1, L): parameters['W' + str(l)] = np.random.randn(layer_dims[l], layer_dims[l-1]) / np.sqrt(layer_dims[l-1]) parameters['b' + str(l)] = np.zeros((layer_dims[l], 1)) assert(parameters['W' + str(l)].shape == layer_dims[l], layer_dims[l-1]) assert(parameters['W' + str(l)].shape == layer_dims[l], 1) return parameters def forward_propagation(X, parameters): """ Implements the forward propagation (and computes the loss) presented in Figure 2. Arguments: X -- input dataset, of shape (input size, number of examples) parameters -- python dictionary containing your parameters "W1", "b1", "W2", "b2", "W3", "b3": W1 -- weight matrix of shape () b1 -- bias vector of shape () W2 -- weight matrix of shape () b2 -- bias vector of shape () W3 -- weight matrix of shape () b3 -- bias vector of shape () Returns: loss -- the loss function (vanilla logistic loss) """ # retrieve parameters W1 = parameters["W1"] b1 = parameters["b1"] W2 = parameters["W2"] b2 = parameters["b2"] W3 = parameters["W3"] b3 = parameters["b3"] # LINEAR -> RELU -> LINEAR -> RELU -> LINEAR -> SIGMOID Z1 = np.dot(W1, X) + b1 A1 = relu(Z1) Z2 = np.dot(W2, A1) + b2 A2 = relu(Z2) Z3 = np.dot(W3, A2) + b3 A3 = sigmoid(Z3) cache = (Z1, A1, W1, b1, Z2, A2, W2, b2, Z3, A3, W3, b3) return A3, cache def backward_propagation(X, Y, cache): """ Implement the backward propagation presented in figure 2. Arguments: X -- input dataset, of shape (input size, number of examples) Y -- true "label" vector (containing 0 if cat, 1 if non-cat) cache -- cache output from forward_propagation() Returns: gradients -- A dictionary with the gradients with respect to each parameter, activation and pre-activation variables """ m = X.shape[1] (Z1, A1, W1, b1, Z2, A2, W2, b2, Z3, A3, W3, b3) = cache dZ3 = A3 - Y dW3 = 1./m * np.dot(dZ3, A2.T) db3 = 1./m * np.sum(dZ3, axis=1, keepdims = True) dA2 = np.dot(W3.T, dZ3) dZ2 = np.multiply(dA2, np.int64(A2 > 0)) dW2 = 1./m * np.dot(dZ2, A1.T) db2 = 1./m * np.sum(dZ2, axis=1, keepdims = True) dA1 = np.dot(W2.T, dZ2) dZ1 = np.multiply(dA1, np.int64(A1 > 0)) dW1 = 1./m * np.dot(dZ1, X.T) db1 = 1./m * np.sum(dZ1, axis=1, keepdims = True) gradients = {"dZ3": dZ3, "dW3": dW3, "db3": db3, "dA2": dA2, "dZ2": dZ2, "dW2": dW2, "db2": db2, "dA1": dA1, "dZ1": dZ1, "dW1": dW1, "db1": db1} return gradients def update_parameters(parameters, grads, learning_rate): """ Update parameters using gradient descent Arguments: parameters -- python dictionary containing your parameters: parameters['W' + str(i)] = Wi parameters['b' + str(i)] = bi grads -- python dictionary containing your gradients for each parameters: grads['dW' + str(i)] = dWi grads['db' + str(i)] = dbi learning_rate -- the learning rate, scalar. Returns: parameters -- python dictionary containing your updated parameters """ n = len(parameters) // 2 # number of layers in the neural networks # Update rule for each parameter for k in range(n): parameters["W" + str(k+1)] = parameters["W" + str(k+1)] - learning_rate * grads["dW" + str(k+1)] parameters["b" + str(k+1)] = parameters["b" + str(k+1)] - learning_rate * grads["db" + str(k+1)] return parameters def predict(X, y, parameters): """ This function is used to predict the results of a n-layer neural network. Arguments: X -- data set of examples you would like to label parameters -- parameters of the trained model Returns: p -- predictions for the given dataset X """ m = X.shape[1] p = np.zeros((1,m), dtype = np.int) # Forward propagation a3, caches = forward_propagation(X, parameters) # convert probas to 0/1 predictions for i in range(0, a3.shape[1]): if a3[0,i] > 0.5: p[0,i] = 1 else: p[0,i] = 0 # print results #print ("predictions: " + str(p[0,:])) #print ("true labels: " + str(y[0,:])) print("Accuracy: " + str(np.mean((p[0,:] == y[0,:])))) return p def compute_cost(a3, Y): """ Implement the cost function Arguments: a3 -- post-activation, output of forward propagation Y -- "true" labels vector, same shape as a3 Returns: cost - value of the cost function """ m = Y.shape[1] logprobs = np.multiply(-np.log(a3),Y) + np.multiply(-np.log(1 - a3), 1 - Y) cost = 1./m * np.nansum(logprobs) return cost def load_dataset(): train_dataset = h5py.File('datasets/train_catvnoncat.h5', "r") train_set_x_orig = np.array(train_datas
8,155
/BikeSharing_FE.ipynb
c49f5c5d65bd67358a40c00ae0a55375415e6291
[]
no_license
TianYu-hpu/machine_learning
https://github.com/TianYu-hpu/machine_learning
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
913,320
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # + # -*- coding: utf-8 -*- import numpy as np import matplotlib.pyplot as plt from keras.layers import Input, Dense, Lambda from keras.models import Model from keras import backend as K from keras import objectives from keras.datasets import fashion_mnist batch_size = 100 original_dim = 784 intermediate_dim = 256 latent_dim = 2 epochs = 50 x = Input(shape=(original_dim,)) h = Dense(intermediate_dim, activation='relu')(x) z_mean = Dense(latent_dim)(h) z_log_var = Dense(latent_dim)(h) def sampling(args): z_mean, z_log_var = args epsilon = K.random_normal(shape=(batch_size, latent_dim), mean=0.) return z_mean + K.exp(z_log_var / 2) * epsilon z = Lambda(sampling, output_shape=(latent_dim,))([z_mean, z_log_var]) decoder_h = Dense(intermediate_dim, activation='relu') decoder_mean = Dense(original_dim, activation='sigmoid') h_decoded = decoder_h(z) x_decoded_mean = decoder_mean(h_decoded) def vae_loss(x, x_decoded_mean): xent_loss = original_dim * objectives.binary_crossentropy(x, x_decoded_mean) kl_loss = -0.5 * K.sum(1 + z_log_var - K.square(z_mean) - K.exp(z_log_var), axis=-1) return xent_loss + kl_loss vae = Model(x, x_decoded_mean) vae.compile(optimizer='rmsprop', loss=vae_loss) (x_train, y_train), (x_test, y_test) = fashion_mnist.load_data() x_train = x_train.astype('float32') / 255. x_test = x_test.astype('float32') / 255. x_train = x_train.reshape((len(x_train), np.prod(x_train.shape[1:]))) x_test = x_test.reshape((len(x_test), np.prod(x_test.shape[1:]))) vae.fit(x_train, x_train, shuffle=True, epochs=epochs, batch_size=batch_size, validation_data=(x_test, x_test)) # + encoder = Model(x, z_mean) x_test_encoded = encoder.predict(x_test, batch_size=batch_size) plt.figure(figsize=(6, 6)) plt.scatter(x_test_encoded[:, 0], x_test_encoded[:, 1], c=y_test) plt.colorbar() plt.show() # + decoder_input = Input(shape=(latent_dim,)) _h_decoded = decoder_h(decoder_input) _x_decoded_mean = decoder_mean(_h_decoded) generator = Model(decoder_input, _x_decoded_mean) n = 20 digit_size = 28 figure = np.zeros((digit_size * n, digit_size * n)) grid_x = np.linspace(-3, 3, n) grid_y = np.linspace(-3, 3, n) for i, xi in enumerate(grid_x): for j, yi in enumerate(grid_y): z_sample = np.array([[yi, xi]]) x_decoded = generator.predict(z_sample) digit = x_decoded[0].reshape(digit_size, digit_size) figure[(n - i - 1) * digit_size: (n - i) * digit_size, j * digit_size: (j + 1) * digit_size] = digit plt.figure(figsize=(10, 10)) plt.imshow(figure) plt.show() d = model.predict(X) erro_sklearn = compute_error_for_line_given_points(b0, b1, x, y) print("b0 = {}, b1 = {}, error = {}".format(b0, b1, compute_error_for_line_given_points(b0, b1, x, y))) error = erro_manual-erro_sklearn print(error) # ### Questão 4 - A) # %%time x = points[:, 0] y = points[:, 1] learning_rate = 0.01 initial_b0 = 0 # y-intercept inicial initial_b1 = 0 # inclinação inicial num_iterations = 390000 erro_manual = run(x, y, initial_b0, initial_b1, learning_rate, num_iterations) # ###### R: retorna valores 'não numéricos' # ### Questão 4 - B) # %%time x = points[:, 0] y = points[:, 1] learning_rate = 0.01 initial_b0 = 0 # y-intercept inicial initial_b1 = 0 # inclinação inicial num_iterations = 70 erro_manual = run(x, y, initial_b0, initial_b1, learning_rate, num_iterations) # ## Questão 5 x = np.array([1400,1600,1700,1875,1100,1550,2350,2450,1425,1700]) y = np.array([245000,312000,279000,308000,199000,219000,405000,324000,319000,255000]) conversor = 10.7639 learning_rate = 0.0000001 initial_b0 = 0 # y-intercept inicial initial_b1 = 0 # inclinação inicial num_iterations = 100000 erro_manual = run(x, y, initial_b0, initial_b1, learning_rate, num_iterations) plt.grid() plt.scatter(x,y, color="green") dimensao_casa = 100 * conversor print(dimensao_casa) print(b0 + (b1 * dimensao_casa)) 份与骑行量的关系 fig, ax = plt.subplots() sn.barplot(data = train[['mnth', 'cnt']], x='mnth', y = 'cnt') ax.set(title = "monthly distribution of counts") #天气与骑行量的关系 fig, ax = plt.subplots() sn.barplot(data = train[['weathersit', 'cnt']], x='weathersit', y = 'cnt') ax.set(title = "weathersit distribution of counts") #工作日与节假日的分布 fig, (ax1, ax2) = plt.subplots(ncols = 2) sn.barplot(data = train, x = 'holiday', y = 'cnt', ax = ax1) sn.barplot(data = train, x = 'workingday', y = 'cnt', ax = ax2) # + #数值型特征与y之间的相关性 corrMatt = train[['temp', 'atemp', 'hum', 'windspeed', 'casual', 'registered', 'cnt']].corr() mask = np.array(corrMatt) mask[np.tril_indices_from(mask)] = False sn.heatmap(corrMatt, mask = mask, vmax = 8, square = True, annot = True) # - #类别性变量特征编码 #对类别性变量进行独热编码 #前面部分已经对离散型特征进行了转换为object的操作,这里就不用了 ''' categorical_features = ['season', 'mnth', 'weathersit', 'weekday'] for col in categorical_features: print("{0}属性不同取值和出现次数".format(col)) print(train[col].value_counts()) #将类别性特征转化为object train[col] = train[col].astype('object') ''' X_train_cat = train[categorical_features] #独热编码 X_train_cat = pd.get_dummies(X_train_cat) X_train_cat.head() # + #数值型特征 #对数值型特征进行标准化/MinMaxScaler,去量纲 #数值型变量预处理 #感觉数据已经做过处理,取值都在0-1之间,这里用MinMaxScaler再处理一次 from sklearn.preprocessing import MinMaxScaler mn_x = MinMaxScaler() numerical_features = ['temp', 'atemp', 'hum', 'windspeed'] temp = mn_x.fit_transform(train[numerical_features]) X_train_num = pd.DataFrame(data = temp, columns = numerical_features, index = train.index) X_train_num.head() # - #将数值型特征和类别性特征合并到一起 X_train = pd.concat([X_train_cat, X_train_num, train['holiday'], train['workingday']], axis = 1, ignore_index = False) X_train.head() FE_train = pd.concat([train['instant'], X_train, train['yr'], train['cnt']], axis = 1) FE_train.to_csv('FE_BikeSharing.csv', index = False) FE_train.head() FE_train.info()
6,099
/nb.ipynb
011cf50cb2673abea1409867c2ed20a95f17d1f8
[ "MIT" ]
permissive
tlkh/ships-imagery-dataset
https://github.com/tlkh/ships-imagery-dataset
0
0
MIT
2019-11-02T03:21:55
2019-11-02T03:21:28
null
Jupyter Notebook
false
false
.py
1,118,073
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # # Import Libraries # + colab={"base_uri": "https://localhost:8080/", "height": 0} colab_type="code" executionInfo={"elapsed": 7175, "status": "ok", "timestamp": 1570473634312, "user": {"displayName": "Timothy Liu SG", "photoUrl": "", "userId": "04327513636844080478"}, "user_tz": -480} id="zNbGLsDSUe3W" outputId="4e551e00-c5a8-4d41-f6c2-7269f7941a68" import pathlib import numpy as np import multiprocessing import matplotlib.pyplot as plt import tensorflow print("TensorFlow version:", tensorflow.__version__) import tensorflow.compat.v2 as tf # - # # Notebook Parameters classes = ["not_ship", "ship"] N_THREADS = multiprocessing.cpu_count() BATCH_SIZE = 16 # # Loading Data # ## Loading our Imagery Dataset # + dataset_path = pathlib.Path("./ships-imagery-dataset/") image_count = len(list(dataset_path.glob('*/*.jpg'))) print("Total images:", image_count) list_ds = tf.data.Dataset.list_files(str(dataset_path/'*/*.jpg'), shuffle=True) # - # ### Functions to Preprocess Images # + @tf.function def load_train_example(file_path): label = tf.strings.split(file_path, '/')[-2] if label == "ship": _label = 1 else: _label = 0 img = tf.io.read_file(file_path) img = tf.image.decode_jpeg(img, channels=3) img = tf.cast(img, tf.float32) img = img/127.5 - 1 img = tf.image.resize(img, [224, 224]) img = tf.image.random_flip_left_right(img) img = tf.image.random_flip_up_down(img) rot_k = np.random.randint(0, 4, size=1)[0] img = tf.image.rot90(img, rot_k) return img, tf.one_hot(_label, 2) @tf.function def load_test_example(file_path): label = tf.strings.split(file_path, '/')[-2] if label == "ship": _label = 1 else: _label = 0 img = tf.io.read_file(file_path) img = tf.image.decode_jpeg(img, channels=3) img = tf.cast(img, tf.float32) img = img/127.5 - 1 img = tf.image.resize(img, [224, 224]) return img, tf.one_hot(_label, 2) # - # ### Building Input Pipelines # + train_dataset = list_ds.shard(3, 0) train_dataset = train_dataset.map(load_train_example, num_parallel_calls=N_THREADS) train_dataset = train_dataset.repeat(-1) train_dataset = train_dataset.shuffle(image_count//3) train_dataset = train_dataset.batch(BATCH_SIZE) train_dataset = train_dataset.prefetch(8) val_dataset = list_ds.shard(3, 1) val_dataset = val_dataset.map(load_test_example, num_parallel_calls=N_THREADS) val_dataset = val_dataset.repeat(-1) val_dataset = val_dataset.batch(BATCH_SIZE) val_dataset = val_dataset.prefetch(8) inf_dataset = list_ds.shard(3, 2) inf_dataset = inf_dataset.map(load_test_example, num_parallel_calls=N_THREADS) inf_dataset = inf_dataset.repeat(-1) inf_dataset = inf_dataset.batch(1) inf_dataset = inf_dataset.prefetch(32) # run pipeline once _, _, _ = train_dataset.take(1), val_dataset.take(1), inf_dataset.take(1) # - # ## Build Model # + colab={} colab_type="code" id="BCK57jlvNpOO" import tensorflow.keras.layers as layers import tensorflow.keras.applications as models def create_model(img_size=(224,224), num_class=2, train_base=True): input_layer = layers.Input(shape=(img_size[0],img_size[1],3)) base = models.densenet.DenseNet121(input_tensor=input_layer, include_top=False, weights="imagenet") base.trainable = train_base x = base.output x = layers.GlobalAveragePooling2D()(x) x = layers.Dropout(rate=0.2)(x) preds = layers.Dense(num_class, activation="softmax")(x) return tf.keras.models.Model(inputs=input_layer, outputs=preds) # + colab={"base_uri": "https://localhost:8080/", "height": 51} colab_type="code" executionInfo={"elapsed": 24373, "status": "ok", "timestamp": 1570473651568, "user": {"displayName": "Timothy Liu SG", "photoUrl": "", "userId": "04327513636844080478"}, "user_tz": -480} id="YAwj90pGOIAy" outputId="8dfaabf3-1eab-402b-9897-42a0a45235a8" model = create_model((224, 224), len(classes), train_base=True) opt = tf.keras.optimizers.SGD() model.compile(loss="categorical_crossentropy", optimizer=opt, metrics=["acc"]) # - # ## Train Model # + colab={"base_uri": "https://localhost:8080/", "height": 153} colab_type="code" executionInfo={"elapsed": 132772, "status": "ok", "timestamp": 1570473759978, "user": {"displayName": "Timothy Liu SG", "photoUrl": "", "userId": "04327513636844080478"}, "user_tz": -480} id="7T8VVrn4Q12B" outputId="d5b7a7c7-0970-45ef-898e-283abfe787a6" train_steps = int(image_count/3/BATCH_SIZE) early_stop = tf.keras.callbacks.EarlyStopping(monitor="val_loss", patience=10, restore_best_weights=True) history = model.fit(train_dataset, steps_per_epoch=train_steps, validation_data=val_dataset, validation_steps=train_steps, callbacks=[early_stop], epochs=20, verbose=2) # - plt.plot(history.history['acc']) plt.plot(history.history['val_acc']) plt.title('Model accuracy') plt.ylabel('Accuracy') plt.xlabel('Epoch') plt.legend(['Train', 'Val'], loc='upper left') plt.show() loss, acc = model.evaluate(inf_dataset, steps=image_count//2) print("Model test accuracy:", round(acc*100, 1), "%") for _ in range(2): plt.figure(figsize=(10,10)) i = 0 for batch in inf_dataset.take(9): plt.subplot(3,3,i+1) image, label = batch pred = model.predict(image) title = "predicted: " + classes[np.argmax(pred)] img = (tf.cast(image[0], tf.float32).numpy() + 1) * 127.5 img = img.astype("int") if np.argmax(label.numpy()) == np.argmax(pred): img[:30, :30, 1] = 255 else: img[:30, :30, 0] = 255 plt.imshow(img) plt.title(title) plt.axis("off") i += 1 plt.show() validation_loss[-1]}') # Plot training and validation loss epoch = np.arange(len(training_loss)) plt.figure() plt.plot(epoch, training_loss, 'r', label='Training loss',) plt.plot(epoch, validation_loss, 'b', label='Validation loss') plt.legend() plt.xlabel('Epoch'), plt.ylabel('NLL') plt.show() # + colab={"base_uri": "https://localhost:8080/", "height": 1000} id="n9aSyKl5OtQN" outputId="338810b0-0955-4ef4-8f88-d2f80dd9687f" # test case plotIDs = [1,100] test_loss = 0 net.eval() id = 0 for inputs, targets in iter(test_loader): id += 1 # Forward pass outputs = net(inputs) # Compute loss loss = criterion(outputs, targets) # Update loss test_loss += loss.detach().cpu() plt.figure(figsize=(30,3)) for i in range(input_dim): stat_out = [x[i] for x in outputs[0]] stat_tar = [x[i] for x in targets[0]] plt.subplot(1, 9, i+1) plt.plot(stat_out) plt.plot(stat_tar) plt.title(stops[i] + " -> " + stops[i+1]) plt.legend(["Prediction","Target"], loc='upper right') print("Test Loss: ", (test_loss/len(test_loader))) # + colab={"base_uri": "https://localhost:8080/", "height": 513} id="jC86wx0PJahF" outputId="0cd8dc02-34e6-475c-f380-27c1ce550a30" def predict(startID, iterations): inputs = torch.FloatTensor([rnn_data[(startID):(startID+seq_len-1)]]).cuda() targets = torch.FloatTensor(rnn_data[(startID+seq_len):(startID+seq_len+iterations)]) results = [] batch_size = 1 for i in range(iterations): outputs = net(inputs) inputs = torch.cat((inputs[0][1:],outputs[0][-1:])).reshape(1,71,9) results.append(outputs[0][-1]) plt.figure(figsize=(7,7)) for i in range(input_dim): stat_out = [x[i] for x in results] stat_tar = [x[i] for x in targets] plt.subplot(3, 3, i+1) plt.plot(stat_out) plt.plot(stat_tar) plt.title(stops[i] + " -> " + stops[i+1]) plt.legend(["Prediction","Target"], loc='upper right') # predict(110, 24) predict(160, 24) # predict(270, 24) plt.tight_layout() plt.savefig(f'{path_to_project}/Plots/approach1.png',dpi=300)
8,184
/Python_fn.ipynb
964911f807b91b31f0083e7cdfebb91131fc6d3a
[]
no_license
AnilKumar3/python_learning
https://github.com/AnilKumar3/python_learning
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
3,263
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python [conda env:anaconda3] # language: python # name: conda-env-anaconda3-py # --- # ## Temp converture # + def c2f (cel): value=32.+cel*9./5 print ('Temp in FarH:',value) def f2c (far): value1=(far-32.)*5./9 print ('Temp in Cel:', value1) print ('Welcome to Tempreture Converter') ans='Y' while (ans=='Y'): value=input('what you want to do? (C)el --> Far OR (F)ar --> Cel') print ('value:', value) if value.upper()=='C': cel=int(input('Enter Value in Cel:')) print('Value in Cel:',cel) c2f(cel) elif value.upper()=='F': far=int(input('Enter value in FarH:')) print('Value in FarH:',far) f2c(far) else: print ('Wrong value') choice=input('Want to Continue (Y/N):') if choice.upper()!='Y': break print ('Have a good day') # - f_to_c(60 ) f_to_c(110)
1,089
/01_the_machine_learning_landscape.ipynb
e16b3ce02505eb8cab83804abb627cdb4654340d
[ "Apache-2.0" ]
permissive
verystrongjoe/handson-ml
https://github.com/verystrongjoe/handson-ml
0
0
null
2017-07-24T20:56:39
2017-07-24T17:12:13
null
Jupyter Notebook
false
false
.py
263,323
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python [default] # language: python # name: python3 # --- # + [markdown] deletable=true editable=true # **Chapter 1 – The Machine Learning landscape** # # _This is the code used to generate some of the figures in chapter 1._ # + [markdown] deletable=true editable=true # # Setup # + [markdown] deletable=true editable=true # First, let's make sure this notebook works well in both python 2 and 3, import a few common modules, ensure MatplotLib plots figures inline and prepare a function to save the figures: # + deletable=true editable=true slideshow={"slide_type": "-"} # To support both python 2 and python 3 from __future__ import division, print_function, unicode_literals # Common imports import numpy as np import numpy.random as rnd import os # to make this notebook's output stable across runs rnd.seed(42) # To plot pretty figures # %matplotlib inline import matplotlib import matplotlib.pyplot as plt plt.rcParams['axes.labelsize'] = 14 plt.rcParams['xtick.labelsize'] = 12 plt.rcParams['ytick.labelsize'] = 12 # Where to save the figures PROJECT_ROOT_DIR = "." CHAPTER_ID = "fundamentals" def save_fig(fig_id, tight_layout=True): path = os.path.join(PROJECT_ROOT_DIR, "images", CHAPTER_ID, fig_id + ".png") print("Saving figure", fig_id) if tight_layout: plt.tight_layout() plt.savefig(path, format='png', dpi=300) # + [markdown] deletable=true editable=true # # Load and prepare Life satisfaction data # + deletable=true editable=true import pandas as pd # Download CSV from http://stats.oecd.org/index.aspx?DataSetCode=BLI datapath = "datasets/lifesat/" oecd_bli = pd.read_csv(datapath+"oecd_bli_2015.csv", thousands=',') # - oecd_bli = oecd_bli[oecd_bli["INEQUALITY"]=="TOT"] oecd_bli = oecd_bli.pivot(index="Country", columns="Indicator", values="Value") oecd_bli.head(2) # + deletable=true editable=true oecd_bli["Life satisfaction"].head() # + [markdown] deletable=true editable=true # # Load and prepare GDP per capita data # + deletable=true editable=true # Download data from http://goo.gl/j1MSKe (=> imf.org) gdp_per_capita = pd.read_csv(datapath+"gdp_per_capita.csv", thousands=',', delimiter='\t', encoding='latin1', na_values="n/a") gdp_per_capita.rename(columns={"2015": "GDP per capita"}, inplace=True) gdp_per_capita.set_index("Country", inplace=True) gdp_per_capita.head(2) # + deletable=true editable=true full_country_stats = pd.merge(left=oecd_bli, right=gdp_per_capita, left_index=True, right_index=True) full_country_stats.sort_values(by="GDP per capita", inplace=True) full_country_stats # + deletable=true editable=true full_country_stats[["GDP per capita", 'Life satisfaction']].loc["United States"] # + deletable=true editable=true remove_indices = [0, 1, 6, 8, 33, 34, 35] keep_indices = list(set(range(36)) - set(remove_indices)) sample_data = full_country_stats[["GDP per capita", 'Life satisfaction']].iloc[keep_indices] missing_data = full_country_stats[["GDP per capita", 'Life satisfaction']].iloc[remove_indices] # + deletable=true editable=true sample_data.plot(kind='scatter', x="GDP per capita", y='Life satisfaction', figsize=(5,3)) plt.axis([0, 60000, 0, 10]) position_text = { "Hungary": (5000, 1), "Korea": (18000, 1.7), "France": (29000, 2.4), "Australia": (40000, 3.0), "United States": (52000, 3.8), } for country, pos_text in position_text.items(): pos_data_x, pos_data_y = sample_data.loc[country] country = "U.S." if country == "United States" else country plt.annotate(country, xy=(pos_data_x, pos_data_y), xytext=pos_text, arrowprops=dict(facecolor='black', width=0.5, shrink=0.1, headwidth=5)) plt.plot(pos_data_x, pos_data_y, "ro") save_fig('money_happy_scatterplot') plt.show() # + deletable=true editable=true sample_data.to_csv("life_satisfaction_vs_gdp_per_capita.csv") # + deletable=true editable=true sample_data.loc[list(position_text.keys())] # + deletable=true editable=true import numpy as np sample_data.plot(kind='scatter', x="GDP per capita", y='Life satisfaction', figsize=(5,3)) plt.axis([0, 60000, 0, 10]) X=np.linspace(0, 60000, 1000) plt.plot(X, 2*X/100000, "r") plt.text(40000, 2.7, r"$\theta_0 = 0$", fontsize=14, color="r") plt.text(40000, 1.8, r"$\theta_1 = 2 \times 10^{-5}$", fontsize=14, color="r") plt.plot(X, 8 - 5*X/100000, "g") plt.text(5000, 9.1, r"$\theta_0 = 8$", fontsize=14, color="g") plt.text(5000, 8.2, r"$\theta_1 = -5 \times 10^{-5}$", fontsize=14, color="g") plt.plot(X, 4 + 5*X/100000, "b") plt.text(5000, 3.5, r"$\theta_0 = 4$", fontsize=14, color="b") plt.text(5000, 2.6, r"$\theta_1 = 5 \times 10^{-5}$", fontsize=14, color="b") save_fig('tweaking_model_params_plot') plt.show() # + deletable=true editable=true from sklearn import linear_model lin1 = linear_model.LinearRegression() Xsample = np.c_[sample_data["GDP per capita"]] ysample = np.c_[sample_data["Life satisfaction"]] lin1.fit(Xsample, ysample) t0, t1 = lin1.intercept_[0], lin1.coef_[0][0] t0, t1 # + deletable=true editable=true sample_data.plot(kind='scatter', x="GDP per capita", y='Life satisfaction', figsize=(5,3)) plt.axis([0, 60000, 0, 10]) X=np.linspace(0, 60000, 1000) plt.plot(X, t0 + t1*X, "b") plt.text(5000, 3.1, r"$\theta_0 = 4.85$", fontsize=14, color="b") plt.text(5000, 2.2, r"$\theta_1 = 4.91 \times 10^{-5}$", fontsize=14, color="b") save_fig('best_fit_model_plot') plt.show() # + deletable=true editable=true cyprus_gdp_per_capita = gdp_per_capita.loc["Cyprus"]["GDP per capita"] print(cyprus_gdp_per_capita) cyprus_predicted_life_satisfaction = lin1.predict(cyprus_gdp_per_capita)[0][0] cyprus_predicted_life_satisfaction # + deletable=true editable=true sample_data.plot(kind='scatter', x="GDP per capita", y='Life satisfaction', figsize=(5,3), s=1) X=np.linspace(0, 60000, 1000) plt.plot(X, t0 + t1*X, "b") plt.axis([0, 60000, 0, 10]) plt.text(5000, 7.5, r"$\theta_0 = 4.85$", fontsize=14, color="b") plt.text(5000, 6.6, r"$\theta_1 = 4.91 \times 10^{-5}$", fontsize=14, color="b") plt.plot([cyprus_gdp_per_capita, cyprus_gdp_per_capita], [0, cyprus_predicted_life_satisfaction], "r--") plt.text(25000, 5.0, r"Prediction = 5.96", fontsize=14, color="b") plt.plot(cyprus_gdp_per_capita, cyprus_predicted_life_satisfaction, "ro") save_fig('cyprus_prediction_plot') plt.show() # + deletable=true editable=true sample_data[7:10] # + deletable=true editable=true (5.1+5.7+6.5)/3 # + deletable=true editable=true backup = oecd_bli, gdp_per_capita def prepare_country_stats(oecd_bli, gdp_per_capita): return sample_data # + deletable=true editable=true # Code example import matplotlib import matplotlib.pyplot as plt import numpy as np import pandas as pd import sklearn # Load the data oecd_bli = pd.read_csv(datapath + "oecd_bli_2015.csv", thousands=',') gdp_per_capita = pd.read_csv(datapath + "gdp_per_capita.csv",thousands=',',delimiter='\t', encoding='latin1', na_values="n/a") # Prepare the data country_stats = prepare_country_stats(oecd_bli, gdp_per_capita) X = np.c_[country_stats["GDP per capita"]] y = np.c_[country_stats["Life satisfaction"]] # Visualize the data country_stats.plot(kind='scatter', x="GDP per capita", y='Life satisfaction') plt.show() # Select a linear model model = sklearn.linear_model.LinearRegression() # Train the model model.fit(X, y) # Make a prediction for Cyprus X_new = [[22587]] # Cyprus' GDP per capita print(model.predict(X_new)) # outputs [[ 5.96242338]] # + deletable=true editable=true oecd_bli, gdp_per_capita = backup # + deletable=true editable=true missing_data # + deletable=true editable=true position_text2 = { "Brazil": (1000, 9.0), "Mexico": (11000, 9.0), "Chile": (25000, 9.0), "Czech Republic": (35000, 9.0), "Norway": (60000, 3), "Switzerland": (72000, 3.0), "Luxembourg": (90000, 3.0), } # + deletable=true editable=true sample_data.plot(kind='scatter', x="GDP per capita", y='Life satisfaction', figsize=(8,3)) plt.axis([0, 110000, 0, 10]) for country, pos_text in position_text2.items(): pos_data_x, pos_data_y = missing_data.loc[country] plt.annotate(country, xy=(pos_data_x, pos_data_y), xytext=pos_text, arrowprops=dict(facecolor='black', width=0.5, shrink=0.1, headwidth=5)) plt.plot(pos_data_x, pos_data_y, "rs") X=np.linspace(0, 110000, 1000) plt.plot(X, t0 + t1*X, "b:") lin_reg_full = linear_model.LinearRegression() Xfull = np.c_[full_country_stats["GDP per capita"]] yfull = np.c_[full_country_stats["Life satisfaction"]] lin_reg_full.fit(Xfull, yfull) t0full, t1full = lin_reg_full.intercept_[0], lin_reg_full.coef_[0][0] X = np.linspace(0, 110000, 1000) plt.plot(X, t0full + t1full * X, "k") save_fig('representative_training_data_scatterplot') plt.show() # + deletable=true editable=true full_country_stats.plot(kind='scatter', x="GDP per capita", y='Life satisfaction', figsize=(8,3)) plt.axis([0, 110000, 0, 10]) from sklearn import preprocessing from sklearn import pipeline poly = preprocessing.PolynomialFeatures(degree=60, include_bias=False) scaler = preprocessing.StandardScaler() lin_reg2 = linear_model.LinearRegression() pipeline_reg = pipeline.Pipeline([('poly', poly), ('scal', scaler), ('lin', lin_reg2)]) pipeline_reg.fit(Xfull, yfull) curve = pipeline_reg.predict(X[:, np.newaxis]) plt.plot(X, curve) save_fig('overfitting_model_plot') plt.show() # + deletable=true editable=true full_country_stats.loc[[c for c in full_country_stats.index if "W" in c.upper()]]["Life satisfaction"] # + deletable=true editable=true gdp_per_capita.loc[[c for c in gdp_per_capita.index if "W" in c.upper()]].head() # + deletable=true editable=true plt.figure(figsize=(8,3)) plt.xlabel("GDP per capita") plt.ylabel('Life satisfaction') plt.plot(list(sample_data["GDP per capita"]), list(sample_data["Life satisfaction"]), "bo") plt.plot(list(missing_data["GDP per capita"]), list(missing_data["Life satisfaction"]), "rs") X = np.linspace(0, 110000, 1000) plt.plot(X, t0full + t1full * X, "r--", label="Linear model on all data") plt.plot(X, t0 + t1*X, "b:", label="Linear model on partial data") ridge = linear_model.Ridge(alpha=10**9.5) Xsample = np.c_[sample_data["GDP per capita"]] ysample = np.c_[sample_data["Life satisfaction"]] ridge.fit(Xsample, ysample) t0ridge, t1ridge = ridge.intercept_[0], ridge.coef_[0][0] plt.plot(X, t0ridge + t1ridge * X, "b", label="Regularized linear model on partial data") plt.legend(loc="lower right") plt.axis([0, 110000, 0, 10]) save_fig('ridge_model_plot') plt.show() # + deletable=true editable=true backup = oecd_bli, gdp_per_capita def prepare_country_stats(oecd_bli, gdp_per_capita): return sample_data # + deletable=true editable=true # Replace this linear model: model = sklearn.linear_model.LinearRegression() # + deletable=true editable=true # with this k-neighbors regression model: model = sklearn.neighbors.KNeighborsRegressor(n_neighbors=3) # + deletable=true editable=true X = np.c_[country_stats["GDP per capita"]] y = np.c_[country_stats["Life satisfaction"]] # Train the model model.fit(X, y) # Make a prediction for Cyprus X_new = np.array([[22587.0]]) # Cyprus' GDP per capita print(model.predict(X_new)) # outputs [[ 5.76666667]] # + deletable=true editable=true
11,466
/Part_1_webscraping_ncaa_beautifulsoup.ipynb
6d35a28101cec08030cc0fde03f335737e50a90b
[]
no_license
michaelkim9/nba_predictor_project
https://github.com/michaelkim9/nba_predictor_project
0
1
null
null
null
null
Jupyter Notebook
false
false
.py
26,257
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- import pandas as pd import numpy as np import requests from bs4 import BeautifulSoup import re # + def SoupFromURL(url, suppressOutput=True): if not suppressOutput: print(url) try: r = requests.get(url) except: return None return BeautifulSoup(r.text, "html5lib") def remove_values_from_list(the_list, val): return [value for value in the_list if value != val] # - # ### Scraping player page for stats # # The function below scrapes any given player url page for stats def ncaa_stats_dict(url): player_page = SoupFromURL(str(url)) #player profile info a = player_page.find_all('div', attrs={'class':'nothumb'})[0] a_soup = BeautifulSoup(str(a),"html5lib") n = a_soup.text.split('\n') n = remove_values_from_list(n,'') n = remove_values_from_list(n,' ') removal = ['(',' Hometown',' High School', ' More',' Position'] for remove in removal: n = [x for x in n if not x.startswith(remove)] try: name = n[0] name = name.replace('\t','') except: name = None try: position = n[2] position = position.replace(' ','') except: position=None try: college = n[4] college = college.replace(' School: ','') except: college = None try: ft = n[3][:3] ft = int(ft.replace(' ',''))*12 inch = n[3][3:6] inch = int(re.sub('[^0-9]','',inch)) height = ft + inch except: height = None try: weight = n[3][7:11] weight = int(re.sub('[^0-9]','',weight)) except: weight=None #player stats stat_list = [] try: p = player_page.find_all('div', attrs={'class':'stats_pullout'})[0] p_soup = BeautifulSoup(str(p),"html5lib") stat = p_soup.text.split('\n')[1::4][2:] #stat_list = [] for s in stat: try: if s == str(""): stat_list.append(None) else: stat_list.append(float(s)) except: stat_list.append(None) except: stat_list.extend([None,None,None,None,None,None,None,None,None,None]) #season count and draft year season_count = player_page.find_all('div', attrs={'class':'overthrow table_container'})[0] season_count_soup = BeautifulSoup(str(season_count),"html5lib") season_count = season_count_soup.text.split('\n') season_count = season_count[20:37] season_count = [x for x in season_count if not 'Career' in x] season_count = [x for x in season_count if not ' ' in x] final_season_count = len(list(filter(None, season_count))) draft_year_list = list(filter(None, season_count)) if len(draft_year_list) == 4: final_year = str(draft_year_list[3])[5:7] elif len(draft_year_list) == 3: final_year = str(draft_year_list[2])[5:7] elif len(draft_year_list) == 2: final_year = str(draft_year_list[1])[5:7] elif len(draft_year_list) == 1: final_year = str(draft_year_list[0])[5:7] if int(final_year[0]) in [0,1]: final_draft_year = int(final_year) + 2000 elif int(final_year[0]) in [9,8,7,6,5,4,3,2]: final_draft_year = int(final_year) + 1900 #steals, rebounds, turnovers and mins played per game additional_stats = player_page.find_all('td', attrs={'class':'right'}) additional_soup = BeautifulSoup(str(additional_stats),"html5lib") try: steal_stat = additional_soup.text.split(',')[-5] steals = float(steal_stat) except: steals = None try: block_stat = additional_soup.text.split(',')[-4] blocks = float(block_stat) except: blocks = None try: turnover_stat = additional_soup.text.split(',')[-3] turnovers = float(turnover_stat) except: turnovers = None try: minutes_stat = additional_soup.text.split(',')[-20] minutes = float(minutes_stat) except: minutes=None #creating player dictionary player_dict = { 'player_name':name, 'position':position, 'height_inches':height, 'weight_lbs':weight, 'college':college, 'draft_year':final_draft_year, 'years_in_college':final_season_count, 'games':stat_list[0], 'minutes_per_game':minutes, 'points':stat_list[1], 'rebounds':stat_list[2], 'assists':stat_list[3], 'steals':steals, 'blocks':blocks, 'turnovers':turnovers, 'fg_percent':stat_list[4], '3_fg_percent':stat_list[5], 'free_throw_percent':stat_list[6], 'effective_fg_percent':stat_list[7], 'player_efficiency_rating':stat_list[8], 'win_shares':stat_list[9] } return player_dict ncaa_stats_dict('https://www.sports-reference.com/cbb/players/larry-bird-1.html') # ### Get index page urls # # I noticed that there is a pattern to the player index page url's on sports-reference. I followed the pattern to get a list of url's. # + import string index_urls = [] for letter in string.ascii_lowercase: letter_page = 'https://www.sports-reference.com/cbb/players/{}-index.html'.format(letter) index_urls.append(letter_page) index_urls # - # ### Get player urls # # Within each of the index pages, there was a pattern within the HTML code that references all the links on the page. I scraped all the links and discarded the ones that weren't relevant such as the links to schools or other parts of the site that weren't player pages. def get_player_urls(index_url_link): player_urls = [] index_page = SoupFromURL(index_url_link) index_names = index_page.find_all('p') index_soup = BeautifulSoup(str(index_names),"html5lib") links = index_soup('a', href=True) for l in links: try: player_urls.append('https://www.sports-reference.com' + l.attrs['href']) except: pass player_urls = [x for x in player_urls if not 'schools' in x] player_urls.pop() player_urls.pop() player_urls.pop() player_urls.pop() return player_urls get_player_urls('https://www.sports-reference.com/cbb/players/x-index.html') # ### Generate Stats Dataframe Of All Players On Index Page # # Now that I have a function to scrape player pages for their stats and a list of index_urls with a function to get all the page urls, I decided to create another function below where you pass in the index url to generate a dataframe with player stats for all players listed on that page. def generate_player_df(first_letter): index_url_link = 'https://www.sports-reference.com/cbb/players/{}-index.html'.format(first_letter) player_urls = [] index_page = SoupFromURL(index_url_link) index_names = index_page.find_all('p') index_soup = BeautifulSoup(str(index_names),"html5lib") links = index_soup('a', href=True) for l in links: try: player_urls.append('https://www.sports-reference.com' + l.attrs['href']) except: pass player_urls = [x for x in player_urls if not 'schools' in x] player_urls.pop() player_urls.pop() player_urls.pop() player_urls.pop() player_stats_list=[] for url in player_urls: try: player_stats_list.append(ncaa_stats_dict(url)) print(url) except: pass df = pd.DataFrame(player_stats_list) df = df[[ 'player_name', 'position', 'height_inches', 'weight_lbs', 'college', 'draft_year', 'years_in_college', 'games', 'minutes_per_game', 'points', 'rebounds', 'assists', 'steals', 'blocks', 'turnovers', 'fg_percent', '3_fg_percent', 'free_throw_percent', 'effective_fg_percent', 'player_efficiency_rating', 'win_shares' ]] return df x_df = generate_player_df('x') x_df # ### Versions utilized for scraping import sys import bs4 import re print('Python version:', sys.version_info) print('BeautifulSoup version:', bs4.__version__) print('Pandas version:', pd.__version__) print('Numpy version:',np.__version__) print('RegEx version:',re.__version__)
8,709
/sara/Image_normalization.ipynb
4206756f183134d937897bef98d0bf6724ab0f7d
[]
no_license
dvp-tran/skin_cancer
https://github.com/dvp-tran/skin_cancer
1
0
null
null
null
null
Jupyter Notebook
false
false
.py
343,150
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 2 # language: python # name: python2 # --- # + from PIL import Image from PIL import ImageStat import math import os # function to return average brightness of an image # Source: https://stackoverflow.com/questions/3490727/what-are-some-methods-to-analyze-image-brightness-using-python def brightness(im_file): im = Image.open(im_file) stat = ImageStat.Stat(im) r,g,b = stat.mean return math.sqrt(0.241*(r**2) + 0.691*(g**2) + 0.068*(b**2)) #this is a way of averaging the r g b values to derive "human-visible" brightness myList = [0.0] deltaList = [0.0] b = 0.0 num_images = 8581 # number of images # loop to auto-generate image names and run prior function for im in os.listdir('/home/sara_rabhi/skin_cancer/data/resized_train/'): # for loop runs from image number 1 thru 20 a = str(im) image_name = im myList.append(brightness('/home/sara_rabhi/skin_cancer/data/resized_train/'+image_name)) avg_brightness = sum(myList[1:])/num_images print (myList) print (avg_brightness) # + for i in range(1, num_images + 1): deltaList.append(i) deltaList[i] = avg_brightness - myList[i] print (deltaList) # - k=1 for im in os.listdir('resized_train/'): img_file_ = Image.open('resized_train/'+im) img_file_ = img_file_.convert('RGB') pixels = img_file_.load() for i in range (img_file_.size[0]): for j in range (img_file_.size[1]): r, g, b = img_file_.getpixel((i,j)) # extracts r g b values for the i x j th pixel pixels[i,j] = (r+int(deltaList[k]), g+int(deltaList[k]), b+int(deltaList[k])) img_file_.save('norm_dir/'+im) k+=1 o_bin(d // 2) print(d % 2, end = '') print("Binary equivalent of", a, "is", end = " ") dec_to_bin(a) print() elif b == 2: break else: print("wrong choice") # + a = b = c = 0 print("Enter -1 to exit") while b != -1: b = int(input("Enter integer: ")) if b != -1: print(b, end = ", ") elif b == -1: print(b) if b == 1: c = c + 1 if b % 2 != 0: a = a + 1 c = c + b print() if a > 1: print("Total odd numbers:", a - 1) print("Sum of odd numbers:", c) print("Average of odd numbers: {:.3}".format(c / (a - 1))) else: print("No numbers are entered except -1") # + def power(n): if n == 0: return False while n != 1: if n % 2 != 0: return False n = n // 2 return True while True: print("Enter -1 to exit") a = int(input("Enter a whole number: ")) if a == -1: break else: if power(a): print(a, "is a power of 2") else: print(a, "is not a power of 2") # - lst = list() for i in range(3): a = int(input("Enter integers: ")) lst.append(a) print("Max:", max(lst)) main_drivers.groupby(['constructorRef_mapped', 'year']).apply(lambda x: x.nlargest(2,'race_count', keep='all')).reset_index(drop=True) main_drivers.head() # - df=lap_speeds.merge(races[['date','year', 'raceId', 'circuitId']], on ='raceId', how='left') df=df.merge(teams[['raceId', 'driverId', 'constructorRef', 'constructorRef_mapped']], on=['raceId', 'driverId'], how='left') df=df.merge(circuits[['circuitId', 'circuitRef']], on='circuitId', how='left') df['date'] = pd.to_datetime(df['date']) df.head() # + avg_lap_speed = pd.DataFrame({'avg_lap_speed' : df.groupby(['year', 'constructorRef_mapped'])['km_per_min'] .mean()}).sort_values(['constructorRef_mapped', 'year']).reset_index() avg_lap_speed = avg_lap_speed.sort_values(["constructorRef_mapped","year"]) avg_lap_speed = avg_lap_speed.merge(main_drivers, on = ['year', 'constructorRef_mapped'], how='left') avg_lap_speed['drivers'] = avg_lap_speed .groupby(['year', 'constructorRef_mapped'])['surname'].transform(lambda x : ', '.join(x)) avg_lap_speed = avg_lap_speed[['year', 'constructorRef_mapped', 'avg_lap_speed', 'drivers']].drop_duplicates() # - avg_lap_speed['constructor_name'] = avg_lap_speed['constructorRef_mapped'].map(constructor_names) avg_lap_speed.head() avg_lap_speed.to_csv(r"graph_data\avg_lap_speed.csv", index=False) # + constructor_names = {'alfa': 'Alfa Romeo', 'alphatauri': 'AlphaTauri', 'mclaren': 'McLaren', 'mercedes': 'Mercedes', 'racing_point': 'Racing Point', 'red_bull': 'Red Bull', 'renault': 'Renault', 'ferrari': 'Ferrari', 'haas': 'Haas', 'williams': 'Williams'} col_map = {'mercedes': 'mediumturquoise', 'red_bull': 'blue', 'racing_point': 'hotpink', 'mclaren': 'darkorange', 'renault': 'gold', 'ferrari': 'red', 'alphatauri': 'black', 'alfa': 'darkred', 'haas': 'darkgrey', 'williams': 'dodgerblue'} line_map = {'mercedes': 'solid', 'red_bull': 'solid', 'racing_point': 'dashed', 'mclaren': 'solid', 'renault': 'solid', 'ferrari': 'solid', 'alphatauri': 'dotted', 'alfa': 'dotted', 'haas': 'dashed', 'williams': 'dotted'} col_map = {'mercedes': 'mediumturquoise', 'red_bull': 'blue', 'racing_point': 'mediumturquoise', 'mclaren': 'darkorange', 'renault': 'gold', 'ferrari': 'red', 'alphatauri': 'blue', 'alfa': 'red', 'haas': 'red', 'williams': 'mediumturquoise'} # + import matplotlib as mpl mpl.rcParams.update(mpl.rcParamsDefault) sns.set(style="whitegrid") plt.rcParams["font.weight"] = "bold" plt.rcParams["axes.labelweight"] = "bold" #plt.rcParams['xtick.major.size'] = 20 plt.rcParams['xtick.major.width'] = 2 plt.rcParams['ytick.major.width'] = 2 plt.rcParams['xtick.bottom'] = True plt.rcParams['ytick.left'] = True years = avg_lap_speed['year'].unique() fig = plt.figure(figsize=(15,10)) ax1 = plt.gca() ax1.set_xlim(1995,2021) ax1.set_ylim(2.9,3.58) for key, grp in avg_lap_speed.groupby(['constructorRef_mapped']): ax1.plot(grp['year'], grp['avg_lap_speed'], label = constructor_names[key], color=col_map[key], linestyle = line_map[key]) plt.xticks(np.arange(min(years), max(years)+1, 2.0)) leg = ax1.legend(loc='center left', bbox_to_anchor=(1, .8), fontsize=15) leg.set_title('Constructors', prop = {'size':'x-large'}) leg.get_frame().set_linewidth(0.0) leg._legend_box.sep = 20 for legobj in leg.legendHandles: legobj.set_linewidth(4.0) ax1.axvspan(1996, 2005, facecolor='azure', alpha=0.5) ax1.axvspan(2006, 2013, facecolor='cornsilk', alpha=0.5) ax1.axvspan(2014, 2020, facecolor='honeydew', alpha=0.5) ax1.annotate('', xy=(1996, 3.53), xytext=(2005, 3.53), xycoords='data', textcoords='data', arrowprops=dict(arrowstyle= '|-|', color='teal', lw=2, ls='--')) ax1.annotate('V10/12 Engines', xy=(2000.5, 3.55), ha='center', va='center', color = 'teal', fontsize=16) ax1.annotate('', xy=(2006, 3.53), xytext=(2013, 3.53), xycoords='data', textcoords='data', arrowprops=dict(arrowstyle= '|-|', color='darkgoldenrod', lw=2, ls='--')) ax1.annotate('V8 Engines', xy=(2009.5, 3.55), ha='center', va='center', color='darkgoldenrod', fontsize=16) ax1.annotate('', xy=(2014, 3.53), xytext=(2020, 3.53), xycoords='data', textcoords='data', arrowprops=dict(arrowstyle= '|-|', color='darkgreen', lw=2, ls='--')) ax1.annotate('V6 - Hybrid Engines', xy=(2017, 3.55), ha='center', va='center', color='darkgreen', fontsize=16) plt.title("Average Yearly Km/min by Constructor", fontsize=20, fontweight='bold', pad=20) plt.xlabel("Year", fontsize=18, fontweight='bold', labelpad=20) plt.ylabel("Km/min", fontsize=18, fontweight='bold', labelpad=20) for tick in ax1.xaxis.get_major_ticks(): tick.label1.set_fontsize(15) tick.label1.set_fontweight('bold') for tick in ax1.yaxis.get_major_ticks(): tick.label1.set_fontsize(15) tick.label1.set_fontweight('bold') plt.setp(ax1.spines.values(), linewidth=3, color='black') ax1.spines['right'].set_visible(False) ax1.spines['top'].set_visible(False) plt.savefig(r"figs\avgLapYear_V2.png", bbox_inches='tight') plt.show() # - import plotly.graph_objects as go from ipywidgets import widgets # + constructor_names = {'alfa': 'Alfa Romeo', 'alphatauri': 'AlphaTauri', 'mclaren': 'McLaren', 'mercedes': 'Mercedes', 'racing_point': 'Racing Point', 'red_bull': 'Red Bull', 'renault': 'Renault', 'ferrari': 'Ferrari', 'haas': 'Haas', 'williams': 'Williams'} line_map = {'mercedes': 'solid', 'red_bull': 'solid', 'racing_point': 'dash', 'mclaren': 'solid', 'renault': 'solid', 'ferrari': 'solid', 'alphatauri': 'dot', 'alfa': 'dot', 'haas': 'dash', 'williams': 'dot'} col_map = {'mercedes': 'mediumturquoise', 'red_bull': 'blue', 'racing_point': 'mediumturquoise', 'mclaren': 'darkorange', 'renault': 'gold', 'ferrari': 'red', 'alphatauri': 'blue', 'alfa': 'red', 'haas': 'red', 'williams': 'mediumturquoise'} # + fig = go.Figure() df = avg_lap_speed#.loc[avg_lap_speed.constructorRef_mapped == 'mercedes', :] for key, grp in df.groupby(['constructorRef_mapped']): fig.add_trace(go.Scatter(x=grp['year'], y=grp['avg_lap_speed'], mode='lines', line=dict(color=col_map[key], dash=line_map[key]), name=df.loc[df.constructorRef_mapped == key, 'constructor_name'].unique()[0], #constructor_names[key], hovertemplate = f'<b>Constructor:</b> {constructor_names[key]} <br>' + '<b>Drivers:</b> %{text}<extra></extra>', text = df.loc[(df.constructorRef_mapped == key), "drivers"],)) fig.add_vrect( x0="1996", x1="2005", fillcolor="azure", #opacity=0.5, layer="below", line_width=0, ), fig.add_vrect( x0="2006", x1="2013", fillcolor="cornsilk", #opacity=0.5, layer="below", line_width=0, ), fig.add_vrect( x0="2014", x1="2020", fillcolor="honeydew", #opacity=0.5, layer="below", line_width=0, ), fig.add_annotation(x=2005, y=3.53, xref = "x", yref = "y", ax=1996, ay=3.53, axref = "x", ayref = "y", arrowhead = 5, arrowside="end+start", arrowsize=1.5, arrowcolor='teal') fig.add_annotation(x=2000.5, y=3.55, text="<b>V10/12 Engines</b>", showarrow=False, font=dict(size=18, color='teal')) fig.add_annotation(x=2006, y=3.53, xref = "x", yref = "y", ax=2013, ay=3.53, axref = "x", ayref = "y", arrowhead = 5, arrowside="end+start", arrowsize=1.5, arrowcolor='IndianRed') fig.add_annotation(x=2009.5, y=3.55, text="<b>V8 Engines</b>", showarrow=False, font=dict(size=18, color='IndianRed')) fig.add_annotation(x=2020, y=3.53, xref = "x", yref = "y", ax=2014, ay=3.53, axref = "x", ayref = "y", arrowhead = 5, arrowside="end+start", arrowsize=1.5, arrowcolor='darkgreen') fig.add_annotation(x=2017, y=3.55, text="<b>V6 Hybrid Engines</b>", showarrow=False, font=dict(size=18, color='darkgreen')) fig.update_layout( autosize=False, width=1000, height=800, plot_bgcolor='rgba(0,0,0,0)', title = dict( text="<b>Average Yearly Km/min by Constructor</b>", xanchor='left', yanchor='top', y=0.92, #x=0.1 ), legend=dict( title_text="<b>Constructors</b>", ), yaxis=dict( range=[2.9,3.58], title_text="<b>Km/min</b>", tickwidth=2, ticks="outside", ticklen=10, tickprefix="<b>",ticksuffix ="</b>", tickfont=dict(size=15), showline=True, linewidth=2, linecolor='black', gridcolor='lightGray' ), xaxis=dict( range=[1995,2021], tick0=1996, dtick=2, title_text="<b>Year</b>", tickwidth=2, ticks="outside", tickprefix="<b>",ticksuffix ="</b>", ticklen=10, showline=True, linewidth=2, linecolor='black', gridcolor='lightGray' ), font=dict( size=15, color='black') ) fig.show() # - freq_hat= b2_frequencies #ax2.plot(times_k, b2_frequencies,'k', linewidth = 0.75) #ax2.plot(times, freq_hat[:-3],'k', linewidth = 0.75) ax2.plot(times, b2_frequencies,'k', linewidth = 0.75) #peristimulus time historgram #and then compute the Fourier transform as #plt.title(r'$\mathrm{Histogram\ of\ B2 Muscle Activity:}\ \mu=100,\ \sigma=15$', size=12, horizontalalignment='center', y=1.08) #verticalalignment='top') ax1.set_ylabel('Crimson Stimulus', size=10) ax1.set_title(r'$\mathrm{Time\ Course\ of\ Crimson\ Modulated\ B2\ Muscle\ Activity:}\ \mu=100,\ \sigma=15$', size=12, horizontalalignment='center', y=1.08) #verticalalignment='top') ax2.set_ylabel('Frequency of B2 Firing', size=10) plt.xlabel('Power Muscle Activity $\phi$', size=10) import numpy.fft as fft spectrum = fft.fft(data1) #You can then plot the magnitudes of the FFT as # - # The last few cells are probably the ones you're after. So here you can see (vs the other notebook I sent you) the limitations of the direct data period/freq analysis. This will be ameliorated a bit by increasing the sample size. However, the other approach I tried before (that I can also try and recreate) was running these raw traces through filters to try get slightly smoother. f1 = pd.read_csv('power_muscle_09_frequencies_df.csv') f2 = pd.read_csv('power_muscle_09_periods_df.csv') f3 = pd.read_csv('chrimson_09_df.csv') f4 = pd.read_csv('times_09_df.csv') # + df = pd.DataFrame() # Add a new columns with impoact force in units of Newtons df['b2 frequencies'] = f1 df['b2 periods'] = f2 df['chrimson stimulus'] = f3 df['times'] = f4 # Take a look df.head() # + max_chrimson_stim = df['chrimson stimulus'] >= 9.9 #max_chrimson_stim.head() max_inds = df.loc[max_chrimson_stim] max_inds.head() # + #for ind in range(len(max_inds)-1): # if times[ind]-times[ind -1] >= 1: # chrimson_on = # + crimson_on = [] crimson_off = [] for f in range(len(f3)-1): if crimson[f]-crimson[f-1]>= 1.05: #1.55 crimson_on.append(f) if crimson[f]-crimson[f+1] >= 1.05: #<= - 0.75: crimson_off.append(f) # + for i in range(len(crimson_on)-1): if crimson_on[i] - crimson_on[i+1] >= - 100: del crimson_on[i+1] for i in range(len(crimson_off)-1): if crimson_off[i] - crimson_off[i+1] >= - 100: del crimson_off[i+1] # + fig =plt.figure(14) ax1 = plt.subplot(211) ax1.plot(times, crimson, 'r', linewidth =1.0) ax2 = plt.subplot(212, sharex=ax1) ax2.set_ylim(0, 20) #ax2.set_xlim(20, 80) #savitzky_golay '''freq_hat = savgol_filter(b2_frequencies, 7, 5) # window size 51, polynomial order 3''' #freq_hat= b2_frequencies #ax2.plot(times_k, b2_frequencies,'k', linewidth = 0.75) for i in range(len(crimson_on)): ax1.axvspan(times[crimson_on[i]], times[crimson_off[i]], facecolor = 'r', edgecolor = 'none', alpha = 0.3) #ax2.axvspan(times[crimson_on[i]], times[crimson_off[i]], facecolor = 'r', edgecolor = 'none', alpha = 0.3) # - print(len(crimson_on), (crimson_on)) print(len(crimson_off), (crimson_off)) ''' df_freq_upon_signal = pd.DataFrame() for i in range(len(crimson_on)): on_signal = crimson_on[i] f = b2_frequencies[on_signal-5000: on_signal+10000] f2 = signal.resample(y2, ) xnew = np.linspace(0, times[len(y2)-1], 180000000, endpoint=False) df_freq_upon_signal[i]=f ''' # **** switch here to make the fixed time on the chrimson time scale and then # upsample in the lower frequency area # + #***duplicate older version #df_freq_upon_signal = pd.DataFrame() #for i in range(len(crimson_on)): # on_signal = crimson_on[i] # off_signal = crimson_off[i] # f = b2_frequencies[on_signal-5000: off_signal+1000] # df_freq_upon_signal[i]=f # - crimson_off[0] + 1000 - crimson_on[0] + 2500 # + #df_freq_upon_signal_2 = pd.DataFrame() df_freq_upon_signal_3 = pd.DataFrame() for i in range(len(crimson_on)-1): on_signal = crimson_on[i] - 2500 off_signal = crimson_off[i] + 1000 #prior_off_signal = crimson_off[i-1] if i != 0: if i !=len(crimson_on): next_off_signal = crimson_off[i+1] next_on_signal = crimson_on[i+1] prior_off_signal = crimson_off[i-1] alt_f = b2_frequencies[prior_off_signal: next_on_signal] f3 = signal.resample(alt_f, 1000000) xnew3 = np.linspace(prior_off_signal, next_on_signal, 1000000, endpoint=False) df_freq_upon_signal_3[i]=f3 #f = b2_frequencies[on_signal: off_signal] #f3 = signal.resample(alt_f, 1000000) #xnew3 = np.linspace(prior_off_signal, prior_off_signal, 1000000, endpoint=False) #x = np.linspace (prior_off_signal,next_on_signal, next_on_signal-prior_off_signal, endpoint = False) #f2 = signal.resample(f, 500000) #xnew = np.linspace(on_signal, off_signal, 500000, endpoint=False) #x = np.linspace (on_signal, off_signal, off_signal-on_signal, endpoint = False) #df_freq_upon_signal_2[i]=f2 # - # d={} # for x in range(1,10): # d["crimson{0}".format(i)]="Hello" CHANGE FLY NUM # + #df_freq_upon_signal_2 = pd.DataFrame() df_freq_upon_signal_4 = pd.DataFrame() d={} for i in range(len(crimson_on)-1): on_signal = crimson_on[i] - 2500 off_signal = crimson_off[i] + 1000 #prior_off_signal = crimson_off[i-1] if i != 0: if i !=len(crimson_on): next_off_signal = crimson_off[i+1] next_on_signal = crimson_on[i+1] prior_off_signal = crimson_off[i-1] alt_f = b2_frequencies[prior_off_signal: next_on_signal] f3 = signal.resample(alt_f, 1000000) xnew3 = np.linspace(prior_off_signal, next_on_signal, 1000000, endpoint=False) df_freq_upon_signal_4[i]=f3 resampled_crim = signal.resample(crimson[prior_off_signal: next_on_signal],1000000) resampled_times = signal.resample(times[prior_off_signal: next_on_signal],1000000) d["fly03_b2_df{0}".format(i)]=f3 d["fly03_crimson{0}".format(i)]=resampled_crim d["fly03_times{0}".format(i)]= resampled_times #f = b2_frequencies[on_signal: off_signal] #f3 = signal.resample(alt_f, 1000000) #xnew3 = np.linspace(prior_off_signal, prior_off_signal, 1000000, endpoint=False) #x = np.linspace (prior_off_signal,next_on_signal, next_on_signal-prior_off_signal, endpoint = False) #f2 = signal.resample(f, 500000) #xnew = np.linspace(on_signal, off_signal, 500000, endpoint=False) #x = np.linspace (on_signal, off_signal, off_signal-on_signal, endpoint = False) #df_freq_upon_signal_2[i]=f2 # - d resampled_df = pd.DataFrame(d) resampled_df.head() from scipy import stats fly_03_b2_mean_freq_change = df_freq_upon_signal_4.mean(axis=1) fly_03_b2_freq_error = stats.sem(df_freq_upon_signal_4,axis = 1) #fly_01_b2_mean_freq_change.iloc[0] fly_03_b2_mean_freq_change_series = fly_03_b2_mean_freq_change.T #type(_) type(fly_03_b2_mean_freq_change_series) # + #fly_01_b2_mean_freq_change_series # - type(fly_03_b2_mean_freq_change) type(fly_03_b2_freq_error) #fly_01_b2_freq_error #fly_01_b2_freq_error = pd.Series(fly_01_b2_freq_error) #shape(fly_01_b2_freq_error) #fly_01_b2_mean_freq_change = df.values(fly_01_b2_mean_freq_change) # + #fly_01_b2_mean_freq_change.head() #fly_01_b2_freq_error = pd.DataFrame(fly_01_b2_freq_error) # - d["fly_03_b2_mean_freq_change_series"]=fly_03_b2_mean_freq_change_series d["fly_03_b2_freq_error"]=fly_03_b2_freq_error resampled_df = pd.DataFrame(d) resampled_df.head() # + resampled_df.to_csv('/home/alysha/analysis_files/S81/s81_b2_df_fly_03.csv', index=False) # - # + df_freq_upon_signal_2 = pd.DataFrame() for i in range(len(crimson_on)): on_signal = crimson_on[i] - 2500 off_signal = crimson_off[i] + 1000 #prior_off_signal = crimson_off[i-1] f = b2_frequencies[on_signal: off_signal] #f3 = signal.resample(alt_f, 1000000) #xnew3 = np.linspace(prior_off_signal, prior_off_signal, 1000000, endpoint=False) #x = np.linspace (prior_off_signal,next_on_signal, next_on_signal-prior_off_signal, endpoint = False) f2 = signal.resample(f, 500000) xnew = np.linspace(on_signal, off_signal, 500000, endpoint=False) x = np.linspace (on_signal, off_signal, off_signal-on_signal, endpoint = False) df_freq_upon_signal_2[i]=f2 # - # + x = np.arange(on_signal, off_signal) xnew = np.linspace(on_signal, off_signal, 500000, endpoint=False) import matplotlib.pyplot as plt plt.plot(x, f, 'go-', xnew, f2, '.-', on_signal, f[12], 'ro') plt.legend(['data', 'resampled'], loc='best') plt.show() # + x = np.arange(on_signal, off_signal) xnew = np.linspace(on_signal, off_signal, 500000, endpoint=False) import matplotlib.pyplot as plt plt.plot(x, f, 'go-', xnew, f2, '.-', off_signal, f[12], 'ro') plt.legend(['data', 'resampled'], loc='best') plt.show() # - # + fig =plt.figure(18) x = np.arange(prior_off_signal, next_on_signal) xnew = np.linspace(prior_off_signal, next_on_signal, 1000000, endpoint=False) ax2 = fig.add_subplot(212) import matplotlib.pyplot as plt plt.plot(x, alt_f, 'go-', xnew, f3, '.-', next_on_signal, alt_f[11], 'ro') ax2.axvspan(on_signal, off_signal, facecolor = 'r', edgecolor = 'none', alpha = 0.2) #ax2.axvspan(prior_on_signal, prior_off_signal, facecolor = 'r', edgecolor = 'none', alpha = 0.2) plt.legend(['data', 'resampled'], loc='best') plt.show() # - df_freq_upon_signal_3.head() df_freq_upon_signal_2.head() # + outliers =[] ''' for i in df_freq_upon_signal: #on_signal = crimson_on[i] for j in range(len(df_freq_upon_signal[i])): if df_freq_upon_signal[i][j]>= 150: outliers.append(i) ''' # + #print(outliers) #new_df = df_freq_upon_signal.drop(17, axis=1)#.head() # - #new_df = df_freq_upon_signal_2 new_df = df_freq_upon_signal_3 # + #fig =plt.figure(18) #x = np.arange(prior_off_signal, next_on_signal) #xnew = np.linspace(prior_off_signal, next_on_signal, 1000000, endpoint=False) #ax2 = fig.add_subplot(212) #import matplotlib.pyplot as plt #plt.plot(x, alt_f, 'go-', xnew, f3, '.-', next_on_signal, alt_f[11], 'ro') #ax2.axvspan(on_signal, off_signal, facecolor = 'r', edgecolor = 'none', alpha = 0.2) ##ax2.axvspan(prior_on_signal, prior_off_signal, facecolor = 'r', edgecolor = 'none', alpha = 0.2) #plt.legend(['data', 'resampled'], loc='best') #plt.show() # + fig =plt.figure(15) ax1 = plt.subplot(211) for i in new_df: ax1.plot(xnew, new_df[i], 'b', linewidth =0.5, alpha = 0.2) ax1.set_ylim((-10,500)) #ax1.set_ylimit(-0.1, 100) #ax1.set_xlim((1200000,1300000)) mean_freq_change = new_df.mean(axis=1) ax1.plot(xnew, mean_freq_change, 'b', linewidth =2.0) ax1.axvspan(on_signal, off_signal, facecolor = 'r', edgecolor = 'none', alpha = 0.2) ''' ax1.plot(times, crimson, 'r', linewidth =1.0) ax2 = plt.subplot(212, sharex=ax1) ax2.set_ylim(0, 20) #ax2.set_xlim(20, 80) #savitzky_golay ''' '''freq_hat = savgol_filter(b2_frequencies, 7, 5) # window size 51, polynomial order 3''' #freq_hat= b2_frequencies #ax2.plot(times_k, b2_frequencies,'k', linewidth = 0.75) #for i in range(len(crimson_on)): # ax1.axvspan(times[crimson_on[i]], times[crimson_off[i]], facecolor = 'r', edgecolor = 'none', alpha = 0.3) # #ax2.axvspan(times[crimson_on[i]], times[crimson_off[i]], facecolor = 'r', edgecolor = 'none', alpha = 0.3) # - from scipy import stats mean_freq_change = new_df.mean(axis=1) freq_error = stats.sem(new_df,axis = 1) # + fig =plt.figure(16) #wbf_means = wbf_means[0:len(wbf_means):10] #wbf_error = stats.sem(all_wbf,axis = 0) #wbf_error = wbf_error[0:len(wbf_error):10] ax2 = fig.add_subplot(212) ax2.set_ylim((-30,150)) #ax1.set_ylimit(-0.1, 100) #ax2.set_xlim((1220000,1300000)) #ax2.set_xlim((1340000,1400000)) #ax2.axvspan(0.25, .75, facecolor = 'r', edgecolor = 'none', alpha = 0.3) ax2.axvspan(on_signal, off_signal, facecolor = 'r', edgecolor = 'none', alpha = 0.2) ax2.plot(xnew,mean_freq_change, 'b') ax2.fill_between(xnew,mean_freq_change+freq_error, mean_freq_change-freq_error,color='k', alpha = 0.3, edgecolor = 'none') ax2.set_title(r'$\mathrm{Activity\ of\ Power \ Muscle:}$', size=12, horizontalalignment='center', y=1.08)# \ \mu=100,\ \sigma=15$', size=12, horizontalalignment='center', y=1.08) #verticalalignment='top') ax2.set_ylabel('Frequency of Power Muscle Firing', size=10) plt.xlabel('Time (s)', size=10) # $\phi$', size=10) #ax2.title('B2 spike frequency') # - ### Then plot this over time ### Update on git -- new analysis file for each genotype ### Develop a pattern of dataframe organization ### blue card ### bills ### analysis ### tutor ### cv website ### laudry # + #altair and bokeh plotting new_df.to_csv('s81_b2_06_df.csv', index=False) # - Q62bRLU5cu5c2Uw7w289B160Lf5ElPz+e2OEF8RLVB5GPSw70wOn6266JLW37I0yYrVtXyED9jIsf0EEhyhjBnBvOF0ODgh6EQHjr68MMPyYHAfaxQeP755ykOGkQEvLGz44RrNDyIC8eKAxSIFT0cMpHm+PHjqmbNmpRX3bp1mXTgEYK3bNmS0oBHrCzDigEOJl9h8ZGO8XjggQeYTL45ms4QOxPAjn+YkIwJlwiZwu/69euqb9++Xh5Ywda4ceOEeWY2/Zv5w3bZWQW/sBcsc+Vgxj99+jTliW5xWzDjm9dh6THcjFUqegizsbDnNhx0+jgPw8HGl0nDlk+Y/GG863nk1zrIxMilfgzTV9Q62bRLU5cu5c2Uw7w289B160Lf5ElPz+e2OGF8RLFB5GPS47yD6ITZbpQ6iPOzydqkSRP6PAfHkWP6CECvCUvrQRIGe/bsWXX58mVrDphRjzgI3Pjh/Nq1a959Tmh+WRceMrxrDplKwzzr/HAeQUd8vBFjvCafNr5Axy8+54HhF3yEML8FGEqUkGn8rly54tkjbIjtj3ky9e+XP7abwL5bZrDFN21CT2PGN68RNyg9+EUaWwizsaDnJg42+rjnh0MQXzotMx9X+YN4t9HPT3WQC0Zm/ciY+OmLn6dTJ5u6BM2g8mbKYV4jfZDth9HHcxtPuK8HM44rH642aKOn5+9Hh/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nKeTXgbefpp5+mlYmwU3xcFN+i4Q8u5jwHkoMgIAgIAgUTgXznDBVMNea81OIM5TzGkoMgIAgIAoJA7iDgOUM4kZ9gIDYgNiA2IDYgNiA2UBBtwHcCde74Z5JrHBFAwZAgCAgCgoAgIAjkRwTQxokzlB81m2GZxBnKMKBCThAQBAQBQSA2CIgzFBtVxJsRcYbirR/hThAQBAQBQSB1BMQZSh27ApVSnKECpW4RVhAQBASBAoWA1RnC0nPbx57ijkxe5TvuuIK/qM6Q6MJNq/hwJz4yltdDpvWdaXo5jW9UPeY1+XIaP6EvCOQ2AlZnCF/BHTt2bG7zFjn/vMp3ZEFzIYHpDH300Ue0cSA2D+Tfb3/7W4+z3NbFnDlz1ObNmz1+Mn2SLn189bZ58+b0kcVixYp5Wx5kms9s0cu0vjNNL6dwSFWPeUW+nMJN6AoCcUPA6gzl1a8o51W+42YUNn5MZ6hjx47UkOOLyfwrWbKklzSbunjzzTfVvHnzvLzRq1m8eHGFPb5yImSC/pIlSwi3tWvX0mbB5rYFqfBt4pBTNGz5ZFrfmaaXChYuaVz0mA28XHjNRhybrNnIV/IQBNJFQJyhdBEsIOlNZwhfR8aGtNjXjX/6nlrZbMxGjBhBGxvqqvj4449zdPgpXfqPP/44bXap85zuuQ2HqDRdaNjiZFrfmaYXFQfX+C56zAZervzmdDybrDmdp9AXBDKBgK8zBKPGTu7YXmLw4MFq3759Xn7Y1Ru7lKN3oGfPnmrlypXeM5wcOHBADRw4kJ6PHDkyYQgA+4Xhjb1Hjx5q9uzZvpu5JRDUL
32,768
/deepLizard.ipynb
9ae37b34108bbca1d883e65dd041c4f7335ac0b1
[]
no_license
codushlaine/ml
https://github.com/codushlaine/ml
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
54,835
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # name: python3 # --- # + [markdown] id="f8NMnwZ6u1Iy" # ## 유튜브 랭킹 시각화 # + id="5vZsc3j3uwru" # !apt-get install -y fonts-nanum > /dev/null # !fc-cache -fv > /dev/null # !rm -rf ~/.cache/matplotlib > /dev/null # + [markdown] id="sCY_q-7dvJB9" # - 런타임 다시 시작 # + id="f5EfkFi5vDYQ" import numpy as np import pandas as pd import matplotlib as mpl import matplotlib.pyplot as plt mpl.rcParams['axes.unicode_minus'] = False plt.rc('font', family='NanumBarunGothic') # + colab={"resources": {"http://localhost:8080/nbextensions/google.colab/files.js": {"data": "Ly8gQ29weXJpZ2h0IDIwMTcgR29vZ2xlIExMQwovLwovLyBMaWNlbnNlZCB1bmRlciB0aGUgQXBhY2hlIExpY2Vuc2UsIFZlcnNpb24gMi4wICh0aGUgIkxpY2Vuc2UiKTsKLy8geW91IG1heSBub3QgdXNlIHRoaXMgZmlsZSBleGNlcHQgaW4gY29tcGxpYW5jZSB3aXRoIHRoZSBMaWNlbnNlLgovLyBZb3UgbWF5IG9idGFpbiBhIGNvcHkgb2YgdGhlIExpY2Vuc2UgYXQKLy8KLy8gICAgICBodHRwOi8vd3d3LmFwYWNoZS5vcmcvbGljZW5zZXMvTElDRU5TRS0yLjAKLy8KLy8gVW5sZXNzIHJlcXVpcmVkIGJ5IGFwcGxpY2FibGUgbGF3IG9yIGFncmVlZCB0byBpbiB3cml0aW5nLCBzb2Z0d2FyZQovLyBkaXN0cmlidXRlZCB1bmRlciB0aGUgTGljZW5zZSBpcyBkaXN0cmlidXRlZCBvbiBhbiAiQVMgSVMiIEJBU0lTLAovLyBXSVRIT1VUIFdBUlJBTlRJRVMgT1IgQ09ORElUSU9OUyBPRiBBTlkgS0lORCwgZWl0aGVyIGV4cHJlc3Mgb3IgaW1wbGllZC4KLy8gU2VlIHRoZSBMaWNlbnNlIGZvciB0aGUgc3BlY2lmaWMgbGFuZ3VhZ2UgZ292ZXJuaW5nIHBlcm1pc3Npb25zIGFuZAovLyBsaW1pdGF0aW9ucyB1bmRlciB0aGUgTGljZW5zZS4KCi8qKgogKiBAZm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N0aW9uOiAnYXBwZW5kJywKICAgICAgICAgIGZpbGU6IGZpbGUubmFtZSwKICAgICAgICAgIGRhdGE6IGJhc2U2NCwKICAgICAgICB9LAogICAgICB9OwoKICAgICAgbGV0IHBlcmNlbnREb25lID0gZmlsZURhdGEuYnl0ZUxlbmd0aCA9PT0gMCA/CiAgICAgICAgICAxMDAgOgogICAgICAgICAgTWF0aC5yb3VuZCgocG9zaXRpb24gLyBmaWxlRGF0YS5ieXRlTGVuZ3RoKSAqIDEwMCk7CiAgICAgIHBlcmNlbnQudGV4dENvbnRlbnQgPSBgJHtwZXJjZW50RG9uZX0lIGRvbmVgOwoKICAgIH0gd2hpbGUgKHBvc2l0aW9uIDwgZmlsZURhdGEuYnl0ZUxlbmd0aCk7CiAgfQoKICAvLyBBbGwgZG9uZS4KICB5aWVsZCB7CiAgICByZXNwb25zZTogewogICAgICBhY3Rpb246ICdjb21wbGV0ZScsCiAgICB9CiAgfTsKfQoKc2NvcGUuZ29vZ2xlID0gc2NvcGUuZ29vZ2xlIHx8IHt9OwpzY29wZS5nb29nbGUuY29sYWIgPSBzY29wZS5nb29nbGUuY29sYWIgfHwge307CnNjb3BlLmdvb2dsZS5jb2xhYi5fZmlsZXMgPSB7CiAgX3VwbG9hZEZpbGVzLAogIF91cGxvYWRGaWxlc0NvbnRpbnVlLAp9Owp9KShzZWxmKTsK", "ok": true, "headers": [["content-type", "application/javascript"]], "status": 200, "status_text": ""}}, "base_uri": "https://localhost:8080/", "height": 76} id="TxB7JIeyvVKZ" outputId="6a2eb73a-5fe1-4211-a287-f7e4bf7fc436" # 파일 업로드 from google.colab import files uploaded = files.upload() filename = list(uploaded.keys())[0] # + colab={"base_uri": "https://localhost:8080/", "height": 204} id="mfbozVzQvysB" outputId="d40b9f28-71ce-404f-b5ca-971e79473786" df = pd.read_csv(filename) df.head() # + colab={"base_uri": "https://localhost:8080/", "height": 306} id="xj__FlF1v8Oy" outputId="0a0d3503-4956-42bc-a2cd-cd1aec0c0d97" # 구독자수(문자열) --> 구독자수2(정수) : 한번만 쓸거면 람다 df['구독자수2'] = df.구독자수.apply(lambda x: int(x.replace(',',''))) df.head() # + id="5vnesEbqwu1N" # 여러개 쓸 때는 함수로 만들어서 사용 def str2int(x): return int(x.replace(',','')) # + colab={"base_uri": "https://localhost:8080/", "height": 306} id="aT5tf7Wuxdqj" outputId="3424c1cd-c449-4bfd-875f-519cb4176101" df['비디오수2'] = df.비디오수.apply(str2int) df.head() # + [markdown] id="tmWbIYMKyfSW" # - 비디오수 Top20 (채널명, 비디오수) 막대 그래프 # + colab={"base_uri": "https://localhost:8080/", "height": 359} id="b0cu_qaxyJ_g" outputId="a5c2d2ed-5b7a-437d-c869-54ae0b852877" df.sort_values(by='비디오수2', ascending=False).head(10) # + colab={"base_uri": "https://localhost:8080/", "height": 450} id="Fsn9gUYy2gmi" outputId="3a9fe84c-3418-41c6-933c-47d0b2ed6fbf" df2 = df[['채널명', '비디오수2']].sort_values(by='비디오수2', ascending=False) df2.set_index('채널명', inplace=True) df2.head(20).sort_values(by='비디오수2').plot(kind='barh', grid=True, figsize=(12,8)) plt.title('비디오수 Top20 채널') plt.show() # + colab={"base_uri": "https://localhost:8080/", "height": 463} id="ozWioiWP3K6y" outputId="1804d792-f91c-425e-d224-3df3a5fb582f" import seaborn as sns df2 = df[['채널명', '비디오수2']].sort_values(by='비디오수2', ascending=False) plt.figure(figsize=(12,8)) sns.barplot(y='채널명', x='비디오수2', data=df2.head(20)) plt.title('비디오수 Top20 채널') plt.show() # + [markdown] id="bFioNFFL8jqC" # - 조회수 기준 Top20 채널 시각화 # + colab={"base_uri": "https://localhost:8080/", "height": 426} id="rPQSiAjG45Jo" outputId="c41db3d6-a5ad-447d-e364-6aae6788628b" df['조회수2'] = df.조회수.apply(str2int) plt.figure(figsize=(12,8)) sns.barplot(y='채널명', x='조회수2', data=df.sort_values(by='조회수2', ascending=False).head(20)) plt.title('조회수 Top20 채널') plt.show() # + [markdown] id="I1S2abFa-vh6" # - 카테고리별 채널수 분포 # + colab={"base_uri": "https://localhost:8080/", "height": 700} id="w676RUu9HMPz" outputId="242f4827-44b3-4e01-f462-4d36f5b9d759" df.카테고리.value_counts().to_frame() # + colab={"base_uri": "https://localhost:8080/", "height": 481} id="3FGGJlA1HfIW" outputId="16925900-846f-41ee-c366-f0160e6bc3c3" df3 = df['카테고리'].value_counts().to_frame() plt.figure(figsize=(12,8)) plt.pie('카테고리', labels=df3.index, data=df3, autopct='%.1f%%') plt.title('카테고리별 채널 수') plt.show() # + [markdown] id="SEh8kMdUHipO" # - 카테고리별 구독자수 합계 시각화 # + colab={"base_uri": "https://localhost:8080/", "height": 731} id="JSq5rvRzHh9P" outputId="bd9d6ccf-76dc-4765-f223-efa94cfb51a0" df4 = df[['카테고리','구독자수2']].groupby('카테고리').agg(['count', 'sum']) df4.columns = ['채널수','구독자수_합계'] df4.sort_values(by='구독자수_합계', ascending=False, inplace=True) df4 # + colab={"base_uri": "https://localhost:8080/", "height": 471} id="MFuPcrkLHmF4" outputId="1c15ce62-7657-4a0f-d9bf-e58889dfcf27" plt.figure(figsize=(12,8)) sns.barplot(x='구독자수_합계', y=df4.index, data=df4) plt.title('카테고리별 구독자수 합계') plt.grid() plt.show() # + colab={"base_uri": "https://localhost:8080/", "height": 474} id="TNdQiq4dHpCe" outputId="bcbfedb9-f45d-45c5-9b58-25204fdf4596" df_new = df[['카테고리', '구독자수2']].groupby('카테고리').agg(['count','sum']) \ .reset_index().sort_values(by=('구독자수2', 'sum'), ascending=False) plt.figure(figsize=(12, 8)) sns.barplot(x= ('구독자수2', 'sum'), y='카테고리', data=df_new) plt.title('카테고리별 구독자수 합계', size=15) plt.xlabel('구독자수(단위:억)', size=12) plt.ylabel('카테고리', size=12) plt.show() # + colab={"base_uri": "https://localhost:8080/", "height": 471} id="IguF00s2Hrdj" outputId="f026786a-71e7-4758-d545-a5c5027a1a26" df4 = df.groupby('카테고리').sum().sort_values(by='구독자수2',ascending=False) plt.figure(figsize=(12,8)) sns.barplot(x='구독자수2', y=df4.index, data=df4) plt.xlabel('구독자 합계') plt.title('카테고리별 구독자 수') plt.show() # + id="9FZzp-n3Htcd"
12,108
/ML/recommend.ipynb
831578c1add8bec7e1b22eea202c9a91590da436
[ "MIT" ]
permissive
rajshah16/food-ordering-system-with-ML
https://github.com/rajshah16/food-ordering-system-with-ML
3
1
MIT
2020-12-29T16:59:49
2020-12-29T16:53:53
HTML
Jupyter Notebook
false
false
.py
3,160
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # + import pandas as pd from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.metrics.pairwise import linear_kernel import numpy as np import math import json import time import matplotlib.pyplot as plt import seaborn as sns from sklearn.metrics.pairwise import cosine_similarity from sklearn.model_selection import train_test_split from sklearn.neighbors import NearestNeighbors #from sklearn.externals import joblib import scipy.sparse from scipy.sparse import csr_matrix import warnings; warnings.simplefilter('ignore') from sklearn.feature_extraction.text import CountVectorizer import joblib ds = pd.read_csv("C:/Users/Ranveer/Desktop/proramming/ML/test/content.csv") ds.head() ds.tail() tf = TfidfVectorizer(analyzer='word', ngram_range=(1, 3), min_df=0, stop_words='english') tfidf_matrix = tf.fit_transform(ds['description']) cosine_similarities = linear_kernel(tfidf_matrix, tfidf_matrix) results = {} for idx, row in ds.iterrows(): similar_indices = cosine_similarities[idx].argsort()[:-100:-1] similar_items = [(cosine_similarities[idx][i], ds['id'][i]) for i in similar_indices] results[row['id']] = similar_items[1:] print('done!') def item(id): return ds.loc[ds['id'] == id]['description'].tolist()[0].split(' - ')[0] # Just reads the results out of the dictionary. def recommend(item_id, num): print("Recommending " + str(num) + " products similar to " + item(item_id) + "...") print("-------") recs = results[item_id][:num] for rec in recs: print("Recommended: " + item(rec[1]) + " (score:" + str(rec[0]) + ")") recommend(item_id=25, num=3) # -
1,913
/Intro2MachineLearning/2_FirstMachineLearningModel.ipynb
377616c9f1c010220d6772d80126fd41009599c4
[]
no_license
tubademir23/globalaihub.kaggle-master
https://github.com/tubademir23/globalaihub.kaggle-master
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
10,820
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # **[Introduction to Machine Learning Home Page](https://www.kaggle.com/learn/intro-to-machine-learning)** # # --- # # ## Recap # So far, you have loaded your data and reviewed it with the following code. Run this cell to set up your coding environment where the previous step left off. # + # Code you have previously used to load data import pandas as pd # Path of the file to read iowa_file_path = '../input/train.csv' home_data = pd.read_csv(iowa_file_path) # Set up code checking from learntools.core import binder binder.bind(globals()) from learntools.machine_learning.ex3 import * print("Setup Complete") # - # # Exercises # # ## Step 1: Specify Prediction Target # Select the target variable, which corresponds to the sales price. Save this to a new variable called `y`. You'll need to print a list of the columns to find the name of the column you need. # # print the list of columns in the dataset to find the name of the prediction target # + #print(home_data.head()) y = home_data["SalePrice"] # Check your answer step_1.check() # + # The lines below will show you a hint or the solution. # step_1.hint() # step_1.solution() # - # ## Step 2: Create X # Now you will create a DataFrame called `X` holding the predictive features. # # Since you want only some columns from the original data, you'll first create a list with the names of the columns you want in `X`. # # You'll use just the following columns in the list (you can copy and paste the whole list to save some typing, though you'll still need to add quotes): # * LotArea # * YearBuilt # * 1stFlrSF # * 2ndFlrSF # * FullBath # * BedroomAbvGr # * TotRmsAbvGrd # # After you've created that list of features, use it to create the DataFrame that you'll use to fit the model. # + # Create the list of features below feature_names = ['LotArea','YearBuilt','1stFlrSF','2ndFlrSF','FullBath','BedroomAbvGr','TotRmsAbvGrd'] # Select data corresponding to features in feature_names X = home_data[feature_names] # Check your answer step_2.check() # + # step_2.hint() # step_2.solution() # - # ## Review Data # Before building a model, take a quick look at **X** to verify it looks sensible # + # Review data # print description or statistics from X print(X.describe()) # print the top few lines print(X.head()) # - # ## Step 3: Specify and Fit Model # Create a `DecisionTreeRegressor` and save it iowa_model. Ensure you've done the relevant import from sklearn to run this command. # # Then fit the model you just created using the data in `X` and `y` that you saved above. # + from sklearn.tree import DecisionTreeRegressor #specify the model. #For model reproducibility, set a numeric value for random_state when specifying the model iowa_model = DecisionTreeRegressor(random_state=1) # Fit the model iowa_model.fit(X,y) # Check your answer step_3.check() # + # step_3.hint() # step_3.solution() # - # ## Step 4: Make Predictions # Make predictions with the model's `predict` command using `X` as the data. Save the results to a variable called `predictions`. # + predictions = iowa_model.predict(X) print(predictions) # Check your answer step_4.check() # + # step_4.hint() # step_4.solution() # - # ## Think About Your Results # # Use the `head` method to compare the top few predictions to the actual home values (in `y`) for those same homes. Anything surprising? # # You can write code in this cell print(predictions) print(y) # It's natural to ask how accurate the model's predictions will be and how you can improve that. That will be you're next step. # # # Keep Going # # You are ready for **[Model Validation](https://www.kaggle.com/dansbecker/model-validation).** # # --- # **[Introduction to Machine Learning Home Page](https://www.kaggle.com/learn/intro-to-machine-learning)** # # # # # # *Have questions or comments? Visit the [Learn Discussion forum](https://www.kaggle.com/learn-forum/161285) to chat with other Learners.* st, clf.predict_proba(X_test)) _ = plt.title('ROC Curves of Random Forest') # ### Model: AdaBoost adb = AdaBoostClassifier() parameters = {'n_estimators': range(30, 60), 'learning_rate': [0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1], 'algorithm': ['SAMME', 'SAMME.R']} clf = GridSearchCV(adb, parameters, cv = 5) clf.fit(X_train, y_train) train_score_adb = clf.score(X_train, y_train) test_score_adb = clf.score(X_test, y_test) print("Training score: {:.5f}".format(train_score_adb)) print("Test score: {:.5f}".format(test_score_adb)) # #### Plot ROC Curves of AdaBoost _ = plot_roc_curve(y_test, clf.predict_proba(X_test)) _ = plt.title('ROC Curves of AdaBoost') # ### Model: Bagging bgc = BaggingClassifier() parameters = {'n_estimators': range(5,15),'bootstrap': [True, False], 'warm_start': [True, False]} clf = GridSearchCV(bgc, parameters, cv = 5) clf.fit(X_train, y_train) train_score_bgc = clf.score(X_train, y_train) test_score_bgc = clf.score(X_test, y_test) print("Training score: {:.5f}".format(train_score_bgc)) print("Test score: {:.5f}".format(test_score_bgc)) # #### Plot ROC Curves of Bagging _ = plot_roc_curve(y_test, clf.predict_proba(X_test)) _ = plt.title('ROC Curves of Bagging') # ### Combine all the results together in one chart models = pd.DataFrame({ 'Model' : ['Logistic Regression', 'SVM', 'kNN', 'Decision Tree', 'Random Forest', 'AdaBoost', 'Bagging'], 'Training_Score' : [train_score_lgr, train_score_svm, train_score_knn, train_score_dt, train_score_rfc, train_score_adb, train_score_bgc], 'Testing_Score' : [test_score_lgr, test_score_svm, test_score_knn, test_score_dt, test_score_rfc, test_score_adb, test_score_bgc] }) models.sort_values(by='Testing_Score', ascending=False) # ## Final Thoughts: # # * Logistic Regression is one of the basic classification models that usually be used first to see the results; # * Random Forest performs best among all the classification models; # * Bagging model has really close score to random forest model (both training and test) # * The scores and ROC curves indicate that all the models (except logistic regression) did a excellent job in predicting.
6,402
/notebooks/sidekick-varying-hyperparameters.ipynb
ead5bccf7541b9bd2df3803d5b620bd41eee9fb9
[]
no_license
victorkristof/sidekick-prediction
https://github.com/victorkristof/sidekick-prediction
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
183,296
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 2 # language: python # name: python2 # --- # # Sidekick - Varying hyperparameters # We try in this notebook to perform the regression over a project by varying the hyperparameters accross time. # + # %matplotlib inline import os import sys sys.path.insert(0, os.path.abspath('../utils/')) # Add sibling to Python path sys.path.insert(0, os.path.abspath('../src/')) # Add sibling to Python path sys.stdout.flush() # Print output on the fly in Notebook import matplotlib matplotlib.rcParams['figure.figsize'] = (18,8) matplotlib.rcParams['font.size'] = 16 matplotlib.rcParams['legend.fontsize'] = 16 from IPython.display import display import numpy as np import gptools import cPickle as cp import matplotlib.pyplot as plt from math import floor from dataset import Sidekick from misc_utils import progress DATA_DIR = "../data/sidekick" # - # ## Prepare data sk = Sidekick() project = sk['14035777'] threshold = 0.8 money = project.money time, money = project.resample(money, N=100) x_train, y_train, x_test, y_test = project.split(time, money, threshold) # ## Train model # ### Squared Exponential k = gptools.SquaredExponentialKernel(param_bounds=[(0, 1), (1, 400)]) gp = gptools.GaussianProcess(k) gp.add_data(x_train, y_train) gp.optimize_hyperparameters(random_starts=20) gp.plot() # ### Varying lengthscale k = gptools.GibbsKernel1dGaussArb(param_bounds=[(0, 1), (0, 10), (0, 10), (0, 5), (0, len(x_train))]) gp = gptools.GaussianProcess(k) gp.add_data(x_train, y_train) gp.optimize_hyperparameters(random_starts=20) sigmaf = gp.params[0] l1 = gp.params[1] l2 = gp.params[2] lw = gp.params[3] x0 = gp.params[4] gp.plot() # ## Plot lengthscale # + def l_tanh(x, l1, l2, lw, x0): return 0.5 * (l1+l2) - 0.5 * (l1 - l2)* np.tanh((x - x0) / lw) def l_gauss(x, l1, l2, lw, x0): return l1 - (l1 - l2) * np.exp(-4*np.log(2 * ((x - x0)**2) / (lw**2))) x = np.arange(0, 1000) plt.plot(x_train, l_gauss(x_train, l1, l2, lw, x0)) # - # ### Plot prediction y_star, err_y_star = gp.predict(x_test) plt.plot(x_test, y_test, 'xb') plt.plot(x_test, y_star, 'xr') plt.legend(('Actual', 'Predicted'), loc=4)
2,340
/apps/ray/parameter_server/sharded_parameter_server.ipynb
6c25925c2fc6c93f58ec175a02c4a92d1ab47067
[ "Apache-2.0" ]
permissive
intel-analytics/analytics-zoo
https://github.com/intel-analytics/analytics-zoo
3,104
996
Apache-2.0
2023-09-06T01:51:18
2023-09-03T14:54:03
Jupyter Notebook
Jupyter Notebook
false
false
.py
15,408
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python (ray_train) # language: python # name: ray_train # --- # # This notebook is adapted from: # https://github.com/ray-project/tutorial/tree/master/examples/sharded_parameter_server.ipynb # # # Sharded Parameter Servers # # **GOAL:** The goal of this exercise is to use actor handles to implement a sharded parameter server example for **distributed asynchronous stochastic gradient descent**. # # Before doing this exercise, make sure you understand the concepts from the exercise on **Actor Handles**. # # ### Parameter Servers # # A parameter server is simply an object that stores the parameters (or "weights") of a machine learning model (this could be a neural network, a linear model, or something else). It exposes two methods: one for getting the parameters and one for updating the parameters. # # In a typical machine learning training application, worker processes will run in an infinite loop that does the following: # 1. Get the latest parameters from the parameter server. # 2. Compute an update to the parameters (using the current parameters and some data). # 3. Send the update to the parameter server. # # The workers can operate synchronously (that is, in lock step), in which case distributed training with multiple workers is algorithmically equivalent to serial training with a larger batch of data. Alternatively, workers can operate independently and apply their updates asynchronously. The main benefit of asynchronous training is that a single slow worker will not slow down the other workers. The benefit of synchronous training is that the algorithm behavior is more predictable and reproducible. # + from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np import ray import time # - # # Init SparkContext # + from zoo.common.nncontext import init_spark_on_local, init_spark_on_yarn import numpy as np import os hadoop_conf_dir = os.environ.get('HADOOP_CONF_DIR') if hadoop_conf_dir: sc = init_spark_on_yarn( hadoop_conf=hadoop_conf_dir, conda_name=os.environ.get("ZOO_CONDA_NAME", "zoo"), # The name of the created conda-env num_executors=2, executor_cores=4, executor_memory="2g", driver_memory="2g", driver_cores=1, extra_executor_memory_for_ray="3g") else: sc = init_spark_on_local(cores = 8, conf = {"spark.driver.memory": "2g"}) # - # It may take a while to ditribute the local environment including python and java to cluster import ray from zoo.ray import RayContext ray_ctx = RayContext(sc=sc, object_store_memory="4g") ray_ctx.init() #ray.init(num_cpus=30, include_webui=False, ignore_reinit_error=True) # A simple parameter server can be implemented as a Python class in a few lines of code. # # **EXERCISE:** Make the `ParameterServer` class an actor. # + dim = 10 @ray.remote class ParameterServer(object): def __init__(self, dim): self.parameters = np.zeros(dim) def get_parameters(self): return self.parameters def update_parameters(self, update): self.parameters += update ps = ParameterServer.remote(dim) # - # A worker can be implemented as a simple Python function that repeatedly gets the latest parameters, computes an update to the parameters, and sends the update to the parameter server. # + @ray.remote def worker(ps, dim, num_iters): for _ in range(num_iters): # Get the latest parameters. parameters = ray.get(ps.get_parameters.remote()) # Compute an update. update = 1e-3 * parameters + np.ones(dim) # Update the parameters. ps.update_parameters.remote(update) # Sleep a little to simulate a real workload. time.sleep(0.5) # Test that worker is implemented correctly. You do not need to change this line. ray.get(worker.remote(ps, dim, 1)) # - # Start two workers. worker_results = [worker.remote(ps, dim, 100) for _ in range(2)] # As the worker tasks are executing, you can query the parameter server from the driver and see the parameters changing in the background. print(ray.get(ps.get_parameters.remote())) # ## Sharding a Parameter Server # # As the number of workers increases, the volume of updates being sent to the parameter server will increase. At some point, the network bandwidth into the parameter server machine or the computation down by the parameter server may be a bottleneck. # # Suppose you have $N$ workers and $1$ parameter server, and suppose each of these is an actor that lives on its own machine. Furthermore, suppose the model size is $M$ bytes. Then sending all of the parameters from the workers to the parameter server will mean that $N * M$ bytes in total are sent to the parameter server. If $N = 100$ and $M = 10^8$, then the parameter server must receive ten gigabytes, which, assuming a network bandwidth of 10 giga*bits* per second, would take 8 seconds. This would be prohibitive. # # On the other hand, if the parameters are sharded (that is, split) across `K` parameter servers, `K` is `100`, and each parameter server lives on a separate machine, then each parameter server needs to receive only 100 megabytes, which can be done in 80 milliseconds. This is much better. # # **EXERCISE:** The code below defines a parameter server shard class. Modify this class to make `ParameterServerShard` an actor. We will need to revisit this code soon and increase `num_shards`. # + @ray.remote class ParameterServerShard(object): def __init__(self, sharded_dim): self.parameters = np.zeros(sharded_dim) def get_parameters(self): return self.parameters def update_parameters(self, update): self.parameters += update total_dim = (10 ** 8) // 8 # This works out to 100MB (we have 25 million # float64 values, which are each 8 bytes). num_shards = 2 # The number of parameter server shards. assert total_dim % num_shards == 0, ('In this exercise, the number of shards must ' 'perfectly divide the total dimension.') # Start some parameter servers. ps_shards = [ParameterServerShard.remote(total_dim // num_shards) for _ in range(num_shards)] assert hasattr(ParameterServerShard, 'remote'), ('You need to turn ParameterServerShard into an ' 'actor (by using the ray.remote keyword).') # - # The code below implements a worker that does the following. # 1. Gets the latest parameters from all of the parameter server shards. # 2. Concatenates the parameters together to form the full parameter vector. # 3. Computes an update to the parameters. # 4. Partitions the update into one piece for each parameter server. # 5. Applies the right update to each parameter server shard. # + @ray.remote def worker_task(total_dim, num_iters, *ps_shards): # Note that ps_shards are passed in using Python's variable number # of arguments feature. We do this because currently actor handles # cannot be passed to tasks inside of lists or other objects. for _ in range(num_iters): # Get the current parameters from each parameter server. parameter_shards = [ray.get(ps.get_parameters.remote()) for ps in ps_shards] assert all([isinstance(shard, np.ndarray) for shard in parameter_shards]), ( 'The parameter shards must be numpy arrays. Did you forget to call ray.get?') # Concatenate them to form the full parameter vector. parameters = np.concatenate(parameter_shards) assert parameters.shape == (total_dim,) # Compute an update. update = np.ones(total_dim) # Shard the update. update_shards = np.split(update, len(ps_shards)) # Apply the updates to the relevant parameter server shards. for ps, update_shard in zip(ps_shards, update_shards): ps.update_parameters.remote(update_shard) # Test that worker_task is implemented correctly. You do not need to change this line. ray.get(worker_task.remote(total_dim, 1, *ps_shards)) # - # **EXERCISE:** Experiment by changing the number of parameter server shards, the number of workers, and the size of the data. # # **NOTE:** Because these processes are all running on the same machine, network bandwidth will not be a limitation and sharding the parameter server will not help. To see the difference, you would need to run the application on multiple machines. There are still regimes where sharding a parameter server can help speed up computation on the same machine (by parallelizing the computation that the parameter server processes have to do). If you want to see this effect, you should implement a synchronous training application. In the asynchronous setting, the computation is staggered and so speeding up the parameter server usually does not matter. # + num_workers = 4 # Start some workers. Try changing various quantities and see how the # duration changes. start = time.time() ray.get([worker_task.remote(total_dim, 5, *ps_shards) for _ in range(num_workers)]) print('This took {} seconds.'.format(time.time() - start)) # -
9,350
/Machine Learning Practice/traffic.ipynb
8fb687180d16983fbff1568ddf4178ea02eb1161
[]
no_license
xgenvn/Data-Science-Skills-Practice
https://github.com/xgenvn/Data-Science-Skills-Practice
1
0
null
2020-08-21T03:39:46
2020-08-21T03:39:43
null
Jupyter Notebook
false
false
.py
9,621
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # # # # <div> <center><b style="color:OrangeRed"> Flight Ticket Price Prediction </b> </center></div> # # import numpy as np import pandas as pd import seaborn as sns from pandas_profiling import ProfileReport # <h2>Importing the data sets</h2> df = pd.read_excel("Data_Flight.xlsx") # # EDA df.head() # ## Below is the complete report of the dataset , toggle trough the widgets to get the information. profile=ProfileReport(df, title='Pandas Profiling Report', explorative=True) profile.to_widgets() # + sns.distplot(df['Price']) # - df['Airline'].value_counts().plot(kind='bar'); df['Total_Stops'].value_counts().plot(kind='bar'); df['Source'].value_counts().plot(kind='bar'); df['Destination'].value_counts().plot(kind='bar'); # + print(df.shape) # - # <h2>Calculating some statistical data</h2> df.describe() # <h2>Checking the data type of the columns</h2> df.info() # ## Checking for null values # df.isnull().sum() # ## Finding the rows that contain these values print(df[df["Total_Stops"].isnull()]) print(df[df["Route"].isnull()]) df.dropna(inplace = True) df.shape df.isnull().sum() # No Null values now # # Feature Engineering # ### The airports in New Delhi and Delhi are the same. df.replace({"New Delhi": "Delhi"}, inplace = True) # ### Extracting Date and Month from Date_of_Journey df["Journey_Month"] = pd.to_datetime(df["Date_of_Journey"],format = "%d/%m/%Y").dt.month df["Journey_Date"] = pd.to_datetime(df["Date_of_Journey"],format="%d/%m/%Y").dt.day df.head() df.drop(["Date_of_Journey"],axis='columns',inplace=True) # Dropping the column "Date_of_Journey" df.head() # ### Extracting Hour and Minutes from Arrival_Time df["Arrival_hour"] = pd.to_datetime(df['Arrival_Time']).dt.hour df["Arrival_min"] = pd.to_datetime(df['Arrival_Time']).dt.minute df.drop(["Arrival_Time"],axis=1,inplace=True) #Dropping the "Arrival_Time" Column df.head() # ### Extracting Hour and Minutes from Dep_Time df['Dep_hour'] = pd.to_datetime(df["Dep_Time"]).dt.hour df["Dep_min"] = pd.to_datetime(df["Dep_Time"]).dt.minute df.drop(['Dep_Time'],axis=1,inplace=True) # #Dropping the "Dep_Time" Column df.head() # ### Exatracting a new column from 'Duration' column which show Total duration in Minutes # + df['Duration_in_Min']=(pd.to_timedelta(df['Duration']).dt.seconds // 60).astype(int) # - df.drop(['Duration'],axis=1,inplace=True) # #Dropping the "Duration" Column df.head() # ### Airline, Source & Destination are the nominal categorical variables, So converting those to dummy variables. df.nunique() Airline = pd.get_dummies(df[["Airline"]],drop_first=True) Source = pd.get_dummies(df[["Source"]],drop_first=True) Destination = pd.get_dummies(df[["Destination"]],drop_first=True) Airline.head() Source.head() Destination.head() # ### <font color="red"> Note - Originally Airlines, Source & Destination had 12, 6 & 5 unique values but data frame we are getting have 1 less column for each of them because "drop_first=True" and that is used to avoid "Dummy Trap"/ multicollinearity. </font> # ## Merging all the data frames # df= pd.concat([df, Airline,Source,Destination],axis=1) df.shape df df.drop(['Airline',"Source","Destination"],axis=1,inplace=True) df # ## Manipulating the values of the "Total_Stops" Column df.replace({"non-stop": 0, "1 stop": 1, "2 stops": 2, "3 stops": 3, "4 stops": 4}, inplace = True) df df.drop(['Route','Additional_Info'],axis=1,inplace=True) # We see that routes and Total_stops do the same thing df sorted(df) # + import seaborn as sns import matplotlib.pyplot as plt plt.figure(figsize = (29,29)) sns.heatmap(df.corr(), annot = True) plt.show() # + X = df.drop(["Price"],axis=1) y = df["Price"] # - from sklearn.model_selection import train_test_split X_train, X_test, y_train, y_test = train_test_split(X, y, test_size = 0.25, random_state = 7) # + from sklearn.ensemble import RandomForestRegressor reg_rf = RandomForestRegressor() # - reg_rf.fit(X_train, y_train) y_pred = reg_rf.predict(X_test) y_pred print(y_test, y_pred) reg_rf.score(X_test,y_test) # # Hyper Parameter Tuning from sklearn.model_selection import RandomizedSearchCV # Number of trees in random forest n_estimators = [int(x) for x in np.linspace(start = 100, stop = 2000, num = 20)] # Number of features to consider at every split max_features = ['auto', 'sqrt'] # Maximum number of levels in tree max_depth = [int(x) for x in np.linspace(5, 30, num = 10)] # Minimum number of samples required to split a node min_samples_split = [2, 5, 10, 15, 1000] # Minimum number of samples required at each leaf node min_samples_leaf = [1, 2, 5, 10] random_grid = {'n_estimators': n_estimators, 'max_features': max_features, 'max_depth': max_depth, 'min_samples_split': min_samples_split, 'min_samples_leaf': min_samples_leaf} rf_random = RandomizedSearchCV(estimator = reg_rf, param_distributions = random_grid,scoring='neg_mean_squared_error', n_iter = 10, cv = 5, verbose=2, random_state=42, n_jobs = 1) rf_random.fit(X_train,y_train) rf_random.best_params_ # + from sklearn.metrics import accuracy_score model = RandomForestRegressor(n_estimators = 1500, min_samples_split = 5, min_samples_leaf = 2, max_features = 'auto', max_depth = 24) model.fit(X_train,y_train) model.score(X_test,y_test) # - # # Creating a Joblib file for the model import joblib joblib.dump(model,"Flight_Ticket_Prediction_Model") model=joblib.load('Flight_Ticket_Prediction_Model') Airline_Air_India=0 Airline_GoAir=0 Airline_IndiGo=0 Airline_Jet_Airways=0 Airline_Jet_Airways_Business=0 Airline_Multiple_carriers=1 Airline_Multiple_carriers_Premium_economy=0 Airline_SpiceJet=0 Airline_Trujet=0 Airline_Vistara=0 Airline_Vistara_Premium_economy=0 Arrival_hour=19 Arrival_min=10 Dep_hour=9 Dep_min=50 Destination_Cochin=1 Destination_Delhi=0 Destination_Hyderabad=0 Destination_Kolkata=0 Duration_in_Min=560 Journey_Date=6 Journey_Month=3 Source_Chennai=0 Source_Delhi=1 Source_Kolkata=0 Source_Mumbai=0 Total_Stops=1 y_pred_single = model.predict([[Total_Stops, Journey_Month, Journey_Date, Arrival_hour, Arrival_min, Dep_hour, Dep_min, Duration_in_Min, Airline_Air_India, Airline_GoAir, Airline_IndiGo, Airline_Jet_Airways, Airline_Jet_Airways_Business, Airline_Multiple_carriers, Airline_Multiple_carriers_Premium_economy, Airline_SpiceJet, Airline_Trujet, Airline_Vistara, Airline_Vistara_Premium_economy, Source_Chennai, Source_Delhi, Source_Kolkata, Source_Mumbai, Destination_Cochin, Destination_Delhi, Destination_Hyderabad, Destination_Kolkata]]) y_pred_single
7,327
/homework6.ipynb
d1131d14c5213edea26b833c6ad968a2d4f92408
[]
no_license
gugurt/ds4ph-bme
https://github.com/gugurt/ds4ph-bme
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
91,328
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # name: python3 # --- # + [markdown] id="view-in-github" colab_type="text" # <a href="https://colab.research.google.com/github/agu3/ds4ph-bme/blob/master/homework6.ipynb" target="_parent"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/></a> # + [markdown] id="u7MrsS1vpSgN" colab_type="text" # Consider the shhs.txt datset distributed over slack. Use linear regression with bmi to predict log(rdi4p + 1). Report the coefficients and a scatterplot with the fitted line. # + id="axn_EP0TpMFR" colab_type="code" outputId="33b587a0-3045-46e7-8baa-872f21ac9342" colab={"base_uri": "https://localhost:8080/", "height": 332} import pandas as pd import numpy as np import seaborn as sns from scipy import stats import matplotlib.pyplot as plt dat = pd.read_csv('/content/shhs1.txt', delimiter = '\t') dat bmi = dat['bmi_s1'] lg = np.log(dat['rdi4p'] + 1) lg = lg[~np.isnan(bmi)] bmi = bmi[~np.isnan(bmi)] beta1 = stats.pearsonr(bmi, lg)[0] * (np.std(lg) / np.std(bmi)) beta0 = np.mean(lg) - (beta1 * np.mean(bmi)) print(beta1) print(beta0) sns.scatterplot(bmi, lg) sns.lineplot(bmi, beta0 + (beta1 * bmi)) plt.ylabel("log(rdi4p + 1)") plt.xlabel('BMI') # + [markdown] id="StPxQZOYHrqe" colab_type="text" # Beta1 is 0.07648599151230158 and beta0 is -0.46304140227710433 # + [markdown] id="So0Miam5FPTu" colab_type="text" # Using your formula from the previous question, predict rdi4p for a person with a bmi = 30. # + id="HpkPc4CpFRmB" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 35} outputId="b72d1756-8c87-465b-ac72-943b08b81a5a" import math lg_30 = beta0 + (beta1 * 30) lg_30 rdi4p_30 = math.exp(lg_30) - 1 print(rdi4p_30)
1,923
/homework/Day_014_correlation_example_Ans.ipynb
ada2e56043b6ef1a6e7fb18c0d316cb07fa7505d
[]
no_license
herocwhsu/100Day-ML-Marathon-
https://github.com/herocwhsu/100Day-ML-Marathon-
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
68,834
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # # [作業目標] # - 以下程式碼將示範在 python 如何利用 numpy 計算出兩組數據之間的相關係數,並觀察散佈圖 # - 藉由觀察相關矩陣與散佈圖的關係, 希望同學對 負相關 的變數分布情形也有比較直覺的理解 # # [作業重點] # - 仿照 In[4], In[5] 的語法, 寫出負相關的變數, 並觀察相關矩陣以及分布圖 # + # 載入基礎套件 import numpy as np np.random.seed(1) import matplotlib import matplotlib.pyplot as plt # %matplotlib inline # - # ### 弱相關 # + # 隨機生成兩組 1000 個介於 0~50 的數的整數 x, y, 看看相關矩陣如何 x = np.random.randint(0, 50, 1000) y = np.random.randint(0, 50, 1000) # 呼叫 numpy 裡的相關矩陣函數 (corrcoef) np.corrcoef(x, y) # - # 將分布畫出來看看吧 plt.scatter(x, y) # ### 正相關 # + # 隨機生成 1000 個介於 0~50 的數 x x = np.random.randint(0, 50, 1000) # 這次讓 y 與 x 正相關,再增加一些雜訊 y = x + np.random.normal(0, 10, 1000) # 再次用 numpy 裡的函數來計算相關係數 np.corrcoef(x, y) # - # 再看看正相關的 x,y 分布 plt.scatter(x, y) # # 作業 # - 參考範例程式碼,模擬一組負相關的資料,並計算出相關係數以及畫出 scatter plot # + # 隨機生成 1000 個介於 0~50 的數 x x = np.random.randint(0, 50, 1000) # 這次讓 y 與 x 正相關,再增加一些雜訊 y = 100 - x + np.random.normal(0, 5, 1000) # 再次用 numpy 裡的函數來計算相關係數 np.corrcoef(x, y) # - # 再看看負相關的 x,y 分布 plt.scatter(x, y) # 學員可以自行嘗試修改程式碼中模擬 y 的方式來觀察相關係數以及 scatter plot 的變化 tions, bins=np.arange(a, b + binwidth_h, binwidth_h)) # plt.hist(noOfobservations, bins=np.arange(a, b, binwidth_h)) plt.title("Histogram") plt.xlabel("Values of X") plt.ylabel("Frequency") plt.show() # + #h = 1, minimum = a and maximum = b # plt.hist(noOfobservations) print("1(f)") binwidth_h=1 plt.hist(noOfobservations, bins=np.arange(a, b + binwidth_h, binwidth_h)) plt.title("Histogram") plt.xlabel("Values of X") plt.ylabel("Frequency") plt.show() # + #h = 2, minimum = a and maximum = b # plt.hist(noOfobservations) print("1(g)") binwidth_h=2 plt.hist(noOfobservations, bins=np.arange(a, b + binwidth_h, binwidth_h)) plt.title("Histogram") plt.xlabel("Values of X") plt.ylabel("Frequency") # plt.grid(axis="x") # plt.grid(axis="y") plt.show() # + #Five number summary of the box plot Median=np.median(noOfobservations) LowerQuartile=np.percentile(noOfobservations,25) Q1=LowerQuartile UpperQuartile=np.percentile(noOfobservations,75) Q3=UpperQuartile MaxValue=max(noOfobservations) MinValue=min(noOfobservations) InterQuartile=UpperQuartile-LowerQuartile IQR=InterQuartile print("2(a)") print("MinValue ",MinValue) print("LowerQuartile ",LowerQuartile) print("Median ",Median) print("UpperQuartile ",UpperQuartile) print("MaxValue ",MaxValue) # + # Values of the 1.5 IQR whiskers Lowerwhisker=Q1-1.5*IQR Upperwhisker=Q3+1.5*IQR print("2(a)") print("InterQuartile ",IQR) print("Lowerwhisker ",Lowerwhisker) print("Upperwhisker ",Upperwhisker) # + #Five-number summary of x for category one of the group isOne=(df.group==1) # groupOne = data[isOne]['x'] groupOne = df[isOne]['x'] # print(One.head(20)) MinValueOne=min(groupOne) LowerQuartileOne=np.percentile(groupOne,25) MedianOne=np.median(groupOne) UpperQuartileOne=np.percentile(groupOne,75) MaxValueOne=max(groupOne) InterQuartileOne=UpperQuartileOne-LowerQuartileOne LowerwhiskerOne = LowerQuartileOne-1.5*InterQuartileOne UpperwhiskerOne = UpperQuartileOne+1.5*InterQuartileOne print("2(b)") print("Min Value of group One ",MinValueOne) print("Lower Quartile of group One ",LowerQuartileOne) print("Median of group One ",Medianone) print("Upper Quartile of group One ",UpperQuartileOne) print("Max Value of group One ",MaxValueOne) print("Lower whisker of group One ",LowerwhiskerOne) print("Upper whisker of group One ",UpperwhiskerOne) # - groupOne.describe() # + #Five-number summary of x for category Zero of the group isZero=(df.group!=1) groupZero = data[isZero]['x'] MinValueZero=min(groupZero) LowerQuartileZero=np.percentile(groupZero,25) MedianZero=np.median(groupZero) UpperQuartileZero=np.percentile(groupZero,75) MaxValueZero=max(groupZero) InterQuartileZero=UpperQuartileZero-LowerQuartileZero LowerwhiskerZero = LowerQuartileZero-1.5*InterQuartileZero UpperwhiskerZero = UpperQuartileZero+1.5*InterQuartileZero print("2(b)") print("Min Value of group Zero ",MinValueZero) print("Lower Quartile of group Zero ",LowerQuartileZero) print("Median of group Zero",Medianzero) print("Upper Quartile of group Zero ",UpperQuartileZero) print("Max Value of group Zero ",MaxValueZero) print("Lower whisker of group Zero ",LowerwhiskerZero) print("Upper whisker of group Zero ",UpperwhiskerZero) # - groupZero.describe() # + # Visualization values of x using the boxplot print("2(c)") plt.boxplot(noOfobservations,vert=False) plt.title("Boxplot for Values of X") plt.xlabel("Values of X") plt.grid(axis="x") plt.show() # + #Five number summary of x for each category of the group isOne=(df.group==1) isZero=(df.group!=1) One = data[isOne]['x'] Zero = data[isZero]['x'] print("2(d)") fig = plt.figure() ax = fig.add_subplot(111) # ax.boxplot(noOfobservations,vert=False) ax.boxplot([noOfobservations,Zero,One],labels=['All x','0', '1'],vert=False) # ax.boxplot([One,Zero], labels=['1', '0'],vert=False) plt.xlabel("Values of X") plt.ylabel("Values of groups") plt.show() # + #Outliers for the entire data # Lowerwhisker 27.4 # Upperwhisker 35.4 print("2(d)") outliersBelowLowerwhisker=noOfobservations[noOfobservations<Lowerwhisker] print(outliersBelowLowerwhisker) outliersAboveUpperwhisker=noOfobservations[noOfobservations>Upperwhisker] print(outliersAboveUpperwhisker) # + #Outliers for the group one #Lower whisker of group One 29.449999999999992 #Upper whisker of group One 34.650000000000006 print("2(d)") outliersLowerwhiskerone=groupOne[groupOne<LowerwhiskerOne] print("Outliers of Lower Whisker for group one \n",outliersLowerwhiskerone) outliersUpperwhiskerone=groupOne[groupOne>UpperwhiskerOne] print("Outliers of Upper Whisker for group one \n",outliersUpperwhiskerone) # + #Outliers for the group Zero #Lower whisker of group Zero 27.599999999999994 #Upper whisker of group Zero 32.400000000000006 print("2(d)") outliersLowerwhiskerzero=groupZero[groupZero<LowerwhiskerZero] print("Outliers of Lower Whisker for group zero \n",outliersLowerwhiskerzero) outliersUpperwhiskerzero=groupZero[groupZero>UpperwhiskerZero] print("Outliers of Upper Whisker for group zero \n",outliersUpperwhiskerzero) # + import pandas as pd import matplotlib.pyplot as plt import numpy as np import math fraudData = pd.read_csv("E:\\Local Disk D\\IIT-C\\Sem 4\\CS 584 Machine Learning\\Homeworks\\Homework 1\\Fraud.csv") df = pd.DataFrame(fraudData) # print(df.head(10)) # - df.head() # + #Percent of the fradulant data totalData=df.FRAUD.count() FraudData=(df.FRAUD == 1).sum() # fraudData=df[df['FRAUD'] == 1].count() percentFraud=(FraudData/totalData)*100 print("3(a)") print("Percentage of fradulant data ",round(percentFraud,4)) # + # Visualization of total spend using boxplot print("3(b)") isFradulantData=(df.FRAUD==1) isOtherwiseData=(df.FRAUD!=1) FradulantData = fraudData[isFradulantData] OtherwiseData=fraudData[isOtherwiseData] FradulantData = fraudData[isFradulantData]['TOTAL_SPEND'] OtherwiseData = fraudData[isOtherwiseData]['TOTAL_SPEND'] fig = plt.figure() ax = fig.add_subplot(111) ax.boxplot([OtherwiseData,FradulantData], labels=['0', '1'],vert=False) plt.ylabel("Values of Fraud") plt.xlabel("Total Amount of Claims") plt.show() # + # Visualization of doctor visits using boxplot print("3(b)") isFradulantData=(df.FRAUD==1) isOtherwiseData=(df.FRAUD!=1) FradulantData = fraudData[isFradulantData] OtherwiseData=fraudData[isOtherwiseData] FradulantData = fraudData[isFradulantData]['DOCTOR_VISITS'] OtherwiseData = fraudData[isOtherwiseData]['DOCTOR_VISITS'] fig = plt.figure() ax = fig.add_subplot(111) ax.boxplot([OtherwiseData,FradulantData], labels=['0', '1'],vert=False) plt.ylabel("Values of Fraud") plt.xlabel("Doctor Visits") plt.show() # + # Visualization of number of claims using boxplot print("3(b)") isFradulantData=(df.FRAUD==1) isOtherwiseData=(df.FRAUD!=1) FradulantData = fraudData[isFradulantData] OtherwiseData=fraudData[isOtherwiseData] FradulantData = fraudData[isFradulantData]['NUM_CLAIMS'] OtherwiseData = fraudData[isOtherwiseData]['NUM_CLAIMS'] fig = plt.figure() ax = fig.add_subplot(111) ax.boxplot([OtherwiseData,FradulantData], labels=['0', '1'],vert=False) plt.ylabel("Values of Fraud") plt.xlabel("Number of Claims Made") plt.show() # + # Visualization of membership duration using boxplot print("3(b)") isFradulantData=(df.FRAUD==1) isOtherwiseData=(df.FRAUD!=1) FradulantData = fraudData[isFradulantData] OtherwiseData=fraudData[isOtherwiseData] FradulantData = fraudData[isFradulantData]['MEMBER_DURATION'] OtherwiseData = fraudData[isOtherwiseData]['MEMBER_DURATION'] fig = plt.figure() ax = fig.add_subplot(111) ax.boxplot([OtherwiseData,FradulantData], labels=['0', '1'],vert=False) plt.ylabel("Values of Fraud") plt.xlabel("Membership Duration") plt.show() # + # Visualization of optical examination using boxplot print("3(b)") isFradulantData=(df.FRAUD==1) isOtherwiseData=(df.FRAUD!=1) FradulantData = fraudData[isFradulantData] OtherwiseData=fraudData[isOtherwiseData] FradulantData = fraudData[isFradulantData]['OPTOM_PRESC'] OtherwiseData = fraudData[isOtherwiseData]['OPTOM_PRESC'] fig = plt.figure() ax = fig.add_subplot(111) ax.boxplot([OtherwiseData,FradulantData], labels=['0', '1'],vert=False) plt.ylabel("Values of Fraud") plt.xlabel("Number of Optical Examination") plt.show() # + # Visualization of number of members using boxplot print("3(b)") isFradulantData=(df.FRAUD==1) isOtherwiseData=(df.FRAUD!=1) FradulantData = fraudData[isFradulantData] OtherwiseData=fraudData[isOtherwiseData] FradulantData = fraudData[isFradulantData]['NUM_MEMBERS'] OtherwiseData = fraudData[isOtherwiseData]['NUM_MEMBERS'] fig = plt.figure() ax = fig.add_subplot(111) ax.boxplot([OtherwiseData,FradulantData], labels=['0', '1'],vert=False) plt.ylabel("Values of Fraud") plt.xlabel("Number of Members Covered ") plt.show() # - #Orthonormalize interval variables df.head() # + import scipy as sp from scipy import linalg as la from numpy import linalg as la2 intervalMatrix=np.array(fraudData.iloc[:,2:8].values) orthonormalize=la.orth(intervalMatrix) print("The orthonormalize matrix = \n", orthonormalize) Varifiy = orthonormalize.transpose().dot(orthonormalize) print("Identity Matrix = \n", Varifiy) print (intervalMatrix.ndim) # + #Orthonormalizing interval variables import scipy as sp from scipy import linalg as la from numpy import linalg as la2 intervalMatrix=np.matrix(fraudData.iloc[:,2:8].values) print (intervalMatrix) #Creating Transpose Matrix transposeMatrix=intervalMatrix.transpose()*intervalMatrix print("Multiplication of Transpose Matrix and original Matrix \n\n",transposeMatrix) # - #Eigen values and Eigenvectors evals, evecs = la2.eigh(transposeMatrix) print("3(c)(i)") print("Eigenvalues of transposeMatrix = \n\n", evals) print("Eigenvectors of transposeMatrix = \n\n",evecs) # + #Transformation matrix print("3(c)(ii)") transformationMatrix = evecs * la2.inv(np.sqrt(np.diagflat(evals))) print("Transformation Matrix = \n\n", transformationMatrix) # - transf_im.shape intervalMatrix.shape transformationMatrix.shape # + #Transformation of intervalMatrix transf_im=intervalMatrix*transformationMatrix print("The Transformed Interval Matrix = \n\n", transf_im) # + # Identity Matrix to prove the the matrix is orthonormalization print("3(c)(ii)") xtx = transf_im.transpose()*transf_im # print(np.shape(xtx)) print("Expect an Identity Matrix = \n\n", xtx) # + # Nearest Neighbors module from sklearn.neighbors import KNeighborsClassifier #Transform data as traindata trainData = transf_im targetData = df['FRAUD'] KNeighbor = KNeighborsClassifier(n_neighbors=5 , algorithm = 'brute', metric = 'euclidean') nbrs = KNeighbor.fit(trainData, targetData) print(nbrs) # + score=nbrs.score(trainData,targetData) print("3(d)(i)") print(score) # + # Observation of input variables inputVariables = pd.DataFrame(columns=["TOTAL_SPEND", "DOCTOR_VISITS", "NUM_CLAIMS", "MEMBER_DURATION", "OPTOM_PRESC", "OPTOM_PRESC"], data=[[7500,15,3,127,2,2]]) print("3(e)") inputMatrix=np.matrix(inputVariables) print(inputMatrix) transInputMatrix = inputMatrix * transformationMatrix; print(transInputMatrix) myNeighbors = nbrs.kneighbors(transInputMatrix, return_distance = False) print("Nearest Neighbors = \n\n", myNeighbors) # - #Values of all the target values #Since the index starts from 0 so we subtract 1 from each neighbour print("3(e)") targetData[[588-1, 2897-1 ,1199-1, 1246-1 , 886-1]] #Values of all the input #Since the index starts from 0 so we subtract 1 from each neighbour print("3(e)") print(intervalMatrix[588-1]) print(intervalMatrix[2897-1]) print(intervalMatrix[1199-1]) print(intervalMatrix[1246-1]) print(intervalMatrix[886-1]) # + nbrs.predict(transInputMatrix) prediction=nbrs.predict(transInputMatrix) print("3(f)") print(prediction) # - class_proba=nbrs.predict_proba(inputMatrix) print("3(f)") print(class_proba)
13,261
/B/羊不能识别组群.ipynb
c73e5ccde4d08b7e0f2a18ac56494d058909cbd2
[]
no_license
SYaoJun/Shepherd
https://github.com/SYaoJun/Shepherd
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
8,811
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # + # %matplotlib inline import matplotlib.pyplot as plt from tkinter import * from sklearn.cluster import MeanShift,estimate_bandwidth,KMeans import pandas as pd import numpy as np import time import math tk =Tk() tk.title('shepherd') tk.wm_attributes("-topmost",1) Width=600 Height = 600 canvas =Canvas(tk,width=Width,height=Height,bg='white',highlightthickness=0) canvas.pack() canvas.create_line(Width/2,0,Width/2,Height) canvas.create_line(0,Height/2,Height,Height/2) canvas.create_line(Height-100,Height-100,Height-100,Height,Height-100,Height-100,Height,Height-100) tk.update() Rs = 500 Ra = 12 Fn = 50 k=30 X=[] n_sheeps=50 speed_of_sheep=5 speed_of_shepherd=1.2*speed_of_sheep distance_of_approach=80 class Sheep: def __init__(self,canvas,x,y,u,v,color): '''对目标对象进行初始化''' self.canvas =canvas self.color=color self.id =self.canvas.create_oval(x,y,u,v,fill =self.color) self.x = np.random.uniform(-1,1) self.y = np.random.uniform(-1,1) self.canvas_height = self.canvas.winfo_height() self.canvas_width = self.canvas.winfo_width() self.tag=True def position(self): '''返回目标当前的位置''' pos = self.canvas.coords(self.id) return pos def draw(self): '''绘制目标对象的运动状态''' if(self.tag==True): pos = self.canvas.coords(self.id) if pos[0] <=0: self.x = 10 if pos[1] <=0: self.y = 10 if pos[2] >self.canvas_width: self.x = -10 if pos[3] > self.canvas_height: self.y= -10 else: self.x=0 self.y=0 self.canvas.move(self.id ,self.x,self.y) def position2point(self): '''把目标的两个坐标转换为中心的一个坐标''' pos=self.position() point=np.zeros((2),np.float32) point[0]=(pos[0]+pos[2])/2 point[1]=(pos[1]+pos[3])/2 return point def delete(self): '''删除目标对象''' self.canvas.delete(self.id) def stop(self): '''当目标对象到达指定区域则停止运动''' self.tag=False sheeps={} colors=['green','blue','yellow','orange','pink','purple'] for i in range(n_sheeps): np.random.seed(i) x=np.random.randint(35,Height-100) y=np.random.randint(35,Height-100) X.append([x,y]) sheeps['sheep'+str(i)]=Sheep(canvas,x,y,x+10,y+10,colors[0]) X=np.array(X) shepherd=Sheep(canvas,560,560,560+10,560+10,'red') def position_point(pos): '''将两个坐标点取平均值后集中为1个点''' point=np.zeros((2),np.float32) point[0]=(pos[0]+pos[2])/2 point[1]=(pos[1]+pos[3])/2 return point def knn(x,others,k): '''根据给出的坐标,计算出与该坐标最近的k个点,并返回局部中心点和羊内部作用力的合力方向''' d =[math.sqrt(np.sum((x_ - x)**2)) for x_ in others] near=np.argsort(d) top=[others[i] for i in near[1:k+1]] t=np.array(top) local_m=[np.mean(t[:,0]),np.mean(t[:,1])] ra=np.zeros(2,dtype=np.float32) for p in near[1:k+1]: if d[p] <= Ra: ra+=(x - others[p])/(math.sqrt(np.sum((x-others[p])**2))) return np.array(local_m,np.float32),ra def check(sheep_lst,g_mean): '''对所有的羊检查是否都在全局中心点的Fn半径范围内''' n=len(sheep_lst) dist = [math.sqrt(np.sum(x - g_mean)**2) for x in sheep_lst] nearest_dist=np.sort(dist) for i in range(n-1,-1,-1): if nearest_dist[i] >Fn: return False return True def find_farest(arrv,g_m): '''找到离中心最远的羊''' dist=[math.sqrt(np.sum(x - g_m)**2) for x in arrv] nearr = np.argsort(dist) return arrv[nearr[-1]] def sheeps_move(herd,array,g_mean,k): n = len(array) last=np.zeros((n,2),dtype=np.float32) for i in range(n): #羊的当前位置 position= sheeps['sheep'+str(i)].position() point = position_point(position) #羊与牧羊犬之间的距离 ps_dist =math.sqrt(np.sum((point-herd)**2)) if ps_dist > Rs/5: H=np.random.uniform(-2,2,size=2) #H为-1到1随机运动的大小 #H=H/math.sqrt(H[0]*H[0]+H[1]*H[1]) #把数据归一化 #last[i]=H else: rs=(point-herd)/ps_dist l_mean,ra =knn(point,array,k) C=(l_mean - point)/math.sqrt(np.sum((l_mean-point)**2)) if ps_dist < 3*Ra: rs=0 H =0.5*last[i]+1.2*C + rs + 2*ra H=H/math.sqrt(H[0]*H[0]+H[1]*H[1]) last[i]=H H=H*speed_of_sheep sheeps['sheep'+str(i)].x=H[0] sheeps['sheep'+str(i)].y=H[1] array[i]=last[i] + point sheeps['sheep'+str(i)].draw() def driving(herd,target,array,g_mean,k): '''把羊往目标点驱赶''' sheeps_move(herd,array,g_mean,k) #羊的移动状况 gt_dist =math.sqrt(np.sum((target-g_mean)**2)) Pd=(g_mean - target)/gt_dist*distance_of_approach + g_mean rd=(Pd-herd)/math.sqrt(np.sum((Pd-herd)**2))*10 shepherd.x=rd[0] shepherd.y=rd[1] rd=rd+herd g_mean=np.array([np.mean(array[:,0]),np.mean(array[:,1])]) shepherd.draw() return array,g_mean,rd def collecting(herd,array,g_mean,k): '''把远离中心的羊聚集起来''' far = find_farest(array,g_mean) #返回最远的羊的位置 sheeps_move(herd,array,g_mean,k) #羊的移动状况 gt_dist =math.sqrt(np.sum((far-g_mean)**2)) #最远的羊与中心的距离 Pc=(far - g_mean)/gt_dist*distance_of_approach + far rd=(Pc-herd)/math.sqrt(np.sum((Pc-herd)**2))*speed_of_shepherd shepherd.x=rd[0] shepherd.y=rd[1] rd=rd+herd g_mean=np.array([np.mean(array[:,0]),np.mean(array[:,1])]) shepherd.draw() return array,g_mean,rd def all_sheeps_in(arrx): '''判断是否所有羊都到达了目标范围''' for p in arrx: if(p[0]<Height-95 or p[1]<Height-95): return False return True '''准备数据补充''' target=np.array([Height,Height]) global_mean = np.array([np.mean(X[:,0]),np.mean(X[:,1])]) shepherd_point= position_point(shepherd.position()) '''集群和驱赶交替进行''' while True: if check(X, global_mean)==True: X,global_mean,shepherd_point = driving(shepherd_point,target,X,global_mean,k) else: X,global_mean,shepherd_point = collecting(shepherd_point,X,global_mean,k) if all_sheeps_in(X): break tk.update() time.sleep(0.01) label = Label(tk,text="游戏结束!",font=('楷体',40),fg='red') label.place(x=180,y=280) tk.mainloop()
6,546
/97/97_inference_sum.ipynb
b560f2cec8ad0e6b136ce0a4a8b2be18662c428c
[]
no_license
root4kaido/Rainforest-Connection
https://github.com/root4kaido/Rainforest-Connection
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
28,185
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # !pip install torch==1.6.0 # !pip install opencv-python # !pip install torchvision==0.2.2 # !pip install albumentations # !pip install tensorflow # !pip install pytorch-lightning # + from pathlib import Path import numpy as np import pandas as pd import typing as tp import yaml import random import os import sys import soundfile as sf import librosa import cv2 import matplotlib.pyplot as plt import time import glob from tqdm import tqdm import pickle import torch import torch.nn as nn import torch.nn.functional as F import torch.utils.data as data import pytorch_lightning as pl from pytorch_lightning import Trainer from pytorch_lightning.callbacks.early_stopping import EarlyStopping # import resnest.torch as resnest_torch from torchvision import models from sklearn.model_selection import StratifiedKFold from sklearn.metrics import f1_score # from resnet import ResNet, Bottleneck from albumentations.core.transforms_interface import DualTransform, BasicTransform import albumentations as albu from sklearn.model_selection import StratifiedKFold pd.options.display.max_rows = 500 pd.options.display.max_columns = 500 # - # ## util config_set = { 'dataset': { 'name': 'SpectrogramDataset', 'params': { 'img_size': 224, 'melspectrogram_parameters': { 'n_mels': 128, 'fmin': 50, 'fmax': 15000, } } }, 'loader': { 'train': { 'batch_size': 6, 'shuffle': True, 'num_workers': 2, 'pin_memory': True, 'drop_last': True, }, 'valid': { 'batch_size': 2, 'shuffle': False, 'num_workers': 2, 'pin_memory': True, 'drop_last': True, } } } SEED=100 PERIOD = 5 SPECIES_NUM = 24 EPOCH = 50 HOP_LEN = 512 SR = 48000 config = config_set def set_seed(seed: int = 42): random.seed(seed) np.random.seed(seed) os.environ["PYTHONHASHSEED"] = str(seed) torch.manual_seed(seed) torch.cuda.manual_seed(seed) # type: ignore set_seed(SEED) INPUT_ROOT = Path("/home/knikaido/work/Rainforest-Connection/data") RAW_DATA = INPUT_ROOT / "rfcx-species-audio-detection" TRAIN_AUDIO_DIR = RAW_DATA / "train" # TRAIN_RESAMPLED_AUDIO_DIRS = [ # INPUT_ROOT / "birdsong-resampled-train-audio-{:0>2}".format(i) for i in range(5) # ] TEST_AUDIO_DIR = RAW_DATA / "test" OUTPUT_DIR = './output/' pred_pathes = sorted(glob.glob(OUTPUT_DIR + '*.csv')) pred_pathes df_pred = np.zeros([1992, 24]) for path in pred_pathes: df_pred += pd.read_csv(path).iloc[:, 1:].values df_pred /= 5 sub = pd.read_csv(str(RAW_DATA / 'sample_submission.csv')) sub.loc[:, 's0':'s23'] = df_pred sub.to_csv(OUTPUT_DIR + '97sub.csv', index=False) train_gby = pd.read_pickle(RAW_DATA / "train_gby_mel.pkl") train_gby.head() def mono_to_color( X: np.ndarray, mean=None, std=None, norm_max=None, norm_min=None, eps=1e-6 ): # Stack X as [X,X,X] X = np.stack([X, X, X], axis=-1) # Standardize mean = mean or X.mean() X = X - mean std = std or X.std() Xstd = X / (std + eps) _min, _max = Xstd.min(), Xstd.max() norm_max = norm_max or _max norm_min = norm_min or _min if (_max - _min) > eps: # Normalize to [0, 255] V = Xstd V[V < norm_min] = norm_min V[V > norm_max] = norm_max V = 255 * (V - norm_min) / (norm_max - norm_min) V = V.astype(np.uint8) else: # Just zero V = np.zeros_like(Xstd, dtype=np.uint8) return V def get_criterion(): pos_weights = torch.ones(SPECIES_NUM) pos_weights = pos_weights * SPECIES_NUM loss_function = nn.BCEWithLogitsLoss(pos_weight=pos_weights) return loss_function class LitModule(pl.LightningModule): def __init__(self): super().__init__() self.encoder = torch.hub.load('zhanghang1989/ResNeSt', 'resnest50', pretrained=True) self.encoder.fc = nn.Sequential( nn.Linear(2048, 1024), nn.ReLU(), nn.Dropout(p=0.2), nn.Linear(1024, 1024), nn.ReLU(), nn.Dropout(p=0.2), nn.Linear(1024, SPECIES_NUM) ) self.criterion = get_criterion() def forward(self, x): x_out = self.encoder(x) return x_out def configure_optimizers(self): optimizer = torch.optim.SGD(model.parameters(), lr=0.01, weight_decay=0.0001, momentum=0.9) return optimizer def training_step(self, train_batch, batch_idx): x, y = train_batch y_pred = self.encoder(x) loss = self.criterion(y_pred, y) self.log('train_loss', loss, on_step=True, on_epoch=True, prog_bar=True, logger=True) return loss def validation_step(self, val_batch, batch_idx): x, y = val_batch y_pred = self.encoder(x) loss = self.criterion(y_pred, y) self.log('val_loss', loss, on_step=True, on_epoch=True, prog_bar=True, logger=True) return loss def validation_epoch_end(self, validation_step_outputs): mean_loss = torch.stack([x for x in validation_step_outputs]).mean() print('valid_epoch_loss = ', mean_loss) self.log('valid_epoch_loss', mean_loss, prog_bar=True, logger=True) # tqdm.write('Dice: \t%.3f' % mean_loss) return mean_loss def signal_to_mel(y, sr, mel_params): len_y = len(y) effective_length = int(SR * PERIOD) start = 0 end = start + effective_length images = [] while(start < len_y): if(end > len_y): break y_ele = y[start:end] melspec = librosa.feature.melspectrogram(y_ele, sr=sr, **mel_params['melspectrogram_parameters']) melspec = librosa.power_to_db(melspec).astype(np.float32) image = mono_to_color(melspec) height, width, _ = image.shape image = cv2.resize(image, (int(width * mel_params['img_size'] / height), mel_params['img_size'])) image = np.moveaxis(image, 2, 0) image = (image / 255.0).astype(np.float32) # image = torch.from_numpy(image).clone() images.append(image) start = end end += effective_length return np.array(images) test_wav_pathes = sorted(glob.glob(str(TEST_AUDIO_DIR / '*.flac'))) len(test_wav_pathes) device = torch.device("cuda") model_pathes = sorted(glob.glob('./output/model*')) model_pathes for i, model_path in enumerate(model_pathes): model = LitModule() model.load_state_dict(torch.load(model_path)) model.eval().to(device) preds = [] for path in tqdm(test_wav_pathes): y, sr = sf.read(path) mel_img = signal_to_mel(y, sr, config["dataset"]["params"]) mel_img = torch.from_numpy(mel_img).clone().to(device) pred = model(mel_img) pred = nn.Softmax()(pred) pred = torch.mean(pred, 0) pred = pred.to('cpu').detach().numpy().copy() preds.append(pred) preds = np.array(preds) sub = pd.read_csv(str(RAW_DATA / 'sample_submission.csv')) sub.loc[:, 's0':'s23'] = preds sub.to_csv(OUTPUT_DIR + '37sub' + str(i) + '.csv', index=False) # break
7,534
/DoublyLinkedLists.ipynb
1881b4ebd4d1b30d6942fd7c5b4f0c7f80afa0f6
[ "MIT" ]
permissive
rambasnet/CS2Notebooks
https://github.com/rambasnet/CS2Notebooks
4
0
null
null
null
null
Jupyter Notebook
false
false
.cpp
19,333
// --- // jupyter: // jupytext: // text_representation: // extension: .cpp // format_name: light // format_version: '1.5' // jupytext_version: 1.15.2 // kernelspec: // display_name: C++14 // language: C++14 // name: xeus-cling-cpp14 // --- // # Doubly Linked Lists // - https://opendsa-server.cs.vt.edu/ODSA/Books/CS2/html/ListDouble.html // - https://en.cppreference.com/w/cpp/container/list // // ### Table of Contents // - **[Introduction](#intro)**<br> // - **[Implementation of Node](#node)**<br> // - **[Operations on Doubly Linked List](#operations)**<br> // - **[Doubly Linked List as ADT](#adt)**<br> // // ## Introduction // - **Singly Linked List** allows for direct access from a list node only to the next node in forward direction // - **Doubly Linked List** allows access in both directions -- forward and backward // - giving easy access to next node and previous node // ## Doubly Linked List // - also called two-way list // - each node is depicted with three boxes (members) each holding: // 1. data (middle box) // 2. address/pointer to the next node (right box) // 3. address/pointer to the previous node (left box) // // <img src="./resources/DoublyLinkedList1.png"> // // - diagonal slash (see last and first node) represents NULL pointer meaning it's not pointing to another node // - head or first is a special pointer pointing to the first (header) node // - tail or last is a special pointer pointing to the last (trailer) node // - use pointer to traverse through the linked list (unlike index in array-based list) // // // ## Common Operations // - inserting and deleting nodes are common operations but need to deal with many cases. // - if header and trailer nodes are used without actually storing the data, simplifies many special cases // - see visualization at: https://opendsa-server.cs.vt.edu/ODSA/Books/CS2/html/ListDouble.html // ## Implemenation of Node // - since a node is a complex type with data (of various type) and pointers, we use struct or class to implement it #include <iostream> using namespace std; struct Int_Node { int data; // int data Int_Node * next; // address of the next node Int_Node * prev; // address of the previous node }; // better implementation template <class T> struct Node { T data; // data of some type T Node<T> * next; Node<T> * prev; }; // ## Creating a Doubly Linked List // - add elements 10, 20, 30, etc. // - doubly linked list of: 10 <-> 20 <-> 30 Int_Node *head, *tail, *temp; // + // create empty header and trailer nodes as shown in figure above temp = new Int_Node; temp->data = 0; temp->prev = NULL; temp->next = NULL; head = temp; // head points to header node temp = new Int_Node; temp->data = 0; temp->prev = head; // trailer points to header temp->next = NULL; tail = temp; head->next = tail; // header points to trailer // - // ## Push Back Element // - inserting element at the end of the doubly linked list // - algorithm steps: // 1. create a new node with data // - make new node's next point to trailer node // - make new node's prev point to trailer's prev node // - make trailer node's prev next point to the new node // - make trailer node's prev point to the new node // create and add the new node with 10 at the end temp = new Int_Node; temp->data = 10; temp->next = tail; temp->prev = tail->prev; tail->prev->next = temp; tail->prev = temp; // create and add the new node with 20 at the end temp = new Int_Node; temp->data = 20; temp->next = tail; temp->prev = tail->prev; tail->prev->next = temp; tail->prev = temp; // create and add the new node with 20 at the end temp = new Int_Node; temp->data = 30; temp->next = tail; temp->prev = tail->prev; tail->prev->next = temp; tail->prev = temp; // ## Traversing Doubly Linked List // - visiting every node of the linked list // - access data, check and or update data // - can be traversed both in forward and backward directions void traverseForward(Int_Node *head) { // start from header's next and go through every node // stop before trailer Int_Node * curr = head->next; cout << "["; while (curr != tail) { cout << " " << curr->data; curr = curr->next; } cout << " ]"; } traverseForward(head); void traverseBackward(Int_Node *tail) { // start from trailers's prev and go through every node // stop before header Int_Node * curr = tail->prev; cout << "["; while (curr != head) { cout << " " << curr->data; curr = curr->prev; } cout << " ]"; } traverseBackward(tail); // ## Push Front Element // - inserting element at the beginning of the doubly linked list // - similar to push back operation // - algorithm steps: // 1. create a new node with data // - make new node->next point to the head->next // - make new node->prev point to the head // - make head->next point to the new node // - make new node->next->prev point to the new node // insert a new node at the beginning (push_front) temp = new Int_Node; temp->data = 100; temp->next = head->next; temp->prev = head; head->next = temp; temp->next->prev = temp; traverseForward(head); traverseBackward(tail); // insert a new node at the beginning (push_front) temp = new Int_Node; temp->data = 200; temp->next = head->next; temp->prev = head; head->next = temp; temp->next->prev = temp; traverseForward(head); // ## Doubly Linked List Remove // - remove an element/node from the linked list // - algorithm steps: // 1. use a pointer, current // - current is the node that needs to be deleted if found // 2. if node is found delete it // - update the doubly linked list Int_Node * curr; // delete 2nd node from the list // NOTE: header is not an actual node! curr = head->next->next; curr->prev->next = curr->next; curr->next->prev = curr->prev; delete curr; traverseForward(head); // ## Doubly Linked List Insert // - insert an element/node after certain node in the linked list // - similar to push front operation // - algorithm steps: // 1. create a new node with the data // - find the location where the new node needs to be inserted after, say curr // - insert the new node at that location // - update doubly linked list // insert element as the 2nd node (after the first node) with key value 100 // NOTE: header node is not an actual node! curr = head->next; temp = new Int_Node; temp->data = 100; temp->next = curr->next; temp->prev = curr; curr->next = temp; temp->next->prev = temp; traverseForward(head); // ## Doubly Linked List Implementation as ADT // - following Doulby Linked list as ADT works for integer data // - it can be easily converted into a template class // - this is left as an exercise #include <iostream> using namespace std; struct Int_Node { int data; // int data Int_Node * next; // address of the next node Int_Node * prev; // address of the previous node }; class IntDoublyList { private: Int_Node * head; Int_Node * tail; size_t count; // removes curr node void remove(Int_Node* curr) { curr->prev->next = curr->next; curr->next->prev = curr->prev; delete curr; this->count--; } public: IntDoublyList() { this->count = 0; // create empty header and trailer nodes as shown in figure above Int_Node * temp = new Int_Node; //create header node temp->data = 0; temp->prev = NULL; temp->next = NULL; head = temp; // head points to header node temp = new Int_Node; // create trailer node temp->data = 0; temp->prev = head; // trailer points to header temp->next = NULL; tail = temp; head->next = tail; // header points to trailer } bool empty() const { return this->count == 0; } // adds an element to the end void push_back(int data) { Int_Node * node = new Int_Node; node->data = data; node->next = tail; node->prev = tail->prev; tail->prev->next = node; tail->prev = node; this->count++; } // inserts an element to the beginning void push_front(int data) { // FIXME } // access the last element int back() { return tail->prev->data; } // return the size of the list size_t size() { return this->count; } // access the first element // FIXME - implement method to access the data in first node // removes the last element void pop_back() { // nothing to do in an empty list if (empty()) return; this->remove(tail->prev); } // removes the first element // FIXME - implement a method to remove the first node // visits every node and prints the data // traverse in forward direction void traverseForward() { cout << "["; Int_Node * curr = head->next; while (curr != tail) { cout << " " << curr->data; curr = curr->next; } cout << " ]"; } // traverseBackward // visits every node and prints the data in backward direction void traverseBackward() { // FIXME... } // insert a node with a given data after the node with the after_key value // if the element with after_key not found, insert data at the end void insert_after(int after_key, int data) { // FIXME: } // clears the linked list deleting all the nodes // except for the header and trailer nodes void clear() { // FIXME... } }; // test IntDoublyList with some data IntDoublyList ilist; ilist.traverseForward(); ilist.push_back(10); ilist.traverseForward(); ilist.push_back(20); ilist.push_back(30); ilist.traverseForward(); ilist.pop_back(); ilist.traverseForward(); // ### Exercises // 1. Linked lists are better than array-based lists when the final size of the list is known in advance. // 1. True // - False // // 2. Fix all the FIXMEs and test the fixes of doubly linked list ADT. // 3. Convert Doubly Linked List ADT as a template class to store data of any type in the node.
10,656
/examples/02-plot/labels.ipynb
abdfe2a587f4f5964323d2cdf2a19659fe2f03b2
[ "MIT" ]
permissive
pyvista/pyvista-examples
https://github.com/pyvista/pyvista-examples
8
2
MIT
2022-01-12T06:32:22
2021-11-28T20:27:56
Shell
Jupyter Notebook
false
false
.py
4,751
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # **Assignment 2: Evaluating Regression Models** # # Group 3: Laura Fanelli, Mark Schieble, John Vaughan, Katie Zink # ## Data Preparation, Exploration & Visualization #import packages import pandas as pd import numpy as np #pip install altair vega_datasets import altair as alt import matplotlib.pyplot as plt # %matplotlib inline # + #data path path_test = "C:/Users/ly580d/Desktop/Northwestern/7_Practical Machine Learning/Week 2/test.csv" path_train = "C:/Users/ly580d/Desktop/Northwestern/7_Practical Machine Learning/Week 2/train.csv" #read data df_test = pd.read_csv(path_test) df_train = pd.read_csv(path_train) # - #lets take a look at the data df_train.head(3) #Ensure that the test data is similar to the training set df_test.head(3) # + #the data ID will be used by Keggle to scare the final submission. To retain the ID, we will set the ID as the index df_test = df_test.set_index('Id') # Set ID as index on the test data df_train = df_train.set_index('Id') # Set ID as index on the training data # - #histogram of each numerical attribute # %matplotlib inline import matplotlib.pyplot as plt df_train.hist(bins=50, figsize=(20,15)) plt.show() #feature creation - Total Floor SF df_train['TotalFloorSF']=df_train['1stFlrSF']+df_train['2ndFlrSF'] df_test['TotalFloorSF']=df_test['1stFlrSF']+df_test['2ndFlrSF'] #feature creation - Quality Index df_train['QualityIndex']=df_train['OverallQual']*df_train['OverallCond'] df_test['QualityIndex']=df_test['OverallQual']*df_test['OverallCond'] # To fix the large number of catagorical variables, we can use SKlearn's label encoder. #This takes each catagory and replaces it with a numerical reference. This enables the Algorithm to read the data easier. def encode_cat_var(df): from sklearn.preprocessing import LabelEncoder Label_Encoder = LabelEncoder() cat_list = df.select_dtypes(include=['object']).columns.tolist() for column in cat_list: df[column] = Label_Encoder.fit_transform(df[column].astype('str')) return df df_train = encode_cat_var(df_train) #apply to train df_test = encode_cat_var(df_test) #apply to test #correlation between each attribute and our response variable SalePrice corr_matrix = df_train.corr() corr_matrix["SalePrice"].sort_values(ascending=False) # function to fill missing values from list. Note, this was retired in the final version of the notebook column_list = ['GarageCars'] def fill_missing_values(column_list, df): for column in column_list: df[column] = df[column].fillna(value=0,inplace=True) return df #clean dataframe function def clean_df(df): assert isinstance(df, pd.DataFrame) df.fillna(value=0,inplace=True) indices_to_keep = ~df.isin([np.nan, np.inf, -np.inf]).any(1) return df[indices_to_keep].astype(np.float64) df_train = clean_df(df_train) #apply to train df_test = clean_df(df_test) #apply to test # ## Review research design and modeling methods # + #split the data into a test and train datasets. SalePrice is the y variable. from sklearn.model_selection import train_test_split X = df_train.drop(['SalePrice'], axis=1) y = df_train['SalePrice'].values X_train, X_val, y_train, y_val = train_test_split(X, y) # + #To Refine the model, we can adjust the number of features used. However, in adjusting, we only want the most important features. #We can use a lasso model to rank features, and take only the variables most likely to predict sale price from sklearn.linear_model import Lasso model = Lasso(alpha=0.01) model.fit(X_train,y_train) feature_importance_test = pd.DataFrame(data=model.coef_, columns=['feature_importance'], index = X_train.columns).sort_values(by='feature_importance', ascending=False) feature_importance_test = feature_importance_test[feature_importance_test['feature_importance'] != 0] #Note, this can be change to greater or less than #feature_importance_test.index.to_list()[:10] # unhide to see top features # + #Change the the value as needed - this will directly impact the model features. # top_features = feature_importance_test.index.to_list()[:30] #original syntax failed for me -- had to convert to list this way top_features = feature_importance_test top_features = top_features.index.tolist() # top_features # - X = df_train[top_features] #Filter out all non top features #random number generator - to generate the same shuffled indices np.random.seed(42) #test train split for the model from sklearn.model_selection import train_test_split X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.3) # + #Build metrics to evaluate model performance - We will use RSME and R2 Suared from sklearn import metrics def model_evaluation(true, predicted): rmse = np.sqrt(metrics.mean_squared_error(true, predicted)) r2_square = metrics.r2_score(true, predicted) print('RMSE:', rmse) print('R2 Square', r2_square) # - # ## Review Results & Evaluate Models # ### Linear Regression # + #Linear Regression from sklearn.linear_model import LinearRegression print('Linear Regression Model') lin_reg = LinearRegression(normalize=True) lin_reg.fit(X_train,y_train) pred = lin_reg.predict(X_test) model_evaluation(y_test, pred) # - lin_reg.intercept_, lin_reg.coef_ # ### Linear Regression with Regularization # # It is almost preferable to have at least a little bit of regularization. Ridge is a good default, if you suspect that only a few features are actually useful, you should prefer Lasso or Elastic Net since they tend to reduce the useless features weight down to zero. In general Elastic Net is preferred over Lasso since Lasso may behave erratically when the number of features is greater than the number of training instances or when several features are strongle correlated. # + #Ridge using a matrix factorization technique by André-Louis Cholesky print('Ridge Regression Model with Cholesky technique Alpha = 1') model_Ridge = Ridge(alpha=1, solver="cholesky") model_Ridge.fit(X_train, y_train) pred = model_Ridge.predict(X_test) model_evaluation(y_test, pred) # + print('Ridge Regression Model with Cholesky technique Alpha = 15') model_Ridge = Ridge(alpha=15, solver="cholesky") model_Ridge.fit(X_train, y_train) pred = model_Ridge.predict(X_test) model_evaluation(y_test, pred) # + #Ridge Lasso (Least Absolute Shrinkage and Selection Operator) #eliminates the weights of the least important features (sets them to 0) #automatically performs feature selection and outputs sparse model from sklearn.linear_model import Lasso print('Lasso Model') model_Lasso = Lasso(alpha=0.1) model_Lasso.fit(X_train, y_train) pred = model_Lasso.predict(X_test) model_evaluation(y_test, pred) # - model_Lasso.intercept_, model_Lasso.coef_
7,168
/Trabalho 2/src/Filtro passa-alta Butterworth.ipynb
5b613c7a7f9c35f661b43080b42fbd9db7750f22
[]
no_license
joaovicmendes/pdi-trabalho
https://github.com/joaovicmendes/pdi-trabalho
1
0
null
null
null
null
Jupyter Notebook
false
false
.py
936,644
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # # Filtro passa-alta Butterworth # # Relembrando a fórmula do filtro: # $$ H_{alta}(\mu, \nu) = \frac{1}{1 + {(\frac{D_0}{\sqrt{\mu^2 + \nu^2}})}^{2n}} $$ import numpy as np import matplotlib.pyplot as plt from scipy.fftpack import fft2, ifft2, fftfreq, fftshift # + def generate_frequencies(num_rows, num_cols): '''Gera frequências do sinal tal que a frequência zero esteja no centro dos arrays''' freq_r = fftfreq(num_rows) freq_c = fftfreq(num_cols) freq_r = fftshift(freq_r) freq_c = fftshift(freq_c) return freq_r, freq_c def filtro_passa_alta_butterworth(img, d0, n): '''Cria um filtro passa-alta Butterworth de mesma dimensão que img. d0 e n são utilizados para definir a mínima frequência que será mantida na imagem''' num_rows, num_cols = img.shape freq_r, freq_c = generate_frequencies(num_rows, num_cols) high_pass_butterworth = np.zeros([num_rows, num_cols]) for row in range(num_rows): for col in range(num_cols): dist = np.sqrt(freq_r[row]**2 + freq_c[col]**2) if dist == 0: dist = 1 H = 1/(1+(d0/dist)**(2*n)) high_pass_butterworth[row,col] = H return high_pass_butterworth # + # Leitura da Imagem img = plt.imread('test_image.tiff') num_rows, num_cols = img.shape # Criando imagem aumentada para evitar interferência # com as diversas cópias (virtuais) da imagem img_padded = np.pad(img, ((0, num_rows), (0, num_cols)), mode='symmetric') # Cálculo da Transformada de Fourier e das frequências da imagem Fimg = fft2(img_padded) freq_r, freq_c = generate_frequencies(2*num_rows, 2*num_cols) Fimg = fftshift(Fimg) plt.figure(figsize=[14,7]) plt.subplot(1, 2, 1) plt.imshow(img, 'gray') plt.title("Imagem Original") plt.subplot(1, 2, 2) plt.pcolormesh(freq_c, freq_r, np.log(np.abs(Fimg)+1), cmap='gray', shading='auto') plt.title("Imagem no domínio da frequência") # + # Calculando o filtro lp_filter = filtro_passa_alta_butterworth(img_padded, d0=0.01, n=1) # Aplicando o filtro na frequencia Fimg_filtered = lp_filter*Fimg plt.figure(figsize=[14,7]) plt.subplot(1, 2, 1) plt.imshow(lp_filter, 'gray') plt.title("Filtro passa-alta Butterworth") plt.subplot(1, 2, 2) plt.pcolormesh(freq_c, freq_r, np.log(np.abs(Fimg_filtered)+1), cmap='gray', shading='auto') plt.title("Imagem no domínio da frequência com filtro aplicado") # + # Recuperando a imagem no domínio espacial usando a transformada inversa Fimg_filtered = fftshift(Fimg_filtered) img_filtered = np.real(ifft2(Fimg_filtered)) img_filtered = img_filtered[:num_rows, :num_cols] plt.figure(figsize=[8,8]) plt.imshow(img_filtered, 'gray') acc']) plt.plot(history.history['val_acc']) plt.plot(history.history['loss']) plt.plot(history.history['val_loss']) plt.legend(['acc', 'val_acc', 'loss', 'val_loss'],loc=10) plt.ylim((0,1.1)) # + deletable=true editable=true
3,211
/Untitled.ipynb
779cb750722717f41a6bd0ac4aae15950f67b455
[]
no_license
suhyuuk/Pokemon-ice-cave-puzzle-generator
https://github.com/suhyuuk/Pokemon-ice-cave-puzzle-generator
0
1
null
null
null
null
Jupyter Notebook
false
false
.py
24,292
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # + # Libraries import numpy as np import matplotlib.pyplot as plt import ice_cave_library as ice from random import * from numpy.core.records import array from numpy.lib.stride_tricks import _broadcast_to_dispatcher #import pygame as pg ###################################################################### ########################### Set-ups ################################## width = 6 length = 6 startpoint = np.array([[0, 2], [0, 3]]) # same as (1, 3), (1, 4) endpoint = np.array([[3, 7], [4, 7]]) # same as (4, 8), (5, 8) initial_rocks = np.array([[4, 5]]) # same as (5, 6) odds_of_rocks = 0.1 # 10% odds of rocks ####################################################################### ####################################################################### ## randomly set startpoint startpoint_save = startpoint startpoint = startpoint[randint(1, startpoint.shape[0]) - 1] ## check if the start / end move is vertical / horizontal if startpoint[0] == 0 or startpoint[0] == width + 1: vertical_s = 1 horizontal_s = 0 else: vertical_s = 0 horizontal_s = 1 if endpoint[0][0] == 0 or endpoint[0][0] == length + 1: vertical_e = 1 horizontal_e = 0 else: vertical_e = 0 horizontal_e = 1 ####################################################################### ####################################################################### ### restart point ### problemo = 1 while problemo == 1: problemo = 0 # Plot setups maps = np.zeros((length + 2, width + 2)) ## set rocks maps[:, 0] = 1 maps[:, width + 1] = 1 maps[length + 1, :] = 1 maps[0, :] = 1 ## set initial setups keep = 1 row = startpoint[0] column = startpoint[1] horizontal = horizontal_s vertical = vertical_s now = startpoint ### path set path = np.zeros([(length + 2) * (width + 2), 2]) num_path = 0 ### rock set rocks = np.zeros([(length + 2) * (width + 2), 2]) num_rocks = 0 for i in range(0, initial_rocks.shape[0]): rocks[i] = initial_rocks[i] num_rocks = num_rocks + 1 ####################################################################### ####################################################################### joints = 0 maps[startpoint] = 0.001 while keep == 1: #find stuckpoint maps = ice.imstuck(maps) #update now_latest now_latest = now #decide next tile now, maps, horizontal, rock_now, problemo = ice.nextile(now, maps, horizontal) #update maps, path, rocks maps, path, rocks, num_path, num_rocks = ice.writemap(maps, now, path, rocks, rock_now, num_path, num_rocks, horizontal, now_latest) #swap horizontal, vertical = vertical, horizontal if joints > 4: #check if the path can end keep, maps, path, num_path = ice.endcheck(keep, maps, path, num_path, now, endpoint, horizontal, horizontal_e) joints = joints + 1 ####################################################################### ####################################################################### # redraw maps maps = ice.imnotstuck(maps) rocks = rocks[0 : num_rocks, :] path = path[0 : num_path, :] path, num_path = ice.redraw(path, num_path) ## set startpoint as 2, endpoint as 3 for i in range(0, initial_rocks.shape[0]): maps[initial_rocks[i][0], initial_rocks[i][1]] = 1 for i in range(0, startpoint.shape[0]): maps[startpoint_save[i][0], startpoint_save[i][1]] = 2 for i in range(0, endpoint.shape[0]): maps[endpoint[i][0], endpoint[i][1]] = 3 ####################################################################### ####################################################################### # plot print(num_path) print(path) print(rocks) print(now) with np.printoptions(precision=3, suppress=True): print(maps) plt.plot(path[:, 0], path[:, 1], 'ro-') # plt.plot(startpoint_save, 'r*') # plt.plot(endpoint, 'r*') plt.axis([0, length + 1, 0, width + 1]) plt.plot(rocks[:, 0], rocks[:, 1], 'bo') plt.show() # -
4,432
/Featureselection1.ipynb
6436b45c27083bb89cf6a9ae3aa1bd3bcc1ff9f1
[]
no_license
gabibu/unsupervisedLearning
https://github.com/gabibu/unsupervisedLearning
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
247,907
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # # Secret-key or symmetric cryptography # # ## 1 DES S-box $S_3$ # # The input to the DES S-box $S_3$ is $110111$. What’s the output? Use Wikipedia, google, a book or some other source to find the table for $S_3$. # Source: http://celan.informatik.uni-oldenburg.de/kryptos/info/des/sbox/ # ![Des-Box3.png](img/Des-Box3.png) # # Output: 0011 # ## 2 3DES # # What is the effective key size of 3DES and why is it not 168 bits? # + active="" # it's 112 bits, not 168 due to meet-in-the-middle attack threat. # - # ## 3 Differences between AES and Rijndeal # # What are the differences between the AES candidate Rijndeal and AES with respect to block size, key size and number of rounds? # As described in "[The Design of Rijandel](https://www.springer.com/us/book/9783540425809)": "The _only_ difference between Rijandel and the AES is the range of supported values for the block length and cipher key length". # # Rijndael is a block cipher with both a variable block length and a variable key length. The block length and the key length can be independently specified to any multiple of 32 bits, with a minimum of 128 bits and a maximum of 256 bits. It would be possible to define versions of Rijndael with a higher block length or key length, but currently there seems no need for it. # # The AES fixes the block length to 128 bits, and supports key lengths of 128, 192 or 256 bits only. The extra block and key lengths in Rijndael were not evaluated in the AES selection process, and consequently they are not adopted in the current FIPS standard. # ## 4 AES S-box # # If we input the byte $11011101$ into the AES S-box, what’s the output? Use the table in slides! # $1101 -> D -> row$ # # $1101 -> D -> column$ # # $11011101 -> C1 -> 11000001$ # # ![AES-S-Box.png](img/AES-S-Box.png) # ## 5 Other Block ciphers # # Compare DES, 3DES and AES with other block ciphers like IDEA, Blowfish, Twofisch, RC5, RC6, Serpent and three more of Your choice. Make a table that shows key size, effective key size, block size, number of rounds, relative velocity of a hard- or software implementation. # - https://pdfs.semanticscholar.org/e684/4c748d38997bf0de71cd7d05e58b09e310f6.pdf # - https://www.cse.wustl.edu/~jain/cse567-06/ftp/encryption_perf/ # - http://www.ijcseonline.org/pub_paper/IJCSE-00187.pdf # # |Ciphers|key size| effective keysize|block size| number of rounds| relative velocity| # |:--- |:--- |:--- |:--- |:--- |:--- | # |DES|56 bits||64bits|16|1| # |3DES| 112 bits ||64bits|48|0.3-0.5| # |AES|128,192 or 256||128, 192 or 256|10, 12 or 14|0.6| # |IDEA|128 bits||64 bits|8.5 # |Blowfish|32-448 bits||64 bits|16|1.2-3| # |Twofish| # |RC5| # |RC6|128,192 or 256||128 bits|20| # ## 6 Modes of operation # # You should be able to produce sketches of the 5 modes of operation and You should be able to write down the equations, relating, IVs (if any), plaintext block, key, ciphertext block, encryption and decryption, XOR. # You should also understand the influence of a one-bit error in the ciphertext block. # | Modes of Operation | Long Name | Cipher Type | # |:--- |:--- |:--- | # | ECB | Electronic Code Book Mode | Block | # | CBC | Chained Block Cipher Mode | Block | # | CFB | Cipher FeedBack Mode | Stream | # | OFB | Output FeedBack Mode| Stream | # | CTR | Counter Mode | Stream | # ### ECB # # ![Electronic CodeBook Mode Diagram](img/ECB_Diagram.png) # # #### Encryption # $c_k = E(k, m_k),\ k=1,2,3,...$ # # #### Decryption # $m_k = D(k, c_k),\ k=1,2,3,...$ # # #### Error Propagation # An error in the ciphertext produces garbage output but does not propagate. # ### CBC # # ![Chained Block Cipher ModeDiagram](img/CBC_Diagram.png) # # #### Encryption # $c_0 = IV$<br/> # $c_k = E(k,m_k\oplus c_{k-1}),\ k = 1,2,3,...$ # # #### Decryption # $c_0 = IV$<br/> # $m_k = D(k, c_k)\oplus c_{k-1},\ k = 1,2,3,...$ # # #### Error Propagation # An error in the ciphertext $c_k$ affects all bits of the corresponding plaintext $m_k$ and the one bit of $m_{k+1}$ with which the erroneous bit in $c_k$ is XOR-ed # ### CFB # # ![Cipher FeedBack Mode Diagram](img/CFB_Diagram.png) # # #### Encryption # $c_0 = IV$<br/> # $c_i = m_i \oplus E(k, c_{i-1},\ i=1,2,3...$ # # #### Decryption # $c_0 = IV$<br/> # $m_i = c_i \oplus E(k, c_{i-1},\ i=1,2,3...$ # # #### Error Propagation # An error in the cipher block $c_k$ produces one error in the plaintext block $m_k$ at the bit position where the error has occured (as it is XOR-ed), and produces garbage in the next plaintext block $m_{k+1}$ as $E(k,c_{k_{faulty}})$ should produce a completely different output than $E(k, c_k)$, and therefore $c_{k+1}\oplus E(k,c_{k_{faulty}})$ should be complete gibberish. # ### OFB # # ![Output FeedBack Mode Diagram](img/OFB_Diagram.png) # # #### Encryption # $z_0 = IV$<br/> # $z_i = E_k(z_{i-1}),\ i=1,2,3,...$<br/> # $c_i = m_i\oplus z_i,\ i=1,2,3,...$ # # #### Decryption # $z_0 = IV$<br/> # $z_i = E_k(z_{i-1}),\ i=1,2,3,...$<br/> # $m_i = c_i\oplus z_i,\ i=1,2,3,...$ # # #### Error Propagation # An error in cipher bit $c_i$ leads to an erroneous bit $m_i$ but does not propagate. # ### CTR # # ![Counter Mode Diagram](img/CTR_Diagram.png) # # #### Encryption # $z_0 = IV$<br/> # $z_i = IV\oplus i,\ i=1,2,3,...$<br/> # $y_i = x_i\oplus E_k(z_i),\ i=1,2,3,...$ # # #### Decryption # $z_0 = IV$<br/> # $z_i = IV\oplus i,\ i=1,2,3,...$<br/> # $y_i = x_i\oplus E_k(z_i),\ i=1,2,3,...$ # # #### Note on the IV # The IV should be a nonce, but same nonce can be used throughout the session. It's main goal is to offset the counter startpoint, so that using the same key and first message does not generate the same ciphertext (think of handshakes/authentication). # # #### Error Propagation # An error in $y_0$ generates one error in the decrypted $x_0$, but does not propagate. # ## 7 RC4 # # Use python in Jupyter Notebook to programm RC4. Do some research on RC4 and find out, why it should not be used any more! # Siehe auch [Webbrowser: Endgültig Schluss mit RC4](https://www.heise.de/security/meldung/Webbrowser-Endgueltig-Schluss-mit-RC4-2805770.html) und [Der Lange Abschied von RC4](https://www.golem.de/news/verschluesselung-der-lange-abschied-von-rc4-1507-114877.html). # + def KSA(key): keylength = len(key) S = list(range(256)) j = 0 for i in range(256): j = (j + S[i] + key[i % keylength]) % 256 S[i], S[j] = S[j], S[i] return S def PRGA(S): i = 0 j = 0 while True: i = (i + 1) % 256 j = (j + S[i]) % 256 S[i], S[j] = S[j], S[i] yield S[(S[i] + S[j]) % 256] def RC4(key): S = KSA(key) return PRGA(S) def convert_key(s): return [ord(c) for c in s] # + key = "Key" plaintext = "Plaintext" # ciphertext should be BBF316E8D940AF0AD3 key = convert_key(key) keystream = RC4(key) import sys for c in plaintext: sys.stdout.write("%02X" % (ord(c) ^ next(keystream))) # - # Vulnerabilities: # # - Pseudo Random Number Generator PRNG has higher probabilities for some numbers to appear.<br/> # This lets an attacker analyse some input/output-pairs and find out the key # - No nonce as input therefore it needs a new key for each stream.<br/> # Since most applications just concatenate the nonce and the key, this is a problem because "over all possible RC4 keys, the statistics for the first few bytes of output keystream are strongly non-random, leaking information about the key." # ## 8 Trivium # # Use python in Jupyter Notebook to programm Trivium. This is not an easy task: do it in groups of two! # # Use $0x00000000000000000000000000000000$ for the key, IV, and plaintext for initial testing. # # The expected ciphertext for this should be $0xFBE0BF265859051B517A2E4E239FC97F$. # # In the algorithm on slide “_Trivium — Initialization_”, the $+$ represents XOR (which in python is “^”), · # represents logical AND (which in python is “&”). The key-stream is # # $z_i = t_1 + t_2 + t_3$ # # and the $i$th byte of the ciphertext $c_i$ of the plaintext $m_i$ is # # $c_i = z_i \oplus m_i$ # # The following [site](https://asecuritysite.com/encryption/trivium) might be of some help! # + from collections import deque from itertools import repeat from sys import version_info class Trivium: def __init__(self, key, iv): """in the beginning we need to transform the key as well as the IV. Afterwards we initialize the state.""" self.state = None self.counter = 0 self.key = key # self._setLength(key) self.iv = iv # self._setLength(iv) # Initialize state # len 93 init_list = list(map(int, list(self.key))) init_list += list(repeat(0, 13)) # len 84 init_list += list(map(int, list(self.iv))) init_list += list(repeat(0, 4)) # len 111 init_list += list(repeat(0, 108)) init_list += list([1, 1, 1]) self.state = deque(init_list) # Do 4 full cycles, drop output for i in range(4*288): self._gen_keystream() def encrypt(self, message): """To be implemented""" pass def decrypt(self, cipher): """To be implemented""" #maybe with code from here https://github.com/mortasoft/Trivium/blob/master/trivium.py # Line 119 pass def keystream(self): """output keystream only use this when you know what you are doing!!""" while self.counter < 2**64: self.counter += 1 yield self._gen_keystream() def _setLength(self, input_data): """we cut off after 80 bits, alternatively we pad these with zeros.""" input_data = "{0:080b}".format(input_data) if len(input_data) > 80: input_data = input_data[:(len(input_data)-81):-1] else: input_data = input_data[::-1] return input_data def _gen_keystream(self): """this method generates triviums keystream""" t_1 = self.state[65] ^ self.state[92] t_2 = self.state[161] ^ self.state[176] t_3 = self.state[242] ^ self.state[287] out = t_1 ^ t_2 ^ t_3 u_1 = t_1 ^ self.state[90] & self.state[91] ^ self.state[170] u_2 = t_2 ^ self.state[174] & self.state[175] ^ self.state[263] u_3 = t_3 ^ self.state[285] & self.state[286] ^ self.state[68] self.state.rotate(1) self.state[0] = u_3 self.state[93] = u_1 self.state[177] = u_2 return out import sys k1="00000000000000000000" i1="00000000000000000000" print ("Key: "+k1) print ("IV: "+i1) def main(): KEY = hex_to_bits(k1)[::-1] IV = hex_to_bits(i1)[::-1] trivium = Trivium(KEY, IV) next_key_bit = trivium.keystream().__next__ for i in range(1): keystream = [] for j in range(128): keystream.append(next_key_bit()) print ("Stream: "+bits_to_hex(keystream)) # Convert strings of hex to strings of bytes and back, little-endian style _allbytes = dict([("%02X" % i, i) for i in range(256)]) def _hex_to_bytes(s): return [_allbytes[s[i:i+2].upper()] for i in range(0, len(s), 2)] def hex_to_bits(s): return [(b >> i) & 1 for b in _hex_to_bytes(s) for i in range(8)] def bits_to_hex(b): return "".join(["%02X" % sum([b[i + j] << j for j in range(8)]) for i in range(0, len(b), 8)]) if __name__ == "__main__": main() # - # ## 9 OTP # # Make your own example with one-time pad. Why is it perfectly secure? Make sure, the key is truly random not used more than once and kept secret from adversaries. # $m = 0110100001100101011011000110110001101111001000000111011101101111011100100110110001100100$<br /> # $k = 0110110111011101100100110001101100000001010001110010110111101010101110010001101100011100$ # + m = '0110100001100101011011000110110001101111001000000111011101101111011100100110110001100100' k = '0110110111011101100100110001101100000001010001110010110111101010101110010001101100011100' c = int(m,2)^int(k,2) print('m: ' + m) print('k: ' + k) print('c: ' + bin(c)[2:].zfill(len(m))) print('d: ' + bin(c^int(k,2))[2:].zfill(len(m))) print('m: ' + m)
12,425
/single_word.ipynb
49d76c66d855b343c435ed6f9815909c09b6833b
[]
no_license
rammohanbethi/word-cloud
https://github.com/rammohanbethi/word-cloud
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
69,009
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # %matplotlib inline # # Single Word # =========== # # Make a word cloud with a single word that's repeated. # # # + import numpy as np import matplotlib.pyplot as plt from wordcloud import WordCloud text = "Hello Rammohan Bethi is the summary of your career profile for freshers generally focus on skills, education, & internship" x, y = np.ogrid[:300, :300] mask = (x - 150) ** 2 + (y - 150) ** 2 > 130 ** 2 mask = 255 * mask.astype(int) wc = WordCloud(background_color="white", repeat=True, mask=mask) wc.generate(text) plt.axis("off") plt.imshow(wc, interpolation="bilinear") plt.show() # - A" outputId="47133c1b-c3fa-4e12-965d-b84fea434b18" import pandas as pd url_dados = 'https://github.com/alura-cursos/imersaodados3/blob/main/dados/dados_experimentos.zip?raw=true' base_dados = pd.read_csv(url_dados, compression = 'zip') base_dados # + colab={"base_uri": "https://localhost:8080/", "height": 253} id="FpZBoRuywBzZ" outputId="884f47b1-3632-4d18-fdc5-1bac6ccbc36a" base_dados.head() # + colab={"base_uri": "https://localhost:8080/"} id="GghM47XVwa03" outputId="e1ae792a-f1c9-4cce-f281-31bd5491f45f" base_dados.shape # + id="OMTuCYmpwwVS" #cada linha é um experimento # com droga e com controle, # cada linha é uma cultura de celula que foi submetida a uma droga # + colab={"base_uri": "https://localhost:8080/"} id="kRDMZN_lyMzX" outputId="32517a3b-132f-49f4-930b-67da15051e36" base_dados.columns # + colab={"base_uri": "https://localhost:8080/"} id="Fm9yBd768-U4" outputId="816d8398-0388-4f97-dd4b-e5bd43a21789" base_dados['tratamento'] ## serie: conjunto de dados de uma coluna do dataframe # + colab={"base_uri": "https://localhost:8080/"} id="Ny7B4QwV9Fx1" outputId="6386cad9-4121-428c-8ec0-57fe04c135f5" base_dados['tratamento'].unique() ## identifica os valores unicos que aparecem em uma seia em especifico # + colab={"base_uri": "https://localhost:8080/"} id="JFgq5772-S65" outputId="2c73171c-604f-4362-af8f-baaffb69c551" base_dados['tempo'].unique() # o tempo do qual o sujeito ficou exposto ao fármaco # + colab={"base_uri": "https://localhost:8080/"} id="Yjw5l9So-hvg" outputId="38ca08c1-0964-4c04-c2ac-9bcdc6bcde6c" base_dados['dose'].unique() # as doses que foram utilizadas # + colab={"base_uri": "https://localhost:8080/"} id="0Jm5UcV5-ufp" outputId="d6cd9e3d-dc28-4731-fc50-04ac816c88ab" drogas = base_dados['droga'].unique() ## a nomenclatura é lista, mas o objeto é um array. drogas # + colab={"base_uri": "https://localhost:8080/"} id="gP955FG9AW6x" outputId="e1ec0505-b2f5-4cd2-b79a-a0d3fabbd3cb" base_dados['tempo'].value_counts() ## conta os valores que se repetem na série # + colab={"base_uri": "https://localhost:8080/"} id="3XsRyUhkHQr2" outputId="6354c8d3-543c-47b6-d08d-b09736770d68" base_dados['droga'].value_counts() # + colab={"base_uri": "https://localhost:8080/"} id="r5LFrhYdIKAU" outputId="cacdd5e8-ffbc-40fe-b128-7267466ce745" base_dados['tratamento'].value_counts() ## aspas simples ou duplas, não tem diferença no python # + colab={"base_uri": "https://localhost:8080/"} id="wzoFPNB_MXP7" outputId="1caf3c18-f601-4e12-fcef-74664fedd717" base_dados['tratamento'].value_counts(normalize = True) # + colab={"base_uri": "https://localhost:8080/"} id="0FmhsIgfMnGl" outputId="fadf23f3-7175-4c57-cb42-1316cd770310" base_dados['dose'].value_counts(normalize = True) # + colab={"base_uri": "https://localhost:8080/", "height": 265} id="hACeE3H0MuTO" outputId="8b70bfc5-0a61-4859-a7b2-84197b8d293a" base_dados["tratamento"].value_counts().plot.pie() # + colab={"base_uri": "https://localhost:8080/", "height": 265} id="6g2yUlBSNAcz" outputId="9523ad3c-8d4f-4624-baed-abc14f549167" base_dados['tempo'].value_counts().plot.pie() # + colab={"base_uri": "https://localhost:8080/"} id="H7_tsDxRNN8X" outputId="620d3210-cf68-4a26-e7b4-3c9d05a1e7a9" base_dados['tempo'].value_counts(normalize = True) ## Sempre evitar gráficos de pizza, o que for de comer, ## normalmente não é o melhor para analisar # + colab={"base_uri": "https://localhost:8080/", "height": 285} id="UYM2691-Nn6N" outputId="98cdfc0d-5bb2-4d49-9d7f-7e23c3d2c4a1" base_dados['tempo'].value_counts().plot.bar() # + colab={"base_uri": "https://localhost:8080/"} id="OeLLEMj0O61Y" outputId="97ab7577-77f0-4417-eca9-68f91f93d980" base_dados['g-0'] > 0 # + colab={"base_uri": "https://localhost:8080/", "height": 253} id="7H7gN-TBPHXq" outputId="4dd6d342-c21a-4f0d-9c1b-2fca716826f5" dados_maior_zero = base_dados[base_dados['g-0'] > 0 ] dados_maior_zero.head() # + colab={"base_uri": "https://localhost:8080/"} id="t_fdilFKPeKG" outputId="4011d550-b2b4-4e2a-8ef7-1b5b3fe25c89" # + [markdown] id="wvXK5I5dKwip" # ### Desafio 01: Investigar o por que a classe tratamento é tão desbalanceada # + [markdown] id="A0B5kuwGVU6G" # É visto que há um desbalanceamento na série tratamento pelo falo que de as amostras com_controle são amostras de controle, que servem com o parâmetro de comparação com a reação das outras amostras. # + [markdown] id="ckMTEZK0K7BK" # ### Desafio 02: Plotar as 5 útimas linhas da tabela # + colab={"base_uri": "https://localhost:8080/", "height": 253} id="NME_kZ5CWMvX" outputId="e01691e3-ffc8-47a2-e171-a0a7fd54363a" base_dados.tail() ##tail retorna as ultimas 5 linhas # + [markdown] id="B0PJqohNK-Z-" # ### Desafio 03: Proporção das classes tratamento # + colab={"base_uri": "https://localhost:8080/"} id="x3DyrQbOWlzI" outputId="40ff6dc3-cfe9-41ab-cb32-3a1624106c98" base_dados['tratamento'].value_counts(normalize = True) # + [markdown] id="0BzCJmrBLP_a" # ### Desafio 04 : Quantos Tipos de Drogas foram investigadas? # + colab={"base_uri": "https://localhost:8080/"} id="0rgAMbLNLVwW" outputId="0c075e1b-77a5-4736-f157-1638b774ebf4" drogas_count = base_dados["droga"].value_counts() drogas_count # + colab={"base_uri": "https://localhost:8080/"} id="E9gpbbPULfeY" outputId="609f03b4-c89d-4558-915d-f8fd0eb98859" drogas_count.count() # + id="bl6Rj8weKsms" # + [markdown] id="6FiX87KeP39M" # ### Desafio 05: Procurar na documentação o método query do pandas # + colab={"base_uri": "https://localhost:8080/", "height": 439} id="sCslPbM9ZGab" outputId="1f868940-ba6a-4884-920e-b584ad24c4dc" base_dados.query('dose == "D1" and tempo == 72 and tratamento == "com_controle"') ## o método query recebe expressoes que devem retornar boleanos, onde o true dessa expressão irá montar o DF resultante # + id="c4yVP4togg3Q" # ?pd.DataFrame.query # + [markdown] id="-B9OLacuQGdr" # ### Desafio 06: Procurar na documentação como deixar os gráficos melhores (matplotlib) # + colab={"base_uri": "https://localhost:8080/", "height": 298} id="sRdcHaEwbBxH" outputId="5991d1c5-8715-4906-c556-1bcf344f296d" base_dados['tempo'].value_counts().plot.bar( title = "Amostras por Tempo ", rot = 0, ylabel = 'Quantidade Amostrastop') # + [markdown] id="eW664PmCQgjM" # ### Desafio 07: Renomear as Colunas, retirando o hifen # + colab={"base_uri": "https://localhost:8080/", "height": 253} id="7L1fOF7TYc0o" outputId="025ffdab-be93-4449-d66c-552e41d5661b" base_dados.columns = base_dados.columns.str.replace('-','') base_dados.tail() # + [markdown] id="LlYTezsxQ_iz" # ###Desafio 08: Resumo do que você aprendeu com os dados # + [markdown] id="wOHpw1nJy36F" # - É visto que a análise dos dados depende e muito do conhecimento do negócio, sem isso, ainda falta um pouco de direção para onde investigar. # # - Visto que 3289 drogas foram testadas nessa base de dados. # # - Suspeito que cada droga tenha uma relação diferente com o gene no tempo. # # - Ansioso para entender melhor o matplotlib, apresentação é o que encanta.
7,900
/GTFS Melbourne Metro Train Network.ipynb
47bb89e8884cc1d106d8f09bdb7ec7bb4b29e387
[]
no_license
joshuawebb1988/gtfs
https://github.com/joshuawebb1988/gtfs
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
313,494
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # + import numpy as np import pandas as pd import matplotlib.pyplot as plt import sklearn.model_selection as skl from sklearn.linear_model import LinearRegression import seaborn as sns import statsmodels.formula.api as smf from statsmodels.tools.eval_measures import rmse # %matplotlib inline sns.set(color_codes=True)#Set seaborn color coding # - supermarket_till_df = pd.read_csv("supermarket_till_transactions.csv") supermarket_till_df.sample(10) # Observe if basket size will determine the amount to be spend basketSize_Spend_df = supermarket_till_df[["BASKET_SIZE","SPEND","CUST_LIFESTAGE"]] basketSize_Spend_df.sample(10) basketSize_Spend_df.nunique() basketSize_Spend_df.CUST_LIFESTAGE.unique() basketSize_Spend_df.CUST_LIFESTAGE.fillna("OT",inplace=True) basketSize_Spend_df.nunique() # Plot regression against actual data plt.figure(figsize=(12, 6)) plt.plot(basketSize_Spend_df.BASKET_SIZE, basketSize_Spend_df.SPEND, 'ro') # scatter plot showing actual data plt.title('Basket Size vs Spend') plt.xlabel('Basket Size') plt.ylabel('Spend') plt.show() sns.scatterplot(x = "BASKET_SIZE", y = "SPEND", data = basketSize_Spend_df) basketSize_Spend_df = pd.get_dummies(data=basketSize_Spend_df, columns=["BASKET_SIZE"]) basketSize_Spend_df.sample(10) # + x = basketSize_Spend_df[['BASKET_SIZE_L', 'BASKET_SIZE_M', 'BASKET_SIZE_S']] y = basketSize_Spend_df.SPEND x_train, x_test, y_train, y_test = skl.train_test_split(x, y, train_size = 0.70, random_state = 10) print(x_train.shape,x_test.shape, y_train.shape,y_test.shape) # - # Using stats_model to do a linear regression stats_model = smf.ols('SPEND ~ BASKET_SIZE_L + BASKET_SIZE_M + BASKET_SIZE_S', data=basketSize_Spend_df) stats_model = stats_model.fit() stats_model.params stats_model.summary() ypred = stats_model.predict(x_test) stats_rmse = rmse(y_test, ypred) stats_rmse # Using SKlearn Linear regression lm = LinearRegression() scikit_model = lm.fit(x_train,y_train) scikit_model.coef_ scikit_model.intercept_ scikit_ypred = scikit_model.predict(x_test) sci_rmse = rmse(y_test, scikit_ypred) sci_rmse x['tuesday'] + x['wednesday'] + x['thursday'] +\ x['friday'] + x['saturday'] + x['sunday'])), axis=1) perweek.name = 'perweek' regular_services = pd.concat([regular_services, perweek], axis=1) regular_services_lookup = regular_services[['service_id','perweek']].set_index('service_id') busy_date = regular_services.loc[regular_services['perweek'].idxmax()]['start_date'] print(busy_date) fts = gt.compute_feed_time_series(feed, trip_stats, busy_date, freq='1H') gt.downsample(fts, freq='4H') gt.plot_feed_time_series(fts) # + #compute services, train-km, and train-seconds per week for each route route_df = pd.merge(left=trip_stats, right=feed.trips[['service_id', 'trip_id']], how='left', on='trip_id') route_grouping = route_df.groupby(by=['service_id','route_short_name']) route_group_agg = route_grouping.agg({'duration':np.sum, 'distance':np.sum, 'trip_id': (lambda x: x.nunique())}) route_group_agg = route_group_agg.join(regular_services_lookup) for idx, row in route_group_agg.iterrows(): route_group_agg.loc[idx, 'services_perweek'] = row['perweek'] * row['trip_id'] route_group_agg.loc[idx, 'distance_perweek'] = row['perweek'] * row['distance'] route_group_agg.loc[idx, 'time_perweek'] = row['perweek'] * row['duration'] * 3600 route_util = route_group_agg[['services_perweek','distance_perweek','time_perweek']].groupby(level=1).sum() # + #debug checks #metro_codes[metro_codes['stop_id'] == '19855'] #feed.stop_times[feed.stop_times['trip_id'] == '8368.T0.2-FKN-H-mjp-1.1.H'] #feed.trips[feed.trips.trip_headsign == 'Frankston'].head(2) # - #show weekly stats per route route_util # + #prepare stop_times for regular services into segments #i.e. each row is a segment from station - to station stop_times_df = pd.merge(left=feed.stop_times.sort_values(by=['trip_id','stop_sequence']), \ right=feed.trips[['service_id', 'trip_id', 'direction_id']], \ how='left', on='trip_id') stop_times_df_regular = stop_times_df.join(regular_services_lookup, on='service_id', how='inner') stop_times_df_regular['prev_distance'] = stop_times_df_regular.groupby(by=['trip_id'])['shape_dist_traveled'].shift(1) stop_times_df_regular['next_distance'] = stop_times_df_regular.groupby(by=['trip_id'])['shape_dist_traveled'].shift(-1) stop_times_df_regular['stop_distance'] = 0.0 stop_times_df_regular['stop_distance'] += ((stop_times_df_regular['shape_dist_traveled'] \ - stop_times_df_regular['prev_distance']) / 2).fillna(0.0) stop_times_df_regular['stop_distance'] += ((stop_times_df_regular['next_distance'] \ - stop_times_df_regular['shape_dist_traveled']) / 2).fillna(0.0) stop_times_df_regular['next_stop_id'] = stop_times_df_regular.groupby(by=['trip_id'])['stop_id'].shift(-1) stop_times_df_regular['next_arrival_time'] = stop_times_df_regular.groupby(by=['trip_id'])['arrival_time'].shift(-1) stop_times_df_regular['segment_time'] = (stop_times_df_regular['next_arrival_time'].apply(pd.to_timedelta) - \ stop_times_df_regular['departure_time'].apply(pd.to_timedelta)) stop_times_df_regular['segment_time'] = stop_times_df_regular['segment_time'].apply(lambda x: x.total_seconds()) stop_times_df_regular['segment_distance'] = (stop_times_df_regular['next_distance'] - \ stop_times_df_regular['shape_dist_traveled']) stop_times_df_regular['next_seq_diff'] = stop_times_df_regular.groupby(by=['trip_id'])['stop_sequence'].diff(-1) # - #define segments segment_df = (stop_times_df_regular[stop_times_df_regular['next_stop_id'].notnull()]\ [['stop_id', 'next_stop_id', 'trip_id', 'service_id', 'perweek', 'segment_time', \ 'segment_distance', 'next_seq_diff', 'direction_id']]) #define express segment, skips a station, if from sequence - next sequence is greater than 1 segment_df['express'] = (segment_df['next_seq_diff'] < -1.1) segment_df['time_perweek'] = segment_df['segment_time'] * segment_df['perweek'] segment_df['distance_perweek'] = segment_df['segment_distance'] * segment_df['perweek'] segment_df['segment_stop_list'] = segment_df.apply(lambda x: [x['stop_id'], x['next_stop_id']], axis=1) segment_df['segment'] = segment_df['segment_stop_list'].apply(lambda x: str(x[0]) + ' ' + str(x[1])) segment_df['segment_stop_1'] = segment_df['segment_stop_list'].apply(lambda x: x[0]) segment_df['segment_stop_2'] = segment_df['segment_stop_list'].apply(lambda x: x[1]) # + #debug checks #segment_df.head(2) # - #prepare segments to generate edges in networkx graph segment_allstops = segment_df[segment_df['express'] == False]\ .groupby(by=['segment', 'segment_stop_1', 'segment_stop_2'])\ ['segment_time', 'segment_distance'].agg( {'segment_time':np.mean, 'segment_distance':np.mean }) segment_allstops.reset_index(level=[1,2], inplace=True) # + #debug checks #segment_allstops.head(2) # + #debug checks #print('BBN {0}'.format(segment_df[segment_df['stop_id'] =='19898']['trip_id'].nunique())) #print('NWG {0}'.format(segment_df[segment_df['stop_id'] =='19899']['trip_id'].nunique())) #print('MCH {0}'.format(segment_df[segment_df['stop_id'] =='19900']['trip_id'].nunique())) #print('HTD {0}'.format(segment_df[segment_df['stop_id'] =='19901']['trip_id'].nunique())) #print('RWD {0}'.format(segment_df[segment_df['stop_id'] =='19902']['trip_id'].nunique())) #print('\n') #print('BBN {0}'.format(segment_df[segment_df['next_stop_id'] =='19898']['trip_id'].nunique())) #print('NWG {0}'.format(segment_df[segment_df['next_stop_id'] =='19899']['trip_id'].nunique())) #print('MCH {0}'.format(segment_df[segment_df['next_stop_id'] =='19900']['trip_id'].nunique())) #print('HTD {0}'.format(segment_df[segment_df['next_stop_id'] =='19901']['trip_id'].nunique())) #print('RWD {0}'.format(segment_df[segment_df['next_stop_id'] =='19902']['trip_id'].nunique())) # - #prepare stops to generate nodes in networkx graph master_stops = feed.stops.set_index('stop_id') master_stops = master_stops.join(metro_codes.set_index('stop_id')[['name', 'code_vic', 'code_aust']], how='left') master_stops_pos = master_stops.apply(lambda x: (x['stop_lon'], x['stop_lat']), axis=1).to_dict() # + #INITIAL graph, used to calculate between stops visited by express segments #using shortest path #create directional graph from edges trainG = nx.from_pandas_dataframe(segment_allstops, 'segment_stop_1', 'segment_stop_2', edge_attr=['segment_distance', 'segment_time'], create_using=nx.DiGraph()) #add nodes without routes e.g. not regular services trainG.add_nodes_from(master_stops.index) #add node attributes stops_dic = master_stops.to_dict() for k, v in stops_dic.items(): nx.set_node_attributes(trainG, k, v) nx.set_node_attributes(trainG, 'pos', master_stops_pos) # - #function to generate [0,1],[1,2] segments from list of stops def group(lst, n): for i in range(0, len(lst), 1): val = lst[i:i+n] if len(val) == n: yield list(val) #INITIAL calculate utilisation stats for segments segment_util = segment_df.groupby(by=['segment', 'segment_stop_1', 'segment_stop_2'])\ ['perweek', 'segment_time', 'segment_distance', 'time_perweek', 'distance_perweek', 'express'].agg( {'perweek':np.sum, 'segment_time':np.mean, 'segment_distance':np.mean, 'time_perweek':np.sum, 'distance_perweek':np.sum, 'express':any }) segment_util.reset_index(level=[1,2], inplace=True) # + #debug check #segment_util.head(2) # - #define stops visited by express segments express_segment_util = segment_util[segment_util['express'] == True] express_stops = {} for idx, x in express_segment_util[['segment_stop_1','segment_stop_2']].iterrows(): stops = list(group(nx.shortest_path(trainG, source=x['segment_stop_1'], target=x['segment_stop_2']), 2)) express_stops.update({idx:stops}) express_stops = pd.Series(express_stops) express_stops.index.rename(['segment'], inplace=True) express_stops.name = 'stops' # + #debug check #express_segment_util.loc['19973 20025'] # + #define segments utilised by express segments i.e. components of an express segment new_seg_util = {} for idx, row in express_segment_util.join(express_stops).iterrows(): for i in row['stops']: index = (str(i[0]) + ' ' + str(i[1])) value = row['perweek'] new_seg_util.update({index:value}) new_seg_util = pd.Series(new_seg_util) new_seg_util.index.rename('segment', inplace=True) new_seg_util.name = 'perweek' new_seg_util = pd.DataFrame(new_seg_util).join(segment_allstops) new_seg_util = new_seg_util.join( new_seg_util[['segment_time','segment_distance']].\ multiply(new_seg_util['perweek'], axis='index').\ rename(columns={'segment_time':'time_perweek', 'segment_distance':'distance_perweek'})) new_seg_util['express'] = False # + #debug check #print(new_seg_util.index.isin(segment_util.index)) # + #debug check #new_seg_util.head(2) # - #calculate utilisation stats inclusive of components of express segments segment_util.update( segment_util[['perweek','distance_perweek','time_perweek']].\ add(new_seg_util[['perweek','distance_perweek','time_perweek','express']], axis='columns', fill_value=0.0) ) segment_util['express'] = segment_util['express'] == True segment_util = segment_util[segment_util['express'] != True] #debug check segment_util[(segment_util['segment_stop_1'] == '22180') | (segment_util['segment_stop_2'] == '22180') ] #calculate utilisation stats outbound from station stop1_util = segment_util[['segment_stop_1', 'perweek', 'distance_perweek', 'time_perweek']].\ reset_index(level=0, drop=True).set_index('segment_stop_1', append=True) stop1_util['distance_perweek'] = stop1_util['distance_perweek'] / 2 stop1_util['time_perweek'] = stop1_util['time_perweek'] / 2 stop1_util.index.names = ['direction_id','stop_id'] stop1_util = stop1_util.swaplevel(i='stop_id', j='direction_id') stop_out_util = stop1_util.groupby(level=[0]).agg({'perweek':np.sum, 'distance_perweek':np.sum, 'time_perweek':np.sum}) stop_out_util['lines'] = stop1_util.groupby(level=[0]).size() stop_out_util.rename(columns={'perweek':'out_perweek', 'time_perweek':'out_time_perweek', 'distance_perweek':'out_distance_perweek', 'lines':'out_lines'}, inplace=True) #calculate utilisation stats inbound to station stop2_util = segment_util[['segment_stop_2', 'perweek', 'distance_perweek', 'time_perweek']].\ reset_index(level=0, drop=True).set_index('segment_stop_2', append=True) stop2_util['distance_perweek'] = stop2_util['distance_perweek'] / 2 stop2_util['time_perweek'] = stop2_util['time_perweek'] / 2 stop2_util.index.names = ['direction_id','stop_id'] stop2_util = stop2_util.swaplevel(i='stop_id', j='direction_id') stop_in_util = stop2_util.groupby(level=[0]).agg({'perweek':np.sum, 'distance_perweek':np.sum, 'time_perweek':np.sum}) stop_in_util['lines'] = stop2_util.groupby(level=[0]).size() stop_in_util.rename(columns={'perweek':'in_perweek', 'time_perweek':'in_time_perweek', 'distance_perweek':'in_distance_perweek', 'lines':'in_lines'}, inplace=True) #merge together inbound and outbound station stats master_stops_util = pd.merge(master_stops, pd.merge(stop_in_util, stop_out_util, how='outer', left_index=True, right_index=True), how='outer', left_index=True, right_index=True) #debug check master_stops_util.head(2) # + #create directed graph from edges including utilisation stats as attributes trainG = nx.from_pandas_dataframe(segment_util, 'segment_stop_1', 'segment_stop_2', edge_attr=['segment_distance', 'segment_time', 'perweek', 'distance_perweek', 'time_perweek'], create_using=nx.DiGraph()) #add nodes without routes e.g. not regular services trainG.add_nodes_from(master_stops_util.index) #add node attributes including utilisation stats stops_dic = master_stops_util.to_dict() for k, v in stops_dic.items(): nx.set_node_attributes(trainG, k, v) nx.set_node_attributes(trainG, 'pos', master_stops_pos) # - #draw using matplotlib plt.rcParams['figure.figsize'] = (16.0, 12.0) nx.draw_networkx(trainG, pos=master_stops_pos, arrows=False, node_size=20, node_color='b', \ with_labels=False, labels=master_stops[['code_vic']].to_dict()['code_vic']) plt.show() #function defines layout of edges for a bokeh plot of graph def get_edges_specs(_network, _layout, weight_name=None): d = dict(xs=[], ys=[], alphas=[]) if weight_name is not None: weights = [d[weight_name] for u, v, d in _network.edges(data=True)] max_weight = max(weights) calc_alpha = lambda h: 0.1 + 0.6 * (h / max_weight) for u, v, data in _network.edges(data=True): d['xs'].append([_layout[u][0], _layout[v][0]]) d['ys'].append([_layout[u][1], _layout[v][1]]) if weight_name is not None: d['alphas'].append(calc_alpha(data[weight_name])) else: d['alphas'].append(0.7) return d # + #prepare bokeh plot of graph layout = nx.spring_layout(trainG, pos=master_stops_pos, iterations=100, fixed=trainG.nodes()) nodes_source = ColumnDataSource(master_stops_util) hover = HoverTool(tooltips=[('code', "@code_vic"), ('stop_id', '@stop_id'), ('name', '@name'), ('lat', '@stop_lat'), ('lon', '@stop_lon'), ('serv_perweek_in', '@in_perweek'), ('trainkm_perweek_in', '@in_distance_perweek'), ('serv_perweek_out', '@out_perweek'), ('trainkm_perweek_out', '@out_distance_perweek')]) plot = figure(plot_width=900, plot_height=600, tools=['tap', hover, 'box_zoom', 'reset', 'pan', 'wheel_zoom']) r_circles = plot.circle('stop_lon', 'stop_lat', source=nodes_source, size=5, color='blue', level = 'overlay') lines_source = ColumnDataSource(get_edges_specs(trainG, layout, 'perweek')) r_lines = plot.multi_line('xs', 'ys', line_width=1.5, alpha='alphas', color='navy', source=lines_source) # - #generate script, plot data for embedded HTML script, div = components(plot) #html for embedded plot plot_html = """ <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Plots</title> <link rel="stylesheet" href="http://cdn.pydata.org/bokeh/release/bokeh-0.12.0.min.css" type="text/css" /> <script type="text/javascript" src="http://cdn.pydata.org/bokeh/release/bokeh-0.12.0.min.js"></script> {0} </head> <body> {1} </body> </html> """.format(script, div) #show html plot HTML(plot_html) # + #show(plot) # + #write trainG to .yaml #nx.readwrite.write_yaml(trainG, 'trainG.yaml') #write segment_util to .csv #segment_util.to_csv('segment_util.csv') #write master_stops_util to .csv #master_stops_util.to_csv('master_stops_util.csv') #write plot_html to .html #with open('plot_html.html', 'w') as outfile: # outfile.write(plot_html) # + #read trainG from .yaml #trainG = nx.readwrite.read_yaml('trainG.yaml') #read segment_util from .csv #segment_util = pd.DataFrame.from_csv('segment_util.csv') #read master_stops_util from .csv #master_stops_util = pd.DataFrame.from_csv('master_stops_util.csv') #read plot_html from .html #with open('plot_html.html', 'r') as infile: # plot_html = infile.read() # -
18,404
/SqlLite Database.ipynb
117e6b62fc408e3a45a2d01a6b4a43709b0339fe
[]
no_license
mohamedsamir3/SqlLite-Database
https://github.com/mohamedsamir3/SqlLite-Database
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
144,808
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # # Chapter 5 오차역전파법 # 수치 미분은 시간이 오래 걸리는 단점이 있다. 오차역전파법(backpropagation)은 효율적 계산이 가능하다. # # - 수식을 통한 이해 # - 계산 그래프를 통한 이해 ★ # # 참고 # - http://karpathy.github.io/ # - Stanford CS231n # ## 5.1 계산 그래프 # **계산 그래프(computational graph)**는 계산 과정을 그래프로 나타낸 것이다. 그래프는 **노드(node)**와 **에지(edge)**로 표현된다. # ### 5.1.1 계산 그래프로 풀다 # <img src="https://t1.daumcdn.net/cfile/tistory/997ED34B5B98F5F235"> # <center><small>▲ 간단한 계산 그래프</small></center> # # 계산 그래프 문제 흐름 # 1. 계산 그래프를 구성한다. # 2. 그래프에서 계산을 왼쪽에서 오른쪽으로 진행한다. # # 계산을 왼쪽에서 오른쪽으로 진행하는 단계를 **순전파(forward propagation)**이라고 하고 반대 방향을 **역전파(backward propagation)**이라고 한다. # ### 5.1.2 국소적 계산 # 계산 그래프는 국소적 계산을 전파해서 최종 결과를 얻을 수 있다는 특징이 있다. 즉, 다른 부분은 상관하지 않고 자신과 관계된 정보만 출력할 수 있다. 이러한 특징에 따라 각 노드는 자신과 관계된 계산에만 집중하면 된다. # # <img src="https://t1.daumcdn.net/cfile/tistory/991C9E495B98F60F1D"> # <center><small>▲ 국소적 계산의 예</small></center> # ### 5.1.3 왜 계산 그래프로 푸는가? # 계산 그래프의 이점 # - 국소적 계산으로 복잡한 문제를 단순화할 수 있다. # - 역전파를 통해 (다수의) 미분을 효율적으로 계산할 수 있다. # # <img src="https://t1.daumcdn.net/cfile/tistory/997E914D5B98F62826"> # <center><small>▲ 역전파를 통한 미분</small></center> # ## 5.2 연쇄법칙(chain rule) # ### 5.2.1 계산 그래프의 역전파 # <img src="https://t1.daumcdn.net/cfile/tistory/999FD3425B98F63F1A"> # # 국소적 미분은 상류에서 전달된 값과 곱해져서 앞쪽 노드로 전달된다. # ### 5.2.2 연쇄법칙이란? # 연쇄법칙은 합성 함수의 미분이 각 구성 함수의 미분의 곱으로 나타낸다는 성질을 이용한다. # # 예를 들어, $z = (x + y)^2$가 있을때 $x$에 대한 $z$의 미분은 다음과 같이 나타낼 수 있다. # # $$\frac {\partial z} {\partial x} = \frac {\partial z} {\partial t} \frac {\partial t} {\partial x}$$ # # $$\frac {\partial z} {\partial t} = 2t$$ # # $$\frac {\partial t} {\partial x} = 1$$ # # $$\frac {\partial z} {\partial x} = \frac {\partial z} {\partial t} \frac {\partial t} {\partial x} = 2t \cdot 1 = 2(x + y)$$ # ### 5.2.3 연쇄법칙과 계산 그래프 # <img src="https://t1.daumcdn.net/cfile/tistory/997387465B98F65D13"> # ## 5.3 역전파 # ### 5.3.1 덧셈 노드의 역전파 # 덧셈 노드의 역전파는 입력된 값을 그대로 다음 노드로 보낸다. # # <img src="https://t1.daumcdn.net/cfile/tistory/99FB57455B98F67407"> # ### 5.3.2 곱셈 노드의 역전파 # 곱셈 노드의 역전파는 순전파 때의 입력 신호들을 서로 바꾼 값을 곱해서 하류로 보낸다. 그래서 곱셈 노드를 구현할 때는 순전파의 입력 신호를 변수에 저장한다. # # <img src="https://t1.daumcdn.net/cfile/tistory/99E3EF435B98F69309"> # ### 5.3.3 사과 쇼핑의 예 # <img src="https://t1.daumcdn.net/cfile/tistory/99AACA445B98F6A61E"> # <center><small>▲ 사과 쇼핑의 역전파 예</small></center> # # <img src="https://t1.daumcdn.net/cfile/tistory/99499E4E5B98F6C10E"> # <center><small>▲ 사과와 귤 쇼핑의 역전파 예</small></center> # ## 5.4 단순한 계층 구현하기 # ### 5.4.1 곱셈 계층 class MulLayer: def __init__(self): self.x = None self.y = None def forward(self, x, y): self.x = x self.y = y out = x * y return out def backward(self, dout): dx = dout * self.y dy = dout * self.x return dx, dy # - 사과 쇼핑 구현 # + apple = 100 apple_num = 2 tax = 1.1 # 계층들 mul_apple_layer = MulLayer() mul_tax_layer = MulLayer() # 순전파 apple_price = mul_apple_layer.forward(apple, apple_num) price = mul_tax_layer.forward(apple_price, tax) print(price) # 다들 오차 나는지? # + # 역전파 dprice = 1 dapple_price, dtax = mul_tax_layer.backward(dprice) dapple, dapple_num = mul_apple_layer.backward(dapple_price) print(dapple, dapple_num, dtax) # - # ### 5.4.2 덧셈 계층 class AddLayer: def __init__(self): pass def forward(self, x, y): out = x + y return out def backward(self, dout): dx = dout * 1 dy = dout * 1 return dx, dy # 덧셈 계층은 그저 상류에서 내려온 미분을 하류로 흘러보내기만 하면 되기 때문에 따로 초기화할 필요가 없다. # - 사과 2개와 귤 3개를 사는 상황 # + apple_num = 2 apple = 100 mandarin_num = 3 mandarin = 150 tax = 1.1 mul_apple_layer = MulLayer() mul_mandarin_layer = MulLayer() add_fruit_layer = AddLayer() mul_tax_layer = MulLayer() apple_price = mul_apple_layer.forward(apple, apple_num) mandarin_price = mul_mandarin_layer.forward(mandarin, mandarin_num) fruit_price = add_fruit_layer.forward(apple_price, mandarin_price) total_price = mul_tax_layer.forward(fruit_price, tax) print(total_price) dtotal_price = 1 dfruit_price, dtax = mul_tax_layer.backward(dprice) dapple_price, dmandarin_price = add_fruit_layer.backward(dfruit_price) dapple, dapple_num = mul_apple_layer.backward(dapple_price) dmandarin, dmandarin_num = mul_mandarin_layer.backward(dmandarin_price) print(dapple, dapple_num, dmandarin, dmandarin_num) # - # ## 5.5 활성화 함수 계층 구현하기 # ### 5.5.1 ReLU 계층 # - ReLU 수식 # # $$y = # \begin{cases} # x \ (x > 0) \\ # 0 \ (x \leq 0) # \end{cases}$$ # # - ReLU 미분 # # $$\frac {\partial y}{\partial x} = # \begin{cases} # 1 \ (x > 0) \\ # 0 \ (x \leq 0) # \end{cases}$$ # # <img src="https://t1.daumcdn.net/cfile/tistory/99E517485B98F6E504"> # <center><small>▲ ReLU 계산 그래프</small></center> import numpy as np class Relu: def __init__(self): self,mask = None # 입력 원소가 0 이하인 인덱스는 True, 0보다 큰 경우 False 유지 def forward(self, x): self.mask = (x <= 0) out = x.copy() out[self.mask] = 0 return 0 def backward(self, dout): dout[self.mask] = 0 dx = dout return dx x = np.array([[1.0, -0.5], [-2.0, 3.0]]) print(x) mask = (x <= 0) print(mask) # mask 인스턴스 변수를 써서 mask의 원소가 True인 곳은 상류에서 전파된 미분값을 0으로 바꾼다. # ### 5.5.2 Sigmoid 계층 # - 시그모이드 수식 # # $$y = \frac 1 {1+exp(-x)}$$ # # - '/' 노드, $y = \frac 1 x$ 미분 # # $$\begin{align} # \frac {\partial y} {\partial x} & = -\frac 1 {x^2} \\ # & = -y^2 \\ # \end{align}$$ # # - exp 노드 미분 # # $$\frac {\partial y} {\partial x} = exp(x)$$ # # # <img src="https://t1.daumcdn.net/cfile/tistory/999E3B4B5B98F72021"> # <center><small>▲ 시그모이드 순전파/역전파</small></center> # # - sigmoid 미분 # # $$\begin{align} # \frac {\partial y} {\partial x} & = y^2exp(-x) \\ # & = \frac 1 {(1 + exp(-x))^2} exp(-x) \\ # & = \frac 1 {1 + exp(-x)} \frac {exp(-x)} {1+exp(-x)} \\ # & = y(1-y) # \end{align}$$ # # 시그모이드 계층의 역전파는 순전파의 출력만으로 계산할 수 있다. class Sigmoid: def __init__(self): self.out = None def forward(self, x): out = 1 / (1 + np.exp(-x)) self.out = out return out def backward(self, dout): dx = dout * (1.0 - self.out) * self.out return dx # 구현에서 순전파의 출력을 out 인스턴스 변수에 저장해 놓고 역전파 계산할 때 사용한다. # ## 5.6 Affine/Softmax 계층 구현하기 # ### 5.6.1 Affine 계층 # 행렬의 곱을 기하학에서는 **어파인 변환(affine transformation)**이라고 한다. # # $$\frac {\partial L} {\partial X} = \frac {\partial L} {\partial Y} \cdot W^T$$ # # $$\frac {\partial L} {\partial W} = X^T \cdot \frac {\partial L} {\partial Y}$$ # # <img src="https://t1.daumcdn.net/cfile/tistory/994002375B98F73E05"> # # 계산 그래프에서 각 원소의 형상에 주의해야 한다. # ### 5.6.2 배치용 Affine 계층 # <img src="https://t1.daumcdn.net/cfile/tistory/994510365B98F75122"> # # 편향의 경우에는 순전파에서 각각의 데이터에 더해진다. 그래서 역전파 때는 편향의 원소에 역전파 값이 편향에 모여야 한다. class Affine: def __init__(self, W, b): self.W = W self.b = b self.x = None self.dW = None self.db = None def forward(self, x): self.x = x out = np.dot(x, self.W) + self.b return out def backward(self, dout): dx = np.dot(dout, self.W.T) self.dW = np.dot(self.x.T, dout) self.db = np.sum(dout, axis=0) return dx # ### 5.6.3 Softmax-with-Loss 계층 # Softmax 계층은 출력의 합이 1이 되도록 정규화하여 출력한다. # # <img src="https://t1.daumcdn.net/cfile/tistory/995A16395B98F76820"> # # <img src="https://t1.daumcdn.net/cfile/tistory/99EBF5395B98F7792B"> # <center><small>▲ Softmax-with-Loss 계층의 계산 그래프</small></center> # # <img src="https://camo.qiitausercontent.com/c879a9a466f923c0978973590908d2b1c0725592/68747470733a2f2f71696974612d696d6167652d73746f72652e73332e616d617a6f6e6177732e636f6d2f302f3139373530382f66353935633337652d323562312d383666392d356438632d3937343532343461626633372e706e67" width=450> # <center><small>▲ Softmax-with-Loss 계층 계산 그래프 간소화</small></center> # # Softmax 계층의 역전파 결과에서 중요한 점은 Softmax 계층의 출력과 정답 레이블의 차이로, 신경망의 현재 출력과 정답 레이블의 오차를 그래로 드러낸다는 것이다. # # 참고로 항등 함수의 손실 함수로 평균 제곱 오차를 사용하는데 이 때의 역전파 값도 위와 동일하다. # 소프트맥스 오버플로 개선 버전 def softmax(a): c = np.max(a) exp_a = np.exp(a - c) sum_exp_a = np.sum(exp_a) y = exp_a / sum_exp_a return y # 데이터가 1개나 그 이상의 배치로 주어지는 경우 def cross_entropy_error(y, t): # y가 1차원, 즉 하나의 데이터일 경우 shape을 바꿔준다. if y.ndim == 1: t = t.reshape(1, t.size) y = y.reshape(1, y.size) batch_size = y.shape[0] return -np.sum(t * np.log(y + 1e-7)) / batch_size class SoftmaxWithLoss: def __init__(self): self.loss = None # 손실 self.y = None # softmax 출력 self.t = None # 정답 레이블(원-핫 벡터) def forward(self, x, t): self.t = t self.y = softmax(x) self.loss = cross_entropy_error(self.y, self.t) return self.loss def backward(self, dout=1): batch_size = self.t.shape[0] dx = (self.y - self.t) / batch_size return dx # ## 5.7 오차역전파법 구현하기 # ### 5.7.1 신경망 학습의 전체 그림 (생략) # ### 5.7.2 오차역전파법을 적용한 신경망 구현하기 import sys, os sys.path.append(os.pardir) import numpy as np from common.layers import * from common.gradient import numerical_gradient from collections import OrderedDict class TwoLayerNet: def __init__(self, input_size, hidden_size, output_size, weight_init_std=0.01): # 가중치 초기화 self.params = {} self.params['W1'] = weight_init_std * np.random.randn(input_size, hidden_size) self.params['b1'] = np.zeros(hidden_size) self.params['W2'] = weight_init_std * np.random.randn(hidden_size, output_size) self.params['b2'] = np.zeros(output_size) # 계층 생성 self.layers = OrderedDict() self.layers['Affine1'] = Affine(self.params["W1"], self.params['b1']) self.layers['Relu1'] = Relu() self.layers['Affine2'] = Affine(self.params['W2'], self.params['b2']) self.lastLayer = SoftmaxWithLoss() def predict(self, x): for layer in self.layers.values(): x = layer.forward(x) return x # x: 입력 데이터, t: 정답 레이블 def loss(self, x, t): y = self.predict(x) return self.lastLayer.forward(y, t) def accuracy(self, x, t): y = self.predict(x) y = np.argmax(y, axis=1) if t.ndim != 1 : t = np.argmax(t, axis=1) accuracy = np.sum(y == t) / float(x.shape[0]) return accuracy # x: 입력 데이터, t: 정답 레이블 def numerical_gradient(self, x, t): loss_W = lambda W: self.loss(x, t) grads = {} grads['W1'] = numerical_gradient(loss_W, self.params['W1']) grads['b1'] = numerical_gradient(loss_W, self.params['b1']) grads['W2'] = numerical_gradient(loss_W, self.params['W2']) grads['b2'] = numerical_gradient(loss_W, self.params['b2']) return grads def gradient(self, x, t): # 순전파 self.loss(x, t) # 역전파 dout = 1 dout = self.lastLayer.backward(dout) layers = list(self.layers.values()) layers.reverse() for layer in layers: dout = layer.backward(dout) # 결과 저장 grads = {} grads['W1'] = self.layers['Affine1'].dW grads['b1'] = self.layers['Affine1'].db grads['W2'] = self.layers['Affine2'].dW grads['b2'] = self.layers['Affine2'].db return grads # ### 5.7.3 오차역전파법으로 구한 기울기 검증하기 # 기울기 구하는 방법 # - 수치 미분: 구현은 간단하지만 느리다 # - 해석적 방법: 오차역전파법 이용해서 매개변수 많아도 빠르게 계산 가능 # # 실제 학습을 할 땐 계산이 빠른 오차역전파법을 이용하고 수치 미분은 오차역전파법을 정확하게 구현했는지 확인하는 용도로 사용한다. 두 방식으로 기울기가 일치하는 것을 확인하는 작업을 **기울기 확인(gradient check)**라고 한다. import sys, os sys.path.append(os.pardir) import numpy as np from dataset.mnist import load_mnist from two_layer_net import TwoLayerNet # + (x_train, t_train), (x_test, t_test) = load_mnist(normalize=True, one_hot_label=True) network = TwoLayerNet(input_size=784, hidden_size=50, output_size=10) x_batch = x_train[:3] t_batch = t_train[:3] grad_numerical = network.numerical_gradient(x_batch, t_batch) grad_backprop = network.gradient(x_batch, t_batch) # 가 가중치의 차이의 절댓값을 구한 후, 그 절댓값들의 평균을 낸다. for key in grad_numerical.keys(): diff = np.average(np.abs(grad_backprop[key] - grad_numerical[key])) print(key + ": " + str(diff)) # - # ### 5.7.4 오차역전파법을 사용한 학습 구현하기 import sys, os sys.path.append(os.pardir) import numpy as np from dataset.mnist import load_mnist from two_layer_net import TwoLayerNet # + (x_train, t_train), (x_test, t_test) = load_mnist(normalize=True, one_hot_label=True) network = TwoLayerNet(input_size=784, hidden_size=50, output_size=10) iters_num = 10000 train_size = x_train.shape[0] batch_size = 100 learning_rate = 0.1 train_loss_list = [] train_acc_list = [] test_acc_list = [] iter_per_epoch = max(train_size / batch_size, 1) for i in range(iters_num): batch_mask = np.random.choice(train_size, batch_size) x_batch = x_train[batch_mask] t_batch = t_train[batch_mask] # 오차역전파법으로 기울기를 구한다. grad = network.gradient(x_batch, t_batch) # 갱신 for key in ('W1', 'b1', 'W2', 'b2'): network.params[key] -= learning_rate * grad[key] loss = network.loss(x_batch, t_batch) train_loss_list.append(loss) if i % iter_per_epoch == 0: train_acc = network.accuracy(x_train, t_train) test_acc = network.accuracy(x_test, t_test) train_acc_list.append(train_acc) test_acc_list.append(test_acc) print(train_acc, test_acc) # - put_scale = np.asarray(norm_uniform(dataset,2)).squeeze() print(input_scale.shape) # Standardization (normalize by mean and standard deviation) # + def normalize(tensor, coordinates=1, std=None): moments = [] std_centroids = [] for n_vid in range(tensor.shape[0]): coord_moments = [] mean_value = [np.nanmean(tensor[n_vid, :,i::coordinates]) for i in range(coordinates)] std_value = [np.nanstd(tensor[n_vid, :,i::coordinates]) for i in range(coordinates)] centroids = np.ndarray((tensor.shape[1],coordinates)) for n_frame in range(tensor.shape[1]): centroid = [np.nanmean(tensor[n_vid, n_frame, i::coordinates]) for i in range(coordinates)] centroids[n_frame] = np.asarray(centroid) std_centroid = [np.nanstd(centroids[:,i]) for i in range(coordinates)] if std is not None: std_value = [std[n_vid]] for j in range(coordinates): subtensor = tensor[:, :, j::coordinates] subtensor[:] = np.subtract(subtensor, mean_value[j]) subtensor[:] = np.divide(subtensor, std_value[j]) coord_moments.append((mean_value[j], std_value[j])) moments.append(coord_moments) std_centroids.append(std_centroid) return moments, std_centroids moments, std_centroids = normalize(dataset, 2) # - # Shuffle to test different splits in every run. # + # Randomly shuffle videos permutation = np.random.permutation(dataset.shape[0]) dataset, groundtruth, lengths = dataset[permutation], groundtruth[permutation], lengths[permutation] input_scale = input_scale[permutation] print(dataset.shape, groundtruth.shape, lengths.shape) print(input_scale.shape) # + l1, l2 = len(dataset), len(groundtruth) p1, p2 = 0.8, 0.9 # Split in train, validation and test training_kp, val_kp, test_kp = dataset[:round(p1*l1)], dataset[round(p1*l1):round(p2*l1)], dataset[round(p2*l1):] training_lbl, val_lbl, test_lbl = groundtruth[:round(p1*l2)], groundtruth[round(p1*l2):round(p2*l2)], groundtruth[round(p2*l2):] training_lengths, val_lengths, test_lengths = lengths[:round(p1*l1)], lengths[round(p1*l1):round(p2*l1)], lengths[round(p2*l1):] training_inpscale, val_inpscale, test_inpscale = input_scale[:round(p1*l1)], input_scale[round(p1*l1):round(p2*l1)], input_scale[round(p2*l1):] print(training_kp.shape, val_kp.shape, test_kp.shape) print(training_lbl.shape, val_lbl.shape, test_lbl.shape) print(training_lengths.shape, val_lengths.shape, test_lengths.shape) # - # True scaling factors for z. training_outscale = np.asarray(norm_uniform(training_lbl)).squeeze() val_outscale_t = np.asarray(norm_uniform(val_lbl)).squeeze() test_outscale_t = np.asarray(norm_uniform(test_lbl)).squeeze() print(training_outscale.shape, val_outscale_t.shape) # Inferred scaling factors for z. alpha = LinearRegression(fit_intercept=True)#make_pipeline(PolynomialFeatures(9), LinearRegression(fit_intercept=True)) alpha.fit(training_inpscale, training_outscale) val_outscale = alpha.predict(val_inpscale) test_outscale = alpha.predict(test_inpscale) print(val_outscale.shape, test_outscale.shape) # + val_outscale = np.concatenate((val_outscale[:,np.newaxis], val_outscale_t[:,np.newaxis]), axis=1) test_outscale = np.concatenate((test_outscale[:,np.newaxis], test_outscale_t[:,np.newaxis]), axis=1) print(val_outscale.shape) # - # Convert z-coordinates to bin encoding (label of the class it corresponds to). FOr that the z-axis is split in several "bins" each given an int as label. def convert_to_bins(tensor): max_z = np.nanmax(tensor) min_z = np.nanmin(tensor) z_to_bins = [min_z+i*(max_z-min_z)/21 for i in range(1, 22)] with np.nditer(tensor, op_flags=['readwrite']) as it: for x in it: for z in z_to_bins: if x < z: x[...] = z_to_bins.index(z) break return z_to_bins z_to_bins_tr = convert_to_bins(training_lbl) z_to_bins_val = convert_to_bins(val_lbl) z_to_bins_test = convert_to_bins(test_lbl) print(z_to_bins_tr, groundtruth.shape) print(training_lbl[2,3]) # + # From python lists to pytorch tensors. training_kp, val_kp, test_kp = torch.tensor(np.nan_to_num(training_kp), dtype=torch.float32), torch.tensor(np.nan_to_num(val_kp), dtype=torch.float32), torch.tensor(np.nan_to_num(test_kp), dtype=torch.float32) training_lbl, val_lbl, test_lbl = torch.tensor(np.nan_to_num(training_lbl), dtype=torch.long), torch.tensor(np.nan_to_num(val_lbl), dtype=torch.long), torch.tensor(np.nan_to_num(test_lbl), dtype=torch.long) training_lengths, val_lengths, test_lengths = torch.tensor(np.nan_to_num(training_lengths), dtype=torch.float32), torch.tensor(np.nan_to_num(val_lengths), dtype=torch.float32), torch.tensor(np.nan_to_num(test_lengths), dtype=torch.float32) training_inpscale, val_inpscale, test_inpscale = torch.tensor(np.nan_to_num(training_inpscale), dtype=torch.float32), torch.tensor(np.nan_to_num(val_inpscale), dtype=torch.float32), torch.tensor(np.nan_to_num(test_inpscale), dtype=torch.float32) training_outscale, val_outscale, test_outscale = torch.tensor(np.nan_to_num(training_outscale), dtype=torch.float32), torch.tensor(np.nan_to_num(val_outscale), dtype=torch.float32), torch.tensor(np.nan_to_num(test_outscale), dtype=torch.float32) print(training_kp.shape, val_lbl.shape, test_lengths.shape) print(training_inpscale.shape, training_outscale.shape) # - # Finally we define the batch_size and put the datasets in DataLoaders. # + train_data = TensorDataset(training_kp, training_lbl, training_lengths, training_inpscale, training_outscale) val_data = TensorDataset(val_kp, val_lbl, val_lengths, val_inpscale, val_outscale) test_data = TensorDataset(test_kp, test_lbl, test_lengths, test_inpscale, test_outscale) batch_size = 32 train_loader = DataLoader(train_data, shuffle=True, batch_size=batch_size, drop_last=True) val_loader = DataLoader(val_data, shuffle=True, batch_size=batch_size, drop_last=True) test_loader = DataLoader(test_data, shuffle=True, batch_size=batch_size, drop_last=True) print(train_loader) # - # If we have a GPU available we set our device to GPU. # + # torch.cuda.is_available() checks and returns a Boolean True if a GPU is available, else it'll return False is_cuda = torch.cuda.is_available() # If we have a GPU available, we'll set our device to GPU. We'll use this device variable later in our code. if is_cuda: device = torch.device("cuda") print("GPU is available") else: device = torch.device("cpu") print("GPU not available, CPU used") # - # Let's print some examples to see whether it is loaded correctly or not. # + dataiter = iter(train_loader) sample_x, sample_y, sample_len, iscale, oscale = dataiter.next() print(sample_x.shape, sample_y.shape, sample_len.shape) # - # ## Model building # It is time to build the model for this approach. It will consist on a single/double layer LSTM followed by a Linear layer with output size the number of keypoints we want to estimate. I also define a method to initialize the hidden_state of the cell. class LSTM_2D3D(nn.Module): def __init__(self, input_size, output_size, hidden_dim, n_layers, bidirectional, bins, dropout=0.): super().__init__() # Save the model parameters self.output_size = output_size self.n_layers = n_layers self.hidden_dim = hidden_dim self.bi = bidirectional self.bins = bins # Define the architecture self.lstm = nn.LSTM(input_size, hidden_dim, n_layers, batch_first=True, bidirectional=bidirectional, dropout=dropout) self.fc = nn.Sequential( nn.Linear(hidden_dim*(2 if self.bi else 1), 256), nn.Linear(256, output_size) ) self.softmax=nn.LogSoftmax(dim=2) def forward(self, x, state, lengths): # Describe the forward step batch_size, seq_len = x.size(0), x.size(1) # We save the batch size and the (maximum) sequence length # Need to pack a tensor containing padded sequences of variable length packed = nn.utils.rnn.pack_padded_sequence(x, lengths=lengths, batch_first=True, enforce_sorted=False) ht, hidden_state = self.lstm(packed, state) # ht will be a PackedSequence # Need to flatten and reshape the output to feed it to the Linear layer ht = ht.data.contiguous() # ht will be of shape [sum(lengths), hidden_dim] ot = self.fc(ht) # ot will be of shape [sum(lengths), ouput_size] ot = ot.view(-1, self.output_size//self.bins, self.bins) #shape [sum(lengths), kp, bins] ot = self.softmax(ot) ot = torch.transpose(ot, 1, 2) # Transpose 'cause NLLLoss need the classes dimension as the second l_ot = [ot[:int(length)] for length in lengths] # list of batch elements, each shape [lengths[i], bins, kp] packed_ot = nn.utils.rnn.pack_sequence(l_ot, enforce_sorted=False) # PackedSequence # Finally return to shape [batch_size, seq_len, bins, kp] ot, _ = nn.utils.rnn.pad_packed_sequence(packed_ot, batch_first=True, total_length=seq_len) return ot, hidden_state def init_hidden(self, batch_size): weight = next(self.parameters()).data hidden = (weight.new(self.n_layers*(2 if self.bi else 1), batch_size, self.hidden_dim).zero_().to(device), weight.new(self.n_layers*(2 if self.bi else 1), batch_size, self.hidden_dim).zero_().to(device)) return hidden # + # Define some model parameters BINS = 21 INPUT_SIZE = sample_x.size(2) OUTPUT_SIZE = sample_y.size(2)*BINS HIDDEN_DIM = 512 N_LAYERS = 3 BIDIRECTIONAL = False # Instantiate the model model = LSTM_2D3D(INPUT_SIZE, OUTPUT_SIZE, HIDDEN_DIM, N_LAYERS, BIDIRECTIONAL, BINS, dropout=0.) model.to(device) print(model) print(sum(p.numel() for p in model.parameters() if p.requires_grad)) # - # ## Training # Now we will proceed with the training. The first cell will define the learning rate, the loss function and the selected optimizer for the training process. Then we will proceed with a training over a number of epochs in which we will print it's training loss and validation loss. I also will be using Tensorboard to have a much nicer view of the results. # + def thresholded_output_transform(output): y_pred, y = output for i in range(y_pred.shape[2]): indices = y_pred[:,:,i].max(dim=1)[1] y_pred[:,:,i] = 0 for j in range(len(indices)): y_pred[j,indices[j],i] = 1 return y_pred, y accuracy = Accuracy(thresholded_output_transform) BINS = 21 OUTPUT_SIZE = 26*BINS # - NUM_EPOCHS = 40 lr = 4e-6 loss_function = nn.NLLLoss() one_cycle = True optimizer = optim.Adam(model.parameters(), lr=lr, weight_decay=0.0) if one_cycle: scheduler = torch.optim.lr_scheduler.OneCycleLR(optimizer, max_lr=lr, steps_per_epoch=len(train_loader), epochs=NUM_EPOCHS, div_factor=20.0, final_div_factor=1000.0) from datetime import datetime name = 'lot_body_class' writer = SummaryWriter(log_dir=f'/deeplearning/logs/{name}{datetime.now()}_lr-{lr}_{NUM_EPOCHS}') # + timer_beg = timer() tr_losses = [] val_losses = [] model.train() for i in range(NUM_EPOCHS): # Init the hidden state (ht, ct) h = model.init_hidden(batch_size) batch_losses = [] if i+1 == NUM_EPOCHS: preds, inps, labls, lens = [], [], [], [] val_preds, val_inps, val_labls, val_lens = [], [], [], [] iscale, oscale, val_iscale, val_oscale = [], [], [], [] for inputs, labels, lengths, i_s, o_s in train_loader: h = tuple([e.data for e in h]) inputs, labels, lengths = inputs.to(device), labels.to(device), lengths.to(device) # Clear the gradients optimizer.zero_grad() # Forward step output, h = model(inputs, h, lengths) if i+1 == NUM_EPOCHS: e = [preds, inps, labls, lens, iscale, oscale] b = [output, inputs, labels, lengths, i_s, o_s] for k in range(len(e)): e[k].append(b[k]) # Loss calculation and backward step loss = loss_function(nn.utils.rnn.pack_padded_sequence(output, lengths=lengths, batch_first=True, enforce_sorted=False).data, nn.utils.rnn.pack_padded_sequence(labels, lengths=lengths, batch_first=True, enforce_sorted=False).data) loss.backward() # Weight update optimizer.step() # One cycle policy step if one_cycle: scheduler.step() # Output data collection for showing batch_losses.append(loss.item()) timer_end = timer() tr_losses.append(np.mean(batch_losses)) writer.add_scalar('Loss/train', tr_losses[-1], i) # Validation at the end of an epoch val_h = model.init_hidden(batch_size) model.eval() val_loss = [] for inp, lab, lns, vis, vos in val_loader: val_h = tuple([each.data for each in val_h]) inp, lab, lns = inp.to(device), lab.to(device), lns.to(device) out, val_h = model(inp, val_h, lns) if i+1 == NUM_EPOCHS: e = [val_preds, val_inps, val_labls, val_lens, val_iscale, val_oscale] b = [out, inp, lab, lns, vis, vos] for k in range(len(e)): e[k].append(b[k]) loss = loss_function(nn.utils.rnn.pack_padded_sequence(out, lengths=lns, batch_first=True, enforce_sorted=False).data, nn.utils.rnn.pack_padded_sequence(lab, lengths=lns, batch_first=True, enforce_sorted=False).data) val_loss.append(loss.item()) val_losses.append(np.mean(val_loss)) writer.add_scalar('Loss/validation', val_losses[-1], i) model.train() # Output loss and training time. print(f"Finished epoch {i+1}/{NUM_EPOCHS} in {(timer_end-timer_beg):.2f}s.\n", f"Loss: {np.mean(tr_losses[-1]):.4f}", f" Val Loss: {val_losses[-1]:.4f}") timer_beg = timer() plt.figure() plt.plot(tr_losses, label='train') plt.plot(val_losses, label='validation') plt.xlabel('Epoch') plt.ylabel('NLLLoss') plt.legend() # - # Save the predictions for training and validation. # + tr_predictions = torch.cat(tuple(preds), dim=0) tr_inputs = torch.cat(tuple(inps), dim=0) tr_groundtruth = torch.cat(tuple(labls), dim=0) tr_lengths = torch.cat(tuple(lens), dim=0) tr_inp_scale, tr_out_scale = torch.cat(tuple(iscale), dim=0), torch.cat(tuple(oscale), dim=0) print(tr_inp_scale.shape, tr_inputs.shape) val_predictions = torch.cat(tuple(val_preds), dim=0) val_inputs = torch.cat(tuple(val_inps), dim=0) val_groundtruth = torch.cat(tuple(val_labls), dim=0) val_length = torch.cat(tuple(val_lens), dim=0) val_inp_scale, val_out_scale = torch.cat(tuple(val_iscale), dim=0), torch.cat(tuple(val_oscale), dim=0) # - # Accuracy calculation. accuracy.update((nn.utils.rnn.pack_padded_sequence(tr_predictions, lengths=tr_lengths, batch_first=True, enforce_sorted=False).data, nn.utils.rnn.pack_padded_sequence(tr_groundtruth, lengths=tr_lengths, batch_first=True, enforce_sorted=False).data)) train_acc = accuracy.compute() accuracy.update((nn.utils.rnn.pack_padded_sequence(val_predictions, lengths=val_length, batch_first=True, enforce_sorted=False).data, nn.utils.rnn.pack_padded_sequence(val_groundtruth, lengths=val_length, batch_first=True, enforce_sorted=False).data)) val_acc = accuracy.compute() print(f"Training accuracy: {train_acc*100:.3f} Validation accuracy: {val_acc*100:.3f}") torch.save(model.state_dict(), f'./{name}.pt') model.load_state_dict(torch.load(f'./{name}.pt')) # ## Testing # # + test_losses = [] MPJPE = [] h = model.init_hidden(batch_size) preds, inps, labls, lengs = [], [], [], [] iscal, oscal = [], [] test_CK = [0,0] model.eval() for inputs_test, labels_test, lengths_test, is_test, os_test in test_loader: h = tuple([each.data for each in h]) inputs_test, labels_test, lengths_test = inputs_test.to(device), labels_test.to(device), lengths_test.to(device) output_test, h = model(inputs_test, h, lengths_test) e = [preds, inps, labls, lengs, iscal, oscal] b = [output_test, inputs_test, labels_test, lengths_test, is_test, os_test] for k in range(len(e)): e[k].append(b[k]) test_loss = loss_function(nn.utils.rnn.pack_padded_sequence(output_test, lengths=lengths_test, batch_first=True, enforce_sorted=False).data, nn.utils.rnn.pack_padded_sequence(labels_test, lengths=lengths_test, batch_first=True, enforce_sorted=False).data) test_losses.append(test_loss.item()) test_predictions = torch.cat(tuple(preds), dim=0) test_inputs = torch.cat(tuple(inps), dim=0) test_groundtruth = torch.cat(tuple(labls), dim=0) test_lengths = torch.cat(tuple(lengs), dim=0) test_inp_scale, test_out_scale = torch.cat(tuple(iscal), dim=0), torch.cat(tuple(oscal), dim=0) accuracy.update((nn.utils.rnn.pack_padded_sequence(test_predictions, lengths=test_lengths, batch_first=True, enforce_sorted=False).data, nn.utils.rnn.pack_padded_sequence(test_groundtruth, lengths=test_lengths, batch_first=True, enforce_sorted=False).data)) test_acc = accuracy.compute() # - print(f"Test loss: {np.mean(test_losses):.4f}", f"\nTest accuracy: {test_acc*100:.3f}") # ### Save the results into a json results = {'train':{'inputs':tr_inputs.tolist(), 'predictions':tr_predictions.tolist(), 'labels':tr_groundtruth.tolist(), 'lengths':tr_lengths.tolist(), 'is':tr_inp_scale.tolist(), 'os':tr_out_scale.tolist()}, 'validation':{'inputs':val_inputs.tolist(), 'predictions':val_predictions.tolist(), 'labels':val_groundtruth.tolist(), 'lengths':val_length.tolist(), 'is':val_inp_scale.tolist(), 'os':val_out_scale.tolist()}, 'test':{'inputs':test_inputs.tolist(), 'predictions':test_predictions.tolist(), 'labels':test_groundtruth.tolist(), 'lengths':test_lengths.tolist(), 'is':test_inp_scale.tolist(), 'os':test_out_scale.tolist()}} with open('../../../results/clas_small_body.json', 'w') as fp: json.dump(results, fp) # ### Load results from json with open('../../../results/clas_small_body.json', 'r') as j: jd = json.load(j) tr, val, test = jd['train'], jd['validation'], jd['test'] tr_inputs, tr_predictions, tr_groundtruth, tr_lengths, tr_inp_scale, tr_out_scale = tuple(torch.tensor(tr[n]) for n in ['inputs', 'predictions', 'labels', 'lengths', 'is', 'os']) val_inputs, val_predictions, val_groundtruth, val_length, val_inp_scale, val_out_scale = tuple(torch.tensor(val[n]) for n in ['inputs', 'predictions', 'labels', 'lengths', 'is', 'os']) test_inputs, test_predictions, test_groundtruth, test_lengths, test_inp_scale, test_out_scale = tuple(torch.tensor(test[n]) for n in ['inputs', 'predictions', 'labels', 'lengths', 'is', 'os']) tr_inputs.shape, val_predictions.shape, test_lengths.shape # ## Interpreation # Now to better understanding of the results, I will plot some of the frames from the last batches on the training and validation, and also from testing. def plot_and_rotate(c_inputs, c_z, frames, frame): c_inputs[:,::2].mul_(mom_x[1]) c_inputs[:,1::2].mul_(mom_y[1]) c_z.mul_(stdz) bodiesXY = torch.chunk(c_inputs[frames, :], len(frames), dim=0) bodiesZ = torch.chunk(c_z[frames, :], len(frames), dim=0) x = bodiesXY[frame].squeeze()[::2] y = bodiesXY[frame].squeeze()[1::2] z = bodiesZ[frame].squeeze() r_eyebrow = [[c[i] for i in range(17, 22)] for c in [x,y,z]] l_eyebrow = [[c[i] for i in range(22, 27)] for c in [x,y,z]] l_eye = [[c[i] for i in range(42, 48)] for c in [x,y,z]] r_eye = [[c[i] for i in range(36, 42)] for c in [x,y,z]] nose1 = [[c[i] for i in range(27, 31)] for c in [x,y,z]] nose2 = [[c[i] for i in range(31, 36)] for c in [x,y,z]] ext_mouth = [[c[i] for i in range(48, 60)] for c in [x,y,z]] int_mouth = [[c[i] for i in range(60, 68)] for c in [x,y,z]] contour = [[c[i] for i in range(0, 17)] for c in [x,y,z]] l_arm = [[c[i+112] for i in [1, 0, 9, 10, 11]] for c in [x,y,z]] r_arm = [[c[i+112] for i in [0, 3, 4, 5]] for c in [x,y,z]] l_leg = [[c[i+112] for i in [0, 2, 12, 13, 14, 22, 23, 24]] for c in [x,y,z]] r_leg = [[c[i+112] for i in [2, 6, 7, 8, 19, 20, 21]] for c in [x,y,z]] head = [[c[i+112] for i in [18, 17, 1, 15, 16]] for c in [x,y,z]] rh0 = [[c[i+70] for i in [0, 1, 2, 3, 4]] for c in [x,y,z]] rh1 = [[c[i+70] for i in [0, 5, 6, 7, 8]] for c in [x,y,z]] rh2 = [[c[i+70] for i in [0, 9, 10, 11, 12]] for c in [x,y,z]] rh3 = [[c[i+70] for i in [0, 13, 14, 15, 16]] for c in [x,y,z]] rh4 = [[c[i+70] for i in [0, 17, 18, 19, 20]] for c in [x,y,z]] lh0 = [[c[i+91] for i in [0, 1, 2, 3, 4]] for c in [x,y,z]] lh1 = [[c[i+91] for i in [0, 5, 6, 7, 8]] for c in [x,y,z]] lh2 = [[c[i+91] for i in [0, 9, 10, 11, 12]] for c in [x,y,z]] lh3 = [[c[i+91] for i in [0, 13, 14, 15, 16]] for c in [x,y,z]] lh4 = [[c[i+91] for i in [0, 17, 18, 19, 20]] for c in [x,y,z]] fig = plt.figure() ax = fig.add_subplot(111, projection='3d') def init(): ax.plot(r_eyebrow[0], r_eyebrow[2], r_eyebrow[1]) ax.plot(l_eyebrow[0], l_eyebrow[2], l_eyebrow[1]) ax.plot(l_eye[0], l_eye[2], l_eye[1]) ax.plot(r_eye[0], r_eye[2], r_eye[1]) ax.plot(nose1[0], nose1[2], nose1[1]) ax.plot(nose2[0], nose2[2], nose2[1]) ax.plot(ext_mouth[0], ext_mouth[2], ext_mouth[1]) ax.plot(int_mouth[0], int_mouth[2], int_mouth[1]) ax.plot(rh0[0], rh0[2], rh0[1]) ax.plot(rh1[0], rh1[2], rh1[1]) ax.plot(rh2[0], rh2[2], rh2[1]) ax.plot(rh3[0], rh3[2], rh3[1]) ax.plot(rh4[0], rh4[2], rh4[1]) ax.plot(lh0[0], lh0[2], lh0[1]) ax.plot(lh1[0], lh1[2], lh1[1]) ax.plot(lh2[0], lh2[2], lh2[1]) ax.plot(lh3[0], lh3[2], lh3[1]) ax.plot(lh4[0], lh4[2], lh4[1]) ax.plot(r_arm[0], r_arm[2], r_arm[1]) ax.plot(l_arm[0], l_arm[2], l_arm[1]) ax.plot(r_leg[0], r_leg[2], r_leg[1]) ax.plot(l_leg[0], l_leg[2], l_leg[1]) ax.plot(head[0], head[2], head[1]) lims = ax.get_xlim(), ax.get_ylim(), ax.get_zlim() spans = lims[0][1]-lims[0][0], lims[1][1]-lims[1][0], lims[2][1]-lims[2][0] span = max(spans) margins = [(span-s)/2 for s in spans] ax.set_xlim(lims[0][0]-margins[0], lims[0][1]+margins[0]) ax.set_ylim(lims[1][0]-margins[1], lims[1][1]+margins[1]) ax.set_zlim(lims[2][0]-margins[2], lims[2][1]+margins[2]) return fig, def animate(i): ax.view_init(elev=220., azim=3.6*i) return fig, # Animate ani = animation.FuncAnimation(fig, animate, init_func=init, frames=100, interval=100, blit=True) return ani def plot_frames(predictions, groundtruth, inputs, video_n, frames, rot, train=False): inp = inputs.clone() preds = predictions.clone() grtr = groundtruth.clone() bodiesXY = torch.chunk(inp[video_n, frames, :], len(frames), dim=0) pred_bodiesZ = torch.chunk(preds[video_n, frames, :], len(frames), dim=0) true_bodiesZ = torch.chunk(grtr[video_n, frames, :], len(frames), dim=0) nrows = np.ceil(len(frames)/2) fig = plt.figure(figsize=(15, 6*nrows)) fig2 = plt.figure(figsize=(15, 6*nrows)) for frame in range(len(frames)): x = bodiesXY[frame].squeeze()[::2].tolist() y = bodiesXY[frame].squeeze()[1::2].tolist() pred_z = pred_bodiesZ[frame].squeeze().tolist() true_z = true_bodiesZ[frame].squeeze().tolist() r = R.from_euler('y', rot, degrees=True) xyz1, xyz2 = np.asarray([c for c in zip(x, y, pred_z)]), np.asarray([c for c in zip(x, y, true_z)]) xyz1, xyz2 = r.apply(xyz1), r.apply(xyz2) x1, x2 = xyz1[:,0], xyz2[:,0] y1, y2 = xyz1[:,1], xyz2[:,1] pred_z, true_z = xyz1[:,2], xyz2[:,2] if not train: print((x2.max()-x2.min())/(x1.max()-x1.min())) x1 = x1*((x2.max()-x2.min())/(x1.max()-x1.min())) r_arm = tuple([[c[i] for i in [1, 0, 9, 10, 11]] for c in l] for l in [[x1, y1, pred_z], [x2, y2, true_z]]) l_arm = tuple([[c[i] for i in [0, 3, 4, 5]] for c in l] for l in [[x1, y1, pred_z], [x2, y2, true_z]]) r_leg = tuple([[c[i] for i in [0, 2, 12, 13, 14, 22, 23, 24]] for c in l] for l in [[x1, y1, pred_z], [x2, y2, true_z]]) l_leg = tuple([[c[i] for i in [2, 6, 7, 8, 19, 20, 21]] for c in l] for l in [[x1, y1, pred_z], [x2, y2, true_z]]) head = tuple([[c[i] for i in [18, 17, 1, 15, 16]] for c in l] for l in [[x1, y1, pred_z], [x2, y2, true_z]]) ax = fig.add_subplot(nrows, 2, frame+1, projection='3d') ax.plot(r_arm[0][0], r_arm[0][1], r_arm[0][2]) ax.plot(l_arm[0][0], l_arm[0][1], l_arm[0][2]) ax.plot(r_leg[0][0], r_leg[0][1], r_leg[0][2]) ax.plot(l_leg[0][0], l_leg[0][1], l_leg[0][2]) ax.plot(head[0][0], head[0][1], head[0][2]) ax2 = fig2.add_subplot(nrows, 2, frame+1, projection='3d') ax2.plot(r_arm[1][0], r_arm[1][1], r_arm[1][2]) ax2.plot(l_arm[1][0], l_arm[1][1], l_arm[1][2]) ax2.plot(r_leg[1][0], r_leg[1][1], r_leg[1][2]) ax2.plot(l_leg[1][0], l_leg[1][1], l_leg[1][2]) ax2.plot(head[1][0], head[1][1], head[1][2]) lims = ax.get_xlim(), ax.get_ylim(), ax.get_zlim() spans = lims[0][1]-lims[0][0], lims[1][1]-lims[1][0], lims[2][1]-lims[2][0] span = max(spans) margins = [(span-s)/2 for s in spans] ax.set_xlim(lims[0][0]-margins[0], lims[0][1]+margins[0]) ax.set_ylim(lims[1][0]-margins[1], lims[1][1]+margins[1]) ax.set_zlim(lims[2][0]-margins[2], lims[2][1]+margins[2]) lims2 = ax2.get_xlim(), ax2.get_ylim(), ax2.get_zlim() spans2 = lims2[0][1]-lims2[0][0], lims2[1][1]-lims2[1][0], lims2[2][1]-lims2[2][0] span2 = max(spans2) margins2 = [(span2-s)/2 for s in spans2] ax2.set_xlim(lims2[0][0]-margins2[0], lims2[0][1]+margins2[0]) ax2.set_ylim(lims2[1][0]-margins2[1], lims2[1][1]+margins2[1]) ax2.set_zlim(lims2[2][0]-margins2[2], lims2[2][1]+margins2[2]) ax.view_init(elev=-65., azim=-90.) ax2.view_init(elev=-65., azim=-90.) # ### Slice of frames # Now let's plot a sequence of frames of the selected video. We will plot both the groundtruth and the predicted. But first, the output from the network needs to be converted from one-hot encoding to just the label of the predicted bin. # + # Last batches of training -output, inputs, labels-. vid = 1 frames = [100] c_inputs = training_kp[vid].clone() c_labels = training_lbl[vid].clone() c_inputs[:,::2].mul_(training_inpscale[vid, 0]) c_inputs[:,1::2].mul_(training_inpscale[vid, 1]) c_labels.mul_(training_outscale[vid]) # - HTML(plot_and_rotate(c_inputs, c_output, frames, 0).to_html5_video()) c_inputs = tr_inputs[vid].clone() HTML(plot_and_rotate(c_inputs, c_labels, frames, 0).to_html5_video()) # We repeat the same process for the last test batch. # ### Slice of frames # Now let's plot a sequence of frames of the selected video. We will plot both the groundtruth and the predicted. y_pred, y = thresholded_output_transform((tr_predictions.view(-1,BINS,OUTPUT_SIZE//BINS), tr_groundtruth)) y_pred = y_pred.view(tr_predictions.shape) y_pred = torch.transpose(y_pred, 2, 3) y_pred_new = torch.zeros(y_pred.shape[:-1], dtype=torch.long) print(y_pred[0,0]) print(y_pred_new.shape) for i in range(len(y_pred)): for j in range(len(y_pred[i])): for k in range(len(y_pred[i,j])): y_pred_new[i,j,k] = torch.where(y_pred[i,j,k]==1.)[0].item() print(y_pred_new[0,0]) # + frames = [i for i in range(1,9,2)] video_n = 73 c_inputs = tr_inputs.clone() c_output = y_pred_new.clone().float() c_labels = tr_groundtruth.clone().float() print(c_inputs.dtype, c_output.dtype, c_labels.dtype) for vid in range(c_labels.shape[0]): c_inputs[vid,:,::2].mul_(tr_inp_scale[vid, 0]/(c_inputs[vid,:,::2].max()-c_inputs[vid,:,::2].min())) c_inputs[vid,:,1::2].mul_(tr_inp_scale[vid, 1]/(c_inputs[vid,:,1::2].max()-c_inputs[vid,:,1::2].min())) c_output[vid].mul_(tr_out_scale[vid]/21) c_labels[vid].mul_(tr_out_scale[vid]/21) # - plot_frames(c_output, c_labels, c_inputs, video_n, frames, -90, True) y_pred, y = thresholded_output_transform((test_predictions.view(-1,BINS,OUTPUT_SIZE//BINS), test_groundtruth)) y_pred = y_pred.view(test_predictions.shape) y_pred = torch.transpose(y_pred, 2, 3) y_pred_new = torch.zeros(y_pred.shape[:-1], dtype=torch.long) print(y_pred[0,0]) print(y_pred_new.shape) for i in range(len(y_pred)): for j in range(len(y_pred[i])): for k in range(len(y_pred[i,j])): y_pred_new[i,j,k] = torch.where(y_pred[i,j,k]==1.)[0].item() print(y_pred_new[0,0]) # + frames = [i for i in range(1,9,2)] video_n = 17 c_inputs = test_inputs.clone() c_output = y_pred_new.clone().float() c_labels = test_groundtruth.clone().float() for vid in range(c_labels.shape[0]): c_inputs[vid,:,::2].mul_(test_inp_scale[vid, 0]/(c_inputs[vid,:,::2].max()-c_inputs[vid,:,::2].min())) c_inputs[vid,:,1::2].mul_(test_inp_scale[vid, 1]/(c_inputs[vid,:,1::2].max()-c_inputs[vid,:,1::2].min())) c_output[vid].mul_(test_out_scale[vid,0]/21) c_labels[vid].mul_(test_out_scale[vid,1]/21) # - plot_frames(c_output, c_labels, c_inputs, video_n, frames, -90, True) plt.close('all') # + frames = [i for i in range(1,9,2)] video_n = 17 c_inputs = val_inputs.clone() c_output = val_predictions.clone() c_labels = val_groundtruth.clone() for vid in range(c_labels.shape[0]): c_inputs[vid,:,::2].mul_(val_inp_scale[vid, 0]) c_inputs[vid,:,1::2].mul_(val_inp_scale[vid, 1]) c_output[vid].mul_(val_out_scale[vid]) c_labels[vid].mul_(val_out_scale[vid]) c_inputs[vid,:,::2].mul_(val_mom_x[vid, 1]) c_inputs[:,:,1::2].mul_(val_mom_y[vid, 1]) c_output[vid].mul_(val_mom_z[vid]) c_labels[vid].mul_(val_mom_z[vid]) # - plot_frames(c_output, c_labels, c_inputs, video_n, frames, -90)
46,035
/main.ipynb
b95b136a68a72bbab03b557bc8ff7ef2af79bf85
[]
no_license
yanfengliu/CSCE990
https://github.com/yanfengliu/CSCE990
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
228,228
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # # Recursion # --- # # **Recursion:** a method to solve computational problem by relying on smaller instances of a solution to a given problem. # # The logic is that if we have a base case that helps to solves the smaller instance, then the base case solution helps to solve the bigger version of the solution. # # **Example of a common recursive function: Fibonacci Number* # # $fib(n)= fib(n-1) + fib(n-2)$ # # $fib(0) = 0$ # # $fib(1) = 1$ # # | n | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | # | - | - | - | - | - | - | - | - | - | - | - | - | # | fib(n) | 0 | 1 | 1 | 2 | 3 | 5 | 8 | 13 | 21 | 34 | 55 | # # Fibonacci numbers are derived from its past instances. The next value in the fibonacci number sequence is always the sum of the last two values of the sequence. Hence, the fibonacci number sequence is a _recurrence relation_. # # In the function statements above, the n value determines the location of the sequence. Some groups ignore 0th fibonacci number all together; however, we will be keeping it for our definition sake. # # Here is the fibonacci number function in Python: # + # Fibonacci Function def fibonacci(n): if n == 0: return 0 elif n == 1: return 1 else: return fibonacci(n-1) + fibonacci(n-2) print('n=0, fib:', fibonacci(0)) print('n=1, fib:', fibonacci(1)) print('n=2, fib:', fibonacci(2)) print('n=4, fib:', fibonacci(4)) print('n=7, fib:', fibonacci(7)) # - # **Note** # ``` # - This should be our very first time seeing an instance where we return a *function call* # - The original fibonacci(n) is determined by the calculation of fibonacci(n-1) and fibonacci(n-2) # - This will continously occur until we meet the condition of either n == 0 or n == 1 # ``` # ## Basic Idea of Recursion # # Let P be a problem: # - Divide P into two or more subproblems (smaller instances) # - Divide until the subproblems are simple enough to be solved # - All the subproblem solutions are then combined to give a solution to the original problem # - This is a basic program solving approach called: **“[Divide and Conquer Algorithms](https://en.wikipedia.org/wiki/Divide-and-conquer_algorithm)”** # # _This also leads to the basis of “[Dynamic Programming](https://en.wikipedia.org/wiki/Dynamic_programming)”_ # # # # ## How to Design a Recursive Function # # **Recipe**: All recursive algorithms must have the following: # 1. **Base Case** (i.e., when to stop; the simplest solution of the problem) # 2. **Work toward Base Case:** where we make the problem simpler/smaller towards the base case # 3. Recursive Call (i.e., call ourselves) # # **How does it work?** # - In a recursive algorithm, the computer "remembers" every previous state of the problem. # - This information is "held" by the computer on the "activation stack" (i.e., inside of each functions workspace). # - Every function has its own workspace PER CALL of the function. # - Once all the recursive calls are complete, we get our first function call's answer/result # # **Importance of a basecase** # # The base case should hold the simplest solution for the simplest, smallest instance of the problem. # # _Base Case:_ In a recursion algorithm, the problem is broken down to subproblem until we reach the base case. # - Recursion Algorithms can have multiple base cases # - Base cases are considered “end conditions” # # ## Example Problem: Adding all values from N to 1. # # - Let N be an integer value greater than 1 # - recursive_sum(n) will add all values from N to 1 # # **Base Case:** # ``` # N of 0: 0, no calculation needed # N of 1: 1, no calculation needed # ``` # # **For all other N** # ``` # The sum of all numbers below N is N + the recursive_sum of N-1; therefore: # # recursive_sum(n) = n + recursive_sum(n-1) # # This solution is classified as O(n). # ``` # + # Recursive Sum def recursive_sum(n): if n == 0: return 0 elif n == 1: return 1 else: return n + recursive_sum(n-1) # end of recursive_sum print('n=1, result:', recursive_sum(1)) print('n=2, result:', recursive_sum(2)) print('n=4, result:', recursive_sum(4)) print('n=5, result:', recursive_sum(5)) print('n=7, result:', recursive_sum(7)) print('n=11, result:', recursive_sum(11)) # - # ``` # Recursive Sum Execution Summary # # recursive_sum(5) → 5 + recursive_sum(4) # recursive_sum(4) → 4 + recursive_sum(3) # recursive_sum(3) → 3 + recursive_sum(2) # recursive_sum(2) → 2 + recursive_sum(1) # recursive_sum(1) → returns 1 # # recursive_sum(2) → 2 + 1 = 3 # recursive_sum(3) → 3 + 3 = 6 # recursive_sum(4) → 4 + 6 # recursive_sum(5) → 5 + 10 # # recursive_sum(5) returns 15 # ``` # ## Different Types/Properties of Recursion # # ### Single vs Multiple Recursion # # **Single**: It only calls itself once … only invokes one recursion to occur # # recursive_sum(n) = n + recursive_sum(n-1) # # **Multiple**: It can invoke multiple recursion to solve the answer # # fibonacci(n) = fibonacci(n-2) + fibonacci(n-1) # # ### Direct vs Indirect Recursion # # let f and g both be functions # # **Direct**: function f only calls f # # f(x) = f(x-1) # # **Indirect**: function f calls g and function g calls function f; hence, indirectly recursive calls # - If there are more than 2 functions, we can create longer indirect chains # - Some texts will define indirect recursion as mutal recursions # # ``` # f(x) = g(x) ; g(x) = f(x) # ``` # # ## Non-Tail Recursion vs Tail Recursion # # **Non-Tail Recursion:** For this recursion to finish, it must wait for all its recursive function calls to finish their activation stack's execution. # # **Tail Recursion:** The function call is the last thing that a function does. For this recursion to finish, we return a tail because we are affecting the value of the tail at every recursion. # # Tail Recursion is more efficient in terms of memory because it only does calculations at the very last recursive call. # # If you have the chance to write a tail recursion, you should write a tail recursion. # + # Tail Recursive N to 1 summation def tail_recursive_sum(n, tail=0): if n == 0: return tail # we will be modifying this argument with our recursive calls else: return tail_recursive_sum(n-1, tail+n) print('n=1, result:', tail_recursive_sum(1)) print('n=2, result:', tail_recursive_sum(2)) print('n=4, result:', tail_recursive_sum(4)) print('n=5, result:', tail_recursive_sum(5)) print('n=7, result:', tail_recursive_sum(7)) print('n=11, result:', tail_recursive_sum(11)) # - # ``` # Tail Recursive Sum Execution Summary # # tail_recursive_sum(5) → tail_recursive_sum(4, 0+5) # tail_recursive_sum(4,5) → tail_recursive_sum(3, 5+4) # tail_recursive_sum(3,9) → 3 + tail_recursive_sum(2, 9+3) # tail_recursive_sum(2,12) → 2 + recursive_sum(1, 12+2) # tail_recursive_sum(1, 14) → recursive_sum(0, 14+1) # tail_recursive_sum(0, 15) → returns 15 end of recursive call # # ```
7,345
/docs/notebooks/AnomalousSequence.ipynb
468315c2a478ee72f15078321bb39fc33463a032
[ "MIT", "LicenseRef-scancode-generic-cla" ]
permissive
dg2kjb/msticpy
https://github.com/dg2kjb/msticpy
0
1
MIT
2020-08-06T17:56:53
2020-08-06T14:56:34
null
Jupyter Notebook
false
false
.py
2,283,533
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # # Table of Contents # * [msticpy - anomalous_sequence](#msticpy) # * [Sessions explained](#create_sessions) # * [Create sessions using msticpy](#msticpy_ses) # * [Using the sessionize_data function](#sessionize_data) # * [Explain the modelling approach](#explain_model) # * [Using the score_sessions function](#model_function) # * [Advanced: access Model class directly](#model_class) # * [Visualise the modelled sessions](#visualize_function) # * [Using the visualise_scored_sessions function](#visualize_function) # * [Model and visualise sessions in one go](#score_and_visualise_sessions) # * [Using the score_and_visualise_sessions function](#score_and_visualise_sessions) # * [Sessionize other log types using KQL](#other_sessions) # * [Authenticate Log Analytics](#la_auth) # * [Office Activity Logs](#office_sessions) # * [Sessionize using KQL](#office_sessions) # * [Convert sessions into an allowed format for the modelling](#clean_exchange) # * [AWS Cloud Trail Logs](#aws_sessions) # * [Sessionize using KQL](#aws_sessions) # * [Convert sessions into an allowed format for the modelling](#clean_aws) # * [VM Process Logs](#vm_sessions) # * [Sessionize using KQL](#vm_sessions) # * [Convert sessions into an allowed format for the modelling](#clean_vm) # # msticpy - anomalous_sequence subpackage <a id='msticpy'></a> # # Various types of security logs can be broken up into sessions/sequences where each session can be thought of as an ordered sequence of events. It can be useful to model these sessions in order to understand what the usual activity is like so that we can highlight anomalous sequences of events. # # A new subpackage called anomalous_sequence has been released to [msticpy](https://github.com/microsoft/msticpy/tree/master/msticpy/analysis/anomalous_sequence) recently. This library allows the user to sessionize, model and visualize their data via a high level interface. # # This notebook demonstrates the sessionizing, modelling and visualisation on some Office Exchange Admin logs from one of our demo tenants. However there is a section at the end which demonstrates how some other log types can be sessionized as well. # + # Imports from msticpy.nbtools.utility import check_py_version MIN_REQ_PYTHON = (3, 6) check_py_version(MIN_REQ_PYTHON) from typing import List, Dict, Union # setting pandas display options for dataframe import pandas as pd pd.set_option("display.max_rows", 100) pd.set_option("display.max_columns", 50) pd.set_option("display.max_colwidth", 100) # msticpy imports from msticpy.analysis.anomalous_sequence import sessionize from msticpy.analysis.anomalous_sequence.utils.data_structures import Cmd from msticpy.analysis.anomalous_sequence import anomalous from msticpy.analysis.anomalous_sequence.model import Model from msticpy.data import QueryProvider from msticpy.nbtools.wsconfig import WorkspaceConfig # %env KQLMAGIC_LOAD_MODE=silent print('finished the imports') # - # # What is a Session? <a id='create_sessions'></a> # # <b>In this context, a session is an ordered sequence of events/commands. The anomalous_sequence subpackage can handle 3 different formats for each of the sessions:</b> # # 1. sequence of just events/commands.\ # e.g. \["Set-User", "Set-Mailbox"\] <br/><br/> # 2. sequence of events/commands with accompanying parameters.\ # \[Cmd(name="Set-User", params=\{"Identity', "Force"\}), Cmd(name="Set-Mailbox", params=\{"Identity", "AuditEnabled"\})\] <br/><br/> # 3. sequence of events/commands with accompanying parameters and their corresponding values.\ # \[Cmd(name="Set-User", params=\{"Identity": "blahblah", "Force": 'true'\}), Cmd(name="Set-Mailbox", params=\{"Identity": "blahblah", "AuditEnabled": "false"\})\] # # The Cmd datatype can be accessed from <i>msticpy.analysis.anomalous_sequence.utils.data_structures</i> # # Use the sessionize module from msticpy <a id='msticpy_ses'></a> # # In this section, we demonstrate how you can use msticpy to create sessions from your data. # # We read in some office exchange events from one of our demo tenants as a csv. exchange = pd.read_csv('data/demo_exchange_data.csv') exchange.head() # ## If you are only interested in modelling the commands (without the accompanying parameters), then you could skip the next three cells and go straight to the [sessionizing](#sessionize_data). # # The reason for this is because each session is allowed to be either a list of strings, or a list of the Cmd datatype. The "Operation" column is a string already. # # However, if you are interested in including the parameters (and possibly the values), then you need the next two cells. # # We need to define a custom cleaning function which will combine the "Operation" and "Parameters" columns and convert them into one of the [allowed types](#create_sessions). This cleaning function is specific to the format of the exchange demo data which we have read in. Therefore, you may need to tweak it before you can use it on other data sets. # + # let's define a helper function for creating columns which have the Cmd datatype def clean_exchange_params(operation: str, parameters: Union[str, Dict], include_vals: bool): params = parameters if isinstance(parameters, str): params = eval(params) new = dict() for dic in params: new[dic['Name']] = dic['Value'] if include_vals: return Cmd(name=operation, params=new) return Cmd(name=operation, params=set(new.keys())) # + # let's apply the helper function we defined to create columns which have the Cmd datatype exchange['cmd_param'] = exchange.\ apply(lambda x: clean_exchange_params(operation=x['Operation'], parameters=x['Parameters'], include_vals=False), axis=1) exchange['cmd_param_val'] = exchange.\ apply(lambda x: clean_exchange_params(operation=x['Operation'], parameters=x['Parameters'], include_vals=True), axis=1) # - exchange.head() # ## Use the sessionize_data function <a id='sessionize_data'></a> # # We will do this for the first session type (with just commands). # # But because we created columns for all three session types, you can set the "event_col" parameter in the "sessionize_data" function below to any of the following: # # 1. Operation # 2. cmd_param # 3. cmd_param_val # # # <b>Here are some details about the arguments for the sessionize_data function:</b> # # ``` # Help on function sessionize_data in module msticpy.analysis.anomalous_sequence.sessionize: # # sessionize_data(data: pd.DataFrame, user_identifier_cols: List[str], time_col: str, max_session_time_mins: int, max_event_separation_mins: int, event_col: str) -> pd.DataFrame # # Sessionize the input data. # # In particular, the resulting dataframe will have 1 row per session. It will contain the # following columns: the user_identifier_cols, <time_col>_min, <time_col>_max, # <event_col>_list, duration (<time_col>_max - <time_col>_min), number_events (length of the # <event_col>_list value) # # Parameters # ---------- # data: pd.DataFrame # This dataframe should contain at least the following columns: # - time stamp column # - columns related to user name and/or computer name and/or ip address etc # - column containing an event # user_identifier_cols: List[str] # Name of the columns which contain username and/or computer name and/or ip address etc. # Each time the value of one of these columns changes, a new session will be started. # time_col: str # Name of the column which contains a time stamp. # If this column is not already in datetime64[ns, UTC] format, it will be casted to it. # max_session_time_mins: int # The maximum length of a session in minutes. If a sequence of events for the same # user_identifier_cols values exceeds this length, then a new session will be started. # max_event_separation_mins: int # The maximum length in minutes between two events in a session. If we have 2 events for # the same user_identifier_cols values, and if those two events are more than # `max_event_separation_mins` apart, then a new session will be started. # event_col: str # Name of the column which contains the event of interest. # For example, if we are interested in sessionizing exchange admin commands, # the "event_col" could contain values like: "Set-Mailbox" or "Set-User" etc. # # Returns # ------- # pd.DataFrame containing the sessionized data. 1 row per session. # # ``` # # # + # sessionize the data sessions_df = sessionize.sessionize_data( data=exchange, user_identifier_cols=['UserId', 'ClientIP'], time_col='TimeGenerated', max_session_time_mins=20, max_event_separation_mins=2, event_col='Operation' ) # - sessions_df.shape sessions_df.head() # # Model the sessions <a id='explain_model'></a> # # We will give a brief description of how the modelling works under the hood for each of the three session types. # # * <b>Commands only</b> # - We treat the sessions as an ordered sequence of commands. # - We apply the Markov assumption where we assume each command depends only on the command immediately before it. # - This means the likelihood of each session can be computed by multiplying a sequence of transition probabilities together. # - We use a sliding window (e.g. of length 3) throughout each session and then use the likelihood of the rarest window as the score for the session.<br/><br/> # * <b>Commands with Parameters</b> # - All of the above ("commands only" case) except for one difference. # - This time, we include the parameters in the modelling. # - We make the assumption that the presence of each parameter is independent conditional on the command. # - We therefore model the presence of the parameters as independent Bernoulli random variables (conditional on the command) # - So to compute the likelihood of a session, each transition probability (of the commands) will be accompanied by a product of probabilities (for the parameters). # - A subtlety to note, is that we take the geometric mean of the product of parameter probabilities. This is so we don't penalise commands which happen to have more parameters set than on average. # - We use the same sliding window approach used with the "commands only" case. <br/><br/> # * <b>Commands with Parameters and their Values</b> # - All of the above ("commands with parameters" case) except for one difference. # - This time, we include the values in the modelling. # - Some rough heuristics are used to determine which parameters have values which are categorical (e.g. "true" and "false" or "high", "medium" and "low") vs values which are arbitrary strings (such as email addresses). There is the option to override the "modellable_params" directly in the Model class. # - We also make the assumption that the values depend only on the parameters and not on the command. # - So to compute the likelihood of a session, each transition probability (of the commands) will be accompanied by a product of probabilities (for the parameters and categorical values). # - We use the same sliding window approach used with the "commands only" case. # # # #### Important note: # If you set the window length to be k, then only sessions which have at least k-1 commands will have a valid (not np.nan) score. The reason for the -1 is because we append an end token to each session by default, so a session of length k-1 gets treated as length k during the scoring. # # # ## There are 3 high level functions available in this library # # 1. score_sessions # 2. visualize_scored_sessions # 3. score_and_visualize_sessions # ## We will first demonstrate the high level function for modelling the sessions. <a id='model_function'></a> # # We will do this for the "Commands Only" session type. # # But depending on which column you chose as the event_col in the [sessionize_data function](#sessionize_data), # you could set the "session_column" parameter in the "score_sessions" function below to any of the following: # # 1. Operation_list # 2. cmd_param_list # 3. cmd_param_val_list # # <b>Here are some details about the arguments for the score_sessions function:</b> # # ``` # Help on function score_sessions in module msticpy.analysis.anomalous_sequence.anomalous: # # score_sessions(data: pd.DataFrame, session_column: str, window_length: int) -> pd.DataFrame # # Model sessions using a sliding window approach within a markov model. # # Parameters # ---------- # data: pd.DataFrame # Dataframe which contains at least a column for sessions # session_column: str # name of the column which contains the sessions # The values in the session column should take one of the following formats: # examples formats of a session: # 1) ['Set-User', 'Set-Mailbox'] # 2) [Cmd(name='Set-User', params={'Identity', 'Force'}), # Cmd(name='Set-Mailbox', params={'Identity', 'AuditEnabled'})] # 3) [Cmd( # name='Set-User', # params={'Identity': 'blahblah', 'Force': 'true'} # ), # Cmd( # name='Set-Mailbox', # params={'Identity': 'blahblah', 'AuditEnabled': 'false'} # )] # The Cmd datatype can be accessed from # anomalous_sequence.utils.data_structures.Cmd # window_length: int # length of the sliding window to use when computing the likelihood # metrics for each session. # This should be set to an integer >= 2. Note that sessions which have # fewer commands than the chosen window_length + 1 will end up with a # np.nan score. (The + 1 is because we append a dummy `end_token` to each # session before starting the sliding window, so a session of length 2, # would be treated as length 3) # # Returns # ------- # input dataframe with two additional columns appended. # # ``` # # + # This function will return a dataframe with two additonal columns appended: # "rarest_window3_likelihood" and "rarest_window3" modelled_df = anomalous.score_sessions( data=sessions_df, session_column='Operation_list', window_length=3 ) # + # Let's view the resulting dataframe in ascending order of the computed likelihood metric modelled_df.sort_values('rarest_window3_likelihood').head() # + # we can view individual sessions in more detail modelled_df.sort_values('rarest_window3_likelihood').rarest_window3.iloc[0] # - # # Now we demonstrate the visualization component of the library <a id='visualize_function'></a> # # We do this using the "visualise_scored_sessions" function. This function returns an interactive timeline plot which allows you to zoom into different sections etc. # # * The time of the session will be on the x-axis. # * The computed likelihood metric will be on the y-axis. # * lower likelihoods correspond to rarer sessions. # # <b>Important note</b>: # # During the scoring/modelling stage, if you set the window length to be k, then only sessions which have at least k-1 commands will appear in the interactive timeline plot. This is because sessions with fewer than k-1 commands will have a score of np.nan. The reason for the -1 is because we append an end token to each session by default, so a session of length k-1 gets treated as length k during the scoring. # # <b>Here are some details about the arguments for the visualise_scored_sessions function:</b> # # ``` # Help on function visualise_scored_sessions in module msticpy.analysis.anomalous_sequence.anomalous: # # visualise_scored_sessions(data_with_scores: pandas.core.frame.DataFrame, time_column: str, score_column: str, window_column: str, score_upper_bound: float = None, source_columns: list = None) # # Visualise the scored sessions on an interactive timeline. # # Parameters # ---------- # data_with_scores: pd.DataFrame # Dataframe which contains at least columns for time, # session score, window representing the session # time_column: str # name of the column which contains a timestamp # score_column: str # name of the column which contains a numerical score for each # of the sessions # window_column: str # name of the column which contains a representation of each of the sessions. # This representation will appear in the tooltips in the figure. # For example, it could be the rarest window of the session, # or the full session etc. # score_upper_bound: float, optional # an optional upper bound on the score for the visualisation figure. # This can help to zoom in on the more anomalous sessions # source_columns: list, optional # an optional list of source columns to include in the tooltips # in the visualisation. # Note, the content of each of these columns should be json serializable # in order to be compatible with the figure # # Returns # ------- # figure # ``` # # + # visualise the scored sessions in an interactive timeline plot. anomalous.visualise_scored_sessions( data_with_scores=modelled_df, time_column='TimeGenerated_min', # this will appear in the x-axis score_column='rarest_window3_likelihood', # this will appear on the y-axis window_column='rarest_window3', # this will represent the session in the tool-tips source_columns=['UserId', 'ClientIP'] # specify any additonal columns to appear in the tool-tips ) # - # ## Now we demonstrate how you can score and visualise your sessions in one go. <a id='score_and_visualise_sessions'></a> # # We will do this for the "Commands only" session type. # # But depending on which column you chose as the event_col in the [sessionize_data function](#sessionize_data), # you could set the "session_column" parameter in the "score_and_visualise_sessions" function below to any of the following: # # 1. Operation_list # 2. cmd_param_list # 3. cmd_param_val_list # # <b>Here are some details about the arguments for the score_and_visualise_sessions function:</b> # # ``` # Help on function score_and_visualise_sessions in module msticpy.analysis.anomalous_sequence.anomalous: # # score_and_visualise_sessions(data: pandas.core.frame.DataFrame, session_column: str, window_length: int, time_column: str, likelihood_upper_bound: float = None, source_columns: list = None) # # Model sessions and then produce an interactive timeline visualisation plot. # # In particular, the sessions are modelled using a sliding window approach # within a markov model. The visualisation plot has time on the x-axis and # the modelled session likelihood metric on the y-axis. # # Parameters # ---------- # data: pd.DataFrame # Dataframe which contains at least columns for time and sessions # session_column: str # name of the column which contains the sessions # The values in the session column should take one of the following formats: # examples formats of a session: # 1) ['Set-User', 'Set-Mailbox'] # 2) [Cmd(name='Set-User', params={'Identity', 'Force'}), # Cmd(name='Set-Mailbox', params={'Identity', 'AuditEnabled'})] # 3) [Cmd( # name='Set-User', # params={'Identity': 'blahblah', 'Force': 'true'} # ), # Cmd( # name='Set-Mailbox', # params={'Identity': 'blahblah', 'AuditEnabled': 'false'} # )] # The Cmd datatype can be accessed from # seqeunce.utils.data_structures.Cmd # window_length: int # length of the sliding window to use when computing the # likelihood metrics for each session. # # This should be set to an integer >= 2. # Note that sessions which have fewer commands than the chosen # window_length + 1 will not appear in the visualisation. (The + 1 is # because we append a dummy `end_token` to each session before starting # the sliding window, so a session of length 2, would be treated as length # 3) # time_column: str # name of the column which contains a timestamp # likelihood_upper_bound: float, optional # an optional upper bound on the likelihood metrics for the visualisation # plot. This can help to zoom in on the more anomalous sessions # source_columns: list, optional # An optional list of source columns to include in the tooltips # in the visualisation. # Note, the content of each of these columns should be json # serializable in order to be compatible with the figure # # Returns # ------- # figure # ``` # + # let's model and visualise these sessions in one go anomalous.score_and_visualise_sessions( data=sessions_df, session_column='Operation_list', window_length=3, time_column='TimeGenerated_min', source_columns=['UserId', 'ClientIP'] ) # - # # Advanced Users: Access the Model Class Directly <a id='model_class'></a> # # Users who would like to configure arguments related to whether start and end tokens are used or whether the geometric mean is computed, can access the Model class directly. # # There is also the option to specify the modellable_params argument if you do not wish for rough heuristics to be used to determine which parameters take categorical values and are hence suitable for modelling. If you wish to experiment with modelling the values of all the parameters (categorical + arbitrary strings), then you can use this argument to do so. # # <b>Here are some details about the methods available for the Model class:</b> # # ``` # Help on class Model in module msticpy.analysis.anomalous_sequence.model: # # class Model(builtins.object) # | Model(sessions: List[List[Union[str, msticpy.analysis.anomalous_sequence.utils.data_structures.Cmd]]], modellable_params: set = None) # | # | Class for modelling sessions data. # | # | Methods defined here: # | # | __init__(self, sessions: List[List[Union[str, msticpy.analysis.anomalous_sequence.utils.data_structures.Cmd]]], modellable_params: set = None) # | Instantiate the Model class. # | # | This Model class can be used to model sessions, where each # | session is a sequence of commands. We use a sliding window # | approach to calculate the rarest part of each session. We # | can view the sessions in ascending order of this metric to # | see if the top sessions are anomalous/malicious. # | # | Parameters # | ---------- # | sessions: List[List[Union[str, Cmd]]] # | list of sessions, where each session is a list of either # | strings or a list of the Cmd datatype. # | # | The Cmd datatype should have "name" and "params" as attributes # | where "name" is the name of the command (string) and "params" # | is either a set of accompanying params or a dict of # | accompanying params and values. # | # | examples formats of a session: # | 1) ['Set-User', 'Set-Mailbox'] # | 2) [Cmd(name='Set-User', params={'Identity', 'Force'}), # | Cmd(name='Set-Mailbox', params={'Identity', 'AuditEnabled'})] # | 3) [Cmd( # | name='Set-User', # | params={'Identity': 'blahblah', 'Force': 'true'} # | ), # | Cmd(name='Set-Mailbox', # | params={'Identity': 'blahblah', 'AuditEnabled': 'false'})] # | modellable_params: set, optional # | set of params which you deem to have categorical values which are suitable # | for modelling. # | Note this argument will only have an effect if your sessions include commands, # | params and values. If your sessions include commands, params and values and # | this argument is not set, then some rough heuristics will be used to determine # | which params have values which are suitable for modelling. # | # | compute_geomean_lik_of_sessions(self) # | Compute the geometric mean of the likelihood for each of the sessions. # | # | This is done by raising the likelihood of the session to the power of # | (1 / k) where k is the length of the session. # | # | Note: If the lengths (number of commands) of the sessions vary a lot, # | then you may not be able to fairly compare the likelihoods between a # | long session and a short session. This is because longer sessions # | involve multiplying more numbers together which are between 0 and 1. # | Therefore the length of the session will be negatively correlated with # | the likelihoods. If you take the geometric mean of the likelihood, then # | you can compare the likelihoods more fairly across different session # | lengths. # | # | compute_likelihoods_of_sessions(self, use_start_end_tokens: bool = True) # | Compute the likelihoods for each of the sessions. # | # | Note: If the lengths (number of commands) of the sessions vary a lot, # | then you may not be able to fairly compare the likelihoods between a # | long session and a short session. This is because longer sessions # | involve multiplying more numbers together which are between 0 and 1. # | Therefore the length of the session will be negatively correlated with # | the likelihoods. If you take the geometric mean of the likelihood, then # | you can compare the likelihoods more fairly across different session # | lengths # | # | Parameters # | ---------- # | use_start_end_tokens: bool # | if True, then `start_token` and `end_token` will be prepended # | and appended to the session respectively before the calculations # | are done # | # | compute_rarest_windows(self, window_len: int, use_start_end_tokens: bool = True, use_geo_mean: bool = False) # | Find the rarest window and corresponding likelihood for each session. # | # | In particular, uses a sliding window approach to find the rarest window # | and corresponding likelihood for that window for each session. # | # | If we have a long session filled with benign activity except for a small # | window of suspicious behaviour, then this approach should be able to # | identity the session as anomalous. This approach should be more # | effective than simply taking the geometric mean of the full session # | likelihood. This is because the small window of suspicious behaviour # | might get averaged out by the majority benign behaviour in the session # | when using the geometric mean approach. # | # | Note that if we have a session of length k, and we use a sliding window # | of length k+1, then we will end up with np.nan for the rarest window # | likelihood metric for that session. However, if `use_start_end_tokens` # | is set to True, then because we will be appending self.end_token to the # | session, the session will be treated as a session of length k+1, # | therefore, we will end up with a non np.nan value. # | # | Parameters # | ---------- # | window_len: int # | length of sliding window for likelihood calculations # | use_start_end_tokens: bool # | if True, then `start_token` and `end_token` will be prepended # | and appended to each # | session respectively before the calculations are done # | use_geo_mean: bool # | if True, then each of the likelihoods of the sliding windows # | will be raised to the power # | of (1/`window_len`) # | # | compute_scores(self, use_start_end_tokens: bool) # | Compute some likelihood based scores/metrics for each of the sessions. # | # | In particular, computes the likelihoods and geometric mean of # | the likelihoods for each of the sessions. Also, uses the sliding # | window approach to compute the rarest window likelihoods for each # | of the sessions. It does this for windows of length 2 and 3. # | # | Note that if we have a session of length k, and we use a sliding # | window of length k+1, then we will end up with np.nan for the # | rarest window likelihood metric for that session. # | However, if `use_start_end_tokens` is set to True, then # | because we will be appending self.end_token to the session, # | the session will be treated as a session of length k+1, # | therefore, we will end up with a non np.nan value for that session. # | # | Parameters # | ---------- # | use_start_end_tokens: bool # | if True, then self.start_token and self.end_token will be # | prepended and appended to each # | of the sessions respectively before the calculations are done. # | # | compute_setof_params_cond_cmd(self, use_geo_mean: bool) # | Compute likelihood of combinations of params conditional on the cmd. # | # | In particular, go through each command from each session and # | compute the probability of that set of params (and values if provided) # | appearing conditional on the command. # | # | This can help us to identify unlikely combinations of params # | (and values if provided) for each distinct command. # | # | Note, this method is only available if each session is a list # | of the Cmd datatype. It will result in an Exception if you # | try and use it when each session is a list of strings. # | # | Parameters # | ---------- # | use_geo_mean: bool # | if True, then the probabilities will be raised to # | the power of (1/K) # | case1: we have only params: # | Then K is the number of distinct params which appeared # | for the given cmd across all the sessions. # | case2: we have params and values: # | Then K is the number of distinct params which appeared # | for the given cmd across all the sessions + the number # | of values which we included in the modelling for this cmd. # | # | train(self) # | Train the model by computing counts and probabilities. # | # | In particular, computes the counts and probabilities of the commands # | (and possibly the params if provided, and possibly the values if provided) # | # ``` # model = Model(sessions=sessions_df.Operation_list.values.tolist()) model.train() model.compute_rarest_windows(window_len=2) model.rare_window_likelihoods[2][:5] # # Sessionize Some Other Types of Logs using KQL <a id='other_sessions'></a> # # The aim of this section is to provide some starter guidance on how one might start to sessionize + model some other types of logs. # # In order to do the sessionizing using KQL, we use the [row_window_session](https://docs.microsoft.com/en-us/azure/data-explorer/kusto/query/row-window-session-function) function. # # # # <b>Important note</b>: Throughout this section, the decisions made about which columns should be interpreted as commands/events and parameters are entirely subjective and alternative approaches may also be valid. # # ## Using LogAnalytics Query Provider <a id='la_auth'></a> # # msticpy has a QueryProvider class which you can use to connect to your Log Analytics data environment. # Try to read workspace configuration from msticpyconfig.yaml, and then authenticate try: ws_config = WorkspaceConfig(workspace='Default') qry_prov = QueryProvider(data_environment="LogAnalytics") qry_prov.connect(connection_str=ws_config.code_connect_str) except: print('There is an issue with reading in the config file. Please fill in the following manually.') tenant_id = input("Please enter your Log Analytics tenant id:") workspace_id = input("Please enter your Log Analytics workspace id:") la_connection_string = 'loganalytics://code().tenant("{}").workspace("{}")'.format(tenant_id, workspace_id) qry_prov = QueryProvider(data_environment="LogAnalytics") qry_prov.connect(connection_str=la_connection_string) # ## Sessionize Office Activity Logs <a id='office_sessions'></a> # # The cell below contains a kusto query which queries the OfficeActivity table in Log Analytics. In this example, we wish for the sessions to be on a per UserId - ClientIP basis. In addition, we require that each session be no longer than 20 minutes in total, with each command no more than 2 minutes apart from each other. (These requirements can be adjusted for different data-sets/use-cases etc). # # # <b>Here are some high level steps to the query:</b> # # - Add a time filter which goes back far enough so you have enough data to train the model. # - Filter to the desired type of logs. # - Exclude some known automated users (optional) # - Sort the rows by UserId, ClientIp, TimeGenerated in ascending order # - Use the native KQL function row_window_session to create an additional "begin" column to aid creating the sessions # - Summarize the commands (and optionally parameters) by UserId, ClientIp, begin # - Optionally exclude sessions which have only 1 command # # Note that in KQL, comments are made using // # write kql query query = """ let time_back = 60d; OfficeActivity | where TimeGenerated >= ago(time_back) // // filter to the event type of interest | where RecordType == 'ExchangeAdmin' // // exclude some known automated users | where UserId !startswith "NT AUTHORITY" and UserId !contains "prod.outlook.com" // // create new dynamic variable with the command as the key, and the parameters as the values | extend params = todynamic(strcat('{"', Operation, '" : ', tostring(Parameters), '}')) | project TimeGenerated, UserId, ClientIP, Operation, params // // sort by the user related columns and the timestamp column in ascending order | sort by UserId asc, ClientIP asc, TimeGenerated asc // // calculate the start time of each session into the "begin" variable // With each session max 20 mins in length with each event at most 2 mins apart. // A new session is created each time one of the user related columns change. | extend begin = row_window_session(TimeGenerated, 20m, 2m, UserId != prev(UserId) or ClientIP != prev(ClientIP)) // // summarize the operations and the params by the user related variables and the "begin" variable | summarize cmds=makelist(Operation), end=max(TimeGenerated), nCmds=count(), nDistinctCmds=dcount(Operation), params=makelist(params) by UserId, ClientIP, begin // //optionally specify an order to the final columns | project UserId, ClientIP, nCmds, nDistinctCmds, begin, end, duration=end-begin, cmds, params // // optionally filter out sessions which contain only one event //| where nCmds > 1 """ # execute the queryl exchange_df = qry_prov.exec_query(query=query) # I comment out this cell and run it again once it has run to prevent the notebook from slowing down try: print(exchange_df.shape) except AttributeError as e: exchange_df = _kql_raw_result_.to_dataframe() print(exchange_df.shape) exchange_df.head() # ### Convert Exchange Sessions to Correct Format for the Model <a id='clean_exchange'></a> # # Recall the allowed session types [here](#create_sessions) # # <b>So let's see what needs to be done to the exchange_df</b> # # - The "cmds" column is already in a suitable format of type (1). This is because it is a list of strings. # - If we wish to also include the parameters (and optionally the corresponding values) to the model, then we need to transform the "params" column slightly # + # define a helper function for converting the sessions with params (and values) into a suitable format def process_exchange_session(session_with_params: [List[Dict[str, List[Dict[str, str]]]]], include_vals: bool) -> List[Cmd]: """ Converts an exchange session with params to an allowed format. param session_with_params: example format: [ {'Set-Mailbox': [{'Name': 'MessageCopyForSentAsEnabled', 'Value': 'True'}, {'Name': 'Identity', 'Value': '[email protected]'}]} ] param include_vals: if True, then it will be transformed to a format which includes the values, else the output will just contain the parameters return: list of the Cmd data type which includes either just the parameters, or also the corresponding values """ new_ses = [] for cmd in session_with_params: c = list(cmd.keys())[0] par = list(cmd.values())[0] new_pars = set() if include_vals: new_pars = dict() for p in par: if include_vals: new_pars[p['Name']] = p['Value'] else: new_pars.add(p['Name']) new_ses.append(Cmd(name=c, params=new_pars)) return new_ses # + # let's create suitable sessions for params, and suitable sessions for params + values sessions = exchange_df.cmds.values.tolist() param_sessions = [] param_value_sessions = [] for ses in exchange_df.params.values.tolist(): new_ses_set = process_exchange_session(session_with_params=ses, include_vals=False) new_ses_dict = process_exchange_session(session_with_params=ses, include_vals=True) param_sessions.append(new_ses_set) param_value_sessions.append(new_ses_dict) # + # let's see the differences between the three types of sessions ind = 0 print(sessions[ind][:3]) print(param_sessions[ind][:3]) print(param_value_sessions[ind][:3]) # - # let's add these reformatted sessions as columns to a dataframe data = exchange_df data['session'] = sessions data['param_session'] = param_sessions data['param_value_session'] = param_value_sessions # ### Now we will model and visualise these sessions in one go. # # We do this using the <b>score_and_visualise_sessions</b> function. # # Since we created columns for all 3 session types, the session_column argument can be set to any of the following: # # - session # - param_session # - param_value_session # + # let's model and visualise these sessions in one go anomalous.score_and_visualise_sessions( data=data, session_column='param_session', window_length=3, time_column='begin', source_columns=['UserId', 'ClientIP'] ) # - # ## Sessionize AWS Cloud Trail Logs <a id='aws_sessions'></a> # # The cell below contains a kusto query which queries the AWSCloudTrail table in Log Analytics. In this example, we wish for the sessions to be on a per UserId - ClientIP - UserAgent - role basis. In addition, we require that each session be no longer than 20 minutes in total, with each command no more than 2 minutes apart from each other. (These requirements can be adjusted for different data-sets/use-cases etc). # # Note we choose a much shorter time_back in this KQL query. This is just because the AWS Cloud Trail logs have a lot more data when compared with the exchange admin logs for this demo tenant. We therefore choose a shorter time back purely to prevent this demo notebook from slowing down. query = """ let time_back = 1d; AWSCloudTrail | where TimeGenerated >= ago(time_back) // // filter to the event type of interest | where EventTypeName == 'AwsApiCall' // // optionally exclude some rows which are not suitable for your use case | where UserIdentityPrincipalid != '' and SessionIssuerUserName != '' // // create dynamic param variable which has the EventName as the key and the RequestParameters as the values | extend par = iff(RequestParameters == '', '{}', RequestParameters) | extend param = todynamic(strcat('{"', EventName, '": ', tostring(par), '}')) // // rename some columns | project TimeGenerated, Operation=EventName, UserId=UserIdentityPrincipalid, ClientIP=SourceIpAddress, UserAgent, role=SessionIssuerUserName, param // // sort by the user related columns and the timestamp column in ascending order | order by UserId asc, ClientIP asc, UserAgent asc, role asc, TimeGenerated asc // // calculate the start time of each session into the "begin" variable // With each session max 20 mins in length with each event at most 2 mins apart. // A new session is created each time one of the user related columns change. | extend begin = row_window_session(TimeGenerated, 20m, 2m, UserId != prev(UserId) or ClientIP != prev(ClientIP) or UserAgent != prev(UserAgent) or role != prev(role)) // // summarize the operations and the params by the user related variables and the "begin" variable | summarize cmds=makelist(Operation), end=max(TimeGenerated), nCmds=count(), nDistinctCmds=dcount(Operation), UserAgent=any(UserAgent), role=any(role), params=makelist(param) by UserId, ClientIP, begin // // optionally specify an order to the final columns | project UserId, ClientIP, nCmds, nDistinctCmds, begin, end, duration=end-begin, role, UserAgent, cmds, params // //optionally filter out sessions which contain only one event | where nCmds > 1 """ # execute the query aws_df = qry_prov.exec_query(query=query) # I comment out this cell and run it again once it has run to prevent the notebook from slowing down try: print(aws_df.shape) except AttributeError as e: aws_df = _kql_raw_result_.to_dataframe() print(aws_df.shape) aws_df.head() # ### Convert AWS sessions to the correct format for the model <a id='clean_aws'></a> # # Recall the allowed session types [here](#create_sessions) # # <b>So let's see what needs to be done to the aws_df</b> # # The "cmds" column is already in a suitable format of type (1). This is because it is a list of strings. # If we wish to also include the parameters (and optionally the corresponding values) to the model, then we need to transform the "params" column slightly # + # define a helper function for converting the sessions with params (and values) into a suitable format def process_aws_session(session_with_params: List[Dict[str, Dict[str, any]]], include_vals: bool) -> List[Cmd]: """ Converts an aws session with params to an allowed format. param session_with_params: example format: [ {'GetAuthorizationToken': {'registryIds': ['123456']}}, {'GetAuthorizationToken': {'registryIds': ['123456', '654321']}} ] Note that the accompanying values for the parameters can take dynamic types like dict, list etc. However, when we transform the aws session into an allowed format, the value will be cast into a string type. param include_vals: if True, then it will be transformed to a format which includes the values, else the output will just contain the parameters return: list of the Cmd data type which includes either just the parameters, or also the corresponding values """ new_ses = [] for cmd in session_with_params: c = list(cmd.keys())[0] par = list(cmd.values())[0] new_pars = set() if include_vals: new_pars = dict() for p, v in par.items(): if include_vals: new_pars[p] = str(v) else: new_pars.add(p) new_ses.append(Cmd(name=c, params=new_pars)) return new_ses # + # let's create suitable sessions for params, and suitable sessions for params + values sessions = aws_df.cmds.values.tolist() param_sessions = [] param_value_sessions = [] for ses in aws_df.params.values.tolist(): new_ses_set = process_aws_session(session_with_params=ses, include_vals=False) new_ses_dict = process_aws_session(session_with_params=ses, include_vals=True) param_sessions.append(new_ses_set) param_value_sessions.append(new_ses_dict) # + # let's see the differences between the three types of sessions ind = 0 print(sessions[ind][:3]) print(param_sessions[ind][:3]) print(param_value_sessions[ind][:3]) # - # let's add these reformatted sessions as columns to a dataframe data = aws_df data['session'] = sessions data['param_session'] = param_sessions data['param_value_session'] = param_value_sessions # ### Now we will model and visualise these sessions in one go. # # We do this using the <b>score_and_visualise_sessions</b> function. # # As before, since we created columns for all 3 session types, the session_column argument can be set to any of the following: # # - session # - param_session # - param_value_session # + # let's model and visualise these sessions in one go anomalous.score_and_visualise_sessions( data=data, session_column='param_session', window_length=3, time_column='begin', source_columns=['UserId', 'ClientIP'] ) # - # ## Sessionize VM Process Logs <a id='vm_sessions'></a> # # The cell below contains a kusto query which queries the VMProcess table in Log Analytics. In this example, we wish for the sessions to be on a per UserId - Computer basis. In addition, we require that each session be no longer than 20 minutes in total, with each command no more than 2 minutes apart from each other. (These requirements can be adjusted for different data-sets/use-cases etc). # # Note that in the examples for [Office Activity](#office_sessions) and [AWS Cloud Trail](#aws_sessions) logs, it was fairly clear cut from the data what we could use as parameters for each of the events/commands. However, for the VM Process Logs, it is less clear. # # Some possible approaches: # # 1. The command line entries are provided. So a possible approach could be to parse the command line logs into the commands used and their accompanying parameters. # 2. The executable name could be used as the event/command <br> # a) The services associated with the executable could be used as the parameters <br> # b) Or we could use a combination of some other columns as the parameters # # In this example, we apply approach (2b). In particular, we use "ExecutableName" as the event/command, and the following columns as parameters: "DisplayName", "ProductName", "Group", "ProductVersion", "ExecutablePath". # # <b>Important note:</b><br> # Some modelling assumptions are made in the anomalous_sequence subpackage of msticpy. # # In particular, when we model the third session type (command + params + values), we make the assumption that the values depend only on the parameter and not on the command. # # This means if we were to treat the parameters as a dictionary for example: # # Cmd(name="miiserver", params={"ProductVersion": "123542", "ExecutablePath": "a/path"}) # # Then the value "123542" will be conditioned only on param "ProductVersion" and value "a/path" will be conditioned only on param "ExecutablePath". But since ProductVersion, and ExecutablePath parameters will be present for all the events, this is not useful. We want the values to be conditioned on the executable. # # Therefore, for this approach, we will use the second session type (command + params). For example: # # Cmd(name="miiserver", params={"123542", "a/path"}) # # Now, the presence of "123542" and "a/path" will be modelled independently conditional on the executable "miiserver" # # (note, this modification is still not perfect, since "123542" and "a/path" will each be modelled as Bernoulli instead of categorical. But this approach should hopefully still be affective at downscoring the likelihood of the rarer param settings conditional on the executable.) # # # query = """ let time_back = 7d; VMProcess | where TimeGenerated >= ago(time_back) // // exclude some known automated users | where UserDomain != 'NT AUTHORITY' | extend UserId = strcat(UserName, '--', UserDomain) | where UserId != "--" // // replace backwards slash with forward slash in ExecutablePath and make it lower case | extend path = replace(@'\\\\', @'/',tolower(ExecutablePath)) // // create dynamic params variable which has the ExecutableName as the key and some other columns as the values | extend params = todynamic(strcat('{"', ExecutableName, '": ["', DisplayName, '", "', ProductName, '", "', Group,'", "', ProductVersion, '", "', path, '"]}')) // // keep only the needed columns | project TimeGenerated, Computer, UserId, ExecutableName, params // // sort by the user related columns and the timestamp column in ascending order | sort by UserId asc, Computer asc, TimeGenerated asc // // calculate the start time of each session into the "begin" variable // With each session max 20 mins in length with each event at most 2 mins apart. // A new session is created each time one of the user related columns change. | extend begin = row_window_session(TimeGenerated, 20m, 2m, UserId != prev(UserId) or Computer != prev(Computer)) // // summarize the executables and the params by the user related variables and the "begin" variable | summarize executables=makelist(ExecutableName), end=max(TimeGenerated), nExecutables=count(), nDistinctExecutables=dcount(ExecutableName), params=makelist(params) by UserId, Computer, begin // // optionally specify an order to the final columns | project UserId, Computer, nExecutables, nDistinctExecutables ,begin, end, duration=end-begin, executables, params // //optionally filter out sessions which contain only one event //| where nExecutables > 1 """ # execute the query vm_df = qry_prov.exec_query(query=query) # I comment out this cell and run it again once it has run to prevent the notebook from slowing down try: print(vm_df.shape) except AttributeError as e: vm_df = _kql_raw_result_.to_dataframe() print(vm_df.shape) vm_df.head() # ### Convert VM Process sessions to the correct format for the model <a id='clean_vm'></a> # # Recall the allowed session types [here](#create_sessions) # # <b>So let's see what needs to be done to the vm_df</b> # # The "executables" column is already in a suitable format of type (1). This is because it is a list of strings. # If we wish to also include the parameters to the model, then we need to transform the "params" column slightly. # + # define a helper function for converting the sessions with params into a suitable format def process_vm_session(session_with_params: List[Dict[str, Dict[str, any]]]) -> List[Cmd]: """ Converts a vm session with params to an allowed format. param session_with_params: example format: [{'Explorer': ['Explorer','Microsoft® Windows® Operating System', 'Microsoft® Windows® Operating System', '10.0.14393.0', 'c:/windows/explorer.exe']}] return: list of the Cmd data type which includes the parameters """ new_ses = [] for cmd in session_with_params: c = list(cmd.keys())[0] par = list(cmd.values())[0] new_pars = set(par) new_ses.append(Cmd(name=c, params=new_pars)) return new_ses # + # let's create suitable sessions for params sessions = vm_df.executables.values.tolist() param_sessions = [] for ses in vm_df.params.values.tolist(): new_ses_set = process_vm_session(session_with_params=ses) param_sessions.append(new_ses_set) # + # let's see the differences between the two types of sessions ind = 0 print(sessions[ind]) print(param_sessions[ind]) # - # let's add these reformatted sessions as columns to a dataframe data = vm_df data['session'] = sessions data['param_session'] = param_sessions # ### Now we will model and visualise these sessions in one go. # # We do this using the <b>score_and_visualise_sessions</b> function. # # As before, since we created columns for 2 of the 3 session types, the session_column argument can be set to any of the following: # # - session # - param_session # + # let's model and visualise these sessions in one go anomalous.score_and_visualise_sessions( data=data, session_column='param_session', window_length=3, time_column='begin', source_columns=['UserId', 'Computer'] )
52,768
/Probelm Set 2/Problem Set 2.ipynb
caee3c381ac0883a7d99644af32709feb11d4f0d
[]
no_license
Mgallese97/Data-Science-in-Practice
https://github.com/Mgallese97/Data-Science-in-Practice
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
53,738
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # # <center style="font-size:140%;"> Report - Problem Set #*2* # <center> Group Members: Giacomo Martiriggiano, Mattia Gallese, Sophie De Becker, Yao Di # This Jupyter Notebook will outline the data cleaning process and binary classification for the churn factor of customers.csv for the assignment # ## Data loading #import modules needed for data analysis import pandas as pd import matplotlib.pyplot as plt import numpy as np import seaborn as sns from sklearn.preprocessing import MinMaxScaler, StandardScaler from sklearn.linear_model import LogisticRegression, LinearRegression from sklearn.model_selection import train_test_split, KFold, GridSearchCV from sklearn.metrics import recall_score, accuracy_score, precision_score, confusion_matrix, classification_report from sklearn.ensemble import RandomForestClassifier from sklearn import svm #read the csv file to transfer all the data into "data" data = pd.read_csv('customers.csv') # ## Data Cleaning # We keep the data cleaning process as what we did for the Problem Set 1. # The first step is to remove the empty value in the TotalCharges column data['TotalCharges'] = data['TotalCharges'].replace(" ", np.nan).astype('float32') data["SeniorCitizen"]=data["SeniorCitizen"].astype("object") data = data[data["TotalCharges"].notnull()] data = data.reset_index()[data.columns] #now we forced the 0 and 1 to be objects and we know we can drop the empty values in Total charger # Finally a number may be non-empty but still unrealistic for example negative tenure. Let's now check that tenure and charges are non negative print((data['tenure'] <0).any()) print((data['TotalCharges']<0).any()) print((data['MonthlyCharges']<0).any()) # We also need to encode the inputs from enumerates to numbers # ### Logistic regression MonthlyCharges # + data_origin = data.copy() y=data_origin.Churn.replace({'No': 0, 'Yes': 1}).values X_LR = data.iloc[:, 1:20].values X_train, X_test, y_train, y_test = train_test_split(X_LR, y,stratify=y, test_size=0.2) X_train_1D = X_train[:, 17, np.newaxis] X_test_1D = X_test[:, 17, np.newaxis] classifier = LogisticRegression().fit(X_train_1D, y_train) accuracy = classifier.score(X_test_1D, y_test) print('Classification accuracy: {:.2f}%'.format(accuracy * 100)) # - proba = classifier.predict_proba(X_LR[:,17,np.newaxis]) plt.plot(X_LR[:,17], proba) plt.title('Predicted probability of each class') plt.xlabel('Data X') plt.show() # ### Logistic regression tenure # + X_train_1D = X_train[:, 4, np.newaxis] X_test_1D = X_test[:, 4, np.newaxis] classifier = LogisticRegression().fit(X_train_1D, y_train) accuracy = classifier.score(X_test_1D, y_test) print('Classification accuracy: {:.2f}%'.format(accuracy * 100)) # - proba = classifier.predict_proba(X_LR[:,17,np.newaxis]) plt.plot(X_LR[:,17], proba, '*') plt.title('Predicted probability of each class') plt.xlabel('Data X') plt.show() # ### Random Forest y_pred # + X_RF = data.iloc[:, 1:20] dfX= pd.get_dummies(X_RF, columns= [i for i in X_RF.columns if X_RF[i].dtypes=='object'],drop_first=True) y=data['Churn'].values X_train, X_test, y_train, y_test = train_test_split(dfX, y,stratify=y, test_size=0.2) classifier= RandomForestClassifier() classifier.fit(X_train,y_train) y_pred= classifier.predict(X_test) print("The accuracy score for the classifier is :",accuracy_score(y_test,y_pred)) mat = confusion_matrix(y_test, y_pred) s1=sns.heatmap(mat.T, square=True, annot=True, fmt='d', cbar=False, xticklabels=['No','Yes'], yticklabels=['No','Yes'] ) plt.xlabel('true label') plt.ylabel('predicted label') bottom, top = s1.get_ylim() s1.set_ylim(bottom + 0.5, top - 0.5) # - # ## Data numerize and resampling # The key of the problem set is to develop a method to predict the performance of the customer. The prediction problem could be easily transfered to asup # The key output of our supervised learning model is the "Churn" parameter. The first step is to explore it. data_E2N = data[['gender', 'SeniorCitizen', 'Partner', 'Dependents', 'PhoneService', 'MultipleLines', 'InternetService', 'OnlineSecurity', 'OnlineBackup', 'DeviceProtection', 'TechSupport', 'StreamingTV', 'StreamingMovies', 'Contract', 'PaperlessBilling', 'PaymentMethod','Churn']].copy() data_E2N = data_E2N.apply(lambda x: pd.factorize(x)[0]) scaler = MinMaxScaler() data_E2N = pd.DataFrame(scaler.fit_transform(data_E2N),columns=data_E2N.columns) data_N = data[['tenure', 'MonthlyCharges', 'TotalCharges']].copy() data_N['TotalCharges'] = pd.to_numeric(data_N['TotalCharges']) scaler2 = StandardScaler() data_N = pd.DataFrame(scaler2.fit_transform(data_N),columns=data_N.columns) data_final = pd.concat([data_E2N, data_N], axis=1) data_final.Churn.value_counts() # As we could observe, the dataset is not balanced based on the churn parameter. In order to get a reliable result, we need to downsampling the No Churn set of customer. # + x_train, x_test, y_train, y_test = train_test_split(data_final, data_final["Churn"], stratify=data_final["Churn"],test_size=0.3) count_nochurn, count_churn = x_train["Churn"].value_counts() x_train_nochurn = x_train[x_train['Churn'] == 0.0] x_train_churn = x_train[x_train['Churn'] == 1.0] x_train_nochurn_resample = x_train_nochurn.sample(count_churn) x_train_resample = pd.concat([x_train_nochurn_resample, x_train_churn], axis=0) # - x_train_resample.Churn.value_counts() # ## Problem Solving # # For the binary classification problem with multiple dimensions, support vector machine is a common solution to find a robust classifier classifier = svm.SVC(gamma='auto') classifier.fit(x_train_resample.drop(columns="Churn"), x_train_resample["Churn"]) y_predict=classifier.predict(x_test.drop(columns="Churn")) print("The accuracy score for the classifier is :",accuracy_score(y_test,y_predict)) print("The recall score for the classifier is :",recall_score(y_test,y_predict,labels=[1,0])) print("The precision score for the classifier is ::",precision_score(y_test,y_predict,labels=[1,0])) pd.DataFrame(confusion_matrix(y_test,y_predict,labels=[1,0]), ["Churn_true","No Churn_true"], ["Churn_pred","No Churn_pred"]) # ### Cross Validation # We could add cross validation to ensure that our model is not overfitting # + Accuracy_scores = [] Recall_scores = [] Precision_scores = [] k = 4 classifier = svm.SVC(gamma='auto') cv = KFold(n_splits=k, random_state=42, shuffle=False) for train_index, test_index in cv.split(data_final): x_train, x_test, y_train, y_test = data_final.iloc[train_index], data_final.iloc[test_index], data_final.Churn.iloc[train_index], data_final.Churn.iloc[test_index] x_train_nochurn = x_train[x_train['Churn'] == 0.0] x_train_churn = x_train[x_train['Churn'] == 1.0] x_train_nochurn_resample = x_train_nochurn.sample(count_churn) x_train_resample = pd.concat([x_train_nochurn_resample, x_train_churn], axis=0) classifier.fit(x_train_resample.drop(columns="Churn"), x_train_resample["Churn"]) y_predict=classifier.predict(x_test.drop(columns="Churn")) Accuracy_scores.append(accuracy_score(y_test,y_predict)) Recall_scores.append(recall_score(y_test,y_predict,labels=[1,0])) Precision_scores.append(precision_score(y_test,y_predict,labels=[1,0])) print(pd.DataFrame(confusion_matrix(y_test,y_predict,labels=[1,0]), ["Churn_true","No Churn_true"], ["Churn_pred","No Churn_pred"])) print("The accuracy scores for the ",k, "-fold classifier is :",Accuracy_scores) print("The recall scores for the ",k, "-fold classifier is :",Recall_scores) print("The precision scores for the ",k, "-fold classifier is :",Precision_scores) # - # ### Grid Search # + param_grid = [ {'C': [1, 3, 10, 30, 100], 'kernel': ['linear']}, {'C': [1, 3, 10, 30, 100], 'kernel': ['rbf'], 'gamma': [0.0001, 0.0003, 0.001]}, ] svc = svm.SVC() classifier=GridSearchCV(svc,param_grid,cv=k) x_train, x_test, y_train, y_test = train_test_split(data_final, data_final["Churn"], stratify=data_final["Churn"],test_size=0.3) count_nochurn, count_churn = x_train["Churn"].value_counts() x_train_nochurn = x_train[x_train['Churn'] == 0.0] x_train_churn = x_train[x_train['Churn'] == 1.0] x_train_nochurn_resample = x_train_nochurn.sample(count_churn) x_train_resample = pd.concat([x_train_nochurn_resample, x_train_churn], axis=0) classifier.fit(x_train_resample.drop(columns="Churn"), x_train_resample["Churn"]) y_predict=classifier.predict(x_test.drop(columns="Churn")) print("The accuracy score for the best classifier is :",accuracy_score(y_test,y_predict)) print("The recall score for the best classifier is :",recall_score(y_test,y_predict,labels=[1,0])) print("The precision score for the best classifier is ::",precision_score(y_test,y_predict,labels=[1,0])) pd.DataFrame(confusion_matrix(y_test,y_predict,labels=[1,0]), ["Churn_true","No Churn_true"], ["Churn_pred","No Churn_pred"]) | # | ----------------- | ------- | ------------- | ------------------------------------------------------------------- | # | 2020-09-09 | 2.1 | Malika Singla | Updated the variable soundtrack_dict to soundtrack_dic in Questions | # | 2020-08-26 | 2.0 | Lavanya | Moved lab to course repo in GitLab | # | | | | | # | | | | | # # ## <h3 align="center"> © IBM Corporation 2020. All rights reserved. <h3/> #
9,881
/how-to-use-azureml/training-with-deep-learning/train-hyperparameter-tune-deploy-with-keras/train-hyperparameter-tune-deploy-with-keras.ipynb
1f8ad67e13f8d70559992f9c0033979baeece57c
[ "MS-PL", "MIT" ]
permissive
nemasobhani/MachineLearningNotebooks
https://github.com/nemasobhani/MachineLearningNotebooks
0
0
MIT
2020-02-06T22:37:35
2020-02-05T19:34:53
null
Jupyter Notebook
false
false
.py
46,962
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3.6 # language: python # name: python36 # --- # Copyright (c) Microsoft Corporation. All rights reserved. # # Licensed under the MIT License. # ![Impressions](https://PixelServer20190423114238.azurewebsites.net/api/impressions/MachineLearningNotebooks/how-to-use-azureml/training-with-deep-learning/train-hyperparameter-tune-deploy-with-keras/train-hyperparameter-tune-deploy-with-keras.png) # + [markdown] nbpresent={"id": "bf74d2e9-2708-49b1-934b-e0ede342f475"} # # Training, hyperparameter tune, and deploy with Keras # # ## Introduction # This tutorial shows how to train a simple deep neural network using the MNIST dataset and Keras on Azure Machine Learning. MNIST is a popular dataset consisting of 70,000 grayscale images. Each image is a handwritten digit of `28x28` pixels, representing number from 0 to 9. The goal is to create a multi-class classifier to identify the digit each image represents, and deploy it as a web service in Azure. # # For more information about the MNIST dataset, please visit [Yan LeCun's website](http://yann.lecun.com/exdb/mnist/). # # ## Prerequisite: # * Understand the [architecture and terms](https://docs.microsoft.com/azure/machine-learning/service/concept-azure-machine-learning-architecture) introduced by Azure Machine Learning # * If you are using an Azure Machine Learning Notebook VM, you are all set. Otherwise, go through the [configuration notebook](../../../configuration.ipynb) to: # * install the AML SDK # * create a workspace and its configuration file (`config.json`) # * For local scoring test, you will also need to have `tensorflow` and `keras` installed in the current Jupyter kernel. # - # Let's get started. First let's import some Python libraries. # + nbpresent={"id": "c377ea0c-0cd9-4345-9be2-e20fb29c94c3"} # %matplotlib inline import numpy as np import os import matplotlib.pyplot as plt # + nbpresent={"id": "edaa7f2f-2439-4148-b57a-8c794c0945ec"} import azureml from azureml.core import Workspace # check core SDK version number print("Azure ML SDK Version: ", azureml.core.VERSION) # - # ## Initialize workspace # Initialize a [Workspace](https://docs.microsoft.com/azure/machine-learning/service/concept-azure-machine-learning-architecture#workspace) object from the existing workspace you created in the Prerequisites step. `Workspace.from_config()` creates a workspace object from the details stored in `config.json`. ws = Workspace.from_config() print('Workspace name: ' + ws.name, 'Azure region: ' + ws.location, 'Subscription id: ' + ws.subscription_id, 'Resource group: ' + ws.resource_group, sep='\n') # + [markdown] nbpresent={"id": "59f52294-4a25-4c92-bab8-3b07f0f44d15"} # ## Create an Azure ML experiment # Let's create an experiment named "keras-mnist" and a folder to hold the training scripts. The script runs will be recorded under the experiment in Azure. # + nbpresent={"id": "bc70f780-c240-4779-96f3-bc5ef9a37d59"} from azureml.core import Experiment script_folder = './keras-mnist' os.makedirs(script_folder, exist_ok=True) exp = Experiment(workspace=ws, name='keras-mnist') # - # ## Explore data # # Before you train a model, you need to understand the data that you are using to train it. In this section you learn how to: # # * Download the MNIST dataset # * Display some sample images # # ### Download the MNIST dataset # # Download the MNIST dataset and save the files into a `data` directory locally. Images and labels for both training and testing are downloaded. # + import urllib.request data_folder = os.path.join(os.getcwd(), 'data') os.makedirs(data_folder, exist_ok=True) urllib.request.urlretrieve('http://yann.lecun.com/exdb/mnist/train-images-idx3-ubyte.gz', filename=os.path.join(data_folder, 'train-images.gz')) urllib.request.urlretrieve('http://yann.lecun.com/exdb/mnist/train-labels-idx1-ubyte.gz', filename=os.path.join(data_folder, 'train-labels.gz')) urllib.request.urlretrieve('http://yann.lecun.com/exdb/mnist/t10k-images-idx3-ubyte.gz', filename=os.path.join(data_folder, 'test-images.gz')) urllib.request.urlretrieve('http://yann.lecun.com/exdb/mnist/t10k-labels-idx1-ubyte.gz', filename=os.path.join(data_folder, 'test-labels.gz')) # - # ### Display some sample images # # Load the compressed files into `numpy` arrays. Then use `matplotlib` to plot 30 random images from the dataset with their labels above them. Note this step requires a `load_data` function that's included in an `utils.py` file. This file is included in the sample folder. Please make sure it is placed in the same folder as this notebook. The `load_data` function simply parses the compressed files into numpy arrays. # + # make sure utils.py is in the same directory as this code from utils import load_data, one_hot_encode # note we also shrink the intensity values (X) from 0-255 to 0-1. This helps the model converge faster. X_train = load_data(os.path.join(data_folder, 'train-images.gz'), False) / 255.0 X_test = load_data(os.path.join(data_folder, 'test-images.gz'), False) / 255.0 y_train = load_data(os.path.join(data_folder, 'train-labels.gz'), True).reshape(-1) y_test = load_data(os.path.join(data_folder, 'test-labels.gz'), True).reshape(-1) # now let's show some randomly chosen images from the training set. count = 0 sample_size = 30 plt.figure(figsize = (16, 6)) for i in np.random.permutation(X_train.shape[0])[:sample_size]: count = count + 1 plt.subplot(1, sample_size, count) plt.axhline('') plt.axvline('') plt.text(x=10, y=-10, s=y_train[i], fontsize=18) plt.imshow(X_train[i].reshape(28, 28), cmap=plt.cm.Greys) plt.show() # - # Now you have an idea of what these images look like and the expected prediction outcome. # + [markdown] nbpresent={"id": "defe921f-8097-44c3-8336-8af6700804a7"} # ## Create a FileDataset # A FileDataset references one or multiple files in your datastores or public urls. The files can be of any format. FileDataset provides you with the ability to download or mount the files to your compute. By creating a dataset, you create a reference to the data source location. If you applied any subsetting transformations to the dataset, they will be stored in the dataset as well. The data remains in its existing location, so no extra storage cost is incurred. [Learn More](https://aka.ms/azureml/howto/createdatasets) # + from azureml.core.dataset import Dataset web_paths = [ 'http://yann.lecun.com/exdb/mnist/train-images-idx3-ubyte.gz', 'http://yann.lecun.com/exdb/mnist/train-labels-idx1-ubyte.gz', 'http://yann.lecun.com/exdb/mnist/t10k-images-idx3-ubyte.gz', 'http://yann.lecun.com/exdb/mnist/t10k-labels-idx1-ubyte.gz' ] dataset = Dataset.File.from_files(path = web_paths) # - # Use the `register()` method to register datasets to your workspace so they can be shared with others, reused across various experiments, and referred to by name in your training script. dataset = dataset.register(workspace = ws, name = 'mnist dataset', description='training and test dataset', create_new_version=True) # ## Create or Attach existing AmlCompute # You will need to create a [compute target](https://docs.microsoft.com/azure/machine-learning/service/concept-azure-machine-learning-architecture#compute-target) for training your model. In this tutorial, you create `AmlCompute` as your training compute resource. # If we could not find the cluster with the given name, then we will create a new cluster here. We will create an `AmlCompute` cluster of `STANDARD_NC6` GPU VMs. This process is broken down into 3 steps: # 1. create the configuration (this step is local and only takes a second) # 2. create the cluster (this step will take about **20 seconds**) # 3. provision the VMs to bring the cluster to the initial size (of 1 in this case). This step will take about **3-5 minutes** and is providing only sparse output in the process. Please make sure to wait until the call returns before moving to the next cell # + from azureml.core.compute import ComputeTarget, AmlCompute from azureml.core.compute_target import ComputeTargetException # choose a name for your cluster cluster_name = "gpu-cluster" try: compute_target = ComputeTarget(workspace=ws, name=cluster_name) print('Found existing compute target') except ComputeTargetException: print('Creating a new compute target...') compute_config = AmlCompute.provisioning_configuration(vm_size='STANDARD_NC6', max_nodes=4) # create the cluster compute_target = ComputeTarget.create(ws, cluster_name, compute_config) # can poll for a minimum number of nodes and for a specific timeout. # if no min node count is provided it uses the scale settings for the cluster compute_target.wait_for_completion(show_output=True, min_node_count=None, timeout_in_minutes=20) # use get_status() to get a detailed status for the current cluster. print(compute_target.get_status().serialize()) # - # Now that you have created the compute target, let's see what the workspace's `compute_targets` property returns. You should now see one entry named "gpu-cluster" of type `AmlCompute`. compute_targets = ws.compute_targets for name, ct in compute_targets.items(): print(name, ct.type, ct.provisioning_state) # ## Copy the training files into the script folder # The Keras training script is already created for you. You can simply copy it into the script folder, together with the utility library used to load compressed data file into numpy array. # + import shutil # the training logic is in the keras_mnist.py file. shutil.copy('./keras_mnist.py', script_folder) # the utils.py just helps loading data from the downloaded MNIST dataset into numpy arrays. shutil.copy('./utils.py', script_folder) # + [markdown] nbpresent={"id": "2039d2d5-aca6-4f25-a12f-df9ae6529cae"} # ## Construct neural network in Keras # In the training script `keras_mnist.py`, it creates a very simple DNN (deep neural network), with just 2 hidden layers. The input layer has 28 * 28 = 784 neurons, each representing a pixel in an image. The first hidden layer has 300 neurons, and the second hidden layer has 100 neurons. The output layer has 10 neurons, each representing a targeted label from 0 to 9. # # ![DNN](nn.png) # - # ### Azure ML concepts # Please note the following three things in the code below: # 1. The script accepts arguments using the argparse package. In this case there is one argument `--data_folder` which specifies the FileDataset in which the script can find the MNIST data # ``` # parser = argparse.ArgumentParser() # parser.add_argument('--data_folder') # ``` # 2. The script is accessing the Azure ML `Run` object by executing `run = Run.get_context()`. Further down the script is using the `run` to report the loss and accuracy at the end of each epoch via callback. # ``` # run.log('Loss', log['loss']) # run.log('Accuracy', log['acc']) # ``` # 3. When running the script on Azure ML, you can write files out to a folder `./outputs` that is relative to the root directory. This folder is specially tracked by Azure ML in the sense that any files written to that folder during script execution on the remote target will be picked up by Run History; these files (known as artifacts) will be available as part of the run history record. # The next cell will print out the training code for you to inspect. with open(os.path.join(script_folder, './keras_mnist.py'), 'r') as f: print(f.read()) # ## Create TensorFlow estimator & add Keras # Next, we construct an `azureml.train.dnn.TensorFlow` estimator object, use the `gpu-cluster` as compute target, and pass the mount-point of the datastore to the training code as a parameter. # The TensorFlow estimator is providing a simple way of launching a TensorFlow training job on a compute target. It will automatically provide a docker image that has TensorFlow installed. In this case, we add `keras` package (for the Keras framework obviously), and `matplotlib` package for plotting a "Loss vs. Accuracy" chart and record it in run history. # + dataset = Dataset.get_by_name(ws, 'mnist dataset') # list the files referenced by mnist dataset dataset.to_path() # + from azureml.train.dnn import TensorFlow script_params = { '--data-folder': dataset.as_named_input('mnist').as_mount(), '--batch-size': 50, '--first-layer-neurons': 300, '--second-layer-neurons': 100, '--learning-rate': 0.001 } est = TensorFlow(source_directory=script_folder, script_params=script_params, compute_target=compute_target, entry_script='keras_mnist.py', pip_packages=['keras==2.2.5','azureml-dataprep[pandas,fuse]','matplotlib']) # - # ## Submit job to run # Submit the estimator to the Azure ML experiment to kick off the execution. run = exp.submit(est) # ### Monitor the Run # As the Run is executed, it will go through the following stages: # 1. Preparing: A docker image is created matching the Python environment specified by the TensorFlow estimator and it will be uploaded to the workspace's Azure Container Registry. This step will only happen once for each Python environment -- the container will then be cached for subsequent runs. Creating and uploading the image takes about **5 minutes**. While the job is preparing, logs are streamed to the run history and can be viewed to monitor the progress of the image creation. # # 2. Scaling: If the compute needs to be scaled up (i.e. the AmlCompute cluster requires more nodes to execute the run than currently available), the cluster will attempt to scale up in order to make the required amount of nodes available. Scaling typically takes about **5 minutes**. # # 3. Running: All scripts in the script folder are uploaded to the compute target, data stores are mounted/copied and the `entry_script` is executed. While the job is running, stdout and the `./logs` folder are streamed to the run history and can be viewed to monitor the progress of the run. # # 4. Post-Processing: The `./outputs` folder of the run is copied over to the run history # # There are multiple ways to check the progress of a running job. We can use a Jupyter notebook widget. # # **Note: The widget will automatically update ever 10-15 seconds, always showing you the most up-to-date information about the run** from azureml.widgets import RunDetails RunDetails(run).show() # We can also periodically check the status of the run object, and navigate to Azure portal to monitor the run. run run.wait_for_completion(show_output=True) # In the outputs of the training script, it prints out the Keras version number. Please make a note of it. # ### The Run object # The Run object provides the interface to the run history -- both to the job and to the control plane (this notebook), and both while the job is running and after it has completed. It provides a number of interesting features for instance: # * `run.get_details()`: Provides a rich set of properties of the run # * `run.get_metrics()`: Provides a dictionary with all the metrics that were reported for the Run # * `run.get_file_names()`: List all the files that were uploaded to the run history for this Run. This will include the `outputs` and `logs` folder, azureml-logs and other logs, as well as files that were explicitly uploaded to the run using `run.upload_file()` # # Below are some examples -- please run through them and inspect their output. run.get_details() run.get_metrics() run.get_file_names() # ## Download the saved model # In the training script, the Keras model is saved into two files, `model.json` and `model.h5`, in the `outputs/models` folder on the gpu-cluster AmlCompute node. Azure ML automatically uploaded anything written in the `./outputs` folder into run history file store. Subsequently, we can use the `run` object to download the model files. They are under the the `outputs/model` folder in the run history file store, and are downloaded into a local folder named `model`. # + # create a model folder in the current directory os.makedirs('./model', exist_ok=True) for f in run.get_file_names(): if f.startswith('outputs/model'): output_file_path = os.path.join('./model', f.split('/')[-1]) print('Downloading from {} to {} ...'.format(f, output_file_path)) run.download_file(name=f, output_file_path=output_file_path) # - # ## Predict on the test set # Let's check the version of the local Keras. Make sure it matches with the version number printed out in the training script. Otherwise you might not be able to load the model properly. # + import keras import tensorflow as tf print("Keras version:", keras.__version__) print("Tensorflow version:", tf.__version__) # - # Now let's load the downloaded model. # + from keras.models import model_from_json # load json and create model json_file = open('model/model.json', 'r') loaded_model_json = json_file.read() json_file.close() loaded_model = model_from_json(loaded_model_json) # load weights into new model loaded_model.load_weights("model/model.h5") print("Model loaded from disk.") # - # Feed test dataset to the persisted model to get predictions. # + # evaluate loaded model on test data loaded_model.compile(loss='binary_crossentropy', optimizer='rmsprop', metrics=['accuracy']) y_test_ohe = one_hot_encode(y_test, 10) y_hat = np.argmax(loaded_model.predict(X_test), axis=1) # print the first 30 labels and predictions print('labels: \t', y_test[:30]) print('predictions:\t', y_hat[:30]) # - # Calculate the overall accuracy by comparing the predicted value against the test set. print("Accuracy on the test set:", np.average(y_hat == y_test)) # ## Intelligent hyperparameter tuning # We have trained the model with one set of hyperparameters, now let's how we can do hyperparameter tuning by launching multiple runs on the cluster. First let's define the parameter space using random sampling. # + from azureml.train.hyperdrive import RandomParameterSampling, BanditPolicy, HyperDriveConfig, PrimaryMetricGoal from azureml.train.hyperdrive import choice, loguniform ps = RandomParameterSampling( { '--batch-size': choice(25, 50, 100), '--first-layer-neurons': choice(10, 50, 200, 300, 500), '--second-layer-neurons': choice(10, 50, 200, 500), '--learning-rate': loguniform(-6, -1) } ) # - # Next, we will create a new estimator without the above parameters since they will be passed in later by Hyperdrive configuration. Note we still need to keep the `data-folder` parameter since that's not a hyperparamter we will sweep. est = TensorFlow(source_directory=script_folder, script_params={'--data-folder': dataset.as_named_input('mnist').as_mount()}, compute_target=compute_target, entry_script='keras_mnist.py', pip_packages=['keras==2.2.5','azureml-dataprep[pandas,fuse]','matplotlib']) # Now we will define an early termnination policy. The `BanditPolicy` basically states to check the job every 2 iterations. If the primary metric (defined later) falls outside of the top 10% range, Azure ML terminate the job. This saves us from continuing to explore hyperparameters that don't show promise of helping reach our target metric. policy = BanditPolicy(evaluation_interval=2, slack_factor=0.1) # Now we are ready to configure a run configuration object, and specify the primary metric `Accuracy` that's recorded in your training runs. If you go back to visit the training script, you will notice that this value is being logged after every epoch (a full batch set). We also want to tell the service that we are looking to maximizing this value. We also set the number of samples to 20, and maximal concurrent job to 4, which is the same as the number of nodes in our computer cluster. hdc = HyperDriveConfig(estimator=est, hyperparameter_sampling=ps, policy=policy, primary_metric_name='Accuracy', primary_metric_goal=PrimaryMetricGoal.MAXIMIZE, max_total_runs=20, max_concurrent_runs=4) # Finally, let's launch the hyperparameter tuning job. hdr = exp.submit(config=hdc) # We can use a run history widget to show the progress. Be patient as this might take a while to complete. RunDetails(hdr).show() hdr.wait_for_completion(show_output=True) # ### Warm start a Hyperparameter Tuning experiment and resuming child runs # Often times, finding the best hyperparameter values for your model can be an iterative process, needing multiple tuning runs that learn from previous hyperparameter tuning runs. Reusing knowledge from these previous runs will accelerate the hyperparameter tuning process, thereby reducing the cost of tuning the model and will potentially improve the primary metric of the resulting model. When warm starting a hyperparameter tuning experiment with Bayesian sampling, trials from the previous run will be used as prior knowledge to intelligently pick new samples, so as to improve the primary metric. Additionally, when using Random or Grid sampling, any early termination decisions will leverage metrics from the previous runs to determine poorly performing training runs. # # Azure Machine Learning allows you to warm start your hyperparameter tuning run by leveraging knowledge from up to 5 previously completed hyperparameter tuning parent runs. # # Additionally, there might be occasions when individual training runs of a hyperparameter tuning experiment are cancelled due to budget constraints or fail due to other reasons. It is now possible to resume such individual training runs from the last checkpoint (assuming your training script handles checkpoints). Resuming an individual training run will use the same hyperparameter configuration and mount the storage used for that run. The training script should accept the "--resume-from" argument, which contains the checkpoint or model files from which to resume the training run. You can also resume individual runs as part of an experiment that spends additional budget on hyperparameter tuning. Any additional budget, after resuming the specified training runs is used for exploring additional configurations. # # For more information on warm starting and resuming hyperparameter tuning runs, please refer to the [Hyperparameter Tuning for Azure Machine Learning documentation](https://docs.microsoft.com/en-us/azure/machine-learning/service/how-to-tune-hyperparameters) # # ## Find and register best model # When all the jobs finish, we can find out the one that has the highest accuracy. best_run = hdr.get_best_run_by_primary_metric() print(best_run.get_details()['runDefinition']['arguments']) # Now let's list the model files uploaded during the run. print(best_run.get_file_names()) # We can then register the folder (and all files in it) as a model named `keras-dnn-mnist` under the workspace for deployment. model = best_run.register_model(model_name='keras-mlp-mnist', model_path='outputs/model') # ## Deploy the model in ACI # Now we are ready to deploy the model as a web service running in Azure Container Instance [ACI](https://azure.microsoft.com/en-us/services/container-instances/). Azure Machine Learning accomplishes this by constructing a Docker image with the scoring logic and model baked in. # ### Create score.py # First, we will create a scoring script that will be invoked by the web service call. # # * Note that the scoring script must have two required functions, `init()` and `run(input_data)`. # * In `init()` function, you typically load the model into a global object. This function is executed only once when the Docker container is started. # * In `run(input_data)` function, the model is used to predict a value based on the input data. The input and output to `run` typically use JSON as serialization and de-serialization format but you are not limited to that. # + # %%writefile score.py import json import numpy as np import os from keras.models import model_from_json from azureml.core.model import Model def init(): global model model_root = Model.get_model_path('keras-mlp-mnist') # load json and create model json_file = open(os.path.join(model_root, 'model.json'), 'r') model_json = json_file.read() json_file.close() model = model_from_json(model_json) # load weights into new model model.load_weights(os.path.join(model_root, "model.h5")) model.compile(loss='binary_crossentropy', optimizer='rmsprop', metrics=['accuracy']) def run(raw_data): data = np.array(json.loads(raw_data)['data']) # make prediction y_hat = np.argmax(model.predict(data), axis=1) return y_hat.tolist() # - # ### Create myenv.yml # We also need to create an environment file so that Azure Machine Learning can install the necessary packages in the Docker image which are required by your scoring script. In this case, we need to specify conda packages `tensorflow` and `keras`. # + from azureml.core.conda_dependencies import CondaDependencies cd = CondaDependencies.create() cd.add_tensorflow_conda_package() cd.add_conda_package('keras==2.2.5') cd.add_pip_package("azureml-defaults") cd.save_to_file(base_directory='./', conda_file_path='myenv.yml') print(cd.serialize_to_string()) # - # ### Deploy to ACI # We are almost ready to deploy. Create the inference configuration and deployment configuration and deploy to ACI. This cell will run for about 7-8 minutes. # + from azureml.core.webservice import AciWebservice from azureml.core.model import InferenceConfig from azureml.core.model import Model from azureml.core.environment import Environment myenv = Environment.from_conda_specification(name="myenv", file_path="myenv.yml") inference_config = InferenceConfig(entry_script="score.py", environment=myenv) aciconfig = AciWebservice.deploy_configuration(cpu_cores=1, auth_enabled=True, # this flag generates API keys to secure access memory_gb=1, tags={'name': 'mnist', 'framework': 'Keras'}, description='Keras MLP on MNIST') service = Model.deploy(workspace=ws, name='keras-mnist-svc', models=[model], inference_config=inference_config, deployment_config=aciconfig) service.wait_for_deployment(True) print(service.state) # - # **Tip: If something goes wrong with the deployment, the first thing to look at is the logs from the service by running the following command:** `print(service.get_logs())` # This is the scoring web service endpoint: print(service.scoring_uri) # ### Test the deployed model # Let's test the deployed model. Pick 30 random samples from the test set, and send it to the web service hosted in ACI. Note here we are using the `run` API in the SDK to invoke the service. You can also make raw HTTP calls using any HTTP tool such as curl. # # After the invocation, we print the returned predictions and plot them along with the input images. Use red font color and inversed image (white on black) to highlight the misclassified samples. Note since the model accuracy is pretty high, you might have to run the below cell a few times before you can see a misclassified sample. # + import json # find 30 random samples from test set n = 30 sample_indices = np.random.permutation(X_test.shape[0])[0:n] test_samples = json.dumps({"data": X_test[sample_indices].tolist()}) test_samples = bytes(test_samples, encoding='utf8') # predict using the deployed model result = service.run(input_data=test_samples) # compare actual value vs. the predicted values: i = 0 plt.figure(figsize = (20, 1)) for s in sample_indices: plt.subplot(1, n, i + 1) plt.axhline('') plt.axvline('') # use different color for misclassified sample font_color = 'red' if y_test[s] != result[i] else 'black' clr_map = plt.cm.gray if y_test[s] != result[i] else plt.cm.Greys plt.text(x=10, y=-10, s=y_test[s], fontsize=18, color=font_color) plt.imshow(X_test[s].reshape(28, 28), cmap=clr_map) i = i + 1 plt.show() # - # We can retrieve the API keys used for accessing the HTTP endpoint. # Retrieve the API keys. Two keys were generated. key1, Key2 = service.get_keys() print(key1) # We can now send construct raw HTTP request and send to the service. Don't forget to add key to the HTTP header. # + import requests # send a random row from the test set to score random_index = np.random.randint(0, len(X_test)-1) input_data = "{\"data\": [" + str(list(X_test[random_index])) + "]}" headers = {'Content-Type':'application/json', 'Authorization': 'Bearer ' + key1} resp = requests.post(service.scoring_uri, input_data, headers=headers) print("POST to url", service.scoring_uri) #print("input data:", input_data) print("label:", y_test[random_index]) print("prediction:", resp.text) # - # Let's look at the workspace after the web service was deployed. You should see # * a registered model named 'keras-mlp-mnist' and with the id 'model:1' # * a webservice called 'keras-mnist-svc' with some scoring URL # + models = ws.models for name, model in models.items(): print("Model: {}, ID: {}".format(name, model.id)) webservices = ws.webservices for name, webservice in webservices.items(): print("Webservice: {}, scoring URI: {}".format(name, webservice.scoring_uri)) # - # ## Clean up # You can delete the ACI deployment with a simple delete API call. service.delete()
30,158
/notebooks/multiobjective_optermisation.ipynb
bfe72d19a49ac8ea0d7b8a83eba384f5cea8048c
[]
no_license
a2i2/threshy
https://github.com/a2i2/threshy
0
0
null
2023-05-22T21:47:50
2020-10-21T02:18:48
Jupyter Notebook
Jupyter Notebook
false
false
.py
55,188
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # + import pandas as pd import numpy as np import autograd.numpy as anp from pymoo.model.evaluator import Evaluator from pymoo.model.problem import Problem from pymoo.optimize import minimize from pymoo.algorithms.nsga2 import NSGA2 from pymoo.algorithms.rnsga3 import RNSGA3 from pymoo.algorithms.so_gradient_descent import GradientDescent from pymoo.model.repair import Repair from pymoo.factory import * from sklearn import preprocessing from sklearn.preprocessing import LabelEncoder from sklearn.calibration import calibration_curve, CalibratedClassifierCV from sklearn.metrics import confusion_matrix, brier_score_loss, log_loss # - # # TODO: # - Find an example for multi-class classification (not multi-label) # - Decide if we support REJECTS in the ground truth # + df = pd.read_csv("../input/mailguard-labeled-results.csv") inputs = { "id_column": "mid", "ground_truth_column": "ground_truth", "reject_label": "REJECT", "min": 0, "max": 1, "probability_column" : "probabilities", # Optional??? "target_label" : "spam", # Optional??? } # - df = pd.read_csv("../input/predictions-email-classifier-percept_20191014-161825.csv") inputs = { "id_column": "email_id", "ground_truth_column": "work_type", "reject_label": "REJECT", "min": 0, "max": 100 } # + def ids_are_unique(df, inputs): return len(df[inputs["id_column"]].unique()) == len(df[inputs["id_column"]]) def retrieve_labels(df, inputs): return df[inputs["ground_truth_column"]].str.strip().sort_values().unique() def rejects_are_present(df, inputs): return df[inputs["ground_truth_column"]].str.strip().str.contains(inputs["reject_label"]).any() def check_labels_have_columns(df, labels): return len(set(df.columns) & set(labels)) == len(labels) def normalise_probs_in_place(df, inputs, labels): if inputs["min"] == 0 and inputs["max"] == 100: for label in labels: if label == inputs["reject_label"]: continue if (df[label] < 1).any() and (df[label] >= 0).any(): return df[label] = df[label] / 100 elif inputs["min"] == 0 and inputs["max"] == 1: # TODO: Check that the provided constraints are not violated return else: raise ValueError("Normalisation rule not specified") def prepare_labels(df, inputs): labels = retrieve_labels(df, inputs) if "target_label" in inputs: labels = list(filter(lambda x: x == inputs["target_label"], labels)) if not check_labels_have_columns(df, labels) and not "probability_column" in inputs: raise ValueError("Labels do not have column names for probabilities") return sorted(labels) def prepare_ground_truth(df, inputs, mapping): ids = [] truth_columns = inputs["ground_truth_column"] if not "target_label" in inputs: all_labels = [] for a_id in df[inputs["id_column"]].unique(): ground_truth_labels = df[df[inputs["id_column"]] == a_id][truth_columns] indexes = [mapping[s.strip()] for s in list(ground_truth_labels)] ground_truth = np.zeros(len(mapping), dtype=int) ground_truth[indexes] = 1 ids.append(a_id) all_labels.append(ground_truth) columns = list(mapping.keys()) ground_truth = pd.DataFrame(all_labels) ground_truth.columns = columns else: ids = df[inputs["id_column"]].unique() ground_truth = pd.DataFrame() ground_truth[inputs["target_label"]] = (df[truth_columns] == inputs["target_label"]) * 1 ground_truth["id"] = ids return ground_truth def derive_probabilities(df, inputs): if "probability_column" in inputs: probabilities = pd.DataFrame() probabilities[inputs["target_label"]] = df[inputs["probability_column"]] probabilities["id"] = df[inputs["id_column"]] else: labels = list(retrieve_labels(df, inputs)) labels.insert(0, inputs["id_column"]) probabilities = df[labels] probabilities = probabilities.rename(columns={inputs["id_column"]: "id"}) return probabilities.drop_duplicates("id") def thres(x, lower, upper): not_match = np.less(x, lower) match = np.greater_equal(x, upper) rejects = ~np.logical_xor(not_match, match) return np.stack([not_match, match, rejects]) def matches(x): return np.where(x == True) def calculate_thresholds(labels, probabilities, thresholds): predictions = pd.DataFrame() for l in labels: probs = probabilities[l] lower = thresholds[l]["lower"] upper = thresholds[l]["upper"] if lower > upper: raise ValueError("Lower %f should be less than %f" %(lower, upper)) results = matches(thres(probs, lower, upper)) sorted_index = np.argsort(results)[1] predictions[l] = results[0][sorted_index] predictions["id"] = df[inputs["id_column"]] return predictions def calculate_all_confusion_matricies(ground_truth, thresholded, labels): all_matrices = [] for l in labels: matrix = confusion_matrix(ground_truth[l], thresholded[l]) if np.shape(matrix) < (3,3): matrix = np.c_[matrix, np.zeros(2)] matrix = np.r_[matrix, [np.zeros(3)]] all_matrices.append(matrix) results = np.array(all_matrices, dtype=np.int) # Column order: matches, not match, rejects results[:,:,[0,1]] = results[:,:,[1, 0]] # Row order: matches, not match, rejects results[:,[0,1], :] = results[:,[1, 0], :] return results # + labels = prepare_labels(df, inputs) mapping = {label: i for i, label in enumerate(labels)} normalise_probs_in_place(df, inputs, labels) ground_truth = prepare_ground_truth(df, inputs, mapping) probabilities = derive_probabilities(df, inputs) # + thresholds = {} for l in labels: thresholds[l] = {"lower": 0.60, "upper": 0.70} thresholded = calculate_thresholds(labels, probabilities, thresholds) len(thresholded), len(probabilities), len(ground_truth) # - all_matrices = calculate_all_confusion_matricies(ground_truth, thresholded, labels) all_matrices #thresholded[labels[0]][thresholded[labels[0]] == 0][ground_truth[labels[0]] == 0] # + threshold_matches = thresholded[thresholded[labels] == 1][labels].count() ground_truth_matches = ground_truth[ground_truth[labels] == 1][labels].count() results = pd.DataFrame() results["label_bias"] = 1- threshold_matches / ground_truth_matches results["reject_count"] = all_matrices[:,:,2].sum(axis=1, dtype=np.int) results["ground_truth_counts"] = ground_truth_matches results["prediction_counts"] = threshold_matches results # + summary_results = { "true_matches" : all_matrices[:,0][:,0].sum(), "false_matches": all_matrices[:,1][:,0].sum(), "missed_matches": all_matrices[:,0][:,1].sum(), "rejects": all_matrices[:,:,2].sum(), "totals": len(ground_truth) } summary_results # - # # Optimisation of the thresholds # + cost = { "true_matches": 1000, "false_matches": 3000, "missed_matches": 500, "rejects": 500, "portion_size" : 1000, "estimate_quantity":10000 } labels = prepare_labels(df, inputs) mapping = {label: i for i, label in enumerate(labels)} normalise_probs_in_place(df, inputs, labels) ground_truth = prepare_ground_truth(df, inputs, mapping) probabilities = derive_probabilities(df, inputs) ground_truth_matches = ground_truth[ground_truth[labels] == 1][labels].count() # + def calculate_matches(x, lower, upper): not_match = np.less(x, lower) match = np.greater_equal(x, upper) rejects = ~np.logical_xor(not_match, match) return np.stack([not_match, match, rejects]) def apply_thresholds(probabilities, lower, upper): temp = calculate_matches(probabilities, lower, upper) def value(x): return np.where(x == True)[0][0] return np.apply_along_axis(value, 0, temp) def calculate_confusion_matrices(gt, pred): result = np.zeros((gt.shape[1],3,3), dtype=np.int) for i,(x,y) in enumerate(zip(gt.T,pred.T)): matrix = confusion_matrix(x,y) if np.shape(matrix) < (3,3): matrix = np.c_[matrix, np.zeros(2)] matrix = np.r_[matrix, [np.zeros(3)]] elif np.shape(matrix) > (3, 3): raise ValueError("Matrix should be 3x3, error in input labels") # Column order: matches, not match, rejects matrix[:,[0,1]] = matrix[:,[1, 0]] # Row order: matches, not match, rejects matrix[[0,1], :] = matrix[[1, 0], :] result[i] = matrix return result def get_objective(probabilities, ground_truth, lower_thresholds, upper_thresholds): thres = apply_thresholds(probabilities, lower_thresholds, upper_thresholds) all_results = calculate_confusion_matrices(ground_truth, thres) return np.array([all_results[:,0][:,0].sum(), all_results[:,1][:,0].sum(), all_results[:,0][:,1].sum(), all_results[:,:,2].sum()]) np_probs = probabilities[labels].to_numpy() gt = ground_truth[labels].to_numpy() full_range = np.arange(0,1,0.01) threshold_values = np.full((100,10), 0.51, dtype=np.int) # TODO: Finish implementing optmisation #threshold_values[:,8] = full_range # r = np.zeros((100, 4), np.int) # iterations = 100 # history = [] # best = () # new_threshold = anp.full(10, 0.51, dtype=np.int) # while iterations: # iterations += -1 # new_score = get_objective(np_probs, gt, new_threshold, new_threshold) # new_score[:,1:] = new_score[:,1:] * -1 # score = np.sum(r,1) # if best[0] < score: # best = (score, new_threshold) # history.append((score, new_threshold)) #https://gpflowopt.readthedocs.io/en/latest/notebooks/multiobjective.html# # get_objective(np_probs, gt, threshold_values[i], threshold_values[i]) # - pd.DataFrame(r).plot() # # Pymoo optimisation # + class MyRepair(Repair): def _do(self, problem, pop, **kwargs): for i in range(len(pop)): x = pop[i].X if len(x) % 2 == 0: for j in range(0, len(x), 2): if x[j] > x[j + 1]: x[j], x[j + 1] = x[j + 1], x[j] return pop class FindThresholds(Problem): def __init__(self, number_of_thresholds, labels): if not len(labels) == number_of_thresholds and not len(labels) * 2 == number_of_thresholds: raise ValueError("Number of thresholds must be same size as labels or twice the size") self.labels = labels self.number_of_thresholds = number_of_thresholds super().__init__(n_var=number_of_thresholds, n_constr=0, n_obj=4, xl=anp.zeros((number_of_thresholds,), dtype=anp.double), xu=anp.ones((number_of_thresholds,), dtype=anp.double), type_var=anp.double, elementwise_evaluation=True) def _evaluate(self, X, out, *args, **kwargs): f0 = [] f1 = [] f2 = [] f3 = [] if self.number_of_thresholds == 1: thresholds = {l: {"lower": X[0], "upper":X[0]} for l in self.labels} elif self.number_of_thresholds == len(self.labels) ** 2: thresholds = {} for label_index, i in enumerate(range(0, self.number_of_thresholds, 2)): thresholds[self.labels[label_index]] = {"lower": X[i], "upper":X[i+1]} else: thresholds = {} for i in range(0, self.number_of_thresholds): thresholds[self.labels[i]] = {"lower": X[i], "upper":X[i]} thresholded = calculate_thresholds(self.labels, probabilities, thresholds) all_matrices = calculate_all_confusion_matricies(ground_truth, thresholded, self.labels) # true matches f0.append(all_matrices[:,0][:,0].sum() * -1) # Maximise the # of true matches # false matches f1.append(all_matrices[:,1][:,0].sum()) # missed matches f2.append(all_matrices[:,0][:,1].sum()) # rejects f3.append(all_matrices[:,:,2].sum()) out["F"] = anp.column_stack([f0, f1, f2, f3]).astype(anp.double) # + algorithm = NSGA2( pop_size=40, n_offsprings=10, repair=MyRepair(), sampling=get_sampling("real_random"), crossover=get_crossover("real_sbx", prob=0.9, eta=15), mutation=get_mutation("real_pm", eta=20), eliminate_duplicates=True ) ref_points = np.array([[0.5, 0.5, 0.5, 0.5]]) algorithm = RNSGA3( ref_points=ref_points, pop_per_ref_point=56, mu=0.1) problem = FindThresholds(10, labels) res = minimize(problem, algorithm, ("n_gen", 20), seed=1, save_history=True, verbose=True) # + F = res.F weights = np.array([0.7,0.1,0.1,0.1]) I = get_decomposition("weighted-sum").do(F, weights).argmin() print("Best regarding decomposition: Point %s - %s, %s" % (I, F[I], res.X[I])) # Best regarding decomposition: Point 0 - [-32. 1. 19. 0.], [0.67100345] # + X = anp.array(anp.matrix(anp.arange(0,1,0.01)).T) gd = GradientDescent(anp.array([0.3]), termination=get_termination("n_eval", 200)) gd.evaluator = Evaluator() gd.problem = FindThresholds(1, labels) #gd.solve() res = minimize(FindThresholds(1, labels), gd, ("n_gen", 300), seed=1, save_history=True, verbose=True) # - class GradientDescent2(GradientBasedAlgorithm): def __init__(self, X, learning_rate=0.005, **kwargs) -> None: super().__init__(X, **kwargs) self.learning_rate = learning_rate def restart(self): self.learning_rate /= 2 def apply(self): self.X = self.X - self.learning_rate * self.dX
14,303
/nn_labeler/scripts/.ipynb_checkpoints/preprocess-checkpoint.ipynb
5632f6a971b336485173b3e0867550fcc39b735b
[]
no_license
hsaeidi1363/cnn_breath_tracker
https://github.com/hsaeidi1363/cnn_breath_tracker
0
0
null
null
null
null
Jupyter Notebook
false
false
.py
16,838
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.15.2 # kernelspec: # display_name: Python 2 # language: python # name: python2 # --- # + import tensorflow as tf print(tf.__version__) print("Num GPUs Available: ", len(tf.config.experimental.list_physical_devices('GPU'))) device_name = tf.test.gpu_device_name() print(device_name) gpus = tf.config.experimental.list_physical_devices('GPU') config = [tf.config.experimental.VirtualDeviceConfiguration(memory_limit=1024)] if gpus: # Restrict TensorFlow to only allocate 1*X GB of memory on the first GPU try: tf.config.experimental.set_virtual_device_configuration(gpus[0], config) logical_gpus = tf.config.experimental.list_logical_devices('GPU') print(len(gpus), "Physical GPUs,", len(logical_gpus), "Logical GPUs") except RuntimeError as e: # Virtual devices must be set before GPUs have been initialized print(e) #gpus = tf.config.experimental.list_physical_devices('GPU') #if gpus: # try: # Currently, memory growth needs to be the same across GPUs # for gpu in gpus: # tf.config.experimental.set_memory_growth(gpu, True) # logical_gpus = tf.config.experimental.list_logical_devices('GPU') # print(len(gpus), "Physical GPUs,", len(logical_gpus), "Logical GPUs") # except RuntimeError as e: # Memory growth must be set before GPUs have been initialized # print(e) import cv2 as cv import matplotlib.pyplot as plt #import matplotlib.image as mpimg from PIL import Image import csv print(cv.__version__) import glob import numpy as np # %matplotlib inline from sklearn.utils import shuffle from sklearn.model_selection import train_test_split # + # Read the csv file print('Step 1: reading images and labels') samples = [] images = [] data_set_no = 1 data_set_len = np.zeros(data_set_no, dtype = np.int16) for i in range(data_set_no): label_file_name = '/home/hsaeidi/nn_data_for_breathing_tracker/set' + str((i+1))+'/labels/lebels.csv' with open(label_file_name) as csvfile: reader = csv.reader(csvfile) for line in reader: samples.append(line) if i == 0: data_set_len[i] = len(samples) else: data_set_len[i] = len(samples) - data_set_len[i-1] address_name = '/home/hsaeidi/nn_data_for_breathing_tracker/set' + str((i+1))+'/images/img' for j in range(data_set_len[i]): tmp = address_name + str((j+1)) +'.png' images.append(tmp) #read images # read the image addresses print(data_set_len) sample_size = len(samples) print('Total number of collected samples: ',sample_size) images_no = len(images) print('Total number of image addresses: ', images_no) tt = np.cumsum(data_set_len) print(tt) ttt = np.insert(tt, 0, 0) print(ttt) # + # data exploration # read some sample images for a quick test img1 = Image.open(str(images[0])) img2 = Image.open(str(images[63])) print('The sample image size is') print(img1.size) print(' and it contains this type of data') print(np.asarray(img1)) print('when normalized it gets like this') print(np.asarray(img1)/float(255)) #plot 2 of them fig = plt.figure(figsize=(12,4)) plt.subplot(131) plt.imshow(img1) plt.title('img 1') plt.subplot(132) plt.imshow(img2) plt.title('img 2') # see how the summation looks like plt.subplot(133) img_last = Image.open(str(images[86])) plt.imshow(img_last) plt.title('half a cycle away frame') fig.tight_layout() # preparing some quick training data x_raw = [] y_raw = [] moving_no = 0 stopped_no = 0 # calculate: f(n) - sum_(i = n-13)^(i = n-1) f(i), summations and f(n) - f(n-13) data_offset = np.cumsum(data_set_len) print(data_offset) data_offset = np.insert(data_offset, 0, 0) print(data_offset) t_h = 14 t_h_1 = t_h -1 for k in range(data_set_no): for i in range(data_offset[k] + t_h_1 , data_offset[k+1]): x_d_all = np.zeros(img1.size) + np.asarray(Image.open(str(images[i])))/float(255) x_sum_all = x_d_all x_last2first = x_d_all - np.asarray(Image.open(str(images[i-t_h_1])) )/float(255) for j in range(1,t_h): img_tmp = Image.open(str(images[i-j])) x_d_all -= np.asarray(img_tmp)/float(255) x_sum_all += np.asarray(img_tmp)/float(255) img_combined = cv.merge((x_d_all, x_last2first, x_sum_all)) #x_raw.append(img_combined) # put the corresponding label: 1 when stopped breathing and 0 when breathing if samples[i] == ['1']: y_label = [0.0, 1.0] x_raw.append(img_combined) y_raw.append(y_label) stopped_no += 1 #print('a stopped breathing sample') else: y_label = [1.0, 0.0] if (i%3) == 0: x_raw.append(img_combined) y_raw.append(y_label) moving_no += 1 # some info about the new processed data for training #print(y_raw) print('size of train data after calculations ',len(x_raw)) #print(' which is the total of ', sample_size, ' minus ', data_set_no,'x', '= ', data_set_no*13 ) print(' and totally ', moving_no, ' breathing samples vs', stopped_no, ' stopped breathing samples') print('---------') stopped_index = 0 print(len(y_raw)) y_tmp = np.array(y_raw) for i in range(0,len(y_tmp)): #print(i) #print(y_tmp[i]) if y_tmp[i][1] == '1.0': stopped_index = i break print(stopped_index) print('---------') fig = plt.figure(figsize=(12,4)) plt.subplot(131) plt.imshow(x_raw[stopped_index+t_h][:,:,0]) plt.title('moving (x_d_all)') plt.subplot(132) plt.imshow(x_raw[stopped_index+t_h][:,:,1]) plt.title('moving (last - first)') plt.subplot(133) plt.imshow(x_raw[stopped_index+t_h][:,:,2]) plt.title('moving (sum all)') fig = plt.figure(figsize=(12,4)) plt.subplot(131) plt.imshow(x_raw[stopped_index][:,:,0]) plt.title('stopped (x_d_all)') plt.subplot(132) plt.imshow(x_raw[stopped_index][:,:,1]) plt.title('stopped (last - first)') plt.subplot(133) plt.imshow(x_raw[stopped_index][:,:,2]) plt.title('stopped (sum all)') x_train, x_val, y_train, y_val = train_test_split(x_raw, y_raw, test_size=0.2, random_state=1, shuffle= True) print('train data size and type:') print(len(x_train)) print(type(x_train[0])) print(x_train[0]) print(y_train[0]) #normalized the inputs between 0-1 x_train_normalized = [] x_val_normalized = [] scale = float(1)/1 print(scale) for i in range(0,len(x_train)): x_train_normalized.append(x_train[i]*scale) for i in range(0,len(x_val)): x_val_normalized.append(x_val[i]*scale) # test the normalized data print('an example of the normalized inputs') print(x_train_normalized[0]) fig = plt.figure(figsize=(12,4)) plt.subplot(131) plt.imshow(x_train[0]) plt.title('before normalization') plt.subplot(132) plt.imshow(x_train_normalized[0]) plt.title('normalized') x_train_normalized = np.array(x_train_normalized) print('shape of normalized train inputs') print(x_train_normalized.shape) x_train_normalized = x_train_normalized.reshape(x_train_normalized.shape[0], 128, 128, 3) print('reshaped normalized train input dimensions') print(x_train_normalized.shape) y_train = np.array(y_train) x_val_normalized = np.array(x_val_normalized) print('shape of normalized validation inputs') print(x_val_normalized.shape) x_val_normalized = x_val_normalized.reshape(x_val_normalized.shape[0], 128, 128, 3) print('reshaped normalized validation input dimensions') print(x_val_normalized.shape) y_val = np.array(y_val) #print(y_val) # + # importing other useful packages for training #import keras #from keras.models import Sequential #from keras.layers import Dense, Dropout, Flatten #from keras.layers import Conv2D, MaxPooling2D #from keras.optimizers import SGD # are the following still working in tf 2.1? from tensorflow import keras from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Dense, Dropout, Flatten from tensorflow.keras.layers import Conv2D, MaxPooling2D from tensorflow.keras.optimizers import SGD # From the filtered and resized image (160x80x2), crop some less useful pixels from top an bottom for faster processing crop_top = 0 crop_bottom = 0 # the format of final image that goes to the first convolution layer ch, row, col = 3, 128-crop_top-crop_bottom, 128 # Trimmed image format # Neural network architecture model = Sequential() # convolution layers that gradually become deeper model.add(Conv2D(24, kernel_size = (5, 5), strides =(2,2), padding='same', activation='relu', input_shape=(row, col, ch))) model.add(MaxPooling2D(pool_size=(2, 2))) model.add(Dropout(0.25)) model.add(Conv2D(36, kernel_size = (5, 5), strides =(2,2), padding='same', activation='relu')) model.add(MaxPooling2D(pool_size=(2, 2))) model.add(Dropout(0.25)) model.add(Conv2D(48, kernel_size = (5, 5), strides =(2,2), padding='same', activation='relu')) model.add(Dropout(0.25)) model.add(Conv2D(64, kernel_size = (3, 3), strides =(2,2), padding='same', activation='relu')) model.add(Dropout(0.25)) #removed temp:model.add(Conv2D(64, kernel_size = (3, 3), strides =(2,2), padding='same', activation='relu')) #removed temp:model.add(Dropout(0.25)) # flattening the outputs and using dense layers up to the final output (i.e. steering angle) model.add(Flatten()) model.add(Dense(256, activation='relu')) model.add(Dense(64, activation='relu')) model.add(Dense(8, activation='relu')) # outputting the moving/stopped model.add(Dense(2, activation='softmax')) print('model defined') model.summary() sgd = SGD(lr=0.01, decay=1e-6, momentum=0.9, nesterov=True) model.compile(optimizer='adam', # Optimizer # Loss function to minimize #loss='binary_crossentropy', loss='categorical_crossentropy', # List of metrics to monitor metrics=["accuracy"]) print('compiled the model') # - print('training started') history = model.fit(x_train_normalized, y_train, batch_size=512, epochs=100, shuffle=True, # We pass some validation for # monitoring validation loss and metrics # at the end of each epoch validation_data=(x_val_normalized, y_val)) model.save('../saved_models/my_model') test_ind = 37 yy = model.predict(x_train_normalized[test_ind].reshape(1, 128, 128, 3), batch_size=1) print(yy) print(y_train[test_ind]) # + # some psuedo image inputs for quick test import numpy as np import keras from keras.models import Sequential from keras.layers import Dense, Dropout, Flatten from keras.layers import Conv2D, MaxPooling2D from keras.optimizers import SGD # Generate dummy data x_train = np.random.random((100, 100, 100, 1)) y_train = keras.utils.to_categorical(np.random.randint(10, size=(100, 1)), num_classes=10) x_test = np.random.random((20, 100, 100, 1)) y_test = keras.utils.to_categorical(np.random.randint(10, size=(20, 1)), num_classes=10) print(x_train.shape) print(type(x_train)) print(x_train[0].shape) model = Sequential() # input: 100x100 images with 3 channels -> (100, 100, 3) tensors. # this applies 32 convolution filters of size 3x3 each. #model.add(Conv2D(32, (3, 3), activation='relu', input_shape=(100, 100, 1))) model.add(Conv2D(32, kernel_size = (3, 3), strides =(2,2), padding='same', activation='relu', input_shape=(100, 100, 1))) model.add(Conv2D(32, (3, 3), activation='relu')) model.add(MaxPooling2D(pool_size=(2, 2))) model.add(Dropout(0.25)) model.add(Conv2D(64, (3, 3), activation='relu')) model.add(Conv2D(64, (3, 3), activation='relu')) model.add(MaxPooling2D(pool_size=(2, 2))) model.add(Dropout(0.25)) model.add(Flatten()) model.add(Dense(256, activation='relu')) model.add(Dropout(0.5)) model.add(Dense(10, activation='softmax')) sgd = SGD(lr=0.01, decay=1e-6, momentum=0.9, nesterov=True) model.compile(loss='categorical_crossentropy', optimizer=sgd) model.fit(x_train, y_train, batch_size=32, epochs=1) score = model.evaluate(x_test, y_test, batch_size=32) # + bce = tf.keras.losses.BinaryCrossentropy() loss = bce([0., 0., 1., 1.], [0., 0., 1., 0.]) print('Loss: ', loss.numpy()) test_a = np.zeros((3, 2, 2)) print(test_a) print(test_a.shape) img_combined = cv.merge((test_a[0], test_a[1], test_a[2])) print(img_combined.shape) for j in range(1,14): print(j) print(y_train)
12,452