Releases: Korkmatik/DataScience
Releases · Korkmatik/DataScience
Cyber Security Salaries
Cyber Security Salaries
This is an analysis of Cyber Security Salaries in the U.S. The full article can be found on Medium.
Example ML Pipeline
You can download the model and the scaler from the releases page. After that you can make predictions with the following pipeline:
import pickle
f = open("./models/linear_regression.sav", "rb")
model = pickle.load(f)
f.close()
f = open("./models/standard_scalar.sav", "rb")
standard_scaler = pickle.load(f)
f.close()
# Predicting salary for junior professionals working at a large size company
y_pred = model.predict( [[1, 0, 0, 0, 1, 0, 0]] )
salary = standard_scaler.inverse_transform( y_pred )
print(salary)
Input data structure
The input data is one hot encoded. The first 4 columns are for the experience levels:
- Entry-level / Junior
- Mid-level / Intermediate
- Senior-level / Expert
- Executive-level / Director
The last 3 columns are for the company size:
- less than 50 employees
- 50 to 250 employees
- more than 250 employees
For example if you want to encode a senior level professional working at a company with 50 to 250 employees you would create the following array: [0, 0, 1, 0, 0, 1, 0]
.