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
16
votes
2 answers

How to use silhouette score in k-means clustering from sklearn library?

I'd like to use silhouette score in my script, to automatically compute number of clusters in k-means clustering from sklearn. import numpy as np import pandas as pd import csv from sklearn.cluster import KMeans from sklearn.metrics import…
10
votes
1 answer

What is the difference between Silhouette and Deadbolt 2 in Play Framework

We have two famous plugin for authentication and authorization in Play Framework, Silhouette and Deadbolt 2. My question is What is the difference between these two plugin? and for what situation we should use Silhouette or Deadbolt 2?
Saeed Zarinfam
  • 9,818
  • 7
  • 59
  • 72
9
votes
1 answer

How can silhouette scores be negative?

If we have some datapoints: And we use, for example, k-means to segment; are the resulting segments not such that every point is closest to the center-of-mass of its respective cluster? And if so, when silhouette score compares ai (average distance…
zliangmd
  • 167
  • 1
  • 5
7
votes
1 answer

Get user and fill all permissions

I am new to Scala and even what I am trying to achieve is too simple with Java, i feel confused with Scala. What I want is to get a User and then fill his Permission using another query and based to his Role and his individual Permissions. Until…
glarkou
  • 7,023
  • 12
  • 68
  • 118
6
votes
1 answer

How to implement multiple Silhouette Authenticators?

I used the play-silhouette-seed as a template for my application. So in my project, I use a cookie based authenticator (CookieAuthenticator). This works absolutely fine, even for REST calls via JavaScript which is embedded in my Twirl template.…
John Doe
  • 271
  • 2
  • 17
6
votes
2 answers

I can't see the result of silhouette plot except for the axis(in R)

everyone. I have a problem in plotting silhouette chart in R. It is my code. #k-means clustering #install.packages("cluster") library(cluster) kc <- kmeans(nsoap, centers=3) dissE <- daisy(nsoap) sk <-…
user5431097
  • 69
  • 1
  • 3
5
votes
1 answer

Silhouette authenticator cypter key, cookie signer key

Silhouette has in its seed project in config file two lines I don't understand: authenticator.cookie.signer.key = "[changeme]" // A unique encryption key authenticator.crypter.key = "[changeme]" // A unique encryption key Can somebody tell me what…
icl7126
  • 5,740
  • 4
  • 53
  • 51
5
votes
2 answers

play silhouette is not inserting password into database table

I am using play silhouette 4.0.0-BETA4. Everything seems to work fine except for storing the password. Each time I try to sign a new user up, all it's details are entered except for the password which seems to be stored in passwordinfo table. I am…
tzortzik
  • 4,993
  • 9
  • 57
  • 88
5
votes
1 answer

How to implement stateless cookie authentication using Play Silhouette?

The below link says that you can use CookieAuthenticator as stateless or stateful. http://silhouette.mohiva.com/docs/authenticator But I cannot see any options to make the choice at the below…
Priya R
  • 451
  • 4
  • 14
4
votes
1 answer

How to replace all colours except black in image Node.JS

I am trying to create a silhouette of an image. I have already made the background black but I am having trouble converting all other colours to grey. My code so far: import sharp from "sharp"; import jimp from "jimp"; sharp("input.png") …
user12493413
4
votes
1 answer

How do I Interpret Silhouette Coefficient from K-Means Clustering?

I am practicing K-Means clustering using sklearn package. I am working with sample shopping dataset, which consists of how much each customers spent in each item categories (i.e., food, fashion, digital, etc.) There are 42 features, meaning 42 item…
2D_
  • 571
  • 1
  • 9
  • 17
4
votes
2 answers

Play 2.5 Silhouette 4 - DI with guice

Language: Scala; Framework: Play 2.5; Libraries: Silhouette 4.0, Guice, scala-guice. One of the official Silhouette seed projects uses guice and scala-guice (net.codingwell.scalaguice.ScalaModule) to write DI configuration. Code looks like…
RB_
  • 1,195
  • 15
  • 35
3
votes
0 answers

what is the difference between CookieAuthenticator and SessionAuthenticator in Silhouette

I suppose Cookie based authentication is - a server creating an id which is difficult to guess and sending it to client in a cookie. The client would then send the id to server in each request in a cookie. This also creates a session I suppose.…
Manu Chadha
  • 15,555
  • 19
  • 91
  • 184
3
votes
2 answers

Access a list in an object in R (silhouette function)

I ran k-means for clustering with 5 clusters. km <- kmeans(data1z, 5) For the resulting clustering solution, I would like to take a closer look at the silhouette coefficient. library(cluster) kms <- silhouette(km$cluster, dist(data1z)) When I look…
SCW16
  • 403
  • 2
  • 4
  • 10
3
votes
0 answers

Deadbolt integration with silhouette

I am trying to use silhouette for authentication and deadbolt-2 for authorization. I can't find any resources on how to do that. Any ideas on how to combine both in one action? And on how to implement the deadbolt2 getSubject with silhouette…
Ayoub
  • 361
  • 4
  • 15
1
2 3
8 9