Questions tagged [silhouette]

Silhouette is a framework agnostic authentication library for Scala that supports several authentication methods, including OAuth1, OAuth2, OpenID, CAS, Credentials, Basic Authentication, Two Factor Authentication or custom authentication schemes.

Source of excerpt: Silhouette

126 questions
3
votes
1 answer

Silhouette authorization using request data

I use Silhouette and Play 2.4 and I'd like to restrict actions if a SecuredRequest body contains something wrong. I know, I should use trait Authorization as described by official docs. I'm trying to do the following: case class…
Alex Karasev
  • 1,108
  • 2
  • 13
  • 24
2
votes
1 answer

R Using Purrr Map function to calculate Silhouette distances of KMeans model

Simple KMeans model Data library(tidyverse) library(broom) library(cluster) set.seed(42) data = tibble(x = c(rnorm(20, 5, 1), rnorm(20, 10, 3)), y = c(rnorm(20, 5, 1), rnorm(20, 10, 3))) Model kmeans_k2 <- kmeans(data, 2,…
SC.
  • 406
  • 1
  • 6
  • 13
2
votes
1 answer

How can I change the color to a variable other than cluster number in fviz_silhouette

I am using package factoextra in R to generate a silhouette plot. Currently the silhouette automatically colours your graph via clustering. I want to color by another variable Site which I have defined as x. I have tried both fill and color changing…
Sophie Williams
  • 338
  • 1
  • 3
  • 14
2
votes
3 answers

silhouette calculation in R for a large data

I want to calculate silhouette for cluster evaluation. There are some packages in R, for example cluster and clValid. Here is my code using cluster package: # load the data # a data from the UCI website with 434874 obs. and 3 variables data <-…
Sam S.
  • 627
  • 1
  • 7
  • 23
2
votes
2 answers

unresolved dependency error: com.atlassian.jwt#jwt-core;1.6.1: not found

I have imported an existing working project on a new machine and am trying to make it compile. I am getting the following error unresolved dependency: com.atlassian.jwt#jwt-core;1.6.1: not found I read that this library is used in Silhouette. I am…
Manu Chadha
  • 15,555
  • 19
  • 91
  • 184
2
votes
1 answer

Integrating silhouette v5.0 with Play 2.6

I'am trying to integrate silhouette v5.0 with play 2.6 but i have an error while running the app, here is my build.sbt file and the error. thanhs for any help. val buildVersion = "0.0.4" version := buildVersion resolvers += "Sonatype Staging" at…
2
votes
1 answer

Cannot login with Facebook with play framework, silhouette, and satellizer

I was doing just fine this morning when I realized that the facebook login wasn't working anymore in my app. As I mentioned I'm using play framework with silhouette version 2.0-RC1. This is the problem: [Silhouette][facebook] Cannot build OAuth2Info…
2
votes
1 answer

Play framework GuiceApplicationBuilder not loading enabled module configs

I'm trying to test some actions. They require my security stuff which I've created using Silhouette. I have a module to configure the DI for Silhouette in security.Module, and in my conf/application.conf file I have the line: play.modules.enabled +=…
jbrown
  • 7,518
  • 16
  • 69
  • 117
2
votes
1 answer

Type conversion from Unit to Future[Boolean]

I have the following function and I would like to return Future[Boolean] but the IDE prompts that I return Unit. I am new in Scala. Can someone point me out what I am doing wrong? def remove(loginInfo: LoginInfo): Future[Boolean] = { val result =…
glarkou
  • 7,023
  • 12
  • 68
  • 118
1
vote
1 answer

Dtaidistance SSE and Silhouette score

I'm searching for a way to easily print SSE value and Silhouette score of a Dtaidistance (https://dtaidistance.readthedocs.io/en/latest/index.html) kmeans model after its training on data. While TSlearn kmeans produce _inertia and _labels from…
hrdmean
  • 21
  • 4
1
vote
0 answers

Cluster validation and kriging interpolation in R

I am stuck with the kriging interpolation analysis and colour-coding the silhouette output for correct representation of clusters. Any assistance in this regard is greatly appreciated For the kriging, I don't know how to proceed on this. For the…
1
vote
1 answer

Octave Error: out of memory or dimension too large for Octave's index type

I am trying to run the following code in Octave. The variable "data" consists of 864 rows and 25333 columns. clc; clear all; close all; pkg load statistics GEO = load("GSE59739.mat"); GEOT = tabulate(GEO.class) data = GEO.data; clear GEO idx =…
1
vote
1 answer

Silhouette plot from dendrogram in R

I'm using hierarchical clustering for my data. And I'd like to plot the Silhouette score across different number of cluster. I have searched a lot posts, and I found that I need to use pam for the clustering in order to plot the Silhouette score.…
YYM17
  • 341
  • 1
  • 10
1
vote
1 answer

K-Means - Why the optimal number of cluster is varying with Silhouette Analysis?

I am using the Silhouette Analysis in K-means Clustering, using the code found it here: https://medium.com/@cmukesh8688/silhouette-analysis-in-k-means-clustering-cefa9a7ad111 However, when I run the code (using my own data frame) I get different…
1
vote
2 answers

Unclear CORS filter in Play

I have app in Play. My application.conf file is: include "silhouette.conf" play.modules.enabled += "modules.SilhouetteModule" play.filters.enabled += "play.filters.cors.CORSFilter" play.filters.hosts { allowed = ["."] } play.filters.cors { …
The Trainer
  • 633
  • 1
  • 3
  • 19
1
2
3
8 9