Skip to content

Cyber Security Salaries

Latest
Compare
Choose a tag to compare
@Korkmatik Korkmatik released this 19 Feb 12:44
· 7 commits to main since this release

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].