필터 지우기
필터 지우기

help needed in cosine similarity method

조회 수: 1 (최근 30일)
abdul wahab  aziz
abdul wahab aziz 2016년 8월 26일
편집: Azzi Abdelmalek 2016년 8월 26일
Dear experts i want to implement cosine similarity method take an example i have a matrix
[2 3 4 5 1;1 2 3 4 2;4 5 1 1 2]
i want to predict value now i will hide one of them and use this method so far i have coded cosine method like this
clc;
clear all;
close all;
load('Sample.mat');
load('Sample_Hidden.mat');
A=Sample;
B=Sample_Hidden;
C=cosineSimilarityNaive(A);
options = [];
options.Metric = 'Euclidean';
options.NeighborMode = 'KNN';
options.bNormalized=1;
options.k = 5;
options.WeightMode = 'Cosine';

답변 (0개)

카테고리

Help CenterFile Exchange에서 Modeling에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by