# A question about Fuzzy C-means code

**URL:** https://discourse.julialang.org/t/a-question-about-fuzzy-c-means-code/40988
**Category:** Optimization (Mathematical)
**Tags:** question
**Created:** [June 8, 2020, 1:13pm UTC](https://discourse.julialang.org/t/a-question-about-fuzzy-c-means-code/40988 "2020-06-08T13:13:21Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![abcde](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/abcde/32/16180_2.png) [@abcde](https://discourse.julialang.org/u/abcde)
#### Post date: [June 8, 2020, 1:13pm UTC](https://discourse.julialang.org/t/a-question-about-fuzzy-c-means-code/40988/1 "2020-06-08T13:13:21Z")

</div>

```julia
using RDatasets, Clustering, Plots
using DataFrames
using CSV
iris = dataset("datasets", "iris"); # load the data
features = collect(Matrix(iris[:, 1:4])'); # features to use for clustering
result = fuzzy_cmeans(features, 3, 4, maxiter=150, display=:iter)
scatter(iris.PetalLength, iris.PetalWidth, marker_z=result.centers,color=:lightrainbow, legend=false)

```

there are questions about my code  
it shows  
ERROR: LoadError: error compiling \_plot!: error compiling \_display: could not load library “libGR.dll”  
The specified module could not be found.  
why?thank you !!

---

<div class="post-metadata">

### Author: ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)
#### Post date: [June 8, 2020, 1:56pm UTC](https://discourse.julialang.org/t/a-question-about-fuzzy-c-means-code/40988/2 "2020-06-08T13:56:59Z")

</div>

Sounds like your `GR` installation isn’t working properly (GR is the default backend for `Plots`). Try rebuilding it by doing `]build GR`

---

<div class="post-metadata">

### Author: ![abcde](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/abcde/32/16180_2.png) [@abcde](https://discourse.julialang.org/u/abcde)
#### Post date: [June 8, 2020, 2:47pm UTC](https://discourse.julialang.org/t/a-question-about-fuzzy-c-means-code/40988/3 "2020-06-08T14:47:48Z")

</div>

I have already built the “GR” but it does not work 😨,thank you any way.
