This file contains hidden or 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
| /* | |
| * © ChatKitty, Inc. 2022 - All Rights Reserved. | |
| * Unauthorized copying of this file, via any medium is strictly prohibited. | |
| * This source code and all its derivatives are proprietary and confidential. | |
| */ | |
| package com.chatkitty.domain.infrastructure.opengraph | |
| import org.htmlcleaner.HtmlCleaner | |
| import java.io.BufferedReader | |
| import java.io.InputStreamReader |
This file contains hidden or 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
| function [J grad] = nnCostFunction(nn_params, ... | |
| input_layer_size, ... | |
| hidden_layer_size, ... | |
| num_labels, ... | |
| X, y, lambda) | |
| %NNCOSTFUNCTION Implements the neural network cost function for a two layer | |
| %neural network which performs classification | |
| % [J grad] = NNCOSTFUNCTON(nn_params, hidden_layer_size, num_labels, ... | |
| % X, y, lambda) computes the cost and gradient of the neural network. The | |
| % parameters for the neural network are "unrolled" into the vector |