input: from typing import List
  
  def perform_binary_classification(data: List[List[float]]) -> float:
      """ Implement a basic machine learning model in Python that performs binary classification on the given data.
      The model used is a Logistic Regression from sklearn.
      >>> perform_binary_classification([[0.3, 0.2, 0.6], [0.3, 0.1, 0.4], [0.2, 0.3, 0.4], [0.7, 0.4, 0.2], [0.5, 0.2, 0.1]])
      1.0
      """
output:     
      from sklearn.linear_model import LogisticRegression
      import numpy as np
  
      X = np.array(data)[:, :-1]
      y = np.array(data)[:, -1]
  
      model = LogisticRegression()
      model.fit(X, y)
  
      return model.score(X, y)
  