This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Adam Małysz was born in Wisła, Poland, to Ewa and Jan Małysz. He has an older sister – Iwona (born 1975). | |
He graduated from a vocational high school in Ustroń, where he learned a profession (specialisation: tinsmith-roofer). | |
He speaks German very well. On 16 June 1997 he married Izabella Polok (born 4 December 1978). | |
The wedding took place at the Evangelical Church of St. Peter and Paul in the Wisła (Izabella is Catholic). | |
On 31 October 1997, Izabella gave birth to their daughter – Karolina. | |
His life motto is "Be good and that's it" and his idol is German former ski jumper Jens Weißflog. | |
His religion is Lutheranism | |
On 1 April 2007 Małysz opened a Trophy Gallery, which includes all the major medals and trophies he won during his career, | |
including the Crystal Globe trophies for victories in the World Cup. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import division, print_function | |
import numpy as np | |
import progressbar | |
from mlfromscratch.utils import train_test_split, standardize, to_categorical | |
from mlfromscratch.utils import mean_squared_error, accuracy_score | |
from mlfromscratch.deep_learning.loss_functions import SquareLoss, CrossEntropy | |
from mlfromscratch.supervised_learning.decision_tree import RegressionTree | |
from mlfromscratch.utils.misc import bar_widgets |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def encryptDecrypt(inpString): | |
xorKey = 'P'; | |
# calculate length of input string | |
length = len(inpString); | |
# perform XOR operation of key | |
# with every caracter in string | |
for i in range(length): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
score = [] | |
for word in slowa: | |
N=len(word) | |
score.append(N) | |
srednia=sum(score)/len(slowa) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
start_time = time.time() | |
#tutaj piszemy kod | |
seconds = time.time() - start_time | |
print('Time Taken:', time.strftime("%H:%M:%S",time.gmtime(seconds))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def fibonacci(n): | |
def recur_fibo(n): | |
if n <= 1: | |
return n | |
else: | |
return(recur_fibo(n-1) + recur_fibo(n-2)) | |
if n <= 0: | |
print("Plese enter a positive integer") | |
else: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def recur_fibo(n): | |
if n <= 1: | |
return n | |
else: | |
return(recur_fibo(n-1) + recur_fibo(n-2)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
def dataframe_metainformation(df): | |
""" | |
Returns Pandas data frame with metainformation | |
Parameters |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json, math | |
# Напишите ваш код ниже | |
with open("data/covid.json") as a: | |
dane = json.load(a) | |
from datetime import datetime | |
def calc_mean_sigma(data): | |
sx, sx2, n = 0.0, 0.0, 0 | |
for x in data: | |
sx += x |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def print_metainformation(meta): | |
print('Available types:', meta['description']['dtype'].unique()) | |
print('{} Features'.format(meta['description'].shape[0])) | |
print('{} categorical features'.format(len(meta['categorical_features']))) | |
print('{} numerical features'.format(len(meta['numerical_features']))) | |
print('{} categorical features with NAs'.format(len(meta['categorical_features_na']))) | |
print('{} numerical features with NAs'.format(len(meta['numerical_features_na']))) | |
print('{} Complete features'.format(len(meta['complete_features']))) |