You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: NNPOM.m
    path of file: ./repos/orca/src/Algorithms
    
    the code of the file until where you have to start completion: classdef NNPOM < Algorithm
    %NNPOM Neural Network based on Proportional Odd Model (NNPOM). This
    % class implements a neural network model for ordinal regression. The
    % model has one hidden
    
function [Theta1, Theta2, thresholds_param] = unpackParameters(obj,nn_params,input_layer_size,hidden_layer_size,num_labels)
            % UNPACKPARAMETERS obtains Theta1, Theta2 and thresholds_param
            % back from the whole array nn_params
            nTheta1 = hidden_layer_size * (input_layer_size + 1);
            Theta1 = reshape(nn_params(1:nTheta1), ...
                hidden_layer_size, (input_layer_size + 1));
            nTheta2 = hidden_layer_size;
            Theta2 = reshape(nn_params((1+nTheta1):(nTheta1+nTheta2)), ...
                1, (hidden_layer_size));
            thresholds_param = reshape(nn_params((nTheta1+nTheta2+1):end