Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Name | Age | Gender | Area | Recently Contacted | Plays Football | Active On WhatsApp | Lives Nearby | Free Weekends | Available In June | |
---|---|---|---|---|---|---|---|---|---|---|
Friend 1 | 28 | M | Town 5 | 0 | 1 | 0 | 0 | 1 | 1 | |
Friend 2 | 28 | M | Town 3 | 1 | 1 | 1 | 1 | 1 | 1 | |
Friend 3 | 25 | M | Town 9 | 1 | 1 | 0 | 0 | 1 | 0 | |
Friend 4 | 25 | M | Town 4 | 1 | 0 | 1 | 1 | 0 | 1 | |
Friend 5 | 29 | M | Town 1 | 1 | 1 | 1 | 1 | 1 | 1 | |
Friend 6 | 24 | M | Town 10 | 0 | 0 | 1 | 0 | 1 | 1 | |
Friend 7 | 25 | M | Town 5 | 1 | 0 | 1 | 0 | 1 | 1 | |
Friend 8 | 26 | M | Town 2 | 1 | 1 | 1 | 1 | 1 | ||
Friend 9 | 24 | M | Town 9 | 1 | 1 | 1 | 0 | 1 | 0 |
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
Name | Interested | |
---|---|---|
Friend 1 | 1 | |
Friend 2 | 0 | |
Friend 3 | 1 | |
Friend 4 | 0 | |
Friend 5 | 0 | |
Friend 6 | 0 | |
Friend 7 | 0 | |
Friend 8 | 1 | |
Friend 9 | 0 |
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
print("\n*****Testing Model Accuracy*****\n") | |
#Load Test File | |
test = pd.read_csv("UnsupervisedFootball/TestFootballEvent.csv") | |
print("\n***** Showing Test Contents *****\n") | |
print(test.head()) | |
print("\n***** Showing Test Contents *****\n") | |
totalCorrect = 0 | |
for i in range(len(X)): | |
predictedX = np.array(X[i].astype(float)) |
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 Libraries | |
import pandas as pd | |
import numpy as np | |
from sklearn.cluster import KMeans | |
from sklearn.preprocessing import LabelEncoder | |
import matplotlib.pyplot as plt | |
#Load File To Train KMeans | |
train = pd.read_csv("UnsupervisedFootball/TrainFootballEvent.csv") |
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
public class InterestRateSwap | |
{ | |
public double Notional { get; set; } | |
public DateTime StartDate { get; set; } | |
public DateTime MaturityDate { get; set; } | |
public double FrequencyInYears { get; set; } | |
public List<double> PayDates { get; internal set; } | |
} |
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
//Step 1: Implement a contract: ISwapPricer | |
public interface ISwapPricer | |
{ | |
double PriceSwap(InterestRateSwap interestRateSwap, double currentResetRate, | |
double fixedRate, IDictionary<double, double> floatingRates); | |
} | |
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
Date | GBP/USD Close | |
---|---|---|
1998-12-31 | 88.67 | |
1999-01-01 | 88.67 | |
1999-01-04 | 85.6 | |
1999-01-05 | 83.95 | |
1999-01-06 | 86.96 | |
1999-01-07 | 83.12 | |
1999-01-08 | 82.37 | |
1999-01-11 | 77.03 | |
1999-01-12 | 83.44 |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
#Print MSE to see how good the model is | |
Error = MeanSquaredError(TestData, Predictions) | |
print('Test Mean Squared Error (smaller the better fit): %.3f' % error) |
NewerOlder